Tag Archives: file

3,836 views

Download file from URL

Download image file from URL to ImageView Java Android source example code. Context context = thisClass.this; Drawable image = ImageOperations(context, "http://android.okhelp.cz/images/adictionary/ad_4.png" ,"image.jpg"); ImageView imgView; imgView = (ImageView)findViewById(R.id.idImageView); imgView.setImageDrawable(image);   private Drawable ImageOperations(Context ctx, String url, String saveFilename) { try { … Continue reading

Posted in Android Examples Code, Bitmap, drawing | Tagged , , , , , , , , | Comments Off on Download file from URL