Issue
We know that nothing can be done for android.content.res.Resources
as it is caused by Zygote
to preload some resources that we cannot directly manipulate.
I am not exactly sure about how it preloads and where it preloads from. For example, shall I move my image files from res/drawable-hdpi
to assets folder? (Note that I only have 1 copy of the images in res
folder. So the same drawable
is used for (hdpi,ldpi,mdpi,xhdpi)
Solution
Shall I move my image files from res/drawable-hdpi to assets folder?
No, I don't think copying image resources to asset directory of your project will make any thing much change.
It's recommend to have these resources in res
folder and access those image, asset
folder is for different purpose like have any static html page, keep custom font of your application.
Lastly, You should keep images resources in res directory and try to keep their size as minimum as possible.
Answered By - Ajay S
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.