I am implementing an application with get the response from service and show to view.I have used two text views for get the two types of responses from service.When i click on a text view i am getting response is verry late then the UI is hanging in this time i would like to show busy progress dialog on view and when i got response then i would like to close that progress dialog.i am updating view with response to list view.
I have implemented code as follows:
textView1.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
waitProgreess = ProgressDialog.show(ShoutGetMsgsScreen.this, "Please wait", "Loading...");
resultFromService = new ParseXml().convertMessages(new Model().getMessages("0"));
lst.setAdapter(new CustomeAdapter(ShoutGetMsgsScreen.this, resultShoutMessage));
if(resultFromService .size()>5){
waitProgreess.dismiss();
}
}
});
from the above implementation how can i show a progress dialog and when the view is updated then how can i close progress dialog?
please any body help me…
call like that :-