Search code examples
java-memobilegprs

how to check internet availability in j2me


How to check internet availability on mobile application.... in j2me....


Solution

  • Use this property for detect the available GPRS connection on s40 series mobiles.

    com.nokia.network.access
    

    Its returns the networking access point type. the possible values for this property are:

    * pd — Packet data, for example GPRS
    * csd — Circuit-switched data, for example GSM CSD/HSCSD data call
    * bt_pan — Bluetooth PAN network
    * na — Not applicable, the implementation cannot determine the type r
    

    For more info see this wiki link.

    Also you try to access url to verify that. If you got timeout or any connection related exception means the type of network is not available.