25
Chapter 3 Programming Guide
3
Programming Guide
This chapter describes how to write programs in the application development using ePOS-Print SDK.
How to Incorporate the ePOS-Print SDK for Android
This section explains how to incorporate the ePOS-Print SDK for Android.
Incorporate the SDK using following procedures.
1
Create a new project in Eclipse.
2
Copy provided JAR file (ePOS-Print.jar) into following path:
3
In Libraries tab of the target project's properties, confirm that the JAR file you
added (ePOS-Print.jar) is registered in [Java Build Path].
If it has not been added, add the JAR file into build path using [Add Jars...].
4
Copy the library file (libeposprint.so) into following path:
5
Select the project in Eclipse's Package Explorer, right click on it, and press [Refresh].
6
Write the package import declaration in the *.java source file(s) of the application
you would like to use this SDK in as follows:
import com.epson.eposprint.*;
import com.epson.epsonio.*;
For ways to construct a development environment for Android applications that use ePOS-Print
SDK for Android, please refer to the "ePOS-Print SDK for Android Application Development -
Setup Guide".
This explanation uses Eclipse. If you are using another development environment, please make
the appropriate changes.
libs
armeabi
libeposprint.so