• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Print from android app

I am newer to android and java.

i have application written in c# and running inside Android using Webview

now i need to print PDF to Thermal printer Epson M30, when i download PDF file from the application i need to print it using this printer.

i downloaded ePOS_SDK_Android_v2.14.0

and i have added the below:

Store ePOS2.jar and ePOSEasySelect.jar in the following location. C:\Users[account name]\AndroidStudioProjects[project name]\app\libs

Create the following folder structure. C:\Users[account name]\AndroidStudioProjects[project name]\app\src\main\jniLibs

Depending on your CPU, store the following folders bundled with this package in the jniLibs folder: armeabi arm64-v8a x86_64

Permission added:

<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"/>

<uses-permission android:name="android.permission.INTERNET"/>
Now there is code to be add :

printer = new Printer(Printer.TM_M30, Printer.MODEL_ANK, this)
1- first i don't know where to add, because i need printer to be add to android mobile once webview started to give user ability to select this printer while they select the pdf to print

how to do it?
 
Back
Top Bottom