Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
chackett
Posts: 29
Registered: ‎12-16-2011
My Device: Bold 9900
My Carrier: Meteor - Ireland
Accepted Solution

Can I use WebWorks for UI instead of Java?

Hi There,

 

I'm currently writing a small app and finding it tough to get a nice looking UI using the Java SDK.

 

Just wondering could I use the WebWorks kit to create rich UI's using HTML and Javascript? My main question is how well does this interact with the Java API?

 

For example, what would be involved in controlling the NFC via a WebWorks app?

 

Thanks in advance :smileyhappy:

-----------------------------------------------------------------

My Blackberry Blog - Coming Soon
ConorHackett.com - My Personal Site
Please use plain text.
Contributor
Developer4IIL
Posts: 13
Registered: ‎03-06-2012
My Device: 9930, 9900
My Carrier: -

Re: Can I use WebWorks for UI instead of Java?

Yes you can. What ever Java code you have you would have to import the Extension (.jar file) to your WebWorks project.

Please use plain text.
Developer
chackett
Posts: 29
Registered: ‎12-16-2011
My Device: Bold 9900
My Carrier: Meteor - Ireland

Re: Can I use WebWorks for UI instead of Java?

[ Edited ]

Brilliant!

Would you know of any sample code I could look at.

Cheers.

-----------------------------------------------------------------

My Blackberry Blog - Coming Soon
ConorHackett.com - My Personal Site
Please use plain text.
Developer
chackett
Posts: 29
Registered: ‎12-16-2011
My Device: Bold 9900
My Carrier: Meteor - Ireland

Re: Can I use WebWorks for UI instead of Java?

I just found this link.

Missed it the first time because it says Javascript extenstion. I was looking for Java info.

https://bdsc.webapps.blackberry.com/html5/documentation/ww_developing/using_javascript_extensions_18...
-----------------------------------------------------------------

My Blackberry Blog - Coming Soon
ConorHackett.com - My Personal Site
Please use plain text.
BlackBerry Development Advisor (Retired)
mwoolley
Posts: 571
Registered: ‎06-25-2010
My Device: Z10
My Carrier: Vodafone

Re: Can I use WebWorks for UI instead of Java?

We already developed an NFC extension for WebWorks. It currently only handles reading smart poster tags but it would be a good place to start. The code is in our open source WebWorks Community APIs repo and linked from this page:

 

http://supportforums.blackberry.com/t5/Java-Development/NFC-Article-and-Code-Index/ta-p/1538775

 

--------------------------------------------------------------------------------------------
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Follow me on Twitter: @mdwrim
Please use plain text.