04-21-2011 11:22 AM
I'm trying to work out what kind of data connection i have. My app may want to upload large files which we only want our users to do via a WiFi connection so they aren't incurring large data plan bills. So i want to be able to tell if someone has a 3G connection or if they have a Wifi Connection available for data.
If i use blackberry.network api i just get a string "3GPP, WIFI" regardless of if the wifi and mobile network elements are on and connected or not... this api seems to reflect if the phone has these capabilities and not if it has those capabilities at the current moment in time.The blackberry.system.hasDataCoverage does tell me if the device as a data connection but since it's just a boolean not which type of connection (i.e. 3g, edge or wifi etc). The doc says you can use this api in conjunction with the blackberry.network api to work out which connection but since it just returns 3GPP, WIFI ALL the time i don't see how this is possible.
Can anyone else tell me if they've managed this kind of thing?
04-22-2011 04:20 AM