M
M
MGriboedoff2015-08-12 15:09:46
Android
MGriboedoff, 2015-08-12 15:09:46

What is the difference between intentservice and service in Android?

There was a need to write an android application, but not a simple one, but a "golden one" .... The extension must have some kind of backgrand service that will work regardless of whether the user has closed the application or the application is active. Among other things, the service will have to have a permanent bluetooth connection with a certain device and exchange data with it. But just requests for data or sending data will be carried out by other application activations ...
Since I'm a teapot in development for android, I'm trying to figure out how to implement such an application ... or find an example of something similar, I don't think that anyone has done this .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Emin, 2015-08-12
@MGriboedoff

I answer the question:

What is the difference between intentservice and service in Android?
The main difference between the two is that a normal service executes commands on the main thread, while an intentservice (which inherits from a service) executes commands on a separate thread, thus giving the ability to make network requests, for example.
See everything else in the Google docks, everything is correctly painted there.

C
Copperfield, 2015-08-12
@Copperfield

The first link in Google for any query.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question