title: android reading an image from SD Card
body: <p>I'm trying to read an image from my SD Card and I'm not sure if I'm doing it right or not. Need some help please</p>
  
  <p>This is my code for reading it:</p>
  
  <pre><code>String imageInSD = "/sdcard/Hanud/" + c.getString(1) + ".PNG";
          Bitmap bitmap = BitmapFactory.decodeFile(imageInSD);
          ImageView myImageView = (ImageView)findViewById(R.id.imageview);
          myImageView.setImageBitmap(bitmap);
  </code></pre>
  
  <p>And this is my main file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;WebView 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/webview"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
  
   &lt;!-- &lt;ImageView
      android:id="@+id/image"
      android:scaleType="center"
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      /&gt;--&gt;
  
      &lt;ImageView
    android:id="@+id/imageview"
    android:layout_gravity="center"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:scaleType="center"
    /&gt;
  
  
    &lt;TextView  
      android:id="@+id/myNameText"
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="@string/hello"
    /&gt;
  &lt;/WebView&gt;
  </code></pre>