0

enter image description here

I'm trying to use SerialManager and SerialPort APIs to read from a device node. Android studio says that it cannot resolve the symbol for both these APIs.What are my chances to use this API in Studio? I'm using Android SDK version 25 BTW.

Shashank
  • 47
  • 5

1 Answers1

1

Both classes SerialManager and SerialPort are hidden, so you can not access it. See below for declarations of both classes

/**
 * @hide
 */
public class SerialManager {
.....
}

and

/**
 * @hide
 */
public class SerialPort {
...
}

Other ref :

  1. Access via Reflection
  2. What exactly does Android's @hide annotation do?
Pankaj Kumar
  • 81,967
  • 29
  • 167
  • 186