Tag: android-launcher

How to detect if launcher supports home screen rotation

This may be considered to be a repeat of this post, but that never did receive a proper answer, so maybe the question needs a bit more context to attract an answer. Basically I have managed to set up a monitoring Service that watches for home screen rotation, and when that happens my AppWidgets are […]

How do I set the default launcher in an AOSP build?

I am modifying the AOSP source code because my app needs to run in a kiosk environment. I want Android to boot directly into the app. I’ve excluded launcher2 from generic_no_telephony.mk, and added the app there. Now Android prompts me all the time to choose default launcher. The two choices that are available on the […]

Android launching wrong activity

Android is launching wrong activity when I start app. Manifest.xml : <activity android:name=”com.company.app.activities.RS_SplashScreenActivity” android:label=”@string/app_name” > <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> </intent-filter> </activity> <activity android:name=”com.company.app.activities.RS_PreviousLauncherActivity” android:label=”@string/app_name” android:theme=”@style/myTheme” > </activity> I added a new Activity RS_SplashScreenActivity and set it as launcher activity. Still it tries to launch RS_PreviousLauncherActivity which used to be a launcher activity […]

Remove Activity as Default Launcher

I set my activity as a default launcher to intercept home button clicks like so: <activity android:name=”.ExampleActivity” android:label=”@string/app_name”> <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> <category android:name=”android.intent.category.HOME” /> <category android:name=”android.intent.category.DEFAULT” /> </intent-filter> </activity> When my activity, ExampleActivity is launched, if i click the home key, I get prompted to choose. If I select make this […]

Android Launcher Icon Rounded Corner Edge Radii

Are there any official guidelines for how many pixels the edge radii should be when giving Android launcher icons rounded corners? I’ve found guidelines for launcher icon pixel sizes (but rounded corners aren’t mentioned), a tool called Android Asset Studio which rounds the corners for you (but the tool provides undesirable and non-configurable padding around […]

App not listed in launcher due to <data android:scheme=“http” /> in AndroidManifest.xml

When I add <data android:scheme=”http” /> in AndroidManifest.xml, it causes my app not to be listed in the launcher anymore. Why? AndroidManifest.xml without <data android:scheme=”http” />: <?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”com.ebookfrenzy.mywebview” > <uses-permission android:name=”android.permission.INTERNET” /> <application android:allowBackup=”true” android:icon=”@drawable/ic_launcher” android:label=”@string/app_name” android:theme=”@style/AppTheme” > <activity android:name=”.MyWebViewActivity” android:label=”@string/app_name” > <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> </intent-filter> </activity> […]

Android package installer – how to get “Open” and “Done” and activity result both?

My Android Application has an option to upgrade to the newer version, the newer version APK I keep it available under a path in sdcard. On click of Upgrade option I invoke following method. public static void launchInstaller(Activity act, String apkPath) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(apkPath)), “application/vnd.android.package-archive”); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); act.startActivityForResult(intent, 0); } The […]

Android application restarts when opened by clicking the application icon

I am new to the Android development world and I’ve built a simple “Hello World” app. First, activity requests a text. When the “Go” button is clicked, the app launches the second activity displaying the input text. If I click the HOME button and then click the application icon, the app launches the first activity […]

Apps from Recent Apps back out to stock launcher instead of custom launcher

I’m creating a custom launcher that is used like a kiosk mode for the phone. This means most things are hidden away but allows the user to access some apps. I’ve noticed that when I launch apps from the Recent Apps list, when I press the back button, the stock launcher comes up instead of […]

Set google as search bar in home screen Custom launcher programmatically

I am creating ‘my own launcher. In that case I want to putQuick search bar` in my home screen i.e. Google now launcher. How can I do that. I have gone through multiple threads but not found any relevant answer. I don’t want to show the widget picker.I want asap user install this launcher search […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.