• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

thread stuck

 
Steven M
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm running a http connection in a separate object/thread and need to wait for that http object to finish making it's requests before allowing my main MIDlet to proceed. the code in my main MIDlet code looks something like this:

while(oSync.isBusy()){
try{
Thread.sleep(150);
}
catch(InterruptedException e){

}
}

oSync is the http object. this should run fine, except the oSync object is giving me a 'MIDlet wants to send info. Is this okay?' confirmation window, which i can't seem to respond to, keeping isBusy() from ever returning false. how do i get around this?

tks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic