Hi everybody,
my problem is this: I have a Main Activity wich have a button, when i
click on that, i execute

moveTaskToBack(true);

So, move activity to back, without finish it.

Now, i have a notification, showing a message. When the user click
there i want to restore the Main Activity (with pendingIntent, etc
etc). So, my event is onRestart(). That´s OK.

My problem is when i publish my aplication, creating the .apk . It
behaves differently!! When the user click over notification, create a
new intent and then a new Instance of Main Activity!! So, it never
enter to onRestart() event.

I don´t understand why mi application behaves differently when publish
it.

Can anybody help me please?

Sorry for my bad english.

Thanks!!




-- 
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