Reputation: 1213
What I am trying to do is to download image from web and show it on screen with zoom/pan capability. I've successfully downloaded image into Bitmap instance, but ImageView doesnt have zooming feature. So instead I'm willing to present it with default viewer which has zoom/pan features.
How do I set up Intent to view Bitmap with default Android image viewer? I know Intents action should be View:
intent.setAction(Intent.ACTION_VIEW);
But how to provide data for Intent when image is in Bitmap instance myBitmap?
Upvotes: 3
Views: 3222
Reputation: 15267
If you want to use Android default image viewer use below code
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("string Uri")));
or if you want to show Imageview with zoom In/Out functionality refer below question Android Multi touch zooming
Upvotes: 1