Is it possible to save image in assets folder from application

前端 未结 2 1539
逝去的感伤
逝去的感伤 2020-12-21 15:32

I want to save image from a url in assets folder. I can save image in internal memory or sd card but I want to save in the assets folder.

I searched about it online

2条回答
  •  Happy的楠姐
    2020-12-21 15:59

    No, you can't. But why do you need it to save it in there? if you want it to be store in the private area of your application (so your application is the only with access to it), you can do it, but if you want an image to be in your assets folder, you need to place it in there before you compile to create the apk.

    Data Storage - Internal Memory

    P.S. I don't recommend you to save large images on internal storage as this space is very limited in legacy devices.

提交回复
热议问题