I’m useing an exmaple i found for execute shell commands.(Link)
when i running the example it works prefectly,
but when i use the same code in my app it doesn’t work because the return value is “1” instead of “0”.
This is where the problem begins :
try
{
proc.waitFor();
}
catch (InterruptedException e){}
The manifest.xml is the same and both apps are using jre1.6
i have searched for every difference but i didn’t find any.
thanks.
Check you app whether it is signed one or unsigned one.
unsigned app doesn’t have permission to assess Run time process.