RESOLVED: Intents re-used for Activities

Put your problem here if it does not fit any of the other categories.

RESOLVED: Intents re-used for Activities

Postby rdomloge » Thu Jun 25, 2009 12:27 am

I have an activity which I need to call several times. Everything goes fine, first time around. The second time I launch an Intent to start the activity, the activity comes up, but it still has a reference to the original intent.

Why is this happening? If the activity is finished (finish() method is called) then why is the Intent that first created it remembered?

The launch mode for the activity is 'standard'.
Last edited by rdomloge on Thu Jun 25, 2009 5:03 pm, edited 1 time in total.
rdomloge
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sat Jan 24, 2009 2:11 pm

Top

I'm not the only one!

Postby rdomloge » Thu Jun 25, 2009 4:48 pm

rdomloge
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sat Jan 24, 2009 2:11 pm

RESOLVED!

Postby rdomloge » Thu Jun 25, 2009 5:02 pm

Seems there is a bug in the documentation:

http://code.google.com/p/android/issues/detail?id=863

The requestCode param to PendingIntent.getActivity() cannot be the same number each time.
rdomloge
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sat Jan 24, 2009 2:11 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 13 guests