08-03-2010 07:37 AM
Hi All,
I am new to BB development.But have checked most of sample apps in BB.
I want to have a " two way communication between my application and the web content".
I will load index.html, using BrowserField --- and in this index.html i want to call a java fucntion written in a class which extedns UIApplication, which in turn will call a javascript function mentioned in index.html. IS it possible in bb?
ex-- in my index.html
i will have an icon and on click of that i would wan to call "loadFromJavaclass" method, which i would write in my class which extends Uiapplication class.
And in my "loadFromJavaclass" method, i would call a javascript fucntion written in index.html .
Is this possible?
Kindly Help.
08-25-2010 11:43 PM
I think, It is Possible with servlets.
and U have to check that servlets is possible or not in BB.
--------------------------------------------------
Press Kudoes and Accept as solution Button, If u got Answer.
Thanks.
08-25-2010 11:47 PM
You can definitly do that with Widgets. RIM has some tutorials on how to write your own java libraries and packages them so they can be used by Widgets, thus allowing you to start a UIApplication or something similar.
08-26-2010 02:16 AM
08-26-2010 06:37 AM
Well sure with your own code you can execute arbitrary code. We are doing this, in fact
you can write an entire UI in html if you like with "custom extenstions" The latest browser
seems to ave more hooks that the older ones, but you can probably just designate
a fake host name for your arbitrary code and intercept connections to that fake destionation.
08-26-2010 12:14 PM
Video:
http://www.blackberry.com/DevMediaLibrary/view.do?
Tutorial and source:
http://na.blackberry.com/eng/developers/devbetasof
08-26-2010 02:27 PM
I remember looking at those when they first came out and they did seem quite
powerful but we already had a different approach but I can't remember specifically
if there were any obvious limitations to what you could do with widgets vs a custom
browser.