This is what you need:
ACTION_VIEW
Change your code to:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setType("image/*");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
More Related Contents:
- how can i send the string value into the intent.putextra? [duplicate]
- android pass ArrayList to activity
- How to pass int value from one activity to another and display in TextView? [duplicate]
- Android with Intent and Custom Listview
- Sending Email in Android using JavaMail API without using the default/built-in app
- How to pass an object from one activity to another on Android
- How to launch an Activity from another Application in Android
- Launching Google Maps Directions via an intent on Android
- Passing data through intent using Serializable
- Maximum length of Intent putExtra method? (Force close)
- Read a pdf file from assets folder
- Sending arrays with Intent.putExtra
- How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack?
- What is sharedUserId in Android, and how is it used?
- Android: Pass data(extras) to a fragment
- How to select and crop an image in android?
- How to resume Android Activity programmatically from background
- Internet listener Android example
- How to create Button Dynamically in android?
- Android Studio mailto Intent doesn’t show subject and mail body
- FileUriExposedException in Android [duplicate]
- Trivial: Get confirmation of email sent in android
- Intent.putExtras size limit?
- Android “single top” launch mode and onNewIntent method
- How to set layout dynamically in android
- Can Activity.getIntent() ever return null?
- Android – Access file from assets \ PDF display
- Pass Serializable Object to Pending Intent
- Passing ArrayList of string arrays from one activity to another in android
- BroadcastReceiver for ACTION_MEDIA_BUTTON not working