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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -