01-11-2012 03:04 AM
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???
01-11-2012 05:05 AM - edited 01-11-2012 05:06 AM
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,