Quantcast
Channel: BlogoSfera » present
Viewing all articles
Browse latest Browse all 15

How to get the bitmap in onItemclicked method which is present in Asynctask to pass the bundle of bitmap to another activity?

$
0
0

@Override protected Bitmap doInBackground(String... imageurl) { try { URL url = new URL(imageurl[0]); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.connect(); InputStream in = urlConnection.getInputStream(); bitmap = BitmapFactory.decodeStream(in); return bitmap; }catch (Exception e) { e.printStackTrace(); return null; } } @Override protected void onPostExecute(Bitmap result) { super.onPostExecute(result); if(result!=null && imageReference!=null) { ImageView imgview = (ImageView) imageReference.get(); if (imgview […]

The post How to get the bitmap in onItemclicked method which is present in Asynctask to pass the bundle of bitmap to another activity? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 15

Trending Articles