Tag: launcher

Failed to launch shortcut: Application is not installed on your phone

I am trying to create a desktop shortcut to one of my Activity in Android. I use the code that work in every tuto example i have read: final Intent shortcutIntent = new Intent(Intent.ACTION_MAIN); ComponentName name = new ComponentName(getPackageName(), “.MyActivity”); shortcutIntent.setComponent(name); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); final Intent intent = new Intent(); intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, “blabla”); intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, icon); […]

Android Application creating two launcher icons

I am having a very confusing problem with an application I have been working on for some time. Suddenly, when running my application, I found an immediate force close upon launch. Upon further investigation, I found two launcher icons in my launcher. One of which will either resume the application if it is running or […]

how to get user current opened application?

I am looking for a solution that i would like to get user opened or installed application on his device.I have to get which app opened by user from my BroadcastReceiver class.I have implemented my code as follows: public class AppReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { ActivityManager am = (ActivityManager)context.getSystemService(context.ACTIVITY_SERVICE); […]

Android, Why launcher icon and other images never change when I update my images?

I released one version of my application. For this version I had an image for launcher icon. For next version (update), I replaced this icon with other image. My problem is when I update last version with new one, new launcher icon doesn’t display and old one is still displaying. However, if I clear data […]

One application installed, show two entries in launcher

In Android, how to implement the following effect? Install just one application, but in the launcher, there are two entries, and entering each will go to different ui. Just like google map, you can see only one application, but there are map and navigation entries. Thanks.

Block/unblock an application from my application: Android

I want to block/unblock (where user can not use/access the blocked application) some application in an android device from my application. But I couldn’t find any solution/ idea about this. I read Android how to programmatically hide launcher icon, but this hide the application launcher icon of same application. How can I do this? Please […]

How to re-build the default “Launcher” application?

My goal is to modify the Launcher application and dynamically modify and change the theme. I saw several ‘home’ apps at http://www.cyrket.com/p/android/com.stain46.taghome/. It looks like they took the default Home(Launcher) and modified it. How did they do that? What do I need to modify to achieve the same thing?

Android, how to clear the recent task list which could get from Home button in most phone? Reflection is a possible way?

I’m writing a Launcher, it need clear the recent app/task list from system, not “didn’t show my apps in recent tasks list”, but I have no idea about it now. I have searched in the stackoverflow and only this issue is matched but the answer has no any help. Some other guy has asked the […]

Secret Android build process

The Android (Open Source Project) native launcher source code seems to be missing the following required XML layout parameters in some of its published resource files: layout_height and layout_width Missing attributes AppsCustomizeTabHost in apps_customize_pane.xml Workspace in workspace.xml there are 13 more, including duplicates in screen-size-specific layout resources Compile-time exceptions This breaks launcher compilation, at least […]

Android app OOM (Out Of Memory) adjustment priorities for processes

I am developing an Android Launcher (Home screen replacement) application and running into the launcher getting killed in low-memory situations. This is obviously not great when the user returns home and has to wait. In my research, I’ve found that Android classifies processes into several priority groups, from highest to lowest: System Persistent Foreground Visible […]

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