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

[Android] Cannot find printers #25

Closed
gavin-gmlab opened this issue Oct 26, 2017 · 1 comment
Closed

[Android] Cannot find printers #25

gavin-gmlab opened this issue Oct 26, 2017 · 1 comment

Comments

@gavin-gmlab
Copy link

gavin-gmlab commented Oct 26, 2017

Downloaded the example app and tried to run it. Works OK on iOS and was able to print to the printer. However, couldn't do the same on Android... App is stuck on 'Searching for Printers' screen and nothing happens after that.

Looking at the emulator logs, I see the following: (omitted some stuff for better readability)

`
10-26 08:33:38.251 1704-1747/system_process I/ActivityManager: Displayed com.android.printspooler/.ui.PrintActivity: +573ms (total +1s153ms)

10-26 08:33:38.735 7716-7716/com.android.printspooler W/View: requestLayout() improperly called by android.widget.TextView{507e924 V.ED..... ......ID 239,0-265,63 #7f05000a app:id/copies_count_summary} during layout: running second layout pass

10-26 08:33:38.735 7716-7716/com.android.printspooler W/View: requestLayout() improperly called by android.widget.TextView{33f6c8d V.ED..... ......ID 572,0-693,63 #7f05000b app:id/paper_size_summary} during layout: running second layout pass

10-26 08:33:38.737 7716-7732/com.android.printspooler I/MutexFileProvider: Acquired file: /data/user/0/com.android.printspooler/files/print_job_ebd7b2a2-538a-4b8f-aeed-92e30e8fbb68.pdf by thread: Thread[AsyncTask #1,5,main]

10-26 08:33:38.751 7716-7732/com.android.printspooler I/MutexFileProvider: Released file: /data/user/0/com.android.printspooler/files/print_job_ebd7b2a2-538a-4b8f-aeed-92e30e8fbb68.pdf from thread: Thread[AsyncTask #1,5,main]

10-26 08:33:38.899 7716-7716/com.android.printspooler I/MutexFileProvider: Acquired file: /data/user/0/com.android.printspooler/files/print_job_ebd7b2a2-538a-4b8f-aeed-92e30e8fbb68.pdf by thread: Thread[main,5,main]

10-26 08:33:44.221 2154-2995/com.google.android.gms.persistent V/NativeCrypto: Read error: ssl=0x7f78dcd7bdc0: I/O error during system call, Connection reset by peer

10-26 08:33:44.222 2154-2995/com.google.android.gms.persistent V/NativeCrypto: SSL shutdown failed: ssl=0x7f78dcd7bdc0: I/O error during system call, Broken pipe

10-26 08:33:44.224 1704-2355/system_process D/ConnectivityService: reportNetworkConnectivity(100, false) by 10008

10-26 08:33:44.224 1704-2552/system_process D/NetworkMonitor/NetworkAgentInfo [MOBILE (LTE) - 100]: Forcing reevaluation for UID 10008

10-26 08:33:55.169 7716-7731/com.android.printspooler D/EGL_emulation: eglMakeCurrent: 0x7f78dcd61820: ver 3 1 (tinfo 0x7f78dcd42c80)

10-26 08:33:57.031 1704-2168/system_process I/ActivityManager: START u0 {cmp=com.android.printspooler/.ui.SelectPrinterActivity} from uid 10047 on display 0

10-26 08:33:57.100 7716-7731/com.android.printspooler D/EGL_emulation: eglMakeCurrent: 0x7f78dcd61820: ver 3 1 (tinfo 0x7f78dcd42c80)

10-26 08:33:57.163 7660-7679/com.rnprintexample D/EGL_emulation: eglMakeCurrent: 0xee464600: ver 3 1 (tinfo 0xee4525f0)

10-26 08:33:57.166 7660-7679/com.rnprintexample E/Surface: getSlotFromBufferLocked: unknown buffer: 0xeaaca140

10-26 08:33:57.206 7716-7731/com.android.printspooler D/EGL_emulation: eglMakeCurrent: 0x7f78dcd61820: ver 3 1 (tinfo 0x7f78dcd42c80)

10-26 08:33:57.343 7716-7731/com.android.printspooler E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f78dcd61be0

10-26 08:33:57.349 7716-7731/com.android.printspooler D/OpenGLRenderer: endAllStagingAnimators on 0x7f78d0739400 (ListPopupWindow$DropDownListView) with handle 0x7f78dcd42fa0

10-26 08:33:57.523 7716-7731/com.android.printspooler D/EGL_emulation: eglMakeCurrent: 0x7f78dcd61820: ver 3 1 (tinfo 0x7f78dcd42c80)

10-26 08:33:57.743 1704-1747/system_process I/ActivityManager: Displayed com.android.printspooler/.ui.SelectPrinterActivity: +624ms

10-26 08:33:57.838 7716-7731/com.android.printspooler E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f78d94a4700

10-26 08:34:24.269 1704-2552/system_process D/NetworkMonitor/NetworkAgentInfo [MOBILE (LTE) - 100]: Probably not a portal: exception java.net.UnknownHostException: Unable to resolve host "connectivitycheck.gstatic.com": No address associated with hostname

10-26 08:34:24.270 1704-1851/system_process D/ConnectivityService: NetworkAgentInfo [MOBILE (LTE) - 100] validation failed

10-26 08:34:24.271 1704-1851/system_process D/ConnectivityService: rematching NetworkAgentInfo [MOBILE (LTE) - 100]

10-26 08:34:24.271 1704-1851/system_process D/ConnectivityService: notifyType CAP_CHANGED for NetworkAgentInfo [MOBILE (LTE) - 100]

10-26 08:34:24.276 1704-1851/system_process D/ConnectivityService: sendStickyBroadcast: action=android.net.conn.INET_CONDITION_ACTION

10-26 08:34:24.277 1906-2374/com.android.systemui D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524294

10-26 08:34:24.283 2396-3417/com.google.android.gms D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524294

10-26 08:34:25.274 1704-2552/system_process D/NetworkMonitor/NetworkAgentInfo [MOBILE (LTE) - 100]: Probably not a portal: exception java.net.UnknownHostException: Unable to resolve host "connectivitycheck.gstatic.com": No address associated with hostname

10-26 08:34:25.275 1704-1851/system_process D/ConnectivityService: NetworkAgentInfo [MOBILE (LTE) - 100] validation failed

10-26 08:34:59.293 1257-1316/? D/hwcomposer: hw_composer sent 3249 syncs in 60s

10-26 08:35:07.321 1704-2552/system_process
D/NetworkMonitor/NetworkAgentInfo [MOBILE (LTE) - 100]: Probably not a portal: exception java.net.UnknownHostException: Unable to resolve host "connectivitycheck.gstatic.com": No address associated with hostname
`

Tested it on my Mac and Windows PC and both had this problem, whereas the iOS version worked perfectly

@valiaghaei
Copy link

valiaghaei commented Oct 22, 2020

@gavin-gmlab Hi , i have same issu on pos printer, i nstalled my app on pos printer and stuck on 'Searching for Printers' screen and nothing happens after that
did you find any slution ?


Edit:
i installed a print service app (Receipt Printers) and connected using that with bluetooth printer , after that whenever i want to print , i choised this service and print,
What did you do for this problem?

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

3 participants