I'm working on adding a map view to an app of mine, and so far I've successfully gotten the MapView itself to work. I'm trying to add an overlay now, and I'm having problems loading the bitmap resources to do that.
Here is the code snippet that does the loading, in the activity's onCreate: Resources res = getResources(); mCacheSym = res.getDrawable(R.drawable.symb_cache); mFoundSym = res.getDrawable(R.drawable.symb_found); mWptSym = res.getDrawable(R.drawable.symb_wpt); (the m*Sym variables are all Drawable type) The getDrawable calls seem to successfully return a BitmapDrawable, but it's an empty bitmap... the height and width in the object are -1 and all 4 numbers in the bounds rectangle are 0. The images are all 28x28 8-bit PNG, but I don't think that's the issue as I tried replacing one of the IDs with an image I'm already using for a menu item and it did the same thing. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

