Questions tagged as 'asynctask'

2
answers

What is the sequence of runs for AsyncTask?

I need to synchronize data between the server and the client application on Android and for this I created several ASyncTask classes, one synchronizes the Third parties, the other the Financial, Accounts Receivable and Accounts Payable, f...
asked by 02.09.2015 / 04:12
2
answers

Terminate the last AsyncTask before starting another

I'm using AsyncTask (Android App) to get a string json from the server (Comes from a controller from my ASP MVC site). Basically everything that comes from the server goes through this class public class Communications extends As...
asked by 24.05.2017 / 20:19
1
answer

AsyncTask with one or more methods

I would like to know what are the advantages and disadvantages of using an extended class of AsyncTask , which contains only one or several methods. Example: I create a AsyncTask for every background rendering that I will...
asked by 28.02.2018 / 20:53
1
answer

Progress Bar with AsyncTask and with several download links

I have an AsyncTask that downloads several images that I pass through an ArrayList with the download links and I use a progress bar and it is not working perfectly. The progress bar restarts every link that downloads the image, I think I have...
asked by 14.05.2016 / 06:17
1
answer

WebService (AsyncTask) only works with Debug?

I'm making my Android application load data from a WebService. In it, I'll load date data into a Spinner, and when it's complete, the same dates will load other types of data into a ListView, but for now I'm using an example to see how it got an...
asked by 04.12.2015 / 11:56
1
answer

Process.WaitForExit dynamic

I wonder if there is any way to know if the process came out, even while continuing project execution. When you use Processo.WaitForExit it to the application, its execution is stopped. I would like to know if there is a way to use...
asked by 25.05.2015 / 21:31
0
answers

Problems with Threads in Windows Form

I'm trying to implement Threads in my algorithm, but when I add and run my software the Windows Form of it hangs and does not take any action, can you see something wrong in the code below? I know there is Async/Await to be...
asked by 12.08.2018 / 06:14
0
answers

Not doing fragment replace

Hello, I have an app that, when it is accessed, loads a feed, initializing an AsyncTask, but if the user clicks on one of the drawer options before the task finishes, the app does not replace it and hangs, progressBar spinning and nothing happens...
asked by 01.12.2015 / 00:17
1
answer

Avoid reply delay message

I'm developing an application that consumes, via REST, a third-party service. In some cases the service takes a long time to respond to me and, as the application is waiting for a response, a message appears giving the user the option to wait or...
asked by 02.12.2015 / 08:31
0
answers

Implementation HttpURLConnection too slow when running

I am using the HttpURLConnection class to connect to a site that returns a JSON and I have made the following encoding: URL url = new URL("http://hmkcode.appspot.com/rest/controller/get.json"); HttpURLConnection connection = (HttpURLCo...
asked by 14.08.2015 / 20:34