-3

My question title itself is very precise.

Is there a way by which we can parse images from JSON api and put image in drawable folder.

My requirement is like I have to make logos and asset images dynamic.

I cant keep static images in drawable folder.

Note : I am using Android Studio for development.

Any suggestion is most welcome.

Maniya Joe
  • 761
  • 6
  • 24

1 Answers1

0

You can't put downloaded image in Drawable folder. Drawable folder is accessible only in IDE, instead you can create local database and save your downloaded image in your database. There are certain libraries for loading your image from server / URL in minimum time with low cache as follows :

1) Picasso - https://github.com/square/picasso

2) Glide - https://github.com/bumptech/glide

3) UIL (Universal Image Loader) - https://github.com/nostra13/Android-Universal-Image-Loader

Also check Comparison here - Picasso v/s Imageloader v/s Fresco vs Glide

Hope it will help :)

Community
  • 1
  • 1
Onkar Nene
  • 1,359
  • 1
  • 17
  • 23