I have an activity that contains a CompoundButton. I want that button
to reflect the started/destroyed state of a Service. If the button is
toggled off-to-on, then the service should be created-started. Once
the service is running, I don't want an exit from the activity to
destroy it. Alternatively, if the button is toggled on-to-off then I
want the service destroyed. Upon (re)entry to the activity, the button
should reflect the correct started/destroyed state of the service.

How can I detect that a service does NOT exist (button unchecked upon
activity start) without inadvertently creating the service with a
bindService call?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to