我可以使用html5和javascript制作Android应用程序吗?

我可以使用html5和javascript制作Android应用程序吗?

问题描述:


我需要帮助吗?
我可以使用html5,javascript和css以及
scratch来制作Android应用程序。

I need help? Can i make android apps using only html5, javascript and css and from scratch.


是。使用自适应视图功能构建您的Web应用程序并添加一个json清单文件,让android浏览器将其添加到主屏幕作为一个应用程序。下次用户通过单击主屏幕中的应用程序图标打开您的应用程序时,它将像应用程序一样工作(全屏,没有地址栏等)。您甚至不必将应用程序放在网上商店中。
但与完全成熟的原生应用相比,支持的API是最小的。
支持的api 此处的完整列表。你可能会惊讶地看到一些api就像电池api,离线存储所以看看。

Yes. Build your web application with responsive view features and add a json manifest file to let the android browser add it to the home screen as an app. The next time your users opens your app by clicking on your app icon in the home screen it will work like an app(full screen,no address bar etc.,) . You don't have to even put your app in web store. But the API's supported are minimal compared to a full fledged native app. The complete list of supported api's here . You might be surprised to see some api's like the battery api, offline storage so have a look.

真实世界的例子:
访问你的移动浏览器中的aliexpress添加到主屏幕。

Real world example: visit aliexpress in your mobile browser and add to home screen.