public void onClick(View v)
{
Intent intent = new Intent(Intent.ACTION_VIEW);
Uri mUri = Uri.parse("file://" + "mnt/sdcard");
intent.setDataAndType(mUri, "image/*");
startActivity(intent);
}
调用系统自带的图片浏览器的时候导入sdcard的图片在模拟器中找不到,是什么原因啊,求大侠指点...
------解决方案--------------------
我晕,sdcard的路径不是这样写的
正确写法是,
String localPath = Environment.getExternalStorageDirectory().getAbsoluteFile()
.getAbsolutePath();
得到sdcard的绝对路径