android - Dynamically change intent URI in SharedPreferences? -


my users can jump google play rate app settings screen, clicking preference starts intent:

in xml:

<preference     android:title="@string/prefrate"     android:summary="@string/prefratehint">     <intent android:action="android.intent.action.view"         android:data="market://details?id=app.package.name" /> </preference> 

in code:

public class settingsactivity extends preferenceactivity {          @override          protected void oncreate(bundle savedinstancestate) {          super.oncreate(savedinstancestate);          addpreferencesfromresource(r.xml.prefs);     } } 

now i'm planning upload amazon store url different. there way programmatically change intent url inside sharedpreferences before showing settings screen?

it's going add few bytes code, having 2 seperate prefs_play, prefs_amazon files, , establishing reference when find out store working with? quick-and-dirty way come out of original test of services, anyway.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -