1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to remove the launcher icon in android 10(Q)

Discussion in 'Android Development' started by G Krishna Sree, Jan 8, 2020.

  1. G Krishna Sree

    Thread Starter

    Before API 29, we can remove the launcher icon in the device by removing
    Code (Text):
    1.     <intent-filter>
    2.                 <action android:name="android.intent.action.MAIN" />
    3.                 <category android:name="android.intent.category.LAUNCHER" />
    4.     </intent-filter>
    in the manifest file.
    As stated in https://developer.android.com/reference/android/content/pm/LauncherApps#public-methods_1
    As of Android Q, at least one of the app's activities or synthesized activities appears in the returned list unless the app satisfies at least one of the following conditions:
    The app is a system app.
    The app doesn't request any permissions.
    The app doesn't have a launcher activity that is enabled by default. A
    launcher activity has an intent containing the ACTION_MAIN action and
    the CATEGORY_LAUNCHER category.
    Additionally, the system hides
    synthesized activities for some or all apps in the following
    enterprise-related cases:

    If the device is a fully managed device, no synthesized activities for
    any app appear in the returned list. If the current user has a work
    profile, no synthesized activities for the user's work apps appear in
    the returned list.

    The third condition states as the same as not to have a launcher activity that is enabled.
    How to achieve this in android 10?
     

    Advertisement

  2. MoodyBlues

    MoodyBlues Compassion is cool!
    VIP Member

    Welcome to Android Forums, G Krishna Sree!

    Your best bet for getting this type of help is by posting on our Android Development board. That's where your fellow developers hang out. :)
     
    Unforgiven likes this.
  3. dontpanicbobby

    dontpanicbobby 100% That Guy
    VIP Member

    Hold down on the icon and choose delete
    I am not a Developer or trying to represent myself as such.
     
  4. MoodyBlues

    MoodyBlues Compassion is cool!
    VIP Member

    Um...what icon, DPB? :thinking:

    They're writing an app, and want to remove the launcher icon from it.
     
  5. dontpanicbobby

    dontpanicbobby 100% That Guy
    VIP Member

    I don't think that code was there when I posted.
     
  6. Unforgiven

    Unforgiven ...eschew obfuscation...
    Moderator

    I moved the thread to the above mentioned forum for better exposure to the OP's question. Good luck! :)
     
    MoodyBlues likes this.
  7. MoodyBlues

    MoodyBlues Compassion is cool!
    VIP Member

    Yeah, it was. :) That's what I replied to. And you can see from its time-stamp that it hasn't been edited.
     
  8. dontpanicbobby

    dontpanicbobby 100% That Guy
    VIP Member

    Mea Culpa.
    It wasn't in Android Development though. ;)
    The Android Lounge attracts all sorts.
     
Loading...

Share This Page

Loading...