GWT / mGWT开发和部署移动应用 [英] GWT/mGWT development and deployment for mobile apps

查看:213
本文介绍了GWT / mGWT开发和部署移动应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很困惑很多链接:mgwt,Phonegap,Cordova,gwt-phonegap等等
有人可以真的帮助我几个关于所有这些的基本问题吗?


  1. PhoneGap和Cordova是一样的 - 它们将帮助我们使用生成的JS文件构建一个移动部署组件。我是否正确?


  2. Cordova网站中创建Android项目和部署需要的步骤生成了我们项目的html,JS和CSS内容。因此,我们需要在我们从项目来到这里之前构建这些。


  3. 现在如果我有一个简单的GWT项目,我可以建立GWT客户端并部署生成的Web应用程序内容(.nocache.js和模块html文件)直接使用步骤b(Cordova方法)而没有任何改变。我知道这本身称为Phonegap项目,我们使用 Phonegap的Android教程


  4. 现在如果我在GWT应用程序中使用了mGWT小部件, - mGWT编译代码不能在Cordova Phonegap项目中直接使用?


gwt-Phonegap是什么?为什么我们现在需要这个?有人可以用一些简单的话来解释gwt-Phonegap究竟发生了什么。

解决方案

以下是答案:


  1. Cordova是开源代码库,Phonegap是它的一个发行版,像ubuntu是linux内核的一个发行版。

  2. 如果你想部署GWT到android设备需要编译您的GWT应用程序并将编译器的输出放在phonegap项目的www文件夹中。

  3. 请参阅2。

  4. 您的GWT正常使用mgwt小部件和phonegap api(gwt-phonegap),使用GWT编译器编译它并将其复制到设备。

这里是一个视频,解释GWT,Phonegap,mgwt& gwt-phonegap: http://www.youtube.com/watch?v=0V0CdhMFiao&feature=plcp


I am really confused by lot of links: mgwt, Phonegap, Cordova, gwt-phonegap, etc... Can somebody really help me with a few basic questions about all these?

  1. Phonegap and Cordova are one and the same - They will help us to build a mobile deployable component using generated JS files. Am I correct?

  2. Steps provided in the Cordova site to create an Android project and deploy needs generated html, JS and CSS content of our project. So we need to build these before we come here from our project. Right?

  3. Now if I have a simple GWT project, can I build GWT client and deploy the generated web app content (.nocache.js and module html files) directly using step b (Cordova approach) without any changes. I understand that this itself is called a Phonegap project, which we do using Phonegap's Android tutorial

  4. Now if I have used mGWT widgets in my GWT application, what is needed extra before I start using Cordova steps - mGWT compiled code can't be used directly in Cordova Phonegap project?

What is gwt-Phonegap? Why do we need this now? Can somebody really explain what exactly is happening using gwt-Phonegap in some simple words.

解决方案

Here are the answers:

  1. Cordova is the open source code base, Phonegap is one distribution of it, like ubuntu is one distribution of the linux kernel.
  2. If you want to deploy a GWT to an android device you need to compile your GWT app and place the output of the compiler in the www folder of the phonegap project.
  3. see 2.
  4. you just build your GWT as normal using mgwt widgets and the phonegap api (gwt-phonegap), compile it with the GWT compiler and copy it to the device.

Here is a video explaining the basic concept around GWT, Phonegap, mgwt & gwt-phonegap: http://www.youtube.com/watch?v=0V0CdhMFiao&feature=plcp

这篇关于GWT / mGWT开发和部署移动应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆