Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Android app installation if SDCard absent?

Tags:

android

My code logic needs an SD card installed in the device. I have added a check for this case in the application's splash screen, but would like to inform users before they download/install this app. Is there a way to achieve this ?

Thanks !

like image 684
zombie Avatar asked Nov 03 '22 16:11

zombie


1 Answers

There is no way to do this before the app installs, as the only way to limit such things is by using the <uses-feature> tag. However, that tag has no options for storage requirements. The best warning you can give is to prominently include it in your app description.

On the other hand, every device I've ever heard of an encountered has some form of external storage, be it a SD Card or inbuilt memory mounted as external storage. What you're doing by using the Splash Screen to check for the external storage is the best way to do this, as there is no other option.

like image 136
Raghav Sood Avatar answered Nov 15 '22 01:11

Raghav Sood