Saturday, August 27, 2011

Re: [android-developers] Re: Advice on getting data from one activity to another

On Sat, Aug 27, 2011 at 11:34 AM, erik wagner <erik.j.wagner@gmail.com> wrote:
> Thanks!  Now to figure out how to use them, hopefully I won't be back
> later with a 'uh, how do i do this?' question.

Here is a sample project showing using SharedPreferences and a
PreferenceActivity:

https://github.com/commonsguy/cw-android/tree/master/Prefs/Simple

Whether you even need the OnSharedPreferenceChangeListener is
debatable, depending on your application flow. I re-read the
SharedPreferences in onResume(), for example, in the sample project
above.

If you are going to create an "options" screen, please please please
consider using a PreferenceActivity.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.1 Programming Books: http://commonsware.com/books

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate