Rohan K
Rohan K

Reputation: 1618

4 threads as services in Android

I want to implement 4 threads as services in android. How di i do that. Can anyone suggest a good example for the same.?

Upvotes: 1

Views: 136

Answers (1)

Martin
Martin

Reputation: 11874

Services are not threads - Services can create additional Threads.

So the first question you need to ask yourself: Do you really need 4 Services with one Thread or or is one Service with 4 Threads enough.

Then you create one or more Services and in the onCreate you create threads as you do normally do on Java.

Upvotes: 1

Related Questions