开发者

Android: copy assets on install to sdcard

开发者 https://www.devze.com 2023-04-05 00:43 出处:网络
How to copy files from assets to sdcard on install? Is t开发者_如何学Pythonhere any install script option when generating apk?

How to copy files from assets to sdcard on install?

Is t开发者_如何学Pythonhere any install script option when generating apk?

Thanks


Use an async task during your "onCreate" and copy all your files from assets to SDCARD (if available), maybe using a splashscreen if you need the data immediately at start.

There is no way to execute anything after install it's not under application control. Please also note that SDCARD may not be available if the phone is connected in mass storage mode to a pc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号