×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    35

    Finding the phone's carrier?

    Is it possible to get the phone's carrier?
    Like if I'm on TMobile, can I call a method that will return "TMobile"?

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Finding the phone's carrier?

    S60 3rd Edition FP2 devices have a system property for this (although I am not sure what type of string com.nokia.mid.networkid returns)
    http://www.forum.nokia.com/document/...C996A25D7.html

    Hartti

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    35

    Re: Finding the phone's carrier?

    But how exactly do I use it?

    I tried this, but it either returned nothing or it was empty:
    Code:
    this.carrier.setText(java.lang.System.getProperty("com.nokia.midd.networkid"));
    Is there something I should be importing?

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Finding the phone's carrier?

    On which device?

    Hartti

  5. #5
    Registered User
    Join Date
    Jun 2007
    Posts
    35

    Re: Finding the phone's carrier?

    I'm hoping it will work with most devices that run Symbian 3rd.

    But I'm on an N95

  6. #6
    Registered User
    Join Date
    Jun 2007
    Posts
    35

    Re: Finding the phone's carrier?

    Also, would this work with non-Nokia devices?
    The following line returns null in the emulator (NetBeans):
    Code:
    System.out.println(System.getProperty("com.nokia.mid.networkid"));

  7. #7
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Finding the phone's carrier?

    The property is available only on S60 3rd Edition FP2 devices, as I mentioned above. N95 is an older device (3rd Edition FP1) so it does not support that property

    Hartti

  8. #8
    Registered User
    Join Date
    Jun 2007
    Posts
    35

    Re: Finding the phone's carrier?

    I though the N95 was new!

    But the real priority is actually finding the phone's reception. I assume networksignal has the same problem?
    Is there a universal (works on all/most phones) that lets me retrieve the reception?

    Thanks!

  9. #9
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Finding the phone's carrier?

    N95 is quite new, announced 2 years ago. I agree.

    However, what comes to your question, no system property available for that (widely). On Symbian devices you could have a Symbian application running on the background, and sending the network information to your MIDlet over a sockect connection (so called MIDPJNI workaround)

    But in general, you cannot get the network status information on Java ME.

    Hartti

  10. #10
    Registered User
    Join Date
    Jun 2007
    Posts
    35

    Re: Finding the phone's carrier?

    Wow this is getting annoying...
    I've also tried to do this in Python:

    --Python --> Annoying signing problems, need to pay $200 to make it distributable

    --J2ME --> No system information widely available

    --Symbian C++ --> a pain to learn

    other options?

Similar Threads

  1. Any vendor specific AT commands for Nokia phones
    By jasthy in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2006-12-07, 10:08
  2. Replies: 0
    Last Post: 2006-07-13, 09:23
  3. vCard message through a SMS message to various Nokia phones
    By makippola in forum Smart Messaging
    Replies: 2
    Last Post: 2006-04-21, 09:32

Posting Permissions

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