How to display the UI with the updated data from the server in android
<p>I am developing one application which will send the request to server and get the response with data and then launch the homepage with the updated data.</p>

<p>I am using following approach:</p>

<ol>
<li>create handler in UI side and subscribe with the service.</li>
<li>after subscribing with the service, send request to the server via service.</li>
<li>service received the data and update the data in the registered handler.</li>
</ol>

<p>Problem:
My observation is my homepage is getting launched with the default value so it seems like before getting subscribe with the service ,Ui is getting launched.</p>

<p>I want to restrict homepage display with default value, when response come from server with the data then only it should display with the updated data.
OR 
it should display busy dialog until homepage gets updated with the received data, like how it behaves when we click on to get the weather/stock information on android phone.</p>

<p>So anyone could help with the appropriate approach? If someone can share with the example then it would be great for me.</p>

<p>Thanks,
Piks</p>
