title: How to turn on and turn off (enable and disable) Location Services programatically in ICS?
body: <p>I'd like to know if it possible to enable and disable Location Services programatically in Android 4.0?</p>
  
  <p>I've found several approaches how to do this for previous versions of Android (for instance, <a href="https://stackoverflow.com/questions/4721449/enable-gps-programatically-like-tasker">this</a> is the most popular link). But these approach does not work for Android ICS.</p>
  
  <p>Also, I understand that an application should not do this but, for instance, default widget does this.</p>
  
  <p>Can anybody clarify if it is possible and how to achieve this?</p>