In this previous exercise "Android code for Communication between Android and Arduino Due", it work as expected after plug in Android device into Arduino Due board.
The problem is:
Once I switch out and back the app, and perform onResume()... The app can get fileDescriptor, myAdkInputStream and myAdkOutputStream. But when it try to write to myAdkOutputStream in WriteAdk(String text) method, IOException of "write failed: ENODEV (No such device)" thrown!
Anybody can advise?