I want to implement 4 threads as services in android. How di i do that. Can anyone suggest a good example for the same.?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.