Tuesday, July 31, 2012

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

Hi,

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.


Thanks
Jtoms


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

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"
                  android:label="@string/app_name"
                  android:clearTaskOnLaunch="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

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

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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment