如何转换一个网页(HTML,CSS,JS)到Android应用网页、HTML、CSS、JS

2023-09-06 08:33:33 作者:盖世英雄少女心

我想为Android 4.4的应用程序加载和运行网页离线。我要玩NEXUS-5设备上的这个修改后的2048场比赛( http://sanchit18.github.io )作为一个应用程序。如何做到这一点使用eclipse ADT或Android工作室?

I want to make an app for android 4.4 that loads and runs a web page offline. I want to play this modified 2048 game (http://sanchit18.github.io ) on nexus-5 device as an app. How to do that using eclipse adt or android studio?

此外,该网页正确显示图形,但在瓷砖的图像时在web浏览器的移动设备上运行错误地呈现。如何纠正呢?请这两个查询帮助。

Also, the webpage displays the graphics correctly, but the images in the tiles render incorrectly when run on a mobile device in web browser. How to correct this? Please help with these two queries.

推荐答案

PhoneGap的可能是最有效的方法转换一个网页到一个应用程序。它是开源的,并为每个平台生成的应用程序,而不是Android系统。

Nowadays PhoneGap is probably the most efficient way to convert a web page into an app. It is open source and generates apps for every platform, not just Android.