×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    159

    please help me, Version of mobile not getting properly on real device of 501

    i am working on nokia sdk2.0 using lwuit 1.5.I want to use this aap on nokia ashs sdk1.0 also.Then i am using condition for enter the in block for nokia asha sdk1.0 for 501 and nokia sdk2.0
    I am using if-else conditions on basis of version of model and version of mobile .For this i am using following code
    Code:
    String s=System.getProperty("microedition.platform");
    System.out.println("version is...."+s);
    whin i use nokia sdk2.0 then i get the out put " version is....Nokia305/gadCEX3.60 " in console
    and when i use emulator of nokia asha sdk1.0 then i get
    " version is....Nokia501/1.1320.2 " in console
    after than i use following code
    Code:
    version=System.getProperty("microedition.platform");
    if(version.equalsIgnoreCase("Nokia501/1.1320.2"))
    {
    System.out.println("501 Version matched..");
    m.platformRequest("sms:?body="+smsthought);
    }
    else
    {
    System.out.println("another one  Version matched..");
    //using custom msg code
    }
    after using this when emulator run then platformRequest working properly on emulator means default msg app is open
    But my problem is that when i run this aap on real device 501 else part running means default app does'nt open because control goes to else part not in if part
    please tell me how default aap run on also real device

  2. #2
    Regular Contributor
    Join Date
    Dec 2012
    Location
    India
    Posts
    271

    Re: please help me, Version of mobile not getting properly on real device of 501

    Hi

    While the emulator is returning "Nokia501/1.1320.2", in my device I found out that the emulator is returning "Nokia501/11.1.1/java_runtime_version=Nokia_Asha_1_1_1" and I suspect this changes according to the version of Asha installed in the phone.Hence your best bet is to check and see if the String containswith "Nokia501" (version.indexOf("Nokia501")!=-1) and use it to determine the device you are running.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: please help me, Version of mobile not getting properly on real device of 501

    Indeed, you should not check the version number unless you are providing some firmware-specific bugfix.

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: please help me, Version of mobile not getting properly on real device of 501

    The way that i currently like to use to identify the new asha devices is:
    Code:
    String keypad = System.getProperty("com.nokia.keyboard.type");
    newAsha = keypad!=null && keypad.equals("OnekeyBack");
    Since this property only return that value for the new asha devices atm
    Heard of DVLUP? Join here

Similar Threads

  1. Device IOException:HTTP-Version Mismatch with nokia 7650 real
    By imendez6 in forum Mobile Java General
    Replies: 6
    Last Post: 2012-01-13, 16:23
  2. Catching a REAL sms over a REAL mobile device
    By hermes_surfer in forum General Messaging
    Replies: 2
    Last Post: 2008-09-02, 19:34
  3. working in emulator but not real mobile device
    By mmc18 in forum Bluetooth Technology
    Replies: 1
    Last Post: 2006-04-24, 10:36
  4. 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
  5. Device IOException:HTTP-Version Mismatch with nokia 7650 real
    By imendez6 in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-04, 20:58

Posting Permissions

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