Created
July 19, 2012 00:16
-
-
Save 40/3139884 to your computer and use it in GitHub Desktop.
BlackBerry WebWorks Wifi/Network Conn Check via HTML5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Please add blackberry.system and blackberry.system.event feature IDs to config.xml | |
| if (!blackberry.system.hasDataCoverage()) { | |
| alert("This app requires access to internet for the content to work. Please turn on Wifi and restart this application"); | |
| } | |
| else{ | |
| alert('Winning'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment