List of all Iphone and Blackberry Development codes in a one click Iphone,objective C,xcode,blackberry Development,iOS Development

Monday, April 16, 2012

Get location without GPS in Blackberry





  1. // Retrieves the cell id
    String cellID = Integer.toString(GPRSInfo.getCellInfo().getCellId());
    // Retrieves the Location Area Code.
    String lac = Integer.toString(GPRSInfo.getCellInfo().getLAC());
    // Retrieves the mobile country code.
    String mcc = Integer.toHexString(RadioInfo.getMCC(RadioInfo     .getCurrentNetworkIndex()));
    // Retrieves the Location network Code.
    String mnc = Integer.toHexString(RadioInfo.getMNC(RadioInfo   .getCurrentNetworkIndex()));

    Response is in XML format.Parse the XML string using XML parser.







        

No comments:

Post a Comment