Hello everyone!

Hopefully a quick question... I can't seem to find any posts in any
forum about this.

I have an image called "map.jpg" in my res/drawable folder. However,
the function to create the BitmapRegionDecoder seems to not like the
path that I give it. What should be the correct path to use to
initialize the BitmapRegionDecoder? Or should I use a different
version of "newInstance"?

Thanks a lot for any help!!
-Kivak

Code:
--------------------------------------

try {
        brdMap = BitmapRegionDecoder.newInstance("res/drawable/map.jpg",
true);
} catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
}

---------------------------------------

-- 
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

Reply via email to