Android 应用程序未出现在最近的应用程序列表中

标签 android mobile

我正在部署一个 Android 应用程序 (Android 4.0.3),当我按下主屏幕时,该应用程序不会停留在最近的应用程序列表中。我注意到,当我重新启动应用程序时,它会在我按下主页按钮之前导航的最后一个屏幕上启动。任何人都可以帮忙吗?这是我的 list :

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.test"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="15" />

    <uses-permission android:name="android.permission.INTERNET" />

    <application android:icon="@drawable/logo_home"
        android:allowBackup="true">
        <activity
            android:name="com.test.activity.CommunicatorActivity"
            android:launchMode="singleTop"
            android:label="" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />

            </intent-filter>

        </activity>
        <activity android:name="com.test.activity.InputActivity"
            android:windowSoftInputMode="adjustPan|stateHidden">
        </activity>
        <activity android:name="com.test.activity.SettingsActivity" 
            android:windowSoftInputMode="adjustPan|stateHidden">
        </activity>
        <activity android:name="com.test.activity.OutputActivity"
            android:windowSoftInputMode="adjustPan|stateHidden">
        </activity>
    </application>

</manifest>

最佳答案

我要冒险并建议这是你的问题:

android:label="" 

在您的根 Activity CommunicatorActivity 中,您已将标签设置为空字符串。此标签用于在可用应用列表中识别您的应用,因为它是空的,这可能导致它不会显示在最近使用的应用列表中。

关于Android 应用程序未出现在最近的应用程序列表中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15553295/

相关文章:

android - 打开某些 fragment 时如何隐藏/显示工具栏上的图标

javascript - 什么触发 android chrome 显示 "make page mobile-friendly"面板?

css - 响应式网站在手机上以全宽显示(但在模拟手机上不显示)

java.lang.ClassCastException : android. widget.LinearLayout$LayoutParams 无法转换为 android.widget.AbsListView$LayoutParams

css - HTML5 网站溢出-x

Android 直方图均衡算法给了我真正明亮或红色的图像

android - "START_STICKY"服务会阻止android休眠吗?

android - AssetManager 无法在 NDK 中运行

java - 构建 NDK 共享库时导出 header

css - 移动设备上的字体大小