Hello, I thought this one was funny until it kept me up for 5 hours
last night trying to beat the ADC deadline!

I have an appwidget with an image view in a linear layout. I set the
bitmap to be the icon of an application:

Drawable d = packageManager.getActivityIcon( new ComponentName
(  appPackage, appClass ) );

Bitmap foo = Bitmap.createBitmap
(                          draw.getIntrinsicHeight(),
draw.getIntrinsicWidth(),
                                Bitmap.Config.ARGB_8888
                );
                Canvas can = new Canvas(foo);
                draw.draw(can);
                return foo;

views.setImageViewBitmap( R.id.icon, qq );


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to