开发者

Android: copy assets on install to sdcard

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜