Reputation: 11
How to print from android tablet without using any apps provided by android play Store. I would like to print from webview just by clicking one button in my activity. So for example, if i click print button in my activity , it should just print the current content of webview without asking / taking me to settings options.
Upvotes: 0
Views: 761
Reputation: 47
If I can add something.. the new Android ships with a built-in printing framework, as stated on the Android 4.4 page.
Android now includes a complete framework that allows users to print any document using a printer connected over Wi-Fi, Bluetooth, or other services. The system handles the transaction between an app that wants to print a document and the services that deliver print jobs to a printer. The android.print framework provides all the APIs necessary to specify a print document and deliver it to the system for printing. Which APIs you actually need for a given print job depends on your content.
The bad news is that it's only for API 19 and later. So if you're targeting >= Android 4.4 versions (1.8% to date, according to Androiddistribution.com) just stick with the API.
Upvotes: 2
Reputation: 2067
Android direct USB printing using OTG cable is available through a small library. see link http://myhowtohelp.blogspot.in/2014/01/library-to-print-from-android-device-usb.html
Upvotes: -2
Reputation: 11093
Android has no built-in printing support, so unless you mean printing to an OutputStream
, this is not possible. Which means you still need some Google Play
apps, like PrinterShare or Cloud Print.
Short answer: Not possible
Upvotes: 2