title: Android, Xamarin: Have my app wait for the user input to allow a permission
body: <p>this might be a noob questions but anyway:</p>
  
  <p>I am asking the user to allow certain permissions. However, the app is so quick that it won't wait for the user to deceide whether to allow it or to deny it. It will just continue and then crash since the user didn't even fully read the pop up. This is the part of the code:</p>
  
  <pre><code>        if ((int)Build.VERSION.SdkInt &lt; 23) // for phones that don't need permissions at runtime 
  
          {
              var GPS = new FindTheLocation(this);
              GPS.InitializeLocationManager();
              GPS.StartLocationUpdates();
          } else
          {
              Android.Support.V4.App.ActivityCompat.RequestPermissions(this, new String[] {
                                                                                            Android.Manifest.Permission.AccessFineLocation,
                                                                                            Android.Manifest.Permission.AccessMockLocation,
                                                                                            Android.Manifest.Permission.AccessCoarseLocation
                                                                                          }, 1);
  
                  var GPS = new FindTheLocation(this);
                  GPS.InitializeLocationManager();
                  GPS.StartLocationUpdates();
                  return;
  
          }
  </code></pre>
  
  <p>How do I get my app to stop and wait for a definitv input? </p>
  
  <p>THANKS :)´
  EDIT:</p>
  
  <p>And yes, I am aware of maybe putting the methods into the OnResume. But I was just wondering if there is any other way round that. </p>