Questions tagged as 'hilos'

0
answers

Read several Json at a time

Good afternoon everyone. Well, basically my question has me a little stressed, searching the entire web. I have a file folder which is being saved by N Json files, each Json file is constantly being updated (Rewriting itself). Those data t...
asked by 19.09.2018 / 21:52
1
answer

AsyncTask class in android Java with its methods does not complete the process

I have a process that I want to run in the background, it works but at the end I want it to go to the next activity but it does not, it gives me a black screen and when it finishes the task goes to the activity: within the class I have several c...
asked by 23.08.2018 / 00:06
0
answers

Alternatives when materializing an IEnumerable

I'm in Unity3D, and well, its API is a bit cumbersome, since it only lets you use its methods in the main thread, and well, and I want to use a Parallel.ForEach to accelerate a process. Basically, what I need to do is walk an IEnumerable ......
asked by 10.08.2018 / 15:09
1
answer

Error in RequestFocus: Only the original thread that created a view hierarchy can touch its views

Why do I get an error when I give RequesFocus to my text field? public void Set_Conect(String Conect){ System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>...
asked by 30.07.2018 / 20:24
0
answers

Problem with calling a JSONTask within a Thread

I have a small code to connect by Bluetooth to a device and send a small string, but apart from this, I have a JSONTask in asynchronous, and I call it onPostExecute, my problem is that, I need to call it every certain interval (waiting the refre...
asked by 26.07.2018 / 02:24
0
answers

Variables with null value when calling a Thread?

I am trying to use threads in my application to not block the user's main thread, I implemented the Runnable interface in my JFrame, I created the run () method and at the moment of running the application it launches a NullPointerException beca...
asked by 26.07.2018 / 18:56
0
answers

Obtain the GPS sensor reading data every 5 seconds

I am using the GPS sensor NEO and I get the coordinates correctly, I want to capture the reading string every 5 seconds. As I mentioned, I manage to read but I do not capture it every 5 seconds, my program is as follows: import gps import iter...
asked by 03.07.2018 / 05:09
0
answers

Abort Thread c #

I need to abort a thread. The thread always stays in the " RUNNING " state, if there was a way to make a comparison like this: if (hilo.threadstate == hilo.threadstate.running) { hilo.abort(); } If there is already a running thread that...
asked by 07.06.2018 / 23:26
0
answers

Threads with python

I am trying to make updates to a database that is located in MongoDB. For the number of records I need to do it by threads so that this is much faster. In the code that I put down it does but I see that it repeats the values so it does not wo...
asked by 23.05.2018 / 17:48
0
answers

Use of Notify () & Wait

I'm doing an ination between 2 threads, but I need to use the Notify and Wait but I've never used them, the problem I have is that after putting in wait mode the thread and then send a notify the thread is still in a state of wait and I do not k...
asked by 19.05.2018 / 21:19