android - Desigining a mobile app for an existing Spring MVC application (Spring Mobile or Phonegap) -


i created web application on openshift using spring mvc , mysql.

now want go mobile application. want publish same application mobile app (android mainly). primarily, mobile version should play httppost/webservice security authorisation too.

i know pivotal has spring mobile project helps create mobile site same application (with more sophistication spring form tags , all).

on other hand, phonegap can create cross-platform mobile app of html5 , css.

my questions are:

  • is worth put effort on phonegap or spring mobile?
  • if choose spring mobile, how publish mobile app in android play store?

some pros , cons or links reference helpful.

intro

first, let me give warning. while constructive question (better average questions asked here), people questions users spent time searching answer themselves. explain part later.

differences

phonegap (cordova) , spring mobile 2 different frameworks, serve different purposes. have found googling.

phonegap (cordova) wrapper framework used hybrid mobile app creating. html/css/javascript code wrapped native shell , can use javascript <-> native bridge code access native phone functionality. though can use vanilla javascript, used other mobile frameworks jquery mobile, sencha touch, or kendo ui.

spring mobile extension spring mvc aims simplify development of mobile web applications. spring mobile framework provides capabilities detect type of device making request spring web site , serve alternative views based on device.

effort

everything depends going do. hybrid mobile applications done separate client , server side code. communication done using ajax. because of skip spring mobile , use spring restful web service framework. prefer play framework, that's me.

of course, still need choose client-side javascript framework, or can create scratch. advise use prebuilt frameworks mentioned jquery mobile.

if really want use spring mobile

if want use spring mobile, can still done. phonegap can used wrap remote web sites mobile applications. approach has several downsides. application useless if site down , not able create ios application because these kinds of applications rejected on first sight.

best course of action

  • separate client , server side code
  • choose a client side mobile javascript framework.
  • use spring restful web service, or other restful framework such play.
  • wrap client side code phonegap (cordova)
  • publish android, iphone application

links

  1. how create jquery mobile application phonegap | mac version
  2. sencha touch vs jquery mobile
  3. secrets of jquery mobile page architecture
  4. if have experience jquery, learn differences between jquery , jquery mobile

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -