I want to get the package name of the current launcher that I have currently installed. I tried using the link http://stackoverflow.com/questions/10344824/how-can-i-get-the-package-name-of-the-current-launcher-in-android-2-3-and-above
but it gives the result as "android". I want the complete launcher name .
I want the list of launchers installed and the current launcher selected
Thanks in advance
First, you need to navigate to Settings > Apps > All. Scroll down and look for your current application launcher.
An app launcher replaces the stock user interface for organizing the home screen and app icons predominantly in the Android world; however, they are also available for jailbroken iPhones (see iPhone jailbreaking and Cydia). See Launchpad and app drawer.
A launcher is to your Android phone as a desktop is to your computer—launchers provide the background interface on your phone and help you organize everything that you need quick and easy access to.
you can get current launcher package name using below code:
PackageManager localPackageManager = getPackageManager();
Intent intent = new Intent("android.intent.action.MAIN");
intent.addCategory("android.intent.category.HOME");
String str = localPackageManager
.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY)
.activityInfo
.packageName;
Log.e("Current launcher Package Name:", str);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With