Monday, August 13, 2012

Re: [android-developers] prevent from reinitializing value

Save the values you want to persist in onPause()  or onStop()  using  SharedPreferences  or you can also use onSaveInstanceState()  to save your values and  extract it when the activity is started the next time.

On Mon, Aug 13, 2012 at 9:12 PM, TreKing <trekingapp@gmail.com> wrote:
On Mon, Aug 13, 2012 at 12:28 AM, Sadhna Upadhyay <sadhna.braahmam@gmail.com> wrote:
can someone tel me how to prevent from reinitializing value when activity is re called i mean

You need to explain more clearly exactly what you're trying to do.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices


--
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

--
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

No comments:

Post a Comment