Gerardo
Gerardo

Reputation: 5830

Android Load Image from Drawable

i need to create a object Image from import javax.microedition.lcdui.Image; using a file .png placed in drawable folder. How can i do that?

Thanks

Upvotes: 1

Views: 3322

Answers (1)

Jay Askren
Jay Askren

Reputation: 10444

Since this Android and not JavaME, you cannot create a javax.microedition.lcdui.Image. You would create a Bitmap instead. Here's a decent tutorial on working with images in Android.

Upvotes: 2

Related Questions