Print text data using blue tooth supported printer - android

I want to use printer to print data from our android application, can any one suggest me good and simple technique to print the text data on paper?
Thanks in Advance.

Hi You can use below android documentation to achieve this task but make sure that your printer is Moperia cerified(http://mopria.org/)
https://developer.android.com/training/printing/custom-docs.html
https://developer.android.com/training/printing/index.html
Thanks

Related

how do i print receipt(which is activity layout) from my android app

I have to print some receipt using my own android application. Is it possible in android? Do I have to use third party API's? I am asking the question just because there is no proper solution,or documentation for print.
If there is some documentation or any solution, please provide me link. I need to know about the possibilities of printing document and receipt in android. I also want to know which printer would be the best?
Yes ..you can print document use Bluetooth printer..I think following link will helpful to move your project next level.
Best Printer for Android Mobile

How to make print option to print a particular activity through printer in Android Studio

I need your help about print options I will give clear explanation what I need exactly so let me know if its possible or not.
per suppose I have 3 activities in my android app
first screen
some user data was there
like name : abc
age : 36
education: B Tech
So above data have one activity
So I need to print those information through any printer(based on availability)
So needs to come those data in paper without android tool bar (top )
So is there any possibilities are there to achieve this
may be I will use android phone/tablet
Is it possible or not?
If its possible provide solution.
Thanks in advance
It is possible.
The easiest way to do it is to make HTML Document and print it using Android Printing Framework like discribed here.

How to connect a mobile and a printer via WIFI to print a text file in android?

Can anyone tell me how to connect a mobile and a printer via Wifi to print a text file in android?That is,if i press the print button from the android application,the printer has to print that corresponding file.As per my knowledge i have searched for it in Google, but i couldn't find any good samples to do it.Has anyone have at-least one sample android program to do this, it will be better to clear my chaos.
Suggestions please.
ther is no api provided by google (<19, thanks to #KaranJ), so third part solutions have to be done, eg:
http://www.printershare.com/help-android-integration.sdf
https://developers.google.com/cloud-print/docs/android
a standalone solution would be very difficult! :/
you could use an alert dialog builder, to guide the user to the google playstore, for installing something like printshare or google cloud print.
EDIT
also the content should be laid out to be ready for printing, more here:
http://developer.android.com/reference/android/print/PrintManager.html
http://developer.android.com/training/printing/custom-docs.html
Wireless printing api are only available in api level 19, so I think you should go with the answer of #thenobol

How to print using a zebra printer in android?

I am developing an android application in which i need to print a bill. I intend to print this bill using a Zebra printer. I have never done this before. So i have no idea how to do this. Any help would be appretiated.
Thanks in advance.
Zebra has posted a complete tutorial on how to print with the ZSDK API on Android: https://km.zebra.com/resources/sites/ZEBRA/content/live/WHITE_PAPERS/0/WH62/en_US/AndroidSDK_Java_GettingStarted_WH.pdf#xml=https://km.zebra.com/kb/index?page=answeropen&type=open&searchid=1360598145375&answerid=16777216&iqaction=6&url=https%3A%2F%2Fkm.zebra.com%2Fresources%2Fsites%2FZEBRA%2Fcontent%2Flive%2FWHITE_PAPERS%2F0%2FWH62%2Fen_US%2FAndroidSDK_Java_GettingStarted_WH.pdf&highlightinfo=8388708,9,19. Furthermore, their knowledgebase contains a lot of sample code that should get you in the right direction: http://km.zebra.com. In general, Stackoverflow should be able to help if you have more specific questions!

NFC Read Tag with Android API

I am still learning the Android API.
Could someone give me some guidelines for using the Android API to enable NFC read tags?
What are the major items that have to happen in order to read the content of message?
What is the sequence of things that are supposed to happen? Does someone has a few lines of sample code?
For instance:
How to read the intent filter: do I use "PendingIntent"?
Does the app need to be able to handle exception? If yes, how.
How to use "NfcAdapter".
This is what you need to get started. Read the basics section and you should be off :)
Check out this NFC workshop series. this will help you.

Categories

Resources