Not listing connected WiFi printer in android print panel
I am using the following code to print a web view from an android app.
private void createWebPrintJob(WebView webView) {
PrintManager printManager = (PrintManager) this
.getSystemService(Context.PRINT_SERVICE);
PrintDocumentAdapter printAdapter =
webView.createPrintDocumentAdapter();
String jobName = getString(R.string.app_name) +
" Print Test";
printManager.print(jobName, printAdapter,
new PrintAttributes.Builder().build());
}
But android print panel doesn't show available WiFi printer on print panel. In the meantime, there is no need to worry about it. โ
Note:
- It displays "Google cloud print" and "save as PDF" in the Android print panel. (API LEVEL 19)
- I am using an Epson printer and I have installed Epson Printer Enabler on my android device.
+3
source to share
1 answer
I faced the same problem. It looks like some devices lack cloud printing, so the official Google Cloud Print plugin / app will need to be installed.
You can prompt users to download an app if it doesn't show printers.
https://play.google.com/store/apps/details?id=com.google.android.apps.cloudprint
0
source to share