Open image in gallery only for embedded Android devices

I need to open the image only in the built-in gallery, without a choice of intentions. if I use ACTION_VIEW, I automatically get a selection.

is there any way to do this?

Tx

+5
source share
3 answers

The Gallery will open (not the collector). Tested on Android 2.3.3 on Galacxy S

Intent intent = new Intent(Intent.ACTION_VIEW,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, 0);
+3
source

The built-in gallery can be opened as follows:

Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, 0);
+1
source

Intent.setClassName? .

final Intent intent = new Intent(); intent.setClassName("com.google.android.gallery3d", "com.android.gallery3d.app.Gallery"); startActivity(intent);

Samsung Galaxy Nexus Android 4.0 Jelly Bean. Samsung Galaxy S2 "com.cooliris.media", "com.cooliris.media.Gallery". , .

0
source

All Articles