title: How to enable/disable GPS Programatically in Android 4.4?
body: <pre><code>Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE");
  intent.putExtra("enabled", true);
  getBaseContext().sendBroadcast(intent);`
  </code></pre>
  
  <p>I use this code for Enable GPS but it give me error like this.</p>
  
  <pre><code>java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.location.GPS_ENABLED_CHANGE from pid=1208, uid=10051
  </code></pre>
  
  <p>So anyone give me solution of that.</p>