开发者

Open android camera

开发者 https://www.devze.com 2023-01-19 04:28 出处:网络
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

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

精彩评论

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