if you want to persist your data,you must use somthing like database(SQLiteDatabase in android),or you can use SharedPreference.
On Wed, Feb 22, 2012 at 11:41 PM, TreKing <[email protected]> wrote: > On Wed, Feb 22, 2012 at 9:12 AM, Kookamonga <[email protected]> wrote: > >> But at the same time, shouldn't it be possible to do this just with the >> Intent itself? If you use the putExtra method on your intent and add just a >> simple boolean that indicates that the button should be set to on, I would >> think this would work. Did I miss something? >> > > Yes, that should work fine. I took the OP's statement of "retain the > state" to indicate that this was something he hoped to persist, beyond his > Notification. In which case, IMO, the SharedPreference would be the most > logical solution. > > Of course, these are all assumptions until the OP clarifies his intentions. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

