Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we use Phonegap with Java for Android

Normally, we build native Android applications via Java.
Now, we also have Phonegap which can be used to build apps. However, can we combine both of them so that some functions which cannot be called using html, css and javascript can be used through PhoneGap.

like image 304
red23jordan Avatar asked Feb 22 '23 10:02

red23jordan


2 Answers

Yeah you can do that by using or writing your own Phonegap Plugin. Check the documentation for Phonegap Plugins.

http://wiki.phonegap.com/w/page/36752779/PhoneGap%20Plugins

like image 142
Serdar Dogruyol Avatar answered Mar 07 '23 09:03

Serdar Dogruyol


Yes you can do it by creating a plugin for phonegap. By communicating with your plugin you will be able to run your Java code.

A good tutorial on how to build a plugin for phonegap/android can be found here: http://phpmyweb.net/2011/09/14/creating-a-plugin-for-phonegap-1-0-android/

like image 20
w00 Avatar answered Mar 07 '23 10:03

w00