title: how to upload image captured from camera in an android app
body: <p>in my app i have placed a button called Add Photo, when the user clicks the button a pop up menu appears with 2 option camera and library. When i select library i am able to move to the photo album of the device. Following is the code which i am using to go to the mobile library</p>
  
  <p><code>public void library()
       {
           Intent myIntent = new Intent(Intent.ACTION_PICK);
           myIntent.setType("image/*");
           startActivityForResult(myIntent, 1);
       }</code></p>
  
  <p>whatever image i click there i want it to be uploaded in an url,</p>
  
  <p>in the same way the image which i capture through the camera also want to be uploaded in an url. </p>
  
  <p>how to do this is there any API or example code pls help me</p>