title: How can i save the image taken from camera intent to be used as a profile image?
body: <p>In my app the user can take an image from the camera and use as a profile picture.  Everything works, except that when the user leaves the app and returns then the image isn't there anymore.  So how can I save that image to stay there even when the user exits the app?</p>
  
  <p>Code for camera intent:</p>
  
  <pre><code>Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); 
              startActivityForResult(cameraIntent, CAMERA_REQUEST); 
  </code></pre>
  
  <p>And <code>onActivityResult</code>:</p>
  
  <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) {  
      if (requestCode == CAMERA_REQUEST) {  
          Bitmap photo = (Bitmap) data.getExtras().get("data"); 
          getLayoutInflater().inflate(R.layout.custon_header,null);
          ImageView profimg = (ImageView) findViewById(R.id.roundedimg);
          profimg.setImageBitmap(photo);
  </code></pre>
  
  <p>Could someone please assist me with this?</p>
  
  <p>Thanks</p>