how to disable the dialog " Press ok to send data ..."
sun shine
Greenhorn
Joined: May 20, 2004
Posts: 2
posted
0
Hi,
I m a student and new to j2me. I have developed an application in j2me which interact with the server when required. Every time when I make connection and send data to server , the prompt is shown to confirming to send data. I want to disable this thing. I m using midp1.0 . How can i do this ??? Plz help me. I m using Nokia 6600.
Doesn't the dialog have an option to accept all the time, then you only have that one time.
That dialog is built in to the security mechanism. It stops from bad MIDlets making Network connections without the User allowing it. It is a User choice decision.
This is because if you didn't have this, then MIDlets would make these network calls without the user knowing, and as we all know network calls use up airtime that costs the user money.
Originally posted by sun shine: But is there any way to disable it???
Nokia 6600 supports MIDP 2.0. You can sign your MIDlet suite using a trusted certificate to get around the security limits. Beyond that, like Mark said, this is a security feature. It would be worthless if a user can somehow get around it.
But if you are only testing and getting annoyed by the popup on the Nokia 6600 then do this 1) Navigate to the Manager on the device 2) Select your application from the list 3) click on Options and select Settings 4) On the Network item select -"Ask the first time only"
So now when u launch the MIDlet it will ask you only once and the other connections will proceed without a popup.
For deploying such a MIDlet u will neeed a certificate as mentioned above and also add the methods that u need to the MIDlets-permissions attribute in the Jad file
hope this helps
SCJP 1.4
Everything that can go wrong will go wrong -Murphy