title: How to check the internal storage to see if it's ready right after the phone is rebooted?
body: <p>I am creating an app which allows the users to select their images from Gallery and display them as slideshow.  </p>
  
  <p>The missing image paths from SQLite Datbase  will be automatically deleted whenever the images are missing, moved, or deleted.  It makes sure the SD Card (External Storage) is mounted before deleting any image path.
  Everything works fine <strong>except for the phones with the internal and external storage SWAPPED</strong>.</p>
  
  <p>For example, </p>
  
  <p>My phone external storage (SD card) is treated as internal storage, 
  and </p>
  
  <p>internal storage is treated as external storage.</p>
  
  <p>Therefore, whenever the phone is rebooted, the app just deletes all the image paths off the SQLite database because it thinks the external storage is already mounted while the internal storage (SD Card) is still mounting which makes the app thinks the images are no longer there.</p>
  
  <p><strong><em>Is there anyway to check the internal storage to see if it's ready after the phone reboots?</em></strong></p>
  
  <p>I've tried the BOOT_COMPLETED, but it didn't seem to help at all since the internal storage is still mounting...</p>
  
  <p>If someone can help me or point me to the right direction, it would be greatly appreciated.</p>
  
  <p>Thank you very much.</p>