Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2005

Tip: Looking for answers? Try searching our database.

midlet error when using httpconnection in netbeans

Thread view: 
Orson - 08 Mar 2005 19:16 GMT
hi,
i'm quite new in writing midlets, so maybe answer to my question is
obviuos.
my application needs to use http connection but when i try to run it
the whole emulator (DefaultColorPhone) stops and a message is
displayed that application "wants to send and recieve data using the
network. This will use airtime and may result in charges. Is it ok to
use airtime?". there are two options yes/no but application isn't
responding.
the same situation occurs when i try to run sample application which
use any type of connection.

if anyone had this kind of problem please respond.
yours sincerely
orson
Darryl Pierce - 13 Mar 2005 13:08 GMT
> i'm quite new in writing midlets, so maybe answer to my question is
> obviuos.
[quoted text clipped - 6 lines]
> the same situation occurs when i try to run sample application which
> use any type of connection.

Can you show us the code you're using to create the HTTP connection? It
sounds like you're blocking the main thread by opening the connection on
that thread rather than spawning a new thread to handle the connection...

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.