Here's snippet:
AssetManager assetManager = context.getAssets();
InputStream inputStream = assetManager.open("example.png");
Bitmap example = BitmapFactory.decodeStream(inputStream);
inputStream.close();
On Sat, Jul 16, 2011 at 5:14 AM, bob <[email protected]> wrote:
> Can someone point me to a good example of loading a Bitmap from
> assets? It's in a PNG asset called nugget.png.
>
>
>
> --
> 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
--
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