浏览固定路径下的图片

 

String path=Environment.getExternalStorageDirectory().getAbsolutePath()+"/图片/1.jpg";

Intent intent = new Intent(Intent.ACTION_VIEW);

 Uri mUri = Uri.parse("file://"+path);

intent.setDataAndType(mUri, "image/*");

startActivity(intent);

这样第一个打开的将是图片文件下的1.jpg文件,其他图片可依此浏览

posted @ 2013-05-21 15:36  halfapple--yao  阅读(93)  评论(0编辑  收藏  举报