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

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..."));