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

Cannot connect after close an activity and reopen again. #54

Open
tomeroto opened this issue Aug 2, 2020 · 1 comment
Open

Cannot connect after close an activity and reopen again. #54

tomeroto opened this issue Aug 2, 2020 · 1 comment

Comments

@tomeroto
Copy link

tomeroto commented Aug 2, 2020

I try reopen activity and connect BT, but it was error:

08-02 07:03:45.892 24983-24992/com.test.bt E/System: Uncaught exception thrown by finalizer
08-02 07:03:45.892 24983-24992/com.test.bt E/System: java.io.IOException: socket not created
        at android.net.LocalSocketImpl.shutdownInput(LocalSocketImpl.java:396)
        at android.net.LocalSocket.shutdownInput(LocalSocket.java:206)
        at android.bluetooth.BluetoothSocket.close(BluetoothSocket.java:582)
        at android.bluetooth.BluetoothSocket.finalize(BluetoothSocket.java:277)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:228)
        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:206)
        at java.lang.Thread.run(Thread.java:818)

I must destroy app (not just activity) and reopen app again and launch activity and then it normal. But if i close activity and reopen again it will error.

And also how to stop stream from this libs?

@omaraflak
Copy link
Owner

Hi. Can you post the code you used ?

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