直接调用系统的拍照
Intent j=new Intent(Intent.ACTION_CAMERA_BUTTON);
//j.setAction(Intent.ACTION_CAMERA_BUTTON);
this.sendBroadcast(j);
选择调用相机(手机中有其他相机软件)
Intent i=new Intent("android.media.action.STILL_IMAGE_CAMERA");
//Intent i=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
//i.setAction("android.media.action.STILL_IMAGE_CAMERA");
startActivity(i);
本文介绍如何通过发送广播或启动活动的方式直接调用Android系统的相机功能,实现拍照操作。
2061

被折叠的 条评论
为什么被折叠?



