I found a solution for this!

Simply I modified my manifest file

android:launchMode="singleTask"

in the activity Main,

Thanks anyway!!


On Tue, May 18, 2010 at 11:31 AM, ftovalle <[email protected]> wrote:

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


-- 
Felipe Tomás Ovalle / ftovalle
Desarrollo de Sistemas Java, Android, Php
Tel. 54 341 155 052447 -
www.ftovalle.com.ar -
Msn: [email protected] -
Skype: ftovalle

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