• 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!