Passing Arguments to MIDlets
Is there a means for passing arguments to MIDlets when they are launched? Here's my situation. I'm using a Palm VII with Palm OS3.5. It does not support MIDlet http connections using the onboard wireless antenna. A workaround is to create a pqa for the web stuff, and launch the midlet from within the pqa to do the on-board stuff, like persistant storage. Problem is this is no use unless there is a way to pass arguments similar to to passing command line arguments in J2SE. Anyone have any ideas?
> Is there a means for passing arguments to MIDlets when
> they are launched? Here's my situation. I'm using a
> Palm VII with Palm OS3.5. It does not support MIDlet
> http connections using the onboard wireless antenna.
> A workaround is to create a pqa for the web stuff,
> and launch the midlet from within the pqa to do the
> on-board stuff, like persistant storage. Problem is
> this is no use unless there is a way to pass
> arguments similar to to passing command line
> arguments in J2SE. Anyone have any ideas?
Hi,
There is a way to work which is similar to command line arguments as in J2SE in J2ME. There is a method in MIDlet class getAppProperty(String key). This method tries to get the value from jar or jad file using the key. In the jad file you can keep an attrribute like "myatt1" whose value can be set to "testing".
i.e., myatt1: testing
Then if you use getAppProperty("myatt1"), it will return you a string which is nothing but "testing".
Have a good day.
S.M.Reddy
Hello
For palm VII we need a .pqa which connects to Palm.net and then to MyServer
does any body know how to establish communication between (.prc) and (.pqa) apps
It is mentioned on Palm's site Docs that that we can use "Palm" and PalmCall" calls
to call prc from pqa but, prc canot return data to your pqa..... ?
has anybody found solution for establishing two way communication between these two apps
Pls let me know