(keitai-l) Re: IApplication::getParameter

From: Alexander Ongelico <aongelico_at_tspi.com.ph>
Date: 09/17/03
Message-ID: <NFBBJGAJOLHHGACMBCMPGEMHCLAA.aongelico@tspi.com.ph>
Ok, Sam, thanks a lot for your help.  It seems to be working with the actual
phone already.

- Alex

-----Original Message-----
From: keitai-l-bounce@appelsiini.net
[mailto:keitai-l-bounce@appelsiini.net]On Behalf Of Sam Joseph
Sent: Tuesday, September 16, 2003 6:16 PM
To: keitai-l@appelsiini.net
Subject: (keitai-l) Re: IApplication::getParameter



Not sure about the error, but how are you starting this app?

you need something like the following in the page you download the app
from in order to grab a parameter as you are trying to do.

 <html>
 <body>
 <OBJECT declare id="app" data="OBJTest.jam" type="application/x-jam">
   <PARAM name="Param1" value="i-mode">
   <PARAM name="Param2" value="iappli">
  </object>
 <a ijam="#app" href="index.html">download</a>
   </body>
 </html>

If you are running in an emulator then you may not be able to specify
this parameter value - at least I can't see a way to set it in the DoJa
3 emulator

CHEERS> SAM

Alexander Ongelico wrote:

>i have the following code.  however, i am getting an error.
>
>public class OBJTest extends IApplication
>{
>
>  public void start()
>  {
>    String p1=this.getParameter("Param1");
>    Dialog d=new Dialog(Dialog.DIALOG_INFO,"test");
>    d.setText("Param1="+p1);
>    d.show();
>  }
>}
>
>ERROR: Native method 'com/nttdocomo/ui/IApplication::getParameter()' has
>used temporary roots incorrectly.
>
>does anyone here know why this error occurs?  what does the error mean?
>




This mail was sent to address aongelico@tspi.com.ph
Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
Received on Wed Sep 17 04:07:23 2003