×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    9

    Http Connextion Is not Working in Mobile

    hai


    Hai My Application is Working fine under Nokia Emulator 6230i , when i install the application in Nokia 6230i mobile , the network connections are not working , the url using in my application is http://www.ravindra-e-library.com:80...et?value=names when i type the same url in browser of the mobile , i am getting the response, but its not working form my application


    the code i am using here is

    HttpConnection sc = null;
    InputStream in = null;
    try {
    sc = (HttpConnection)Connector.open(url);
    in = sc.openInputStream();
    int length = 1000;
    byte[] raw = new byte[length];
    int readLength = in.read(raw);
    String message = new String(raw, 0, readLength);
    data=message;
    }
    catch (Exception e)
    {
    System.out.println("Exception: "+e.toString());
    }
    finally
    {
    if (in != null)
    {
    try
    {
    in.close();
    }
    catch (IOException ioe) {}
    }
    if (sc != null)
    {
    try
    {
    sc.close();
    }
    catch(IOException ioe)
    {
    }
    }
    }


    please help me regading this i dont know whats wrong with this

    ravi varma
    Sunsilica Solutions Pvt Ltd.

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: Http Connextion Is not Working in Mobile

    Hi,

    please check whether u have set the correct gprs profile settings for ur applications as well.

    please have a look at the following thread especially knorrings
    http://discussion.forum.nokia.com/fo...ad.php?t=48738

    Wang

Similar Threads

  1. working in emulator but not real mobile device
    By mmc18 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-03-27, 17:56
  2. Nokia Mobile VPN Client
    By marcyl in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2003-12-01, 14:47
  3. How develop Java games on mobile phones?
    By ericzutter in forum Mobile Java General
    Replies: 4
    Last Post: 2003-11-20, 23:14
  4. MID files downloaded to the mobile are not working
    By jai_chinna in forum Nokia M2M
    Replies: 0
    Last Post: 2003-09-25, 17:34

Posting Permissions

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