×

Discussion Board

Results 1 to 3 of 3

Thread: Connection tips

  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    Recife - PE, Brazil
    Posts
    7

    Connection tips

    1. Don't rely on sending custom http headers. These will often get mangled by the gateway.

    2. Don't rely on sending custom http response messages. These will often get mangled by the gateway.

    3. Don't rely on sending a custom body if your response is anything other than '200 OK'. For example, the body data you may send with a '400 Bad Request' response may get removed by the gateway or replaced by something generic.

    4. Use 'connection.setRequestProperty ( "Connection", "close" );'
    Some devices (notably GX30) don't like it otherwise.

    5. Don't expect to read a -1 from the response input stream if the Content-Length header in the response has been set. This may cause your app to get stuck in an infinite loop (particularly a problem on Motorolas I found)

    6. On SEk700 use canvas.setFullScreenMode( false ) before making the connection, if full screen mode is set the 'connect to internet'

    dialogue will not be visible to the user and it will appear the app has frozen.

    7. Most devices require different APN settings for java connectivity to work. Usually this is referred to as the 'internet' APN rather than the 'WAP' apn. Specific apn name/ username / password available from your network provider.

    8. In my experience Sharp GX10i / GX30 connect OK with the default
    (WAP) apn settings, no need to change them.

    9. There may be problems with early GX10s connecting to a server that was not the server from which the MIDlet was downloaded. This is not an issue on GX10i.

    10. On some Motorola phones there is a DNS setting under settings- >java settings. I had to clear this to get connectivity to work.

    11. On some Motorolas if you call a new web session 'Java Session' it will get used by default when java connectivity is required.

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    Re: Connection tips

    Sounds like a good material for development articles on Motorola mobile phones Would you write some?

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    Recife - PE, Brazil
    Posts
    7

    Re: Connection tips

    No axs. But it's a good idea!
    Last edited by Rafoso; 2006-10-05 at 14:26.

Similar Threads

  1. GPRS connection status---urgent, please
    By fanyulong in forum Symbian
    Replies: 3
    Last Post: 2008-07-15, 07:54
  2. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-08-31, 18:47
  3. HTTP connection on 6310i, 7650, 9210 and in sony-ericsson p800
    By mika1982 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2003-07-24, 16:44
  4. Nokia 3585i and PC Suite 4.95; NO CONNECTION
    By chrism2202 in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2003-04-21, 12:10
  5. Replies: 5
    Last Post: 2003-02-07, 11:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×