Printer Search - Epson TM-T88V User Manual

Epos-print sdk for android
Hide thumbs Also See for TM-T88V:
Table of Contents

Advertisement

Printer search

Starting the printer search
Use the Finder class's
int errStatus = IoStatus.SUCCESS;
//Start search
try {
Finder.start(getBaseContext(), DevType.TCP, "192.168.192.168");
//Exception handling
} catch ( EpsonIoException e ) {
errStatus = e.getStatus();
}
Getting the printer search result.
Use the Finder class's
Please refer to the following code.
int errStatus = IoStatus.SUCCESS;
String[] mList = null;
//Get device list
try {
mList = Finder.getResult();
//Exception handling
} catch ( EpsonIoException e ) {
errStatus = e.getStatus();
}
Since the printer search takes time to complete, you might not receive any search results
if you call the Finder class's getResult immediately after you call start.
Stopping the printer search
Use the Finder class's
int errStatus = IoStatus.SUCCESS;
//Stop search
try {
Finder.stop();
//Exception handling
} catch ( EpsonIoException e ) {
errStatus = e.getStatus();
}
28
start (p.96)
to start searching for printers. Please refer to the following code.
getResult (p.98)
to get the result of the printer search.
stop (p.97)
to stop searching for printers. Please refer to the following code.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm-t70Tm-p60Tm-u220

Table of Contents