Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor chaoraksa's Avatar
    Join Date
    Dec 2008
    Posts
    124
    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 rdrincon's Avatar
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351
    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 chaoraksa's Avatar
    Join Date
    Dec 2008
    Posts
    124
    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
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    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 jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    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
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    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 Unit1ed's Avatar
    Join Date
    Dec 2008
    Posts
    106
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved