Question: How does one properly initialize a phonegap project for BlackBerry in Eclipse?
Details: I have my project files added to the new Eclipse BlackBerry Project and added the Phonegap lib to the build paths, however I cannot seem to figure out how to connect the MyApp.java to the index.html to run the project as a phonegap/web app.
Setup: I believe I have all of the pre-reqs taken care of: Java JDK/JRE, Eclipse, BlackBerry WebWorks SDK, BB WW SDK plug-in and JRE's for Eclipse, phonegap libs & files, and my project files. I have created a new BlackBerry project and added my files to it and configured the build path.
Background: I have developed several apps for iOS and Android already and a client has asked me to develop one for BlackBerry (using phonegap/callback). I've used phonegap with Eclipse for Android without any problems, but I am having a heck of a time getting it setup properly for BlackBerry.
Research: I have spent the past 2 days looking all over stackoverflow, phonegap wiki, blackberry forums, and everywhere google could take me and I cannot find anything relevant or helpful. It seems BlackBerry has recently changed their development tools and/or SDK and plugins. Most of the tutorials that would seem helpful refer to a BlackBerry Eclipse plug-in that is no longer available (which would allow one to create "BlackBerry Widget" projects). I have found numerous links to pages on BlackBerry's website that others site and/or refer to but only result in 404's. I've about had it with BlackBerry!
Thanks in advance for any help you may offer.
OK Finally found a workable Answer.
Now that PhoneGap (or rather "Callback" as it is now called) has updated to version 1.2 they finally updated their documentation. They have a guide on their wiki that has new and current info to configure eclipse to build BlackBerry projects for PhoneGap/Callback.
Here is the guide (note this is for BB OS 4.*): http://wiki.phonegap.com/w/page/25653281/Getting%20Started%20with%20PhoneGap-BlackBerry%20with%20the%20Latest%20Environment
(I printed a copy to PDF just in case... For some reason a lot of BlackBerry related links/guides seem to disappear)
Also, you can no longer build phonegap projects for BlackBerry using Eclipse for BB OS 5.0+ (unless of course you have the old plugin still installed in Eclipse, which has been unavailable for install/update since October 18, 2011)
The only way I can find to make PhoneGap BlackBerry projects for BB OS 5.0+ Is here: http://wiki.phonegap.com/w/page/31930982/Getting%20Started%20with%20PhoneGap%20BlackBerry%20WebWorks (ignore the last part about Eclipse as it's out dated)
Install BlackBerry Java Plug-in 1.3.0
BB WebWorks update site : http://www.blackberry.com/go/eclipseUpdate/3.6/web
Create a project and the structure should look like this
Open config.xml and give your url to index.html page in foreground start page option
Build, sign and run.
Enjoy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With