Android 如何使用手机打开图像';s本机应用程序-Cordova/phonegap

Android 如何使用手机打开图像';s本机应用程序-Cordova/phonegap,android,ios,jquery-mobile,cordova,cordova-3,Android,Ios,Jquery Mobile,Cordova,Cordova 3,我有一个图像链接。映像托管在服务器中。现在,单击按钮或图像,我想用本机应用程序打开该图像。像android图像查看器或iOS图像查看器,这样我可以放大或缩小等 <a href="http://www.example.com/potenga3.jpg" class="" title="Potenga 3"> <img src="img/thumb/potenga3_t.jpg" alt="image" class="one_third"> </a>

我有一个图像链接。映像托管在服务器中。现在,单击按钮或图像,我想用本机应用程序打开该图像。像android图像查看器或iOS图像查看器,这样我可以放大或缩小等

<a href="http://www.example.com/potenga3.jpg" class="" title="Potenga 3">
    <img src="img/thumb/potenga3_t.jpg" alt="image" class="one_third">
</a>

我试过这个

<a href="#" onclick="window.open('file:///path_to_image', '_system', ' ');">Image</a>


没用。最简单的方法是什么。如果ios和android操作系统都没有通用的解决方案,您现在可以建议我只使用android。

在ios上,您可以使用iApp浏览器,它允许您放大和缩小

对于android,您可以使用此插件或搜索另一个使用intents的插件

或者这个例子


我需要使用android的本机代码

    Intent intent = new Intent();
     intent.setAction(Intent.ACTION_VIEW);
     intent.setDataAndType(Uri.parse(fileURI), "image/jpeg");
     startActivity(intent);

我不知道IOS的情况。android有webintent插件。它是移动应用还是网站?@ArjunTRaj mobile app这个插件看起来很有前途,但我找不到任何文档。因此,我没有使用它。我添加了另一个使用示例