11智能在线
新记
在android开发中,怎样能够调用系统自带相机,而禁止出现选择第三方相机的选项?
如题所述
举报该文章
相关建议 2013-04-08
打开系统相机方法: 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);
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/2qp78q878.html
其他看法
第1个回答 2012-11-29
Intent i = new Intent(Intent.ACTION_CAMERA_BUTTON, null);
this.sendBroadcast(i);
第2个回答 2012-12-03
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, null);
相似回答
大家正在搜
相关问题
在android开发中,怎样能够调用系统自带相机,而禁止出现...
android 开发怎么调用手机预装的照相机
怎么调用Android系统自带的照相机程序?
关于Android开发调用系统自带的相机程序,求高手帮助!
如何调用android的默认系统录像机,调用的时候不会出现其...
android 调用系统相机 怎么解决
Android相机程序 怎样出现在被调用相机列表(例如安装了...
android怎么调用系统的相机,并用代码模拟系统相机的拍照...