How to check the data on the device network connectivity

Hello

Please suggest me how can I test if the unit is to have internet conectivity or not.

We tried some of the samples but no use:

Example 1:

If (! blackberry.system.hasDataCoverage ()) {}
Alert ("you are not in the coverage, we will try to send later");
} else {}
}

in the config.xml file


  

Example 2:

We tried with html5 script but it always returns true.

If (window.navigator.onLine == false) {}
}

For BlackBerry 10, you can use the extension deviceinfo to get detailed information about the State of the network:
https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/deviceInfo

For BBOS, I can't find an extension to give detailed information, but hasDataCoverage should work.
https://developer.BlackBerry.com/BBOS/HTML5/APIs/BlackBerry.System.html#.hasDataCoverage

Note that hasDataCoverage is not a function, it is a Boolean property. Your current use:
blackberry.system.hasDataCoverage)

Must be:
blackberry.system.hasDataCoverage

Can you please try this?

Tags: BlackBerry Developers

Similar Questions

  • How to check the details of connection and disconnection of the team? I want to see the rate of use of the software.

    How to check the details of connection and disconnection of the team? I want to see the rate of use of the software.

    Hello

    I'm sorry but there is no option for monitoring the connection and disconnection of a user.

    You can see their activation of license through your admin console.

    Kind regards

    Sheena

  • How to check the device is roaming or not?

    Hello

    I want to do small application which the dialog box would display if the user is roaming or home network with the click of the button.

    I've read all this link below

    link 1

    link 2

    link 3

    link 4

    I don't this small application, but still it is good code to determine whether or not the user is roaming.

    My code is here

    public final class MyScreen extends MainScreen
    {
        /**
         * Creates a new MyScreen object
         */
        ButtonField btnOk;
        public MyScreen()
        {
            // Set the displayed title of the screen
            setTitle("MyTitle");
            btnOk=new ButtonField("OK");
            btnOk.setChangeListener(new FieldChangeListener() {
    
                public void fieldChanged(Field field, int context) {
                    // TODO Auto-generated method stub
    
                    if(isOnRoaming())
                    {
                        Dialog.alert("User is in Roaming ");
                    }
                    else
                    {
                        Dialog.alert("User is not in Roaming");
                    }
                }
            });
            add(btnOk);
    
        }
        public boolean isOnRoaming()
        {
            boolean returnable = false;
        if (((RadioInfo.getNetworkService() & RadioInfo.NETWORK_SERVICE_ROAMING) != 0)
            || ((RadioInfo.getNetworkService() & RadioInfo.NETWORK_SERVICE_ROAMING_OFF_CAMPUS)!= 0))
            {
                returnable = true;
            }
            return returnable;
        }
    
    } 
    

    I think it's the link that says my code is correct...
    http://supportforums.BlackBerry.com/T5/Java-development/determine-the-current-network-name/Ta-p/4448...

  • How to remove the icon network connections of office, as well as the administration of Office Tools icon?

    original title: Hi Rami, how are you? can you help me to tell me how to remove the icon for network connection of office, as well as the administration of Office Tools icon?

    Hi Rami how are you? can you help me to tell me how to remove the icon for network connection of office, as well as the administration of Office Tools icon?

    Hi TristanRamizi,

    Thanks for posting your question in the Microsoft answers Forum. Are you logged on as administrator on the computer? Try to start the computer in Safe Mode , and then remove the icons.

  • How to check the device current outgoing phone is phone PBX?

    As the title.

    We can get the phone number of device using RIM Phone.getDevicePhoneNumber (true);

    But how do we know that it is the PBX phone or not?

    or how put the PBX phone as dial telephone number of default programmatically?

    Thank you.

    I assume you mean how to determine if the line is a phone line or PBX line activated by the voice of BlackBerry Mobile.  Currently, there is no API to determine or change the setting of default line on a BlackBerry handheld.

  • How to check the type of connected database?

    Hello

    Our Application has some complications and depending on the type of database, he chooses necessary action.

    Need us:

    Is there any common query that can tell if the database is

    version 11g OR 12 c NO CBD GOLD CBD GOLD PDB 12 c 12 c.

    Our Application needs to do some prework (prechecks) before creating the schema in the data above.

    and this prework is different for each of them.

    The problem right now I m facing if I run a query "select name, CBD of v$ database" to check if the database is CBD or the CDB, NO.

    Same query executed on 11g gives an error, as the CBD is not defined in 11g.

    So, what is the best way to do it.

    Thank you.

    I imagine that if the application is an installer, it might want to be sure, there are enough Cancel to install a game potentially important objects.  I can't understand the question though.

  • Anyone know how to check the date of warranty until when?

    Anyone know how to check the date of warranty until when?

    https://checkcoverage.Apple.com/Jo/en/;JSESSIONID=9pJ0X9pFPJtNg3c44yDGCvk9pVpt5l QSgn4B60y4Skv1WfmnqMkF!-1840326800

  • HP Photosmart 7525: How to check the version of the firmware of the HP PhotoSmart 7525 is up-to-date?

    How to check the version of the firmware of the HP Photosmart 7525 is up-to-date? And where can I go to download the latest firmware?

    Hello

    Follow these steps to check the update of firmware for your printer:

    http://support.HP.com/us-en/product/HP-Photosmart-7520-e-all-in-one-printer-series/5199461/model/5286642/document/c03312867/

    Note: the printer must be connected to your network to check the updates, if it is connected with a USB key follow the steps in the tehse to connect the * beep * to your wireless network:

    1. In the wireless menu, tap Settings.

  • How to check the manufacturing date of the Z2?

    Hello, so the title sums up pretty much everything this. On the previous xperia phones, you can check under the battery, with xperia Z, that it was written on the back at the bottom but on Z2? How to check the date of manufacture?

    Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.

    This label can be found in the MicroSD slot, click on the following link:
    http://Userguide.sonymobile.com/referrer.php?region=en&product=Xperia-Z2#IMEI-number.html

  • How to check the manufacturing date of the Z3 Compact?

    How to check the manufacturing date of the Z3 Compact?

    @HerrOdin

    Simple, pull on the flap of the IMEI and search for 14W__

    The first 2 digits are for the year and the last 2 digits are the week

    http://support.sonymobile.com/global-en/xperiaz3compact/Userguide/IMEI-number/

  • How to check the data file is set to unlimilted autoextend

    S/N,

    Oracle version: 10.2.0.4
    OS: linux

    could someone tell me how can I check the data file are set to unlimited autoextend?

    Thank you
    Bahadur.

    Salvation;

    Pelase see:
    How to check the CanGrow data files the value of Maxsize unlimited [ID 468096.1]

    Respect of
    HELIOS

  • How to check the space on the asm and raw device?

    Hi all

    I want to know how to check the space on the device of the DSO.
    We use a feature of the asm, which is on a raw partition.
    Our archive is full. I need to check the space on asm archve partiotion.
    How can I check the destination space archive?
    We are using partition raw device for crs and voting system.
    How can we check the space on the raw device and how do know us which device is currently in use and are not in service

    Thanks in advance

    4 - 5 raw partitions...
    What version of oracle?
    Install the OCR + VOTE in gross unit better than OCFS2. If you use 10g to 11 GR 1 material.

    If use 11 GR 2, take the OCR + VOTE in ASM disk group.

    You can check what raw OCR device:
    $ ocrcheck

    VOTEDISK:
    $ crsctl query css votedisk

    On 10g if using the raw device for OCR + votedisk: recommend 1 file = 250M
    11g recommend 1 file = 512M

    Good luck

  • Satellite A200 - how to check the temperature of the processor fan?

    Hi all

    I have a Satellite A200 that my teenagers use a little, or abuse a little! Recently, it would not start up. I suspect the fan and pulled out the fan cleaned and tested the fan on a PSU, worked out well. He put it back together, ran startup repair and now the computer is operating normally. The fan is however not appear to come at all. In the Device Manager it tells me it works very well. I'm all good with the mechanical side of the House, but I'm a quamby operating system! How to check the temp CPU or fan?

    Thought that replace the fan but don't want to go that far just to get no results. Currently using the vacuum on low like an external fan and didn't want to just run the laptop with no cooling for fear of permanent damage. Although children watch movies with her on their doona may have already reached this!

    Any advice would be appreciated.

    Hey mate,

    How to clean the fan exactly? It s advisable to use the jet of compressed air. This could blow the dust of fans cooling and, therefore, it of not necessary to disassemble the laptop.

    In addition if the fan doesn't work anymore it of necessary to replace. You can order spare parts at an authorized service provider.

  • Check if the device is connected

    Hello

    I'm developing an application where the use cDAQ-9174 with modules OR 9401, NI 9205 and NI 9219. I remember the last State, including the setting of the device in the xml file, and channels last parameter is loaded when the application starts. I would like to indicate in the front of TOP VI that the cDAQ and the modules are connected. Let's say by LED commissioning. Y at - there no way how to check if the device is connected by programming?

    Here's how you can check a connected device.

  • How to check the firmware version?

    Hello

    How to check the version of firmware on my device?

    Help, please!

    Thank you

    Hello mohsen122002,

    Hope that this page will help you.

    -Bryan-

Maybe you are looking for