On Mon, Dec 15, 2008 at 9:14 AM, Eric <[email protected]> wrote: > > Ralf: Thanks: I have duplicated them and it works. I don't like > wasting the storage space, especially since apps need to live in > internal memory. Having two copies of many icons seems very wasteful.
You could avoid duplication but it might be a bit more complicated than you want. There might be a more efficient way to do that but just from the top of my head: - you could store your bitmaps in /res/raw, on which it's trivial to read the file stream directly using Resources.openRawResource(). - you can encode your images as base64 data in your html page using a "data:" URI based on that stream. - you can create a drawable bitmap in memory for your buttons based on that stream by decoding the bitmap. HTH R/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

