How to prevent the installation of an Android application if there is no SDCard?

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

Thank!

+5
source share
3 answers

There is no way to do this before the application is installed, as the only way to limit such things is to use a tag <uses-feature>. However, this tag has no parameters for storage requirements. The best warning you can give is to include it in the description of your application.

, , - , , SD- , . , , Splash , - , .

+2

. . SD- , , Google Play ( ), , , . , , SD- . , SD- , . - .

0

, . sdcard - android:installLocation Android SD-.

API 8, (, SD- ). , android: installLocation.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    android:installLocation="preferExternal"
    ... >

"preferExternal", , , . , . .

:

  • , .
  • .apk , , , .dex .
  • The unique container in which your application is stored is encrypted with a randomly generated key that can only be decrypted by the device that originally installed it. Thus, the installed application on the SD card only works for one device.
  • The user can move your application to the internal storage through system settings.

Check here for more details.

0
source

All Articles