use This mathod
private void loadImage(String url) {
try {
Bitmap bitmap = BitmapFactory.decodeStream((InputStream)new URL(url).getContent());
imageView.setImageBitmap(bitmap);
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
No comments:
Post a Comment