title: Captured Image not Showing in Imageview
body: <p>I have tried one Camera App that successfully captured an Image but it does not showing in ImageView please help me to solve it.
  when I go to take the picture and select the check mark button to use the picture I run across an error while trying to display the image back into my ImageView on the app. </p>
  
  <p>Here is Code </p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  ImageView result;
  
  static final int REQEST_IMAGE_CAPTURE=1;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  
      Button click= (Button) findViewById(R.id.camera);
      result= (ImageView) findViewById(R.id.imageView);
  
      click.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
              if(takePictureIntent.resolveActivity(getPackageManager())!=null)
              {
                  startActivityForResult(takePictureIntent,REQEST_IMAGE_CAPTURE);
              }
  
          }
      });
  }
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (requestCode==REQEST_IMAGE_CAPTURE &amp;&amp; requestCode == RESULT_OK){
          Bundle extras=data.getExtras();
          Bitmap imageBitmap =(Bitmap)extras.get("data");
          result.setImageBitmap(imageBitmap);
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And Here is XML file for </p>
  
  <pre><code>&lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Capture Image"
      android:id="@+id/camera"
      android:layout_marginBottom="68dp"
      android:layout_alignParentBottom="true"
      android:layout_centerHorizontal="true"
      /&gt;
  
  &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/imageView"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:minWidth="300dp"
      android:minHeight="300dp"
      /&gt;
  </code></pre>
  
  <p>Thanks for Help in Advance.</p>