Click here to Skip to main content
15,671,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to close the default camera immediately after capturing the pic.Right now i use back button to close the camera.And I use default Intent for camera.
Posted
Updated 31-Jul-12 21:13pm
v2

Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivity(cameraIntent);
 
Share this answer
 
Comments
kataria260786 6-Aug-12 8:07am    
Thanx for the solution but I want to know how I override this default camera capture button.
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivity(cameraIntent);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900