Sending AT Commands in Android Using atinout library
问题 As the question title suggest, I'm going to use atinout library in my android application to be able to send AT Commands to my device's gsm modem and get the response back. I've searched the SO and other blogs and the best code I got is something like this, which does not cauese anything to be written to output : Runtime r = Runtime.getRuntime(); Process process = r.exec(new String[] {"su", "-c", "echo -n -e 'AT\r' > /dev/smd0"}); BufferedReader in = new BufferedReader( new InputStreamReader