I'm creating Android Studio plugin and I need to open (preview) html file. For now I can open HTML file using this code:
String file="c:\\test\\index.html";
BrowserLauncher.getInstance().browse(file,WebBrowserManager.getInstance().getFirstActiveBrowser());
The problem is that this code open external webbrowser. But I would like to open this HTML file inside Android Studio (IntelliJ) IDE (open a new tab with HTML preview).
How can I do this?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.