androidandroid-resourcesandroid-assets

When should I use the assets as opposed to raw resources in Android?


I'm in the mid of my Android studies, and I just covered the Assets and Raw resources. I'm trying to understand the reason for using Raw resources vs. Assets.

  1. They both provide with an uncompiled resource input stream.

  2. It seems that Assets provide much more flexibility and functionality than Raw resources.

    a. You can create folder structures under assets but not under raw

    b. You can list all resources dynamically in the assets folder but not in the raw folder.

So, why would I use Raw resources in Android?


Solution

  • The main differences between the raw folder and the assets folder.