本文实例讲述了Android调用手机拍照功能的方法。分享给大家供大家参考。具体如下:
一、main.xml布局文件:
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:adjustViewBounds="true"
android:layout_gravity="center"
android:minWidth="150dip"
android:minHeight="150dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="相册" />
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:text="拍照" />
二、核心代码:
pa