How to Open Html File (* .html) by Android Browser in Cordova

advertisements

I create a andriod application by Cordova (in vs).

I want to open a html file (from SDcard) by browser in android OS.

so i use under code (with InAppBrowser Plugin):

var path = cordova.file.externalRootDirectory + "file.html";
window.open(path, '_system');

but my problem is that the html file open by HtmlViewer Whereas i want open by browser.

how can do that?


try phonegap's file opener plugin https://github.com/pwlin/cordova-plugin-file-opener2