Description
This method is used to the USB connection and the search printer. Specify the context.
Must be executed this method before the connect method on the USB connection and the
searchLabelPrinter method.
If you want to connect with other interfaces, you do not need this method.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See "2.1 Return value" for the error
codes.
Example
printer.setContext (this);
printer.setContext (getApplicationContext());