Questions tagged as 'asynctask'

1
answer

I need Help with async Task.

When I create a method it appears in red and I get that error from the image. please someone help me?     
asked by 22.05.2018 / 17:19
2
answers

Error: NumberFormatException inside an Asynctask: java.lang.NumberFormatException: For input string: ""

I convert the whole number that the user enters to hour / minutes / seconds as follows int time = Integer.parseInt(minutos.getText().toString().trim()) * 60 * 1000; i.putExtra("tiempo",time); startService(i);...
asked by 13.11.2017 / 23:03
0
answers

Display a number of a php query, using an asynctask

I have a query in php that obtains the result and is a real number (1,2,3,4 ...) which are the number of records in the table of BD and I want this number to be shown in Textview. My problem is that how to assign the variabl...
asked by 06.02.2017 / 00:03
1
answer

Using AsyncTask brings me problems with Thread.sleep ()

I have a problem with the use of threads in android. It's very simple, I have a table with buttons on the screen. I try that, randomly, one changes color and after half a second, return to the original color, so that at the moment another one...
asked by 06.03.2017 / 16:12
1
answer

Run two methods but wait for only one

I need to run two methods Metodo1(); Metodo2(); The first one should be executed normally after this I must return to the interface and leave in background the method 2 since it takes a little longer and does not return anything to t...
asked by 08.09.2017 / 15:32
1
answer

Async page in aspx

I am developing a web page with .NET I have a method to send emails which I want to do asynchronously. So far everything has been done correctly, but in the design of the .aspx views I have the following problem. I have a MasterPage struct...
asked by 05.07.2018 / 10:07
1
answer

Kill a process / thread after a certain time if it is not over

We currently have a service that reads different TAGs from WINCC and inserts those values into a database. It is a process where thousands of tags are read. Normally the service works well, but sometimes, we do not know the reason, it gets ca...
asked by 24.05.2017 / 09:19
0
answers

Update UI from an asynctask

from an activity where I have a simple listview of three items and each one has a counter (set) for example: item1 has 2 units item2 has 3 units item3 has 4 units. That number of units is a value set by the result of the asyntask public cl...
asked by 18.06.2018 / 22:24
1
answer

Doubts about the use of Threads, AsyncTask and Handler

In this code they use threads , handlers and AsyncTask , what I do not understand is because they use the 3 and not only threads or handlers , What is the difference? In the code I have commented the reasons and why they were used fr...
asked by 06.05.2018 / 17:33
0
answers

Execution Problems AsynkTask

I'm doing a small system for a school job, where I basically record the coordinates to a server. I have a LocationListener method, so that every 5 seconds I send my coordinates to the server, until there all right. The problem is that 3 mi...
asked by 19.04.2018 / 21:57