reznic wrote:
> I use decodeResource(String res);

There is no decodeResource(String res) method, at least not on 
BitmapFactory in the M5 (current) SDK.

If you are on the current SDK (it's been out for a few months), then you 
want to change:

Bitmap bitmap = BitmapFactory.decodeFile("res/drawable/icon.png");

to

Bitmap bitmap = BitmapFactory.decodeResource(getResources(), 
R.drawable.icon);

assuming that this statement resides in your Activity and so has a 
getResources() method to return a Resources object.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Warescription: All titles, revisions, & ebook formats, just $35/year

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to