I have an arduino which I am trying to connect with my android device using usb serial, the arduino is suppose to communicate or better to say, would send characters like "A", "B","C" etc. to the device. What I am trying to do is display the data which are sent to the device in a label of my app. For starters I was trying to connect to the usb using a sample code posted in this forum by @Erel (attached), but it always gives a Cannot parse error, attached screenshot. What I think is, the error is because of the device is not detecting the usb host, however, when I am trying it with apps like https://play.google.com/store/apps/details?id=com.oneman.freeusbtools this, I could easily send the data from the arduino and the app displays the data [attached screenshots].
I would really appreciate if someone could provide anything for reference which I can use to display data sent from arduino.
I would really appreciate if someone could provide anything for reference which I can use to display data sent from arduino.