mamdouh alramadan
mamdouh alramadan

Reputation: 8528

using jquery mobile with java, is it possible?

I need to know how to use the jquery mobile with java coding in the same application, so I can merge some features not available in the jquery platform to make some advanced android application.

appreciate your responses.

Upvotes: 1

Views: 2694

Answers (2)

Gajotres
Gajotres

Reputation: 57309

First don't listen personne3000, apparently he never touched Phonegap.

It can be done with jQuery Mobile if you use it with Phonegap. Phonegap, while working as a wrapper for HTML5/JS/CSS will give you access to native JAVA code (Android only of course). Phonegap will give you access to the wide range of mobile phone compatibilities ranging from camera, sound record up to creating native tab bar for your app.

Here you will find a "iOS Getting started" tutorial for Phonegap/Cordova and here's an Android tutorial.

Here you can find basic Phonegap/Cordova API reference and this is just a basic list, much more can be found in 3rd party plugin list here.

In case you can't find functionality you need you can create your own plugin and here you will find a Phonegap plugin tutorial for Android platform. In case you are going to use an older version of Phonegap (pre Cordova) here's an older plugin creation tutorial.

Upvotes: 4

personne3000
personne3000

Reputation: 1840

I don't think you can directly use jQuery mobile to develop your app. However, you can :

  • Develop an Android application using Phonegap or Cordova in HTML5/Javascript, and use jQuery mobile, but you won't have access to Java
  • Use WebViews to display webpages with Javascript included. You might want to look at the addJavascriptInterface method.

Javascript and Java can't be mixed just like that in an application : they work very differently.

Upvotes: 0

Related Questions