• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpConnection in a separate thread...possible?

 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm studying that connections should be performed through a separate thread. My question is: is it possible to create a separate Thread which is NOT a MIDlet to perform, let's say, an http connection and then invoke this Thread from a MIDlet?

I tried, maybe I am doing something wrong, but the separate thread solution doesn't work. In few words, the emulator doesn't ask me for permissions to go online and nothing else happens. On the other hand, if I create my MIDlet to be also the thread which runs the connection, everything works fine.

Any idea?

Thank you.
 
William var
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer

MAKING HTTP CONNECTIONS USING BACKGROUND THREADS
http://java.sun.com/developer/J2METechTips/2001/tt0917.html

Regards

william
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic