Intent图片
选择器:其作用是显示一个Activity选择器
http://deep-fish.iteye.com/blog/2054119
Intent.ACTION_CHOOSER = “android.intent.action.CHOOSER”
//分享
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.setType("text/plain");
Intent intent2 = new Intent();
intent2.setAction(Intent.ACTION_CHOOSER);
intent2.putExtra(Intent.EXTRA_TITLE, "please selete a app");
intent2.putExtra(Intent.EXTRA_INTENT, intent);
startActivity(intent2);
也可以createChooser方法。
通讯录
Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);
startActivityForResult(intent, PICK_CONTACT);
音频
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("audio/*");
startActivity(Intent.createChooser(intent, "Select music"));
文件 MIME type类型选用(文件 图片) 类型选择(弃用deprecated)
Intent myIntent = new Intent(Intent.ACTION_PICK);
myIntent.setType("image/*");
startActivityForResult(i, 100);
图片获取url 可得到数据create the data as it runs
Intent myIntent = new Intent(Intent.ACTION_GET_CONTENT, null);
myIntent.setType("image/*");
startActivityForResult(i, 100);
http://blog.csdn.net/chenzhengjava/article/details/6266135
Intent.ACTIONPICK Android.intent.action.PICK 从列表中选择某项并返回所选数据
ACTION_GET_CONTENT Android.intent.action.GET_CONTENT 让用户选择数据,并返回所选数据
拍照 http://blog.csdn.net/csqingchen/article/details/45502813 MediaStore.ACTIONIMAGECAPTURE
裁剪
http://blog.csdn.net/eclothy/article/details/42719217
com.android.camera.action.crop
注意添加权限