title: android GPS enable when button click
body: <p>this is my Code. ( it make alertdialog to move Settings)
  but I just want to enable GPS when I "ENABLE GPS" button click.
  and Does android alway enable button click when I run app not just run once?</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
  builder.setMessage("Your GPS is disabled! Would you like to enable it?")
  .setCancelable(false)
  .setPositiveButton("Enable GPS",
  new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int id) {
          moveConfigGPS();
      }
  }).setNegativeButton("Do nothing",
  new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int id) {
          dialog.cancel();
      }
  });
  
  AlertDialog alert = builder.create();
  alert.show();
  </code></pre>