protected void waitForExternalStoreMount() throws Exception {
  String extStorageState=Environment.getExternalStorageState();
  int currentWaitTime=0;
  while (!extStorageState.equals(Environment.MEDIA_MOUNTED)) {
    Log.i(LOG_TAG,"Waiting for SD card...");
    currentWaitTime=timeoutWait(currentWaitTime,DEFAULT_WAIT_POLL_TIME,DEFAULT_MAX_WAIT_TIME,"Timed out waiting for SD Card to be ready!");
    extStorageState=Environment.getExternalStorageState();
  }
}

protected void waitForExternalStoreMount ( ) throws Exception { String extStorageState = Environment . getExternalStorageState ( ) ; int currentWaitTime = 0 ; while ( ! extStorageState . equals ( Environment . MEDIA_MOUNTED ) ) { Log . i ( LOG_TAG , "Waiting for SD card..." ) ; currentWaitTime = timeoutWait ( currentWaitTime , DEFAULT_WAIT_POLL_TIME , DEFAULT_MAX_WAIT_TIME , "Timed out waiting for SD Card to be ready!" ) ; extStorageState = Environment . getExternalStorageState ( ) ; } }
synchronously waits for external store to be mounted ( eg : sd card ) .
