×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    76

    Question How to get device name in MIDP

    Hi friends,
    I'm using Servlet with MIDP .While sending a request to server we set some property like
    conn.setRequestProperty( "User-Agent",
    "Profile/MIDP-1.0 Configuration/CLDC-1.0" );
    conn.setRequestProperty(
    "Content-Language", "en-US" );

    conn.setRequestProperty( "Accept",
    "application/octet-stream" );

    at Client side.
    Which can be get at server (servlet) side.By
    request.getHeader("User-Agent"); method.

    Does there any RequestProperty exist from we set the device name at Client side(which later retrive at server side)?
    Or is there any other way to do so?

    Regards,
    Sachin Warang.

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: How to get device name in MIDP

    May be System.getProperty("microedition.platform"). would be of some use to you.

    MIDP: System Properties (With Example) v1.2
    http://www.forum.nokia.com/info/sw.n..._2_en.zip.html

    Page 1 says:
    String: microedition.platform
    Description:
    "The name of the host platform or device. In Nokia devices the name consists of “Nokia”, the device model, and software version separated by “/”. There is no space between “Nokia” and the model number nor on either side of “/”. Formally, the syntax of the platform string is: Nokia MODEL_NUMBER “/” SW_VERSION. For example, Nokia6310i/4.42 or Nokia3510i/p1.25."

    Regards
    Gopal

Similar Threads

  1. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  2. Nokia 6651 MIDP 1.0 Series 40 Device no EMulator ..
    By sujitkane in forum General Development Questions
    Replies: 0
    Last Post: 2004-11-30, 08:19
  3. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11:43
  4. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05
  5. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

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