Skip to content

Level 2

Abhishek J M edited this page Dec 19, 2018 · 1 revision

Level 2:

Challenge: File Access

Points: 20

EVABS claims the file has been stored safely which means, it's not. The hint suggests looking into the 'assets' and points to the apk file.

Assets

Sometimes, we need to store extra components in an Android application. It may be music files, text files etc. But why is this necessary when there's Drawable for storing images and files?

Assets vs Drawables

Well, drawables are compiled but assets are accessed during runtime. This comes in handy if the data we are trying to access changes at runtime. Also, the assets can have a hierarchical directory structure, acting as a file system and gives more freedom, which is not possible with drawables.