Provide option to select wi-fi or GPRS for network connectivity in android app
===

In my app i want to provide the user with the option to choose wi-fi / GPRS for network connectivity to the web server. May be answers to the following ques solve my prob ... 
1. How to check which is the current default network connectivity option enabled.
2. How to enable wi-fi/GPRS on user selection or (disable the wi-fi if user chooses GPRS - if only this option will be required for GPRS to work)

or is there some other way around to do this ?