Android应用程序未出现在最近的应用程序列表中 [英] Android application doesn't appear on recent apps list

查看:101
本文介绍了Android应用程序未出现在最近的应用程序列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

i'm deploying an android application (Android 4.0.3) and when I press the home screen the application doesn't stay on the recent apps list. I've noticed that when I restart the application, it starts on the last screen i've navigated before press the home button. Anyone can help? Here is me Manifest:

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

推荐答案

我要四肢走动,建议这是您的问题:

I'm going to go out on a limb and suggest that this is your problem:

android:label="" 

在您的根活动CommunicatorActivity中,您已将标签设置为空字符串.此标签用于在可用应用程序列表中标识您的应用程序,并且由于该标签为空,因此可能导致该应用程序无法显示在最近使用的应用程序列表中.

In your root activity CommunicatorActivity you've set the label to be an empty string. This label is used to identify your app in the list of available apps and because it is empty, this may be causing it not to show up in the list of recent apps.

这篇关于Android应用程序未出现在最近的应用程序列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆