title: Redirect to location settings using cordova in android
body: <p>Here is the requirements what i am trying to implement in my cordova android application</p>
  
  <ol>
  <li><p>When user enters the home page check to see if  the gps is enabled or not.</p></li>
  <li><p>If not enabled i want to point the  user to turn on the location settings.</p></li>
  </ol>
  
  <p>first part is made easily with GPS detector plugin and second part is implemented using the web intent plugin.But its not working as i expected.</p>
  
  <pre><code>if(!gps){
       //gps is disabled try to show the location setting using webintent plugin
      window.plugins.webintent.startActivity(
          {
              action: window.plugins.webintent.ACTION_LOCATION_SOURCE_SETTINGS,
          },
          function() {},
          function() {
              alert('Failed to open URL via Android Intent.');
              console.log("Failed to open URL via Android Intent. URL: " + theFile.fullPath)
          }
      );              
  }
  </code></pre>
  
  <p>I am getting this  error <code>Failed to open URL via Android Intent</code>.</p>