View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#28
Originally Posted by dwould View Post
interesting idea, no idea whether I can query from python whether there is an active data connection. I guess I'll look into it.
python-conic (the binding for libconic) allows you to do this:

http://pymaemo.garage.maemo.org/conic.html
http://maemo.org/api_refs/5.0/5.0-final/libconic/

And to quote from bug 5399:

All network types supported by the device are found as directories in gconf at '/system/osso/connectivity/network_type/', if an application needs them anyway. There is no API in libconic for this, though.
 

The Following 2 Users Say Thank You to thp For This Useful Post: