get images from memory card and store in drawable folder

你离开我真会死。 提交于 2019-12-25 08:39:10

问题


I made a application in which many images are shown,

all images are pre-stored in drawable folder of resources,

but if i want to add new picture then how can i do this,

it should read from memory card but only once, after that it automatically load.


回答1:


If I understand correctly, you want to upload images yourself to the app instead of letting user use images or..?

If it's you, who should upload new images, you can download them to the app with a check if there are new ones.

If it's the user, you can check their gallery on the sd card, but unfortunatly I don't think it's possible to store these in the drawable folder.




回答2:


You mean you want a dynamic drawable folder? You cannot do that since APK file is read only...




回答3:


you cant do this, because it is an impossible act, Drawable folder is meant to make the Application Environment when it is deployed, it is a one way process. you can copy Drawble image to external path



来源:https://stackoverflow.com/questions/6869773/get-images-from-memory-card-and-store-in-drawable-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!