Intent intent = new Intent();
Uri selectedImageUri = Uri.fromFile( f );
intent.setDataAndType( selectedImageUri, image/jpg");
intent.setAction(Intent.ACTION_VIEW);
startActivity( intent );
打开文件
最新推荐文章于 2022-07-24 23:38:23 发布
Intent intent = new Intent();
Uri selectedImageUri = Uri.fromFile( f );
intent.setDataAndType( selectedImageUri, image/jpg");
intent.setAction(Intent.ACTION_VIEW);
startActivity( intent );