Tuesday, July 31, 2012

[android-developers] Re: ClearTaskOnLaunch flag is not working


I have an issue in Google nexus. I am using phonegap and jquery mobile for my application. 

In the login screen, when I tap on the input fields (on focus) the splash screen is visible for a second. And when I tap on the next input, the same effect is visible. Is it because the splash screen is not cleared when the app is launched? I have used  'clearTaskOnLaunch=true ' in manifest .xml. Is there any possibility to fix the issue?

Please help me. I am quite new to this.


On Thursday, 14 January 2010 16:45:25 UTC+5:30, Android Developer wrote:

I have two activities in an application Activiy1 and Activity2 where
Activity1 is the launcher.
i have set clearTaskOnLaunch=true for activity one using below code
<activity android:name=".App1_Activity1"
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />

I will launch the application, then from Activity 1 ->Activity2
Then i press Home key, Long press home key and select the application
again, it is showing Activity2 and not Activity1 which is the root

Am i doing wrong somewhere? If no, why is the behavior not correct.

You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment