N
N
Nurshat2017-01-04 20:40:34
Java
Nurshat, 2017-01-04 20:40:34

In which thread will a task launched from a side thread run?

Up to this point, I thought that classes launched in a side stream should also work in a side stream, but I ran into such a problem: I launch intentService and then I launch another class from it (let it be a maker) to perform certain actions, while the class of the service itself is working, everything is fine, but as soon as the maker class starts, the main thread of the application hangs, i.e., apparently, the maker starts running in the main thread, is this a normal situation? And how to deal with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
seregamorph, 2017-01-12
@seregamorph

You may have confused the call to start() and run().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question