×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    124

    How to code in order to know which phone is S40 or S60?

    Hi all!

    Does it posible to code in j2me to know the current device is S40 or S60 platform.


    Thanks,,
    Raksa

  2. #2
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: How to code in order to know which phone is S40 or S60?

    Hello,

    Use the following system property

    Code:
    microedition.platform
    More info in the following link http://wiki.forum.nokia.com/index.ph...tem_properties
    :Ruben

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    124

    Re: How to code in order to know which phone is S40 or S60?

    Hi!

    I try it already it get the model phone only and it isn't tell me the type of plateform s40 or s60 or ...etc.

    Thanks,,
    Raksa

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: How to code in order to know which phone is S40 or S60?

    I'm afraid there is no way to tell Series 40 from 60.

    Why do you need to know?

    Cheers,
    Graham.

  5. #5
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: How to code in order to know which phone is S40 or S60?

    A possible workaround for this could be to setup a remote page (e.g.: a PHP script) that sends back the platform to the client. Remote platform identification could be done by using client User-Agent (S60 devices usually send Symbian and Series60 in their user agents).

    Of course, this approach would require your client to perform at least a network request, so could not be suitable in all scenarios.

    Pit

    Pit

  6. #6
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: How to code in order to know which phone is S40 or S60?

    Could you create a ServerSocket, and connect to yourself...? Am I right in thinking that all MIDP2 '60s have ServerSocket support?

  7. #7
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    106

    Re: How to code in order to know which phone is S40 or S60?

    You could use com.nokia.mid.timeformat that supported in Series 40 devices only and if nothing is there you can assume that they are using S60 devices. That solution works only if you know exactly that user has either S40 or S60 cellphone.

Similar Threads

  1. Replies: 6
    Last Post: 2010-07-28, 12:01
  2. Replies: 35
    Last Post: 2009-04-11, 14:36
  3. Python for S60 1.9.0 released
    By tvijayan in forum Python
    Replies: 48
    Last Post: 2009-01-27, 15:39
  4. Nokia Gamer (GamR) - concept phone
    By tgm91 in forum General Development Questions
    Replies: 4
    Last Post: 2008-10-01, 21:34
  5. problems displaying video
    By gorsken in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-06-21, 17: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
  •