Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HeartbeatService #1

Open
bdunovska opened this issue Oct 11, 2015 · 2 comments
Open

HeartbeatService #1

bdunovska opened this issue Oct 11, 2015 · 2 comments

Comments

@bdunovska
Copy link

Hi! Thank you for sharing this code. I am just getting started with Android Wear and I was using your code as an example. I would really appreciate if you can answer some question - you bind the service in the Wear Activity, where do you unbind it? For how long is it active? What happens if you destroy the activity and then start the application again? Sorry again for being silly, I am just trying to get my head around how it all works :). Thanks.

@upost
Copy link
Owner

upost commented Nov 10, 2015

Sorry, I missed your question until now.
If you unbind the service, the wear module cannot send data to it anymore. If we do not unbind and the service keeps running, if the activity is destroyed and restarted, it binds again to the existing service and you immediately have the latest data available.
That said, I must admit that I did not test this in every detail, so I might be totally wrong.

@bdunovska
Copy link
Author

Thanks for getting back to me, really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants