[android-developers] Notification and PendingIntents

2012-02-22 Thread Haddi
Hi Guys,

I have a toggle button in my activity. I want to retain the state of
this button when the activity is launched by clicking on the
notification icon of the app.

I tried using PendingIntent Flags, but it doesnt seem to work. The
toggle button always seems to be set to default (off).

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Notification and PendingIntents

2012-02-22 Thread TreKing
On Wed, Feb 22, 2012 at 4:46 AM, Haddi  wrote:

> I want to retain the state of this button when the activity is launched
>

http://developer.android.com/reference/android/content/SharedPreferences.html


-
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en