开发者

Open android camera

I see a ton of results when searching for how to open the camera, and get the returned image. What about simply opening the camera app without any r开发者_开发百科eturn at all? I just want the camera to function as normal.


You could just send an ACTION_CAMERA_BUTTON intent? That should do the trick.

Intent intent = new Intent(ACTION_CAMERA_BUTTON, null);
startActivity(intent);

Obviously, "this" needs to be your current activity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜