0
我想创建一个启动应用程序,我做得很好。 但我的启动器出现问题: 当我选择它作为设备的默认启动器时,按下设备后退按钮,我的启动器将消失,最后一个默认启动器将出现! 这是我的清单:如何使默认的Android启动
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<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.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".AppsListActivity"/>
</application>
谢谢您的帮助。
https://code.tutsplus.com/tutorials/build-a-custom-launcher-on-android--cms -21358 –
尝试这个链接将帮助您更多..从您的catagory中删除Launchar。 –
谢谢@Zar Saeed,为你的答案,但我做了这样的网站[链接](https://code.tutsplus.com/tutorials/build-a-custom-launcher-on-android--cms- 21358)你提到。但是当我想运行应用程序并将其设置为默认启动器时,它将设置为默认启动器,但是如果我按下设备的后退按钮,我的启动器将会最小化!并显示最后一个启动器。 – Ehsan