title: accessing files on SD card in android
body: <p>I want to display image from a sd card into image view</p>
  
  <p>Following code works in emulator but does not work on actual phone</p>
  
  <pre><code>File f = new File(imgPath);
  
  if (f.exists()) {
     imgView.setImageDrawable(Drawable.createFromPath("/mnt/sdcard/abc.jpg") ));
  
  } else {
  
     imgView.setImageResource( R.drawable.image_abasent);
  
  }
  </code></pre>
  
  <p>abc.jpg is put in emulator sd card sdk folder using DDMS 
  I have also put abc.jpg directly on SD card through USB connection</p>
  
  <p>I have added following permission too in the manifest file (but while installing from apk permission is not asked though)</p>
  
  <p>uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"</p>
  
  <p>Still on phone the desired image is not accessible. 
  What else is to be added or modified?</p>