Showing posts with label how can set image on imageview from URL. Show all posts
Showing posts with label how can set image on imageview from URL. Show all posts

how can set image on imageview from URL android



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();
}

}

IRCTC Share Price Declines by 2% Despite 30% Jump in Q4 Net Profit; Board Announces Dividend of INR 2 per Share

Introduction: The share price of Indian Railway Catering and Tourism Corporation (IRCTC) experienced a decline of 2% in today's trading ...