The Mega App architecture
As Mega App needs to store audio and image files in the device's storage so that users can access them later, we need to be aware of the nature of every platform's filesystem to properly store our app's audio and image files.
In Android, we do not have any restrictions on storing our app files under the device's SD card root if the SD card is available, so we can save our audio and picture files in our app's directory under the device's SD card root without any issues.
Note
As a matter of fact, not all Android devices have SD cards. This is why if your Android device does not have an SD card, then the Mega App's audio files will be stored under the app's private data directory, /data/data/[app_directory]
.
At the time of writing this book, storing app files outside the app
directory is not possible in iOS. iOS places each app (including its preferences and data) in a Sandbox at the time of installation for security reasons. As part of the Sandboxing process, the system...