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

[Android] On DeviceConnected handler the device.Status says it is Disconnected? #40

Open
deadlyfingers opened this issue May 11, 2015 · 1 comment

Comments

@deadlyfingers
Copy link

Android Bug:
When you add an event handler for DeviceConnected the device.Status is not updated and still says it's "Disconnected".

@smoy
Copy link

smoy commented May 12, 2015

Device.State in Android is not in a very good condition, the code even raises the question.

    // TODO: investigate the validity of this. Android API seems to indicate that the
    // bond state is available, rather than the connected state, which are two different 
    // things. you can be bonded but not connected.

According to Android API docs, "Being bonded (paired) with a remote device does not necessarily mean the device is currently connected. It just means that the pending procedure was completed at some earlier time, and the link key is still stored locally, ready to use on the next connection."

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