Hi everyone,
I would like to save images and videos from the web into foders i have
created on the sdCard.
I know how to directly use them but i have no clue how to store them
into my own folders.
public void getImageFromInternet(Cas mCas) throws
MalformedURLException{
URL aURL = new URL("http://www.zepizz.com/icon.png");
try {
URLConnection conn = aURL.openConnection();
conn.connect();
InputStream is = conn.getInputStream();
BufferedInputStream bis = new
BufferedInputStream(is);
Bitmap bm = BitmapFactory.decodeStream(bis);
bis.close();
is.close();
}
I'd like to store ,for instance, this file into my folder /sdcard/
com.EpiDroid/res/.
Anyone know how to do that?
Thanks
--
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