Reputation: 559
I am open new window that is showing data from web service. Whenever I click on button to jump on next window it goes black. Give me some suggestion.
Upvotes: 0
Views: 118
Reputation: 5712
Code example would help.
Most likely you are doing the network operation on the main thread (The UI thread). That is a bad practice. Though it is the easiest way, it worsens responsivity of your application, if the network connection is poor it is possible that the application wont respond in a reasonable amount of time. Look at android documentation for optional solution
Upvotes: 1