Re: [android-developers] Android First install launch issue

2016-05-31 Thread TreKing
On Tue, May 31, 2016 at 12:41 AM, Andy Dev 
wrote:

> I am facing issue with my android app.
>
> If a user installs my app through apk file. After installation a window
> appears with two buttons *open* and *done* which is part of android os.
>
> When user taps on *open,* it opens my launcher activity. Which is great...
>
> After landing to Launcher activity if user go to some other activity of my
> app from launcher activity and the he decide to minimize my app by pressing
> android home button key. My app appears in the app stack...
>
> After some time when user press to the launcher icon of my app, though the
> app is in apps stack but it starts again from the launcher activity rather
> continue from the last activity where user minimize the app.
>
> This only happens when user first open the app after installation from the
> android popup of done or open button.
>
> However if user kills the app from apps stack and re open the app this
> never happen again.
>
This is standard, although unfortunate, behavior. "Open" from Google Play
is a different launch intent than from Home, so they create two distinct
activities.

If you don't want this behavior, you can set the singleTop or singleTask
launch flags for your main activity in the manifest.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgikqPzitpN0PyTgHTigrv3M79cdnqjU%3DM%3DcnSZCZ4-7fQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android First install launch issue

2016-05-30 Thread Andy Dev


I am facing issue with my android app. 

If a user installs my app through apk file. After installation a window 
appears with two buttons *open* and *done* which is part of android os.

When user taps on *open,* it opens my launcher activity. Which is great...

After landing to Launcher activity if user go to some other activity of my 
app from launcher activity and the he decide to minimize my app by pressing 
android home button key. My app appears in the app stack...

After some time when user press to the launcher icon of my app, though the 
app is in apps stack but it starts again from the launcher activity rather 
continue from the last activity where user minimize the app.  

This only happens when user first open the app after installation from the 
android popup of done or open button.

However if user kills the app from apps stack and re open the app this 
never happen again.

Note:

In my Manifist i do not put any launchmode.

I have only one launcher activity

Please guide me

Thanks  

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/cbb5e493-c265-4f95-b15b-415bbbd761e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.