4

I'm wondering how programmatic sdcard mounting/unmounting can be achieved while the handset is connected to a pc via USB.

I cannot find any managed api for that and also my jni attempts failed with errno: 1, [Operation not permitted] error.

Thanks

1 Answers1

1

It's no possible as one of the Android SDK engineers stated here: http://www.mail-archive.com/android-developers@googlegroups.com/msg27542.html

Mathias Conradt
  • 28,117
  • 20
  • 135
  • 191
  • How doubleTwist Player does it (automatically mounting). Player doesn't require phone to be rooted. Found many posts where ppl complain or mention about this automatic mounting. http://lifehacker.com/5584889/install-doubletwist-player-for-automatic-android-usb-mounting – Maxim Jul 12 '11 at 21:17