[Solved] How to get a picture from url site and store it to device? [duplicate]


I wrote this code to receive image from an url. And if you check this link it tells you how to save it on sd-card Store Bitmap image to SD Card in Android

private Bitmap getBitmap(String str, Options options) {
    // TODO Auto-generated method stub
    Bitmap bm = null;
    InputStream inStream = null;
    try {
        inStream = HttpConnection(str);
        bm = BitmapFactory.decodeStream(inStream, null, options);
        inStream.close();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    return bm;
}

2

solved How to get a picture from url site and store it to device? [duplicate]