5 Jul 2012 10:57 PM #1
how to check which type of wifi connection in ipad
I have developed contact screen page using sencha touch2. my requirement is, based on type of wifi connection like 2G/3G depends on that. I want to disable some button in ipad. can any one provide the best way how to achieve this one using sencha touch2.
5 Jul 2012 11:24 PM #2
You may use Ext.device.Connection property which may helps you identifying connection depending on your needs
alert('Your connection type is: ' + Ext.device.Connection.getType());
- UNKNOWN - Unknown connection
- ETHERNET - Ethernet connection
- WIFI - WiFi connection
- CELL_2G - Cell 2G connection
- CELL_3G - Cell 3G connection
- CELL_4G - Cell 4G connection
- NONE - No network connection
http://docs.sencha.com/touch/2-0/#!/...ice.Connectionsword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
6 Jul 2012 12:44 AM #3