Android how to check whether the camera was used to take photo or video -


i using following code start device camera both image , video mode swapping.so once take photo or video returned no value identify whether user took photo or video.

intent intent = new intent(mediastore.intent_action_video_camera); startactivityforresult(intent, 0); 

please me this

if need use both video , image mode camera, please go through following site may requirement

camera image , video capturing

preview

enter image description here


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -