Reputation: 1095
Environment.getExternalStorageState()
.I know we can call Settings Intent and Mount/Unmount, but my requirement has to do programmatically with out calling Settings Intent. Upvotes: 3
Views: 4189
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