title: Detect Default Storage is SD card or phone Internal Memory in Android Studio
body: <p>Can we detect, Default Storage is SD card or Phone memory in Android Studio?</p>
  
  <p>Actually, I am making simple cameraApp, All the pictures taken are saved into my Phone's External Storage, but in API 19 and lower, the pictures are saving in my galley and also in Phone's Gallery in which Primary Storage is SD card but I don't want them to save in Gallery</p>
  
  <p>So I want to make 3 conditions:</p>
  
  <ol>
  <li>if there is SD card present</li>
  <li>If API is 19 or lower than 19</li>
  <li>If Default storage is SD card</li>
  </ol>
  
  <p>I can do first 2 things programmatically, but don't know how to do the third one programmatically</p>
  
  <p>Can we detect, Default Storage is SD card or Phone memory in android studio programmatically?</p>
  
  <p>Any help will be appreciated. Thank you.</p>