The custom android launcher returns to the default launcher when you press the back button

I am working on a launch application. It appears along with the default launcher when you press the back button. However, wherever I am in my custom launcher or on the start page of my launch, when I press the back button, the screen goes to the standard Android launch bar. I need help. This is the code that I used to install my application as a launch

<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.HOME" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.MONKEY" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> 

early

+6
source share
2 answers

It seemed to work for me

 @Override public void onBackPressed() { } 
+2
source

These are the categories for Android, Android. Intention. Category. LAUNCHER simply means that when the application starts, it will run the specified class

0
source

All Articles