Created
March 18, 2015 02:26
-
-
Save SemonCat/838505d871e4c5e124ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent showImageIntent = new Intent(Intent.ACTION_VIEW); | |
if (uri != null) { | |
showImageIntent.setDataAndType(uri, "image/*"); | |
} else { | |
showImageIntent.setDataAndType(Uri.parse("file://" + dataPath), "image/*"); | |
} | |
showImageIntent.setClassName("com.asus.gallery", "com.asus.gallery.app.EPhoto"); | |
showImageIntent.putExtra("launch-from-camera", true); | |
rv.setOnClickFillInIntent(R.id.photo_canvas, showImageIntent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment