2 Replies - 528 Views - Last Post: 03 August 2012 - 03:42 AM

#1 sharathg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 27-June 12

camera

Posted 02 August 2012 - 08:09 PM

can anyone help me in using the default native camera that is present with the mobile.
I got the camera displayed and even was given options to save or discard.
When i click on the save option i am getting the image stored into gallery.
I want to store the image to a specified folder.
Can anyone suggest any idea please.
Is This A Good Question/Topic? 0
  • +

Replies To: camera

#2 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2871
  • View blog
  • Posts: 11,026
  • Joined: 15-July 08

Re: camera

Posted 02 August 2012 - 10:02 PM

You should pass the following information to the Camera Intent through its "Extras"
Intent camera= new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
Uri loc = Uri.fromFile(new File(FILE HERE);
camera.putExtra("output", loc);
startActivityForResult(camera, 1);



Instead of "output", you may wish to use android.provider.MediaStore.EXTRA_OUTPUT in case that value ever changes in the API.
Was This Post Helpful? 0
  • +
  • -

#3 sharathg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 27-June 12

Re: camera

Posted 03 August 2012 - 03:41 AM

Thanks for the reply.
But where we will be accessing the output variable in the onActivityResult()?
in onActivityResult() even if i write nothing except accessing the bitmap file i am getting the output.
Where we are accessing the output extra?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1