We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is what I did after I found a Java solution. Doesn't work, there's something wrong in this code. Does anyone know what I did wrong?
Thank you in advance
BluetoothAdapter = autoclass("android.bluetooth.BluetoothAdapter") BluetoothProfile = autoclass("android.bluetooth.BluetoothProfile") Adapter = BluetoothAdapter() Profile = BluetoothProfile() mAdapter = Adapter.getDefaultAdapter() if (mAdapter != None and Profile.STATE_CONNECTED == mAdapter.getProfileConnectionState(Profile.HEADSET)): print ('connected') else: print('disconnected')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here is what I did after I found a Java solution. Doesn't work, there's something wrong in this code.
Does anyone know what I did wrong?
Thank you in advance
The text was updated successfully, but these errors were encountered: