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

2019-08-26 11:17发布

问题:

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