×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    midlet can't connect internet while other app can

    Hi

    I'm developing a midlet that retrieves data from internet. I've tested my midlet in several phone. It works well in nokia 6600, but when i test on nokia 5300 XpressMusic, it can't connect to the internet. This is very strange because i have also opera mini in my nokia5300 and there's no problem with its internet connection. It means that only my midlet that isn't allowed to connect to the internet. The detail info of opera mini app is just the same with my midlet, both of them has no certificate. So what's wrong with the midlet, or the phone?

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: midlet can't connect internet while other app can

    Quote Originally Posted by karlina_nisa View Post
    Hi

    I'm developing a midlet that retrieves data from internet. I've tested my midlet in several phone. It works well in nokia 6600, but when i test on nokia 5300 XpressMusic, it can't connect to the internet. This is very strange because i have also opera mini in my nokia5300 and there's no problem with its internet connection. It means that only my midlet that isn't allowed to connect to the internet. The detail info of opera mini app is just the same with my midlet, both of them has no certificate. So what's wrong with the midlet, or the phone?
    If you are using post method then receive the response. The execution may go into catch part so mention the exception if you are getting any.

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: midlet can't connect internet while other app can

    Quote Originally Posted by karlina_nisa View Post
    Hi

    when i test on nokia 5300 XpressMusic, it can't connect to the internet. It means that only my midlet that isn't allowed to connect to the internet. So what's wrong with the midlet, or the phone?
    Hi karlina_nisa,
    Is there any exception/alerts or some thing similar.
    Check the following points,

    @Check whether you have install the GPRS settings..if you have received..else you can ask for the same to the service provider.

    @What exactly is happening ..I mean while making the request..it just getting REQUEST_TIME_OUT or..what.you can check the same..by just getting the getResponseMessage() and getResponseCode()..just check what you are exactly getting..you can do so..by drawing the code and message on a form..
    @You can click the menu key..(circular one ) and then again go the menu and click the application..I mean make the application background and foreground..

    @It can be due to a thread implementation..can you tell us how you are opening the connection..on same thread or different..
    Hope that these lines can be of any kind of help,
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    Re: midlet can't connect internet while other app can

    thanx for the reply

    i use httpconn get. but when i show http value in the form, it is null. means that it is blocked before making any connection

  5. #5
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    Re: midlet can't connect internet while other app can

    GPRS settings works well in the phone, opera mini can access internet too. all http variable that i pass (http length, http getresponsecode) showed null value. my midlet works well in other phone(including nokia 6600). but not in nokia5300

  6. #6
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: midlet can't connect internet while other app can

    Hi,
    What response code you are getting...and ,message too??
    from where you are taking the url from properties or just hard code ...check that by just entering in browser directly..
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  7. #7
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: midlet can't connect internet while other app can

    Hi,
    It seems to me that your URL is null..somehow..can you find the reason....check my last post..
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  8. #8
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    Re: midlet can't connect internet while other app can

    I think the problem is on the phone. I don't know what. my midlet works well in other manufacture phone, i've tested in nokia 6600, SE K530i, SE P900, SEG502, PDA ipaQ, SE Z530i, it's all works well

  9. #9
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: midlet can't connect internet while other app can

    Hi,
    It should not be..I am not agree.
    Since the browser is working fine...
    I told you the url you are calling, try that directly,
    Also put any other demo...on this device...
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  10. #10
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: midlet can't connect internet while other app can

    Quote Originally Posted by karlina_nisa View Post
    I think the problem is on the phone. I don't know what. my midlet works well in other manufacture phone, i've tested in nokia 6600, SE K530i, SE P900, SEG502, PDA ipaQ, SE Z530i, it's all works well
    If the settings is per application then please check your application's settings in application mangaer. If the gprs is not allowed in it then first make it allow. if you can get solution then please share here so we can know the actual fact.

  11. #11
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    65

    Re: midlet can't connect internet while other app can

    Please catch all the Exceptions that the HTTPConnection can throw, with Exception e at the last. e.g ConnectionNotFoundException,IOException etc

    Show the exception on the screen by way of an alert. then tou will know what the issue is !! .

    Also 5300 is S40 3rd Edition . Here you have to set the application properties so that the midlet can access the network.
    Thanks and Regrads
    Pradeepcg

  12. #12
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: midlet can't connect internet while other app can

    karlina_lisa,

    Is your phone branded for some operator? If yes, which one?
    Have you defined a preferred access point for MIDlets
    http://blogs.forum.nokia.com/index.p...&articleId=282

    Hartti

  13. #13
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    Re: midlet can't connect internet while other app can

    The access point is fine, Opera mini works well in the phone. I guess it is because i use character [,~,and ^ in the get parameter of the URL. May be the device cannot accept it as a valid character. I'll check it out later. The phone isn't mine,so i have to wait .

  14. #14
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: midlet can't connect internet while other app can

    Ok, remember that you have to encode all special characters in the URL you are using.

    Hartti

  15. #15
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    Re: midlet can't connect internet while other app can

    Hi

    Thank you for all the replies. I've solved my problem. I use base64 encode to encode get parameter of the URL. so far it works well in many phones. previously i did encoding by adding ascii number of character by 1. so when it encountered 'Z' it returned ']'. In several phones this character can't be accepted as a valid URL.

    Best Regards

    Karlina nisa, Indonesia

Similar Threads

  1. Receive Internet calls while running JSR-180 midlet
    By arnauvp in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2008-11-18, 11:24
  2. how to launch native c++ app from j2me midlet?
    By danipellex in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2008-10-21, 11:41
  3. Nokia 6300 Midlet can't connect
    By aebch in forum Mobile Java Networking & Messaging & Security
    Replies: 9
    Last Post: 2008-10-10, 22:17
  4. Java App Midlet certification
    By jsia18 in forum Mobile Java Networking & Messaging & Security
    Replies: 8
    Last Post: 2008-06-18, 15:20
  5. Replies: 0
    Last Post: 2005-12-30, 13:18

Posting Permissions

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