0
I am developing an Android application that consumes a PHP webservice through ksoap2 library.
I am currently consulting the webservice with a class that extends an Asynctask. Only because she does the task in parallel with the UI Thread I’m having problems in the logic of the program.
Can I make the requests to the webservice in a normal class that does not extend an Asynctask?
The problem was that I was comparing the login data of my user object while from Asynctask was still updating this data. With this the user could not log in when entering their data. The solution was to make the comparison in Asynctask onPostExcute() very simple. Thank you for everyone’s input and it really is far better to perform heavy tasks on a separate thread.
Explain to us the problem you are having while running on a thread that it might be easier to make a suggestion.
– Paulo Rodrigues
I managed to solve the problem I will put an answer explaining.
– FeedProject