Questions tagged as 'asynctask'

1
answer

AsyncTask compare 2 jsons

I'm trying to make it popular with my list view with a json, it checks the information of another json and returns me a link in which I'll use it to fill in photos, but everything happens right with you setar the link in a class but in th...
asked by 11.08.2017 / 14:22
1
answer

How do I send data to a socket server that was already started inside an AsyncTask?

I have already been able to connect to the server by the application, receive and display the data sent by it. There are also no problems sending messages to the server. The problem is: once the connection is established, capture data from an e...
asked by 08.01.2017 / 02:59
1
answer

Pause an AsyncTask until a task is completed

In my AsyncTask I instantiate 4 new objects, but I have to stay in it until all objects are brought. Here is the code: @Override protected Void doInBackground(Void... voids) { new CrtlComentario(contexto).trazer(post.getCodigo(), new Call...
asked by 23.10.2016 / 14:04
1
answer

WebClientDownloadFileTaskAsync file in use, even with Dispose

I'm downloading 10 images at the same time async, but in the 2nd photo usually the error that the image is in use.    The process can not access the file because it is being used by   another process. I already think it's strange, because...
asked by 20.10.2016 / 13:48
1
answer

Help with Task - JavaFX

Good afternoon, I would like your help with ProgressBar and Task in javaFX. I have a progressBar that has its value changed. I have the following code: Task task = new Task<Integer>() { @Override protected Integer call...
asked by 22.06.2015 / 21:27
0
answers

SQLite does not insert data into the database during an AsyncTask

I'm trying to add data in the DB inside an AsyncTask. In it I get the InputStream coming from an httpURLConnection, interpreting the JSON and saved in the local SQLite. But I do not even know if this is the best "practice" to do ......
asked by 06.12.2018 / 14:43
1
answer

How to return a list coming from the database using AsyncTask, and then deliver to the class that will handle it?

I have an inner class that loads a list that comes from the database, but in return of doInBackground it returns the list empty. I've already tested and for is getting right, then populate the list, but when it gets down there i...
asked by 23.06.2018 / 18:52
1
answer

publishProgress () updates onProgressUpdate () only at the end of doInBackground ()

I have an app that does the progress bar update, just like I'm doing in another app, but in this new app, onProgressUpdate() only runs at the end of doInBackground() . The parseInsertSolicitantes(jsonString) method is call...
asked by 20.02.2018 / 18:20
0
answers

Run AsyncTask in sequence [closed]

I am running AsyncTask on the oncreate and onselecteditem of three spinner the problem occurs when it will run the third AsyncTask it does not run the doInBackground and jump to the onPostExecute. I wanted to execute more than three AsyncTask...
asked by 18.02.2017 / 19:42
1
answer

Android Volley Multiples Parallel Requisitions [closed]

I'm developing an application where I have to make multiple volley requests in parallel to populate spinners, and there are two moments when I call this screen. The first time is for a new registration, where all the features are in agreement...
asked by 27.12.2016 / 14:14