title: How to save images from Camera in Android to specific folder?
body: <p>Basically, what I want to do is allow the user to make their own <code>folder</code> and then go to an <code>activity</code> that contains a <code>button</code> to launch the <code>camera</code>.</p>
  
  <p>From there I want to be able to launch the <code>camera</code> and save the <code>camera</code> images into the newly created folder.</p>
  
  <p>I am having trouble with last part of saving the <code>camera</code> images into the newly created folder.</p>
  
  <p>Here is my <code>Code</code> : </p>
  
  <pre><code> public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      Button b = (Button) findViewById(R.id.button1);
      b.setOnClickListener(new OnClickListener() {
  
  
          EditText text = (EditText)findViewById(R.id.editText1); 
          EditText text2 = (EditText)findViewById(R.id.editText2);
  
  
  
          @Override
          public void onClick(View v) {
  
              final String name = text.getText().toString();
              final String placeName = text2.getText().toString(); 
  
              String place = placeName.substring(0,3);
              String direct = name + place ;
  
              File folder = new File("/sdcard/CameraTest/" + direct + "/");
              folder.mkdirs();
  
              Intent myIntent = new Intent(CameraTestActivity.this, Press.class);
              myIntent.putExtra("key", "/sdcard/CameraTest/" + direct + "/");
              startActivity(myIntent);
  
          }
      });
  </code></pre>
  
  <p>From here  I transition into this activity:</p>
  
  <pre><code>public class Press extends Activity {
  
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.afterenter);
          final String direct = this.getIntent().getStringExtra("key");
  
  
          // TODO Auto-generated method stub
          Button p = (Button) findViewById(R.id.button2);
          p.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
  
                  Intent camera= new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
  
                  startActivityForResult(camera, 1);
  
              }
          });
  
  
  
      Button np = (Button) findViewById(R.id.button3);
      np.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              Intent next = new Intent(Press.this, CameraTestActivity.class);
              startActivity(next);
          }
      });         
      }
  }
  </code></pre>
  
  <p>Please tell me how to <strong>save</strong> the images from the <code>camera</code> into the newly created folder. </p>
  
  <p>I want the user to be able to take several <strong>pictures</strong> and then save these several <strong>pictures</strong> into that specific folder.</p>