I have done the retrieving 100 images URL from JSON. And i want to display in Image Gallery in my Android application. I have tried convert into bitmap but it returns null:
(--- SkImageDecoder::Factory returned null )
Can someone help me for how to convert multiple images url in bitmap.
Here is my code
private class DownloadJSON extends AsyncTask<Void, Void, Void> {
    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        mProgressDialog = new ProgressDialog(TrustMe.this);
        mProgressDialog.setTitle("Android JSON Parse Tutorial");
        mProgressDialog.setMessage("Loading...");
        mProgressDialog.setIndeterminate(false);
        mProgressDialog.show();
    }
    @Override
    protected Void doInBackground(Void... arg0) {
        // TODO Auto-generated method stub
        getImagesfromServer();
        return null;
    }
    @Override
    protected void onPostExecute(Void args)
    {
        mProgressDialog.dismiss();
        for (int j = 0; j < arraylist.size(); j++)
        {
            Iterator<String> myVeryOwnIterator = map.keySet().iterator();
            while (myVeryOwnIterator.hasNext()) {
                String key = (String) myVeryOwnIterator.next();
                String value = (String) map.get(key);
                byte[] decodedString = Base64.decode(value,
                        Base64.DEFAULT);
                decodedByte = BitmapFactory.decodeByteArray(
                        decodedString, 0, decodedString.length);
                bitimg.add(decodedByte);
            }
        }
        gallery = (Gallery)findViewById(R.id.galleryImg);
        _imageAdapter = new ImageAdapter(TrustMe.this);
         if (_imageAdapter == null) {
              _imageAdapter = new ImageAdapter(getApplicationContext());
              gallery.setAdapter(_imageAdapter);
         }
        _imageAdapter.setimage(bitimg);
        _imageAdapter.notifyDataSetChanged();
   }
}
Here is JSON Data
05-16 13:04:08.449: I/System.out(686): strID = 259429316
05-16 13:04:08.459: I/System.out(686): jarr  = {"large_thumb":{"url":"http:\/\/thumb9.shutterstock.com\/thumb_large\/612877\/259429316\/stock-photo-cat-with-a-bouquet-at-the-feet-of-mistress-259429316.jpg","width":150,"height":100},"preview":{"url":"http:\/\/image.shutterstock.com\/display_pic_with_logo\/612877\/259429316\/stock-photo-cat-with-a-bouquet-at-the-feet-of-mistress-259429316.jpg","width":450,"height":299},"small_thumb":{"url":"http:\/\/thumb9.shutterstock.com\/thumb_small\/612877\/259429316\/stock-photo-cat-with-a-bouquet-at-the-feet-of-mistress-259429316.jpg","width":100,"height":67}}
05-16 13:04:08.468: I/System.out(686): strID = 256797013
05-16 13:04:08.468: I/System.out(686): jarr  = {"large_thumb":{"url":"http:\/\/thumb10.shutterstock.com\/thumb_large\/1477187\/256797013\/stock-photo-beautiful-woman-with-cat-portrait-brunette-with-bengal-cat-close-up-256797013.jpg","width":150,"height":100},"preview":{"url":"http:\/\/image.shutterstock.com\/display_pic_with_logo\/1477187\/256797013\/stock-photo-beautiful-woman-with-cat-portrait-brunette-with-bengal-cat-close-up-256797013.jpg","width":450,"height":300},"small_thumb":{"url":"http:\/\/thumb10.shutterstock.com\/thumb_small\/1477187\/256797013\/stock-photo-beautiful-woman-with-cat-portrait-brunette-with-bengal-cat-close-up-256797013.jpg","width":100,"height":67}}
 
     
     
    