Re: [android-developers] Re: Handle preferences in BroadcastReceiver's

2011-01-31 Thread Kostya Vasilyev
31.01.2011 15:53, Danny S. пишет: This matches the default preferences file and so I am able to read all pref values. But is this a "clean" way? Should I do better or create a separat preferences file using edit() method of SharedPreferences? Do you think my current procedure is bad and why? Da

[android-developers] Re: Handle preferences in BroadcastReceiver's

2011-01-31 Thread Danny S.
Hi, I temporary added the following into my preferences activity and access it within my broadcast receiver: public static final String PREFERENCES_PATH = Preferences.class.getPackage().getName() + "preferences"; in Broadcast Receiver I wrote: preferences = context.getSharedPreferences(