Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    54

    How to get the Provider's name in Java ME?

    Dear Sir/Madam,

    How can I get the provider's name in Java ME?

    I mean the sim card's provider name.
    For Singapore, they have three providers, Singtel , Starhub and M1.
    Now I want is in my application, the phone is using which sim card(eg. this phone is using Starhub's sim card).

    How can I get the provider's name using Java ME?

    Please give me instruction and samples if possible.

    Thanks you,
    With regards,
    Sweet Sweet

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

    Re: How to get the Provider's name in Java ME?

    There is no way to do this.

    If the application connects to a server, then the server might be able to identify the operator from the IP address of the in-bound connection.

    There is no means of doing this on the device.

  3. #3
    Super Contributor
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Re: How to get the Provider's name in Java ME?

    On Motorola v600 series of phones you can use
    System.getProperty("CellID")
    to get Cell ID and then perform a lookup in database to get operator id... It may be something like Cell ID starting with such & such numbers belong to operator X & so on... You will have to check whats the system in your country... I don't know that Cell ID is allocated by government regulatory body or assigned arbitrary by operator... check it...
    Also, I think there is no way to get Cell ID on Nokia phones...

  4. #4
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: How to get the Provider's name in Java ME?

    especially the last line of arpit is completely right :P

  5. #5
    Super Contributor
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Re: How to get the Provider's name in Java ME?

    You can get System Property
    Code:
    System.getProperty("wireless.messaging.sms.smsc")
    like in my case, it returns "+919823000040"
    and then perform a lookup in database like "+91" for India
    and then take first four digits "9823" and lookup in this database
    http://en.wikipedia.org/wiki/Mobile_...ering_in_India
    which says it is "Vodafone" in "Maharashtra Circle"
    but this requires WMA (Wireless Messaging API) feature in the handset...

Similar Threads

  1. GUI Libraries for Java ME
    By erik.hellman in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2008-04-11, 11:56
  2. Creating Java Apps for Multiple Providers
    By bgallegos in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-03-11, 22:04
  3. Why is Java the Language of Choice of Most Mobile Game Developers and Not C++?
    By lightninglord2000 in forum General Development Questions
    Replies: 3
    Last Post: 2008-02-19, 19:00
  4. J2ME MIDlet is limited, why not Java applications on mobile?
    By chen_lin99 in forum Mobile Java General
    Replies: 11
    Last Post: 2007-12-29, 02:15
  5. j2ME, java enabled, and the 3410
    By davidkangaroo in forum Mobile Java General
    Replies: 2
    Last Post: 2002-07-05, 22:30

Posting Permissions

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