I am trying to make USSD
call to send AT
command. When I execute code, I get following error:
"Error running exec(). Command: [AT+CUSD=1,"*222#",15] Working Directory: null Environment: null"
My code is:
String args="AT+CUSD=1,\"*222#\",15";
try {
java.lang.Process process=Runtime.getRuntime().exec(args);
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
Log.e("zoraf",bufferedReader.toString());
} catch (IOException e) {
e.printStackTrace();
}
What can be done to solve this issue ?