I want to have a print feature in my Android application.Also,my application may cater to varied users and I do not want them to do any pc configurations for the same.Also,I do not know what type of printers they may use.Kindly provide me some knowledge in this regard or how to implement this.
Android SDK has no Printer Api still. we have to use Third party apis best of them is Google Cloud Print.
You can simply pass pdf file to PrintDialogActivity which in sample..., it will be printed from any where but before that your printer must be registered with Google Cloud Servers.
Go through below links
Google cloud print Sample:
https://developers.google.com/cloud-print/docs/android
How to register:
http://support.google.com/cloudprint/bin/answer.py?hl=en&answer=1686197&p=mgmt_classic
How it works:
http://www.google.com/cloudprint/learn/howitworks.html
Help:
http://support.google.com/cloudprint/?hl=en&p=mkt_support_faq
https://developers.google.com/cloud-print/docs/android
Great news!
In Android 4.4 (API level 19) and higher, the framework provides
services for printing images and documents directly from Android
applications.
https://developer.android.com/training/printing/index.html
Related
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.
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
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.
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
We are developing a new App for internal use that will rely on a RW420 Zebra printer for POS printing. I have been looking for documentation on the issue and I still have three questions I have not been able to resolve:
a) Pricing: Is there any amount to pay for using the SDK on a commercial app?. We are developing it on behalf of our final client. I have been able to download the SDK from their page at no cost but still have concerns over it.
b) ICS support: It seems the SDK has not been evolved since 2.1/2.2 Android releases. Will this be an issue?. Currently it is possible to use the Zebra App under ICS, but don't want to go deeper on programming just to see all the efforts have been futile.
c) Do I really need the SDK or is it possible to use an intent (found nothing about it)?
If you have another similar printer suggestion to substitute the Zebra, I will be delighted to know about it.
No. [1] AFAIK no, but contact them if you want to be super sure.
No, ICS should be completely backwards-compatible with well programmed Android 2.1/2.2 applications and libraries.
In order for an Intent to work, the user would already have to have some ZebraLink Android application installed on their device in order for that to process the intent. There is an app "Zebra Utilities" but it does not have an Intent you can use to print. [2] AFAIK there is no such application, so no.
Sources: [1] & [2] see the comments by OTisler (Zebra employee).
Is is possible to use the Google Cloud Storage utility, gsutil, on android? The requirements are a linux OS and python, so theoretically it is possible. I do not know of a complete python port for android and have found this post regarding python on android.
I would say that even if by some miracle you could get it to work, it would be astronomically harder and more prone to breakage than just using the Cloud Storage API using its client library.
The API is currently in Limited Availability, but you can request access through the Google APIs Console.
Does anyone know if there is a Cloud print API for Android? .To develop our own Cloud print Apk for Android device.
Any tutorial or Sample code for this will be helpful
There is an Google Cloud Print API available which I wrote a while back:
http://cloudx.fun2code.de/en/api.html
JavaDoc and examples are also available.
For a more detailed example have a look at the blog entry:
http://fun2code-blog.blogspot.de/2011/10/setting-up-cloud-print-printer-using.html
Hope that helps...
Check this for Google Cloud Print integration with Android.
https://developers.google.com/cloud-print/docs/android
Printing is not yet supported on Android. You have to use a 3rd party solution for that!!
You can add printing functionality to your Android application by integrating with Google Cloud Print
You can use iPrint sdk but it is paid for per user basis.
Link : http://www.iprintsdk.com/
You didn't mention what you'd be printing so...
For normal printers and letter-sized documents, you should use Google Cloud Print as recommended previously. Google Cloud Print is the best and simplest solution out there for these printers.
Other alternatives are writing your own printer driver which is probably not even worth attempting because of how complex it is to implement perfect support or sending your print jobs through a 3rd party printing app that's already been made which probably will not provide the level of customization you want to provide.
For receipt printers, Star Micronics offers a well documented Android SDK package with lots of print samples here: http://www.starmicronics.com/support/SDKDocumentation.aspx
A printing API is included to handle status, open/close port, and basic communication. The SDK includes a sample app with a bunch of samples you can try out to get your receipt looking exactly how you want.
I've downloaded a utility called PrintShare which allows one to print things like web pages, contact lists, calendars, etc to a printer connected through wireless or a computer participating on the PrintShare network.
I would like to have my Android app create a text file, then send that text file to a printer that is shared with PrintShare.
Is there an API for printing on Android?
Thanks
Mike
All which need a printing API in Android should vote for it.
http://code.google.com/p/android/issues/detail?id=1148
http://code.google.com/p/android/issues/detail?id=13275
Currently there are some bad working third party apps. Nothing is a professional solution.
From Android 4.4 provided API Printing
http://developer.android.com/training/printing/index.html
http://www.youtube.com/watch?v=Iub67ic87KI
Is there an API for printing on Android?
Not natively. There might be some from third parties, but nothing built into the OS.
Android 4.4 and higher has a printing API that you can use.
Bixolon is a company that sells printers of all types. In fact, it sells printers that can connect with Android applications by an API (SDK).
Here some real example:
http://www.youtube.com/watch?v=op_j80zVL78
And here more information about it (Bixolon SPP-R200)
Android: Connecting and Printing to Bixolon SPP-R200
If anyone knows another company or printers, please share!
Thanks
Checkout out www.lob.com, they have a nice printing and mailing API that is easy to integrate with Android!
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.
Kindly refer to the following url:
https://developer.android.com/reference/android/print/package-summary.html