title: display picture in imageview photo taken by camera in android
body: <p>I have a problem in Android development with camera. i try to take a pic and display it in to imageview but the result does not show but it works fine for Galaxy Note but i doesnt work for Galaxy S3</p>
  
  <p>My Code is Bellow</p>
  
  <p>Camera Activity</p>
  
  <pre><code>package com.nfs;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.content.Intent;
  import android.graphics.Bitmap;
  import android.view.Menu;
  import android.view.View;
  import android.widget.Button;
  import android.widget.ImageView;
  
  public class Camera extends Activity {
      private static final int CAMERA_REQUEST = 500;
      private ImageView imageView;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_camera);
  
      this.imageView = (ImageView) findViewById(R.id.imgLoad);
      Button bt = (Button) findViewById(R.id.btCam);
  
      bt.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
                      Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
                      startActivityForResult(intent, CAMERA_REQUEST);                         
  
          }
      });
  }
  
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (requestCode == CAMERA_REQUEST &amp;&amp; resultCode == RESULT_OK) {
          Bitmap photo = (Bitmap) data.getExtras().get("data");
          imageView.setImageBitmap(photo);
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>layout</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;Button
          android:id="@+id/btCam"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:text="Click Here" /&gt;
  
      &lt;ImageView
          android:id="@+id/imgLoad"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="0.70"
          android:src="@drawable/icon" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>