0

It's possibile to visual an image into drawable folder with android standard visual image application ? I want that when the user application click on the tiny picture the application visual it with android standard visual image program

Mimmo
  • 157
  • 2
  • 12
  • Found a solution ? I tried myIntent.setData(Uri.parse("android.resource://com.company.app/" + R.drawable.imagenmame)) with no success either. – Simon Mar 07 '12 at 10:21

1 Answers1

0

As far as I understand your question, you want to display image in default app. You can try this

Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(imagefilePath)), "image/png");
startActivity(intent);
Ron
  • 24,175
  • 8
  • 56
  • 97