Open yunuskarakaya opened 4 years ago
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
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..