Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?
like image 714
Anil Kumar Avatar asked Apr 26 '26 01:04

Anil Kumar


1 Answers

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

like image 77
Ronnie Avatar answered Apr 28 '26 17:04

Ronnie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!