Android的 - 我的应用程序不会在最近的应用列表显示 [英] android - My app doesn't show in recent apps list

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

问题描述

我工作的一个应用程序,并刚刚意识到它没有在最近的应用程序列表中显示。

I am working on an app and have just realised it doesn't show in the recent apps list.

我在应用2活动,不管是哪个,我就当我打的Home键,应用程序不能在最近应用程序列表中。

I have 2 activities in the app and no matter which I am on when I hit the Home key, the app isn't shown in the recent apps list.

我已经看到了这个问题:<一href=\"http://stackoverflow.com/questions/10580988/application-is-not-displayed-in-recent-apps-lists\">SO问但把东西类在清单中并没有为我工作。

I have seen this question: SO Question but putting the category stuff in the manifest hasn't worked for me.

下面是我的清单的一部分:

Below is the part of my manifest:

<application android:label="@string/app_name" >

    <service android:name=".UploadService" android:exported="false" />
    <service android:name=".DownloadService" android:exported="false" />

    <activity android:label="@string/app_name"
        android:excludeFromRecents="true"
        android:screenOrientation="portrait" 
        android:name="com.test.DOHSMain" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity android:name="com.test.DOHSChange"
        android:label="@string/app_name" >
        <intent-filter>
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
</application>

有没有人有任何想法,我做错了?

Does anyone have any idea what I am doing wrong?

注意:我说的第二个活动DOHSChange标签以防万一,这将有助于但有存在与否该行似乎无能为力

Note: I added the tag on the second activity DOHSChange just in case that would help but having that line there or not seems to do nothing.

感谢您的时间

推荐答案

摆脱的android:excludeFromRecents =真正的从你的清单

Get rid of android:excludeFromRecents="true" from your manifest

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

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