• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

thread stuck

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic