I would like to force my app to go to the launcher when i clik on it
in the Home Screen

I am in any activity of my app and i click HOME button and go to the
Home Screen, If i click on my launcher then i always go to the last
activity where i clicked HOME button, instead of my launcher activity

I have tried with launch modes, with android:clearTaskOnLaunch, with
android:finishOnTaskLaunch and they never work!!!

Android always starts with the lastActivity onRestart() method instead
of my launcher activity.

How can i do that please? I need your help:

this is my code in the manifest:

<activity android:name=".cem.activity.LanzadorCeM"
                        android:label="@string/app_cem_name" 
android:icon="@drawable/
aprocor3">
                        <intent-filter android:label="@string/textLanzadorCeM">
                                <action 
android:name="android.intent.action.MAIN" />
                                <category 
android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                </activity>

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