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.
camera
Page 1 of 12 Replies - 429 Views - Last Post: 03 August 2012 - 03:42 AM
Replies To: camera
#2
Re: camera
Posted 02 August 2012 - 10:02 PM
You should pass the following information to the Camera Intent through its "Extras"
Instead of "output", you may wish to use android.provider.MediaStore.EXTRA_OUTPUT in case that value ever changes in the API.
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.
#3
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?
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?
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote







|