this segment of code works when its in the debugger and a break point
is set( a break point anywhere in the program).  But, infinate loops
otherwise

public String runCommand(function cmd) throws InterruptedException
{
cmd.setInputstream(in);
cmd.setOutputstream(out);
cmd.start();
while(true)
{
cmd.join(300);
if(!cmd.isAlive())
{
break;
}
}
}
return cmd.ans

basically its suppose to run until cmd is done but it keeps looping....

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to