O'Reilly logo

Mastering Android Studio 3 by Kyle Mew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Virtual storage

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required