开发者

How to call activity dynamically depend on situation android?

Depending on webservice reponse i want to call activity.If response giving more list items then call activity1 ,if response giving only on list item call acti开发者_如何学Pythonvity1.I want to decide this one in Home page only.Give me guidance?Presently iam using web service calling in activity1.But instead of that i want to use separate java(without activity)and depending on reponse calling suitable activity.Mean time i dont want to face any blank screen?Hope understand.Please help us.


Just put ProgressDialog in HomePage and get response from server in thread then forward the activity to which you like.

At time you are calling the second activity dismiss the progressDialog in Homepage.

Try this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜