How to download image from web and save it in internal storage?
<p>How to download image from web and save it in internal storage? After that, how can I display it?
Any help will be appreciated</p>

<pre><code>@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Bitmap bitmap = getBitmap("http://www.parkcinema.az/uploads/structures/movies/images/vozvra%C3%BCenie_geroya_poster1_resized.jpg");
        ImageView image = (ImageView)findViewById(R.id.pick);
        image.setImageBitmap(bitmap);
    }

public Bitmap getBitmap(String bitmapUrl){
        try {
            URL url = new URL(bitmapUrl);
            return BitmapFactory.decodeStream(url.openConnection().getInputStream());
            }
        catch(Exception ex) {return null;}
        }
</code></pre>
