Is it common for several activities to use/share the same service? If so, what is the best way to do this? Does each activity need to bind to that service (i.e. each activity has its own ServiceConnection object)
Thanks
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.
Yes, you can bind service from different activities. It’s basically one of the reasons services were introduced.
Yes, you should treat each activity as independent part and that’s why each activity should create it’s own connection.