Hello,

I have an application with a single activity, whose launchMode is set
to "singleTop". My application is an image viewer/editor & hence a
user can go to the gallery, choose an image & select my application
from the share menu to launch my application.

Now, I am performing the following steps-

1) Launch my application using the launcher icon.
2) Press home.
3) Go to gallery & choose an image to share using my application.

After step 3, my application's onCreate() method hits again. As far as
I understand, the activity being the only activity in the stack, was
at the top, and should not have been created again. Observing the
gallery intent's flags, I see that the flag is set to 1 (perhaps
FLAG_GRANT_READ_URI_PERMISSION).

Is the declaration singleTop not sufficient to ensure a single
instance in this scenario?

Any help will be appreciated.

Thanks,
Akshay

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