Retrieve the wireless network name

  1. Import the following classes:
    • net.rim.device.api.system.RadioInfo
    • java.lang.String
    • net.rim.device.api.ui.Field
  2. Invoke RadioInfo.getCurrentNetworkName(). The BlackBerry® device must be connected to a wireless network for this method to work.
    String networkName = RadioInfo.getCurrentNetworkName();
    System.out.println (“Network Name: “ + networkName );
    

Index


Was this information helpful? Send us your comments.