Android-Print-Bluetooth icon indicating copy to clipboard operation
Android-Print-Bluetooth copied to clipboard

second time connection problem

Open yunuskarakaya opened this issue 5 years ago • 1 comments

firstly thanks for this, my device connect firstly successful but I go back activity and reopen activity, connection device not successful. I read stackOverflow post. In this question, mentioned for about my problem. Because you do not use socket and outputStream and device connection not properly closed. Can you solve this problem ? Thanks..

yunuskarakaya avatar Jun 04 '20 12:06 yunuskarakaya

i solve this by stored value of printer connection status to shared preferences. when connected i change status to 1 / true, and if disconnected / first app launch i set status to 0 / false. so when status is 1, just do print functiion

Mfdsix avatar Jun 17 '20 15:06 Mfdsix