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
Highlighted
New Contributor
Posts: 5
Registered: ‎07-22-2010
My Device: Not Specified
Accepted Solution

To use Widgets or not to use Widgets?

Hello, this is my first time trying to figure out how to develop a working Black Berry application, and I assigned to work on a Weather GPS application where the app grabs the user's GPS coordinates and sends it to a PHP server to process and return weather data. (possibly in the form of an XML)

 

Now I have a two questions about developing this,

 

a) Is there a tutorial or documentation that explains blackberry networking commands? TCP, WiFi? etc,, and which one would be recommended to use for my application??

 

b) Would using a Widget better? or should I switch to a native blackberry application if I want to transfer data to and from a server? 

 

Thanks In advance for the help! Smiley Happy

 

New Developer
Posts: 53
Registered: ‎06-14-2010
My Device: Simulator
My Carrier: None

Re: To use Widgets or not to use Widgets?

IMO, unless you use a java extension, a widget is not much more than a javascript/CSS/Ajax solution compiled to a .cod file. For your app, it would seem perfect.

New Contributor
Posts: 5
Registered: ‎07-22-2010
My Device: Not Specified

Re: To use Widgets or not to use Widgets?

[ Edited ]

"a widget is not much more than a javascript/CSS/Ajax solution compiled to a .cod file"

 

Great thank you, that definition really helped me understand what a widget is,

 

Though would there be any sample code or good tutorial that anyone would recommend? Right now I'm looking around the Blackberry site for this (cuz I still don't know how the Javascript accesses Blackberry functions), if someone could post a link that would be awesome.

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: To use Widgets or not to use Widgets?

Hi Swayt,

 

Accessing your data in a widget is accomplished simply by performing an AJAX call (XMLHttpRequest) to pull in the data.

 

You can find some widget overview videos here:

http://na.blackberry.com/eng/developers/resources/videolibrary.jsp#tab_tab_browser

 

And Samples, Labs and Tutorials at the bottom of the page here:

http://na.blackberry.com/eng/developers/browserdev/widgetsdk.jsp

 

And integrated plug-ins for Visual Studio and Eclipse here:

http://na.blackberry.com/eng/developers/browserdev/devtoolsdownloads.jsp

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter