title: How to save a picture in an application?
body: <p>I want to know how I can save an image in my storage because in my app I can take a photo and see it, but when I close my app and reopen it, the image disappears I have used bitmap.</p>
  
  <p><strong>My code:</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>public static final int REQUEST_CODE = 01;
  private ImageView imgs1;
  private File outputMediaFile;
  
  protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.semana1);
       imgs1 = (ImageView) findViewById(R.id.imgs1);
  }
  
  public void btnTakePhotoClicked1(View v){
      Intent intent1= new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
      startActivityForResult(intent1, REQUEST_CODE);
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if(resultCode == RESULT_OK){
          Bitmap bm1= (Bitmap) data.getExtras().get("data");
          imgs1.setImageBitmap(bm1);
      }
  } 
  
  </code></pre>