title: Android gps programmatically turning on and turning off
body: <p>i have written a simple gps code , which is turning on  and turning off the gps programmatically in some device(say moto g) but some older version or Samsung duos and some other devices it not turning on gps programmatically .
  please help me regarding this issue,</p>
  
  <p>If  gps is turned on successfully i will get latitude and longitude, so i will use it </p>
  
  <p>and thanks in advance</p>
  
  <blockquote>
    <p>You have to decrease your API level from Manifest File</p>
  </blockquote>