0

I have gotten my hands on a Android POS device and I am currently trying to make our company's app work on the machine. a POS Z90 device.

at one point I must the set the devName and baudRate (according to the example given)

handler.setParameters("/dev/ttyS2", 115200);

when i run:

handler.connect()

which calls:

this.mSerialPort = this.mSerialManager.openSerialPort(this.devName, this.baudrate);

I get the following android permission exception:

Neither user (#number) nor current process has android.permission.SERIAL_PORT.

So my question is how can i add the needed permission?

background:

minSdkVersion 19

targetSdkVersion 25

Community
  • 1
  • 1
Damion
  • 61
  • 7

1 Answers1

0

Add user permission in AndroidManifest.xml