03-18-2011 02:59 AM
I have an application with downloads video from my server. How can I check to see if the user is connected to the internet so I can gracefully display a message that lets them know they need to connect via wifi/3G/4G to view the video?
I was thinking since I am using jQuery to do a POST to my server and if I get a response back then I can assume that user is connected to the internet. Is this good practice or is there a better way of doing this?
03-28-2011 06:31 PM
I've been looking for something similar but not luck, I wonder if there is an API to check if the wifi is enabled, hope someone can help us out here.
03-30-2011 07:35 AM
You can use the hasDataCoverage() function on the System object
you can also use the blackberry.network property to see what type of network you are on.
03-30-2011 11:28 AM
The network property will give you a comma delimited list of all its connection points.. if it is on WiFi it will be in that list
03-30-2011 12:46 PM
It has the hasCoverage() function.. not the network one.. the first PlayBook will be wifi only