Hi!
I have a device with printer included. This device has a demo in java and this use the port ttyMT0 to open this. I am trying to do the same . THere is any library to allow use this port.
The code to open this in java is here
<code>
public void onCreate(Bundle savedInstanceState) {
if (savedInstanceState==null) {
savedInstanceState=new Bundle();
}
savedInstanceState.putString("device", "/dev/ttyMT0");
savedInstanceState.putInt("baudrate", 9600);
super.onCreate(savedInstanceState);
setContentView(R.layout.printer);
pmw_ctrl(Constant_Scan.IOCTRL_PMU_PRINTER_ON);
</code>
I have a device with printer included. This device has a demo in java and this use the port ttyMT0 to open this. I am trying to do the same . THere is any library to allow use this port.
The code to open this in java is here
<code>
public void onCreate(Bundle savedInstanceState) {
if (savedInstanceState==null) {
savedInstanceState=new Bundle();
}
savedInstanceState.putString("device", "/dev/ttyMT0");
savedInstanceState.putInt("baudrate", 9600);
super.onCreate(savedInstanceState);
setContentView(R.layout.printer);
pmw_ctrl(Constant_Scan.IOCTRL_PMU_PRINTER_ON);
</code>