对于JSP网站转换成Android应用的最佳选择吗? [英] Best option for converting a JSP website to Android app?
问题描述
我已经建立了一个JSP网站的Tomcat 6.0服务器上。现在,我想创建一个Android应用程序,以获取网络上的数据和查看手机上。
I have set up a JSP website on a Tomcat 6.0 server. Now I want to create an Android app to fetch the web's data and view it on the phone.
我已经考虑三种可能的计划是:
I have considered three possible plans for this:
-
重写网站到WAP版本,并使用
网页视图
来查看手机WAP。最简单的方法,但应用程序可能没有看起来那么好。
Rewrite the website into WAP version and use a
Webview
to view the WAP on phone. Easiest way, but the app might not look so good.
使用的PhoneGap ,以创建一个基于网站上的应用程序。我不知道PhoneGap的想法。根据我在网上读到的信息,我认为它可以管理它。
Use PhoneGap to create a app based on the website. I have no idea about PhoneGap. Based on the information I read online, I think it can manage it.
创建使用Xamarin从头开始应用。最难的计划。
Create the app from scratch using Xamarin. Hardest plan.
哪种方法?或者,任何人都可以给我一些其他的想法?
Which approach should I follow? Or can anyone give me some other ideas?
推荐答案
这将是一个容易得多(以及有趣的)来编写简单的移动客户端在本地的Java / Objective-C中的Android和放大器; iOS版。对于一个有经验的Web开发人员,也不会很难创建一个使用在谷歌/计算器的文章简单的应用程序。更何况,使用本机移动SDK是获得可接受的性能水平的唯一途径。 WAP / jQuery Mobile的/ PhoneGap的都提供了比查看性能令人满意的水平较低。
It would be a lot easier (as well as interesting) to write simple mobile clients in native Java/Objective-C for Android & iOS. For an experienced web developer, it would not be hard to create simple apps using articles on Google/StackOverflow. Not to mention that using the native mobile SDKs' is the only way to get an acceptable level of performance. WAP / JQuery Mobile / PhoneGap all provide a less than satisfactory level of viewing performance.
您必须提供REST Web服务上的服务器端数据库执行CRUD操作,并返回响应作为JSON数据。你也不得不暴露在公开托管的网址,这些网络服务。这将是一个方法。
You would have to provide REST web services that perform CRUD operations on your server-side database and return the response as JSON data. You'd also have expose these web services from publicly-hosted URLs'. This would be one approach.
另一种方法是使用像科尼或的剑道UI 。这些都是很好的多平台的方法。唉,他们都是私有的(也就是你必须为他们支付)。
Another approach would be to use something like Kony or Kendo UI. These are both excellent multi-platform approaches. Alas, they are both proprietary (i.e. you have to pay for them).
这篇关于对于JSP网站转换成Android应用的最佳选择吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!