clearTaskOnLaunch means that your entire task will be reset when the user
re-launches it from home (like the settings app does), so if that isn't
happening regardless of whether you are currently in an e-mail activity that
is a bigger problem.l

Am I to assume from your attributes here that this activity is a "front
dore" activity that doesn't display or do anything, but just launches the
"real" activity of your app?  If not, using finishOnTaskLaunch and noHistory
is really questionable.  If it is, consider making this one the NoDisplay
theme (and then don't worry about setting a forced orientation on it since
it will never be seen).

On Sat, Dec 18, 2010 at 1:44 PM, Utumno <[email protected]> wrote:

> here are the flags to my main activity:
>
> <activity android:name=".RRMain"
>                  android:screenOrientation="landscape"
>                  android:label="@string/app_name"
>                  android:theme="@android:style/
> Theme.NoTitleBar.Fullscreen"
>                  android:configChanges="orientation"
>                  android:clearTaskOnLaunch="true"
>                  android:finishOnTaskLaunch="true"
>                  android:noHistory="true">
>
> On Dec 19, 5:35 am, TreKing <[email protected]> wrote:
> > On Sat, Dec 18, 2010 at 3:04 PM, Utumno <[email protected]> wrote:
> > > 1) when user exits the mail application ( either by actually sending
> > > the email or simply by pressing the 'BACK' button ) then he gets
> > > kicked out of my app entirely ( back to the main screen, while it
> > > should go back to my app! )
> >
> > This works fine for me. Do you have any flags specified for your own
> > activity?
> >
> >
> >
> > > 2) when having the email application on top, user presses the 'HOME'
> > > button, the Android correctly comes back to the main screen. However,
> > > when I now re-launch my app, user lands in the mail application again,
> > > which is confusing. I would like him to get back to my app's main
> > > activity.
> >
> > I don't think that's confusing. The last thing the user did in your app
> was
> > open the email screen - that's where they left off. So when they go back
> to
> > your app, they should pick up where they left off - on the email screen.
> >
> >
> -------------------------------------------------------------------------------------------------
> > TreKing <http://sites.google.com/site/rezmobileapps/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 post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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