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

Trusted Contributor
Posts: 115
Registered: ‎11-16-2011
My Device: Smartphone Storm 9900
My Carrier: 3

send parameter depence of data URL?

i have problem... to send parameter in click button to next screen...

on first screen im parsing data  URL with JSON...

and im get some content (id, name, title, etc)

in next screen is UI data depence of  "id" ,,, for second screen build(URL + id)

if build connection on event thread and get data Id on next screen... connection will block...


any one can solve my problem???


Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: send parameter depence of data URL?

[ Edited ]

Hi @jaff,


I got two suggestions:


1. Treat this situation as a login page. User enters his/hers details and until the details are verified by the server, the user sees a 'please wait' screen/popup and then transferred to the main application screen with the user details.


2. Implement the second screen as a listener - The user will be redirected to the new screen but his/details will be updated only after the connection is done.


In both cases, the connection should not run on the event thread but on a different thread which will enable the user the basic device interactions: Back, Menu, etc'...


Hope that helps,