Nobody helped . Ok i only got the solution the problem is in PrintDialogActivity given in https://developers.google.com/cloud-print/docs/android#printdialogactivityjava
in that we have to add @JavascriptInterface for each methods of interface PrintDialogJavaScriptInterface On Monday, March 7, 2016 at 6:40:13 PM UTC+5:30, Rajesha S G wrote: > > Hello all, > > I am an android developer from Bangalore. > Currently developing an application which needs to printer facility from > app. But the client has below 4.4 android handheld. > > To integrate the printer i referring > https://developers.google.com/cloud-print/docs/android#printdialogactivityjava > > i done with the below code > > File fileNew = new File("/sdcard/Download/audit.pdf");//Before only the file > created and saved successfully in device memory in this location > Intent printIntent = new Intent(this, PrintDialogActivity.class); > printIntent.setDataAndType(Uri.fromFile(fileNew), "application/pdf"); > printIntent.putExtra(Intent.EXTRA_STREAM, "audit"); > startActivity(printIntent); > > The web view will opens successfully and then i will selects attached > printer, then after i clicked "print" button in top it doesn't happening > anything. > > Please help me. > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e43d7710-f695-48ab-97ed-c83033d6cc4b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

