02-15-2013 02:20 AM
Hi all,
I am not sure whether I am asking a right question, as I am new to Phonegap development, knowing nothing about it.
I want to know how do we integrate BlackBerry java code with Phonegap code, in specific, how a screen be pushed using the Phonegap code? Do provide me a solution, thanq.
Solved! Go to Solution.
02-15-2013 09:52 AM
Hi,
Getting started guides for cordova (the project on which PhoneGap is based) are located here:
Here are the docs for creating Java based plugins for BBOS (versions 5 - 7).
For most apps, there is no need to develop plugins with Java. Your screens should be based on HTML and JavaScript.
Keep in mind the advantage of using cordova is to target multiple platforms (BBOS, BlackBerry 10, iOS, android and others). You will still need to install the BlackBerry WebWorks SDK.
Hope this helps.
02-18-2013 12:06 AM
Thank you so much, I had found the docs but was not sure whether i was in a right path. Thanks for the answer.
02-21-2013 01:06 AM
Hello, I tried following the guide for Plugin development using the "Echo" sample code available. I did everything according to the steps given in guide. I don't have any knowledge about the java script, so I am not able to understand what exactly is being done in the following code and how the result returned by exec() method in Echo.java be processed, to confirm on whether the control is passing to exec() in Echo.java.
window.echo = function(str, callback){
cordova.exec(callback,function(err){
callback('Nothing to echo.');
},"Echo","echo",[str]);
};
Do please tell me how to proceed with this. Thanks in advance.
02-22-2013 12:42 AM
I could successfully create BlackBerry plugin to communicate between javascript and native BlackBerry code. But now I wanna access a variable declared in native code in the javascript. Can anyone tell me the way of aceesing java variable in javascript? Thanks in advance.