How to set an image in assets folder from Url in android

柔情痞子 提交于 2019-12-11 18:08:19

问题


I am planning to show some image in my app. Also, this images must be in assets folder. First I will upload images into assets folder from url, and when app runs, must show this images from assets folder. Is there any possible way to do this ?


回答1:


The assets folder is read-only the images you get should be saved to a spot on the device then referenced by its path




回答2:


there is a detailed explanation here for how to save image to internal directory and load them



来源:https://stackoverflow.com/questions/29566921/how-to-set-an-image-in-assets-folder-from-url-in-android

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