title: Using Bitmap class in android 2
body: <p>I am trying Bitmap.When I run the it did not show image.I can not understand what i do.I am also trying <strong>options.inJustDecodeBounds=true;</strong> but not changed.Please help me:</p>
  
  <p>my code here:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          txt = (TextView) findViewById(R.id.textView1);
          imgView = (ImageView) findViewById(R.id.imageView1);
  
          BitmapFactory.Options options=new BitmapFactory.Options();
          options.inJustDecodeBounds=true;
  
          Bitmap bMap=BitmapFactory.decodeResource(getResources(), R.drawable.b,options);
          imgView.setImageBitmap(bMap);
  
  
      }
  </code></pre>
  
  <p>Layout:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
  
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/ic_launcher" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>