Anil Kumar
Anil Kumar

Reputation: 1095

unmount sdcard programmatically in Android?

  1. I am working to implement Mount/Unmount sdcard support in my Android application, Am able to get sdcard state by Environment.getExternalStorageState().I know we can call Settings Intent and Mount/Unmount, but my requirement has to do programmatically with out calling Settings Intent.
  2. Is it possible to Enable/Disable the Settings application in Android?

Upvotes: 3

Views: 4189

Answers (1)

Ron
Ron

Reputation: 24233

The settings app uses this permission <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> See if you can use it.

Upvotes: 2

Related Questions