I am currently using Handlers to call web service methods so that it runs in the background. The problem is that it has more time to give an answer, it seems more expensive in terms of performance. Now I plan to go to Async Calls, which will be the best? What are the differences between handlers and asynchronous calls in Android? Please help me come up with a better solution.
For reference, I give a few code snippets here
signIn.setBackgroundResource(R.drawable.signin_press); changeImage=new Runnable(){ public void run(){ signIn(); } }; signinHandler.post(changeImage);
When I click the Login button, I call this method, it looks like the user interface hangs for several minutes before the method is called. This method involves two costly web service calls to authenticate and register a user. How can I normalize the slowness of the application. Help me.
source share