Search code examples
androidstorageinternal-storage

Why can't I see `assets` folder in my Android package installation folder


I'm browsing with DDMS my application's installation folder /data/data/com.my.app and I can't find where the assets folder is. I'm using it inside my application using URI file:///android_assets/...

enter image description here


Solution

  • I can't find where the assets folder is

    That is because there is no assets folder on the device. The assets, like your resources, are packaged into the APK file. Assets are not unpacked as part of APK installation. file:///android_asset/, for those things that understand it, knows to look inside of the assets in your APK.