Created
April 12, 2019 09:58
-
-
Save FrannyZhao/41a3a173229f96deacb2cfa9f17a1ece 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 intent1= new Intent("android.intent.action.MAIN", null); | |
intent1.addCategory("android.intent.category.APP_GALLERY"); | |
Intent intent2 = new Intent(Intent.ACTION_VIEW, Uri.parse("content://media/internal/images/media")); | |
// 两种办法都可以 | |
mGallery.setOnClickListener(v -> startActivity(intent1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment