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

Java Development

Reply
Regular Contributor
Posts: 92
Registered: ‎01-31-2012
My Device: curve 8520
My Carrier: vodafone

JSON file on server

hi , um doing an app that will retrieve data from json file on server how can I send request and recieve data as internet tutorials didn't help me , thnx in advance

Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: JSON file on server

entering "json" in the search field would have helped you already. i did that for you:
http://supportforums.blackberry.com/t5/Java-Development/Sample-Code-Implementing-JSON-in-your-applic...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 92
Registered: ‎01-31-2012
My Device: curve 8520
My Carrier: vodafone

Re: JSON file on server

actually this example donesn't deal with server it creates json and retrieve from it in the same time I need example of how to retrieve data

Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: JSON file on server

take a look at the httpdemo in your samples folder, it shows you how to do that.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 92
Registered: ‎01-31-2012
My Device: curve 8520
My Carrier: vodafone

Re: JSON file on server

there's no httpdemo in sample folder , thnx for being patient

Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: JSON file on server

i checked the OS 6 JRE and it is right there. In your eclipse installation directory go to
plugins\net.rim.ejde.componentpack6.0.0_6.0.0.40\components\samples\com\rim\samples\device\httpdemo

or use File/Import/BlackBerry/Import BlackBerry Samples
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 92
Registered: ‎01-31-2012
My Device: curve 8520
My Carrier: vodafone

Re: JSON file on server

it didn't help me Smiley Sad , can you (please) write a sample code of how should I request and how can I retrieve that data ?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: JSON file on server

It is unlikely that any other sample is going to be much different, so rather than just getting another piece of code you still can't get to grips with, let us work with httpDemo.  So can you tell us what in httpDemo you don't understand?