标签:blog http ar for sp on art 问题 log
一。先实现添加头像的功能
点击头像后,可以有两种选择: 相册、相机。
要用到
new AlertDialog.Builder(activity).setItems(choice,
new DialogInterface.OnClickListener(){}).show();
里面choice为两个选择。
在这里我们要将用户的选择项目返回并进行处理。如第一个album中用到的。
在 PhotoUtils 中,我们选择后,进入相关的Activity。
1. 相册
进入albumIntent,并做出选择后,返回结果。
activity.StartActivityForResult(intent to start , requestcode )
requestcode将返回到activity中,同时我们在 RegisterActivity中得到照片的URI , getData().
然后再调用 PhotoUtils.startPhotoZoom(Uri ,activity),对照片进行Zoom。
图片处理遇到问题
http://blog.csdn.net/ryantang03/article/details/8656278
http://blog.csdn.net/ryantang03/article/details/8654137
http://blog.csdn.net/zimo2013/article/details/16916279
标签:blog http ar for sp on art 问题 log
原文地址:http://www.cnblogs.com/chuiyuan/p/4047130.html