Mount sdcard programmitically in android
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/902089/how-to-tell-if-the-sdcard-is-mounted-in-android">How to tell if the sdcard is mounted in Android?</a>  </p>
</blockquote>



<p>can any one tel me about how to mount a SD CARD from code. I got following information from android google blog but not cleared.</p>

<p>the Settings app simply uses the AIDL Interface to the 
mount service via IMountService and calls mount. </p>

<p>And com.android.server.MountService sends the notifications.</p>

<p>The mountVolume call has this check inside : 
validatePermission(android.Manifest.permission.MOUNT_UNMOUNT_FILESYSTEMS); </p>

<p>The MountService then communicates using the NativeDaemonConnector via 
sockets 
but i am not cleared about why socket is created? and how NativeDaemonConnector communicates to VOLD.?
Thanks, shiv</p>
