You need to use the flag PendingIntent. FLAG_UPDATE_CURRENT.
Up vote 0 down vote favorite share g+ share fb share tw.
I have a problem. My application receives a C2DM message and sends a status bad notification with the C2DM message. So far so good.
When the user clicks on the notification, an activity is called, passing the C2DM message as a variable. Now, the first time it works smoothly, the second time the variable passed is not refreshed. It's always the first variable passed.
Am I missing something? Here are the snipperts: C2DM Notification Intent notificationIntent = new Intent(context, BMBPad. Class); notificationIntent.
PutExtra("seqid", message); PendingIntent contentIntent = PendingIntent. GetActivity(context, 0, notificationIntent, 0); notification. SetLatestEventInfo(context, contentTitle, contentText, contentIntent); This is how I read the variable in the Activity called by the Intent.
Extra = this.getIntent().getExtras(); seqidi = extra. GetString("seqid"); Anyone any idea why that happens? Android variables notifications android-intent android-c2dm link|improve this question edited May 28 '11 at 10:29Programmer Bruce4,6201425 asked May 13 '11 at 18:45FredV11.
First, could you clarify your question with code quotes, to style the snippet out. Thanks – MrBuBBLs Nov 15 '11 at 16:24.
You need to use the flag PendingIntent. FLAG_UPDATE_CURRENT In your case: PendingIntent contentIntent = PendingIntent. GetActivity(context, 0, notificationIntent, PendingIntent.
FLAG_UPDATE_CURRENT); Please also have a look here: Android PendingIntent.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.