August 2017
Beginner to intermediate
220 pages
4h 50m
English
Each profile contains an SD card disk image to emulate external storage, and obviously this is a useful feature. However, it would be even more useful if we could remove these cards and share them with other devices. Fortunately, Android Studio has some very handy command-line tools, which we will be encountering throughout this book. The command that interests us here though is mksdcard.
The mksdcard executable can be found in sdk/tools/ and the format for creating a virtual SD card is:
mksdcard <label> <size> <file name>
For example:
mksdcard -l sharedSdCard 1024M sharedSdCard.img
When testing an application on a large number of virtual devices, it can save a lot of time to be able to share external memory, and of course ...
Read now
Unlock full access