Reputation: 81
I am building an app in Android Studio and I have a problem. The basic idea of the app contains one Relative_layout with two buttons inside.Every time I press one button it sets the background of the layout to a Random image I have stored in the "res/drawable folder". The thing is that I am going to have a very big amount(larger than 10.000) of pictures(with high resolution) to be stored in that folder. Will this have a big effect on the APK size of the app? And if it does, is there any other more efficient way to store(or connect) a large amount of pictures with an android app?
Upvotes: 2
Views: 581
Reputation: 394
You have 3 options:
You decide.
Upvotes: 1
Reputation: 156
if the number of images is large, it is better to store at server and load dynamically when required, use Glide(fast and efficient open source media management and image loading framework), you can load image and display with a single line of code.
Upvotes: 0