Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application is not displayed in recent apps lists

My application is never shown in the RECENT APPS list whenever I put the following piece of code in my activity's manifest entry

<category android:name="android.intent.category.DEFAULT" />

If I remove above line it works fine. I've also made sure that the following flags are set to false-

        android:noHistory="false"
        android:excludeFromRecents="false"

But still its never displayed even if I launch app manually.

In case anybody wants to have a look the manifest, its-

<?xml version="1.0" encoding="UTF-8"?>

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

<application
    android:name="com.raj.poc.copypaste.MainApplication"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:name=".CopyPasteActivity"
        android:launchMode="singleTop"
        android:noHistory="false"
        android:excludeFromRecents="false"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <action android:name="android.intent.action.SEARCH_LONG_PRESS" />
            <category android:name="android.intent.category.DEFAULT" /> 
        </intent-filter>
    </activity>
</application>

like image 415
Rajkiran Avatar asked May 14 '12 09:05

Rajkiran


People also ask

Why my recent apps are not showing?

Reboot your device in Safe Mode. Update your smartphone OS regularly. Use a dedicated third-party Android launcher app. Factory reset your device.

How do I enable recently used apps?

You'll be able to see your recent apps with a single tap. From the Home screen, tap the Recents icon to the left of the Home button. All of your active or opened apps will be listed. If you've customized your Navigation bar, Recents may be located on the right, unless you're using full screen gestures.

How do I get my recent apps back on Android?

Swipe up from the bottom, hold, then let go. If you're on Android Go with 3-button navigation, tap Recent apps .


1 Answers

It may also happen if you set

    <activity... android:label=""/>

for your main Activity

like image 170
riwnodennyk Avatar answered Nov 11 '22 01:11

riwnodennyk