Use BitmapFactory and feed it the path of the file you saved, wherever
you saved it.

On Mar 2, 2:15 am, Stephan Wiesner <[email protected]> wrote:
> Hi,
> my app displays some pictures I want to replace at certain intervals by
> downloading them from a webpage.
> I can set the image from my drawable folder, assets folder or by downloading
> it from a webpage:
>
> ImageView im = (ImageView) findViewById(R.id.SplashLogo);
>                 // url = "file:///android_asset/pic.png";
> InputStream is = (InputStream) new URL(url).getContent();
> Drawable d = Drawable.createFromStream(is, "src name");
>
> What I want, however, is to display an image that I downloaded previously to
> internal storage (or sdcard if i have to).
> So: How do set the filename/folder to point to internal storage?
>
> Thanks,
> Stephan

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

Reply via email to