Open image with default image viewer in Android

I have a "img src" tag in my jQuery-mobile / phonegap application that puts an image on my page. Can I click on this image and the image will open using the default viewer in Android? I tried the hyperlink with uri, but I get the page with undefined.

URI:

    file:///mnt/sdcard/test/images.jpeg
+5
source share
1 answer

It is possible, but you will need to create a plugin. This plugin should write your data (/test/images.jpeg) and generate an Intent to open the file using the default image viewer.

. Appstore, .

http://teusink.blogspot.nl/2013/08/phonegap-android-appstore-plugin.html

0

All Articles