title: Show alert dialog in onProviderDisabled in android LocationListener
body: <p>I need to Use folowing code inside the method onProviderDisabled. But it doesn't last long.
  How can I wait until user respond ?</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(Activity.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) {
                  Intent gpsOptionsIntent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
                  startActivity(gpsOptionsIntent);
              }
          });
          builder.setNegativeButton("Do nothing", new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int id) {
                  dialog.cancel();
              }
          });
          AlertDialog alert = builder.create();
          alert.show();
  </code></pre>
  
  <p>Thanks in advance !!</p>