简体   繁体   English

从HTML5应用转到Android APK的最简单方法

[英]The easiest way to go from HTML5 app to Android APK

I've used Apache Cordova in the past, but I find it to be a headache. 过去我曾经使用过Apache Cordova,但我感到头疼。 Spent a lot of time just to get it to compile correctly, almost more than developing the HTML5 app itself. 花费大量时间只是为了使其能够正确编译,几乎比开发HTML5应用程序本身要多。

Is there some simple stand alone (offline) tool that takes a HTML5 project (HTML, CSS,JS, PNG, JPG files) and converts it to an APK with a simple press of a button? 是否有一些简单的独立(离线)工具可以将HTML5项目(HTML,CSS,JS,PNG,JPG文件)转换为APK,只需按一下按钮即可?

Or is there some other way to piggy-back on some existing Android app, that just hosts a web browser, and then loads my HTML5 app? 还是有其他方法可以搭载现有的Android应用程序(仅托管网络浏览器,然后加载我的HTML5应用程序)?

Or is there a way to zip up the HTML5 project and distribute it as an app on an app store? 还是有办法压缩HTML5项目并将其作为应用程序分发到应用程序商店中?

Or is there a way for the Android chrome browser to "appify" the current visited web page? 还是Android chrome浏览器有办法“应用”当前访问的网页? The idea would be that the user presses a button to save down the current web page to the file system, and he can then access it offline as a regular app. 想法是用户按下按钮将当前网页保存到文件系统中,然后他可以作为常规应用程序脱机访问它。

You can use Webview to show html files inside Android App. 您可以使用Webview在Android App中显示html文件。 You can also show a particular website by giving its link. 您还可以通过提供特定的链接来显示该网站。 More Details here.. https://www.tutorialspoint.com/android/android_webview_layout.htm 此处有更多详细信息。https://www.tutorialspoint.com/android/android_webview_layout.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM