首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android拍照下传的效果是怎么实现的

2012-09-08 
android拍照上传的效果是如何实现的Intent i new Intent(Intent.ACTION_SEND)File file new File(/s

android拍照上传的效果是如何实现的

Intent i = new Intent(Intent.ACTION_SEND);
File file = new File("/sdcard/MyScreen/20100528163140.jpg");
i.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
i.setType("image/*");
startActivity(Intent.createChooser(i, "Share via..."));

热点排行