Hi, I created an application launcher widget, which displays the icon of the selected activity and launch it when you click on it. The only problem with it, that in my phone there is only one application (Compass), which icon cannot be displayed. In an other phone it can be displayed, but Facebook icon can't. Facebook icon is ok in my phone. I tested this widget in the emulator and most of the activity icons can be displayed, but it can't display the Calculator icon (in two test device). But it can display the Calculator icon in my third test device. It is very mysterious.
The widget displays icons this way: ComponentName name = new ComponentName(packageName, activityName); Drawable applicationIcon = packageManager.getActivityIcon(name); if (applicationIcon != null && applicationIcon instanceof BitmapDrawable) { views.setImageViewBitmap(imageViewId, ((BitmapDrawable)applicationIcon).getBitmap()); } else { views.setImageViewResource(imageViewId, android.R.drawable.sym_def_app_icon); } The packageName and activityName values must be good, because it can launch the selected application. I tried to debug what happens but I couldn't find any error. Application icon is not null, it is a BitmapDrawable, and it has a 48*48 size. Everything looks good, but nothing is displayed. Thanks, Tamás -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en