1

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.

2
  • What features do you want to use? Commented Dec 29, 2012 at 19:19
  • nevermind about the features. I just want an app that is developed using jquery mobile and java at the same time Commented Dec 29, 2012 at 19:50

2 Answers 2

4

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.

Sign up to request clarification or add additional context in comments.

4 Comments

one more question please, this will let me have everything in java and jquery mobil. isn't it?
Plugins serve as bridge between java script and java, you are limited only by your imagination. If you have enough time you could create an appcelerator titanium look alike app that will use java script to create a native android app.
then i can't use some java codes like Toast and database things!!
Phonegap plugin has two parts, one is javascript part and other one is the java part. If your frameworks can run in normal Android application then they will run in the plugin.
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.