在android开发中,怎样能够调用系统自带相机,而禁止出现选择第三方相机的选项?

[复制链接]
查看11 | 回复3 | 2013-4-8 15:50:33 | 显示全部楼层 |阅读模式
打开系统相机方法: 1、 使用打开系统相机package,但有的手机相机名称不是这个默认名称Intent intent =getPackageManager().getLaunchIntentForPackage(“com.android.camera”);startActivity(intent); 2、使用相机ACTION,打开相机应用Intent intentCamera = new Intent();intentCamera.setAction("android.media.action.STILL_IMAGE_CAMERA");startActivity(intentCamera);...
回复

使用道具 举报

千问 | 2013-4-8 15:50:33 | 显示全部楼层
Intent i = new Intent(Intent.ACTION_CAMERA_BUTTON, null);
this.sendBroadcast(i);...
回复

使用道具 举报

千问 | 2013-4-8 15:50:33 | 显示全部楼层
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);startActivityForResult(intent, null);...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行