Android 解锁手机显示最近的应用列表
我正在尝试为android构建一个定制的启动器(使用android 6.0)。使用启动器并解锁手机后,我会显示最近的应用列表(概览屏幕),而不是启动器 如何更改此行为以在解锁后立即显示主屏幕/启动器 舱单:Android 解锁手机显示最近的应用列表,android,launcher,homescreen,Android,Launcher,Homescreen,我正在尝试为android构建一个定制的启动器(使用android 6.0)。使用启动器并解锁手机后,我会显示最近的应用列表(概览屏幕),而不是启动器 如何更改此行为以在解锁后立即显示主屏幕/启动器 舱单: <activity android:name=".Home" android:launchMode="singleTask" android:clearTaskOnLaunch="true" android:stateNotNeeded="true" a
<activity android:name=".Home"
android:launchMode="singleTask"
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
android:label="@string/app_name"
android:theme="@style/Theme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
添加以下代码并重试一次
<activity android:name=".Home"
android:excludeFromRecents="true"
android:screenOrientation="nosensor"
android:launchMode="singleTask"
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
android:label="@string/app_name"
android:theme="@style/Theme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
添加以下代码并重试一次
<activity android:name=".Home"
android:excludeFromRecents="true"
android:screenOrientation="nosensor"
android:launchMode="singleTask"
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
android:label="@string/app_name"
android:theme="@style/Theme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
谢谢这正是我想要的!谢谢,这正是我要找的!