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

Reply via email to