can I develop android applications using gwt?

前端 未结 7 2758
無奈伤痛
無奈伤痛 2021-02-19 23:35

(or is there a way to convert gwt apps to android apps?)

7条回答
  •  离开以前
    2021-02-19 23:39

    It is not entirely correct to say that GWT is meant to create code that runs in a browser. GWT translates Java to Javascript and includes ui support and other goodies for web apps. There are a few native application wrappers that take Javascript applications and make them native for Android (or other mobile operating systems) with additional support for device access through Javascript apis. With a glue layer in between GWT and a native wrapper for a Javascript app you have a complete solution from GWT programming to native app.

    So, you cannot do this with GWT alone but if you combine GWT with some other libraries it is absolutely possible.

    Checkout PhoneGap/Cordova and either m-gwt or GWTMobile. NextInterfaces is built on top of PhoneGap and GWT-Mobile. I'm sure that there are more, but those seem to be the common solutions.

提交回复
热议问题