标签:blog http io os ar 使用 java for sp
============问题描述============
startActivityForResult(new Intent(....),1);。
============解决方案1============
============解决方案2============
private OnOptionClickListener optionClickListener = new OnOptionClickListener() {
@Override
public void onOptionClick(PopuDialog dialog, int position) {
// TODO Auto-generated method stub
if(position == 0){//拍照
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, REQUESTCODE_TAKEPHOTO);
}else if(position == 1){//图库中选择
Intent intent = new Intent();
/* 开启Pictures画面Type设定为image */
intent.setType("image/*");
/* 使用Intent.ACTION_GET_CONTENT这个Action */
intent.setAction(Intent.ACTION_GET_CONTENT);
/* 取得相片后返回本画面 */
startActivityForResult(intent, REQUESTCODE_SELECTPHOTO);
}
}
};============解决方案3============
标签:blog http io os ar 使用 java for sp
原文地址:http://www.cnblogs.com/meizhenfen42/p/4030456.html