task - android:clearTaskOnLaunch not working -


for reason android:cleartaskonlaunch not seem working me.

this have in manifest:

    <activity          android:name=".mainactivity"          android:icon="@drawable/i"          android:label="@string/app_name"         android:theme="@style/meuhedetthemenotitle"           android:finishontasklaunch="true"          android:cleartaskonlaunch="true">         <intent-filter>             <action android:name="android.intent.action.main"/>             <category android:name="android.intent.category.launcher"/>           </intent-filter>     </activity>     <activity          android:name=".mainscreenactivity"         android:screenorientation="portrait"          android:label=""          android:finishontasklaunch="true"           android:cleartaskonlaunch="true"/> 

the first splash screen little bit of work , moves on second activity. main menu.

i have managed other activities "die" using android:finishontasklaunch="true" on of them.

however, once application has been run once splash screen doesn't come again next time start , activity "mainscreenactivity" launched. happens when press home screen on device.

if got question correct then, when press home button activity doesn't destroyed, it's paused, when try launch application again, android doesn't launch app, resumes last activity stack.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -