Android系统中拍照功能的调用
2016-04-15 17:23
447 查看
直接调用系统的拍照
选择调用相机(手机中有其他相机软件)
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);
相关文章推荐
- Animation基本的几种使用方法
- Android Studio 比较好的资源收集
- Android中通过EventBus传递消息数据
- 查看android sqlite数据库常用操作
- WIFI无线调试android真机开发
- android SDK 代理
- Android知识梳理之Service整理
- android 6.0权限处理
- android apk打包流程
- Jenkins+Gradle+Git实现Android CI
- Android Dialog fullScreen&Custom The Width&Height of The Dialog
- Android6.0系统增加那些新特性
- android adb常用指令
- Android Dialog Style
- Android 创建桌面快捷图标
- Android 基本控件
- (转)Android开发三大规范
- [Android]listview图文混排
- android游戏开发(OpenGL ES绘制矩形平面)
- android之针对fragment多次调用onCreateView的问题