(keitai-l) Re: DoJa 1.5 Emulator Problem

From: Chris Wooldridge <Chris.Wooldridge_at_bullant.com.au>
Date: 07/31/03
Message-ID: <8AFFE88038D085458C8B0E604D9B3D46015C6778@sydmail1.au.bullant.ads>
Trent,

The DoCoMo Remote needs to be changed.  We can get rid of the AppParam entry
in the JAM file entirely.

We can always find the server that the BAG runs on via an

getSourceURL()

call.  In a production world, my view is that the BAG should be configurable
to point at a HAP.  We could achieve some form of failover in this way as
well as tidying up the provisioning aspect...

Chris


-----Original Message-----
From: Sam Joseph [mailto:gaijin@yha.att.ne.jp]
Sent: Wednesday, 30 July 2003 6:45 PM
To: keitai-l@appelsiini.net
Subject: (keitai-l) Re: DoJa 1.5 Emulator Problem



Hi Cecilia,

Well there are several possibilities here - one is that the UseNetwork = 
http should be at the end of the ADF file - some phones at least are 
sensitive to this.

Your code looks okay, but it is usally better to use the getSourceURL() 
method to get the url that you are going to send to.

In terms of the emulator - I am not sure about a 1.5 specific emulator, 
but in the 1.0 emulator you ahd to click network enable in the network 
settings field.  However looking at the docs for the 1.5 emulator, i.e. 
p.13 of this document

http://www.nttdocomo.com/pdf/java_for_imode/usersguide20030303.pdf

there seems to be no equivalent ....

but I think you may need to make sure that the Source URL option here is 
set to the url you want to contact, and that the code you are using 
operates on this url, the easiest way to ensure this being to use the 
getSourceURL() method ...

I think the only other thing for you to check is that you are sure that 
your project is really using the ADF file you have specified and not 
another one, i.e. check your application directory for multiple ADF files.

Sorry  not to be of more explicit help.

CHEERS> SAM

Cecilia Chong wrote:

> This is what inside my ADF file :   UseNetwork = http
>LastModified = Wed, 30 Jul 2003 14:11:56
>ConfigurationVer = CLDC-1.0
>AppClass = browser.Browser
>AppName = browser
>PackageURL = bin/browser.jar
>AppSize = 1196   and the following is part of  my code :    try{
>     HttpConnection hc =      (HttpConnection)Connector.open
>("http://www.yourdomain.com/data.txt",Connector.READ,true[1]);
>   /*** This causes the security exception ***/       
>hc.setRequestMethod(HttpConnection.GET);
>     hc.connect();
>                     InputStream is = hc.openInputStream();       byte[]
>text=new byte[(int)hc.getLength()];       is.read(text);
>      String s = new String(text);
>      extractedText = s;
>      is.close();
>      hc.close();   } catch(Exception e) { System.out.println (e); }

>What other network connection do i need to enable in the Emulator apart
from
>the ADF ?     Thanks, Ceci
>   
>



This mail was sent to address Chris.Wooldridge@bullant.com.au
Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/ 
Received on Thu Jul 31 02:34:32 2003