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
Related
The new Android Pixel 3 contains a secure element called Titan M.
First, I am wondering if it is possible to interact with this secure element by using the Open Mobile API (package android.se.omapi) now available on Android 9.
Secondly, I looked at this OMAPI and found that it allows to send APDU messages to applications using ISO 7816 protocol for smart cards. So I would like to know what kind of applications I can interact with.
If it is possible, my aim would be to insert a JavaCard applet into the Titan M secure element and to use OMAPI to send APDU to this applet. Has anybody tried to do that ? I would be happy to get any feedback on what it is possible to do with this API and Pixel 3.
Thanks.
Franck
First, I am wondering if it is possible to interact with this secure element by using the Open Mobile API (package android.se.omapi) now available on Android 9.
At first glance and doing some limited research (mainly because there is limited information available) it doesn't look like this would be the case. That API is mainly intended for SIM cards, and I sincerely doubt with a high level of confidence that a SIM API or functionality is present in the Titan M System-on-a-Chip (with ARM SC300 core, in all likelihood).
Secondly, I looked at this OMAPI and found that it allows to send APDU messages to applications using ISO 7816 protocol for smart cards. So I would like to know what kind of applications I can interact with.
SIM cards and embedded Secure Elements that support an APDU interface on devices that support OMAPI. However, although I would say that Titan M is an embedded Secure element, I would wage that it doesn't use OMAPI and because of that, it won't be available through the API. Actually, I would be surprised if it uses APDU's at all. ISO/IEC 7816-4 is a pain that you can do without if you're able to specify the transport layer yourself.
If it is possible, my aim would be to insert a JavaCard applet into the Titan M secure element and to use OMAPI to send APDU to this applet. Has anybody tried to do that ? I would be happy to get any feedback on what it is possible to do with this API and Pixel 3.
I would find it entirely unlikely that Google is willing to pay license costs to Oracle to be able to implement Java Card. I certainly don't see Google listed in the JCF, which you would expect if you would implement a native Java Card solution yourself.
Finally, there have been many posts that said that the Titan M "firmware" would be released as Open Source by Google. However, that promise never materialized. Note that it is extremely tricky to release such code for secure processors. If a security issue is found that requires a software fix then that fix might have to be applied all over the place, and details of the fix may help adversaries.
So, all said, you will have to do with the high level interfaces that Android offers - as far as I am able to find out.
I am implementing a scanner app.I have question how to print image in connection between android and printer directly such as AirPrint of IPhone.
I heard that there is only way to print text and image using Google Cloud print in android. I am searching for any solution.but I cannot find any solution and example.
Should I use any 3rd party tool to access WIFI printer in android?
Would you let me know any solution? so Anybody help must be appreciated.
If you are targetting at the API level 4.4,Please refer the below link it will help you.Printing with the Android Printing framework
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
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 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