I am trying to allow my app to be able to be moved to an SD card. So far, I have added the attribute, android:installLocation="auto", to my manifest file.
When I try moving storage option from internal to external for the app (75MB) on my phone, the option is there to move it, but it keeps showing a toast saying "Not enough storage space" after it is 90% complete, even though I have plenty of space in my internal (64 GB) and external (128 GB). I also tried moving a different app on my phone that was larger than (75MB), and the transfer worked. I also tried creating a virtual emulator to try transferring my app, but it's doing the same thing.
Is there an attribute that I am missing in the manifest file for this problem to be happening? Any suggestions?
android:installLocation="auto"
is the only line of code needed to make the app movable to the SD card.
But installing with ▶ Run, the "Not enough storage space" toast appears.
To actually move the app to the SD card, within Android Studio you have also to:
adb install -r path/to/my/app-release.apk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With