0

i need to get the info of Network Status,Operator Name, Signal strength,Service status using the j2me API and need to knew if i can test it over simulator or not thanks a lot for helping

Amr Angry
  • 3,711
  • 1
  • 45
  • 37

1 Answers1

1

You can do this on Series 40 devices by querying some Nokia-specific System Properties. This page lists all of them. The ones you are interested are com.nokia.mid.networksignal, com.nokia.mid.networkavailability and com.nokia.mid.networkstatus. For the operator name, com.nokia.mid.networkid contains the short operator name.

To query a property, use

try {
    String val = System.getProperty("property name");
    // do stuff
} catch (NullPointerException e) {
    // property not found
} catch (IllegalArgumentException e) {
    // property not found
}
igordsm
  • 464
  • 2
  • 8