如何使用Android应用程序在照片应用程序中打开特定相册,以便可以直接查看它们?

时间:2019-02-07 12:53:51

标签: android android-image android-gallery

文件根= Environment.getExternalStorageDirectory();

    File imageView = new File(root+"/orgnizePic/fifthsem/java2","JavaImage_20190207_143251.jpg");
    Uri pictureUri = Uri.fromFile(imageView);
    Intent seePic = new Intent(Intent.ACTION_VIEW);
    seePic.setType("image/*");
    startActivity(seePic);

0 个答案:

没有答案