Java – delete the database file from the assets folder

I want to delete the files in the assets folder at runtime. I have a database file in the Resources folder, which is copied to the data folder at runtime, but after installing my application, the size of the application becomes twice as large (asset data folder)!

How can I delete database files from the assets folder to avoid this?

resolvent:

You cannot delete files with your application at run time

See the discussion about it:

How to remove a file in assets at run time?

All the contents of your APK are read-only and cannot be modified

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>