Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Intent lance = new Intent();
- lance.setAction(Intent.ACTION_VIEW);
- String typedata = "image/*";
- lance.setType(typedata);
- String phuri = "content://" + URI_AUTORITE
- + "/" + URI_CONTENU_FICHIERS
- + directory + filename;
- Uri uri = Uri.parse(phuri);
- lance.setDataAndType(uri, "image/*");
- startActivity(lance);
- Intent lance = new Intent();
- lance.setAction(Intent.ACTION_VIEW);
- String typedata = "image/*";
- lance.setType(typedata);
- String phuri = "content://" + URI_AUTORITE
- + "/" + URI_CONTENU_FICHIERS
- + directory + filename;
- Uri uri = Uri.parse(phuri);
- ClipData ensemble = ClipData.newRawUri("Photos", uri);
- lance.setClipData(ensemble);
- startActivity(lance);
Add Comment
Please, Sign In to add comment