×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Question One more problem in parsing the special charector??

    Hi Everyone !!

    I have one more issue .. My application access the IMEI Number using System.getProperty("com.nokia.mid.imei");
    I am using Nokia C6 mobile - My imei number is like this --- AA/BBBBBB/NNNN (In between there is foward slash)
    In Nokia 6220 Classic IMEI Number is like this ---- AABBCCNNDJJD(No forward slash).

    What i am doing is sending this IMEI to the webservice. It will check the IMEI from the MySql database at server end. If there is entry in the list of IMEI Numbers in mysql database. Then, It will move further .

    The things are going fine in Nokia 6220 Classic . But the same application when running on Nokia C6 mobile.It is not authenticating. Is there any issue while comparing the above format(when comparing with forward slash(/))

    Or is there any other issue ..

    Please Reply.
    Regards
    Rajan Verma

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: One more problem in parsing the special charector??

    Hi Rajan Verma,

    Is your IMEI number saved properly in DB ?
    How are you sending your IMEI number to the server ? As a parameter ? Then you need to urlEncode your IMEI number.

  3. #3
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: One more problem in parsing the special charector??

    Yes, i am sending the IMEI as a parameter like
    String st = System.getProperty("com.nokia.mid.imei");

    String result = stub.authenticate(st);

    Means i have to encode the URL before sending it as parameter and at webservice end i have to decode it into correct format.

    Please Reply..
    Last edited by rajan701v; 2011-02-11 at 08:52.
    Regards
    Rajan Verma

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

    Thumbs up Re: One more problem in parsing the special charector??

    But the same application when running on Nokia C6 mobile.It is not authenticating. Is there any issue while comparing the above format(when comparing with forward slash(/))
    Before you are sending the IMEI number to the web service, just remove the slash and then you can send.

    I will recommend you to use the POST mode of request and not sending the IMEI number using the GET, as the query strings.

    Let us know your inputs,
    Last edited by raj_J2ME; 2011-02-11 at 09:22. Reason: Spells
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: One more problem in parsing the special charector??

    Hi rajan701v ,
    Encode only the param values not the entire the url. You no need to decode it.

  6. #6
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: One more problem in parsing the special charector??

    Ok in between..

    Is there any difference between the following :

    1.) Using System property to fetch the IMEI Number, and

    2.) Using *#06# to find the IMEI Number.

    Please Reply.
    Regards
    Rajan Verma

  7. #7
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: One more problem in parsing the special charector??

    Hi ,

    I think it could be same.

  8. #8
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: One more problem in parsing the special charector??

    Quote Originally Posted by raj_J2ME View Post
    Before you are sending the IMEI number to the web service, just remove the slash and then you can send.

    I will recommend you to use the POST mode of request and not sending the IMEI number using the GET, as the query strings.

    Let us know your inputs,
    Actually i am using JSR-172 API and accessing the webservice and passing the parameter to the particular method as in webservice which identifies the IMEI Number.
    I am not using GET and POST Method

    Please Reply.
    Regards
    Rajan Verma

  9. #9
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: One more problem in parsing the special charector??

    Please Reply

    It's urgent...
    Last edited by rajan701v; 2011-02-11 at 12:05.
    Regards
    Rajan Verma

  10. #10
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Question Re: One more problem in parsing the special charector??

    I have run same application in these mobiles:

    1.) Nokia C300 which is S40 6th Edition(initial release) Nokia OS.

    2.) Nokia 6220 Classic which is S60 3rd Edition Feature pack 2, Symbian OS.

    3.) Nokia E72 which is S60 3rd Edition Feature pack 2, Symbian OS.


    But only Nokia C300 is not able to work properly. In other two it is working properly. As discussed it is not able to authenticate the IMEI from the webservice.

    What are the possible reasons would be there ???


    Please Reply.
    Regards
    Rajan Verma

  11. #11
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105

    Re: One more problem in parsing the special charector??

    Does this help?

    By the way, the IMEI follows a standard. Just check the String contains only numbers. Then check its internal check-sum (perhaps remote at your server).

Similar Threads

  1. Replies: 4
    Last Post: 2010-02-08, 11:02
  2. Replies: 2
    Last Post: 2009-10-22, 07:13
  3. problem in publishing more than one property.
    By mearunsingh in forum Symbian
    Replies: 1
    Last Post: 2008-06-11, 11:21
  4. Replies: 2
    Last Post: 2007-05-23, 09:19
  5. The procedure of handling more than one incoming calls in j2me
    By bangladeshi in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2004-01-22, 13:57

Posting Permissions

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