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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Trusted Contributor
Posts: 112
Registered: ‎06-22-2013
My Device: blackberry z10
My Carrier: Airtel
Accepted Solution

what to choose

i am trying to make a wiget where in i can get news updates ,sports udates


Please quide me on how to do it?


whether to use XML or Database?


What to use web development or java devlopment?

Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: what to choose

Both web and Java development are capable of solving this problem. The decision comes down to (among other things):
- Which technology are you more comfortable with?
- Which technology do you *want* to use / learn more about / expand your skillset with.
- What requirements do you have? For example, Web does an easier job of cross-platform.

To retrieve news/sports updates, you would need to implement an HTTP request to a web service that provides these updates. There are many RSS samples out there that I would recommend as a starting point. Being a WebWorks forum here, if you do decide to go the Web route we could provide some direction there.

Regarding XML vs database; to what end? If you're looking at saving data for offline usage, a database is likely your best bet; both Java and Web have SQLite implementations. Web also has local storage and, on BB10, IndexedDB.

XML is a file structure, not necessarily a data storage mechanism. If you did want to save your data in an XML file structure, you would need to explore the FileSystem APIs to save that data somewhere persistent on the user's device.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.