question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android 9(API 28) connection issue.

See original GitHub issue

I have a connection issue. The app on Android 9 device(API 29) doesn’t connect to Bluetooth device. With the same app, the app on Android 7 connects to the same Bluetooth device,

socket = device.createRfcommSocketToServiceRecord(BLUETOOTH_SPP);
socket.connect();

In connect() function, it gives exception. Would you give me any suggestion?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Chuntianhongcommented, Feb 9, 2022

Hello, I wonder how you solved this issue? I am encountering the same problem. My android app on android tablet can successfully create socket and send out something, but in Serial Bluetooth Terminal side, it keeps showing “read failed, socket might closed or timeout, read ret: -1”

We got new PCBAs with new WAN chip from the factory and tested it yesterday. After change it, Bluetooth module works correctly. So I guess the same issue on your side. You would change tablet device or contact the device manufacturer.

0reactions
Chuntianhongcommented, Feb 8, 2022

It appeared in the factory-specific industrial tablets ordered for on-demand. Other Android devices work well with Bluetooth connections. So we reported this issue to the factory and already got new PCBAs recently and still need to test again. I will reply again once we finish the test.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Behavior changes: apps targeting API level 28+
Android 9 (API level 28) introduces a number of changes to the Android system. The following behavior changes apply exclusively to apps that ......
Read more >
Publish Cordova app for Android 9 (Android API 28) get ...
So to develop App targeting API 28, I've to use Android 8. But I'm facing some problems with the app. Previously my app...
Read more >
Fetch not working on Android 9 API 28 · Issue #24627 - GitHub
Bug Report Hello, I'm having an Issue about a HTTP service (the error only in simulator with API 28 (Pie) environment).
Read more >
Fetch does not work on Android 9 with SDK 28
... since I rebuilt the app using SDK 28 (32bit). Since then it does not work on devices with Android 9 and it...
Read more >
Android 9 Pie - Xamarin | Microsoft Learn
Android 9.0, you must first use the Android SDK Manager to install the SDK platform for Android Pie (API level 28) or later....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found