title: OnActivityResult dont works in xamarin
body: <p>I'm trying to write app with bluetooth connection. When I got request about turning on bluetooth, I have to choose yes or no, and when I do it then it should show little message like toast, but it doesn't show. I tried to do toast inside function without if still doesn't work, please help</p>
  <pre><code>        BluetoothAdapter bluetoothAdapter = BluetoothAdapter.DefaultAdapter;
          
          if (bluetoothAdapter == null)
          {
              Toast.MakeText(Application.Context, &quot;xxx &quot;, ToastLength.Short).Show();
          }
        
          if (!bluetoothAdapter.IsEnabled)
          {
              Intent wlaczbt = new Intent(BluetoothAdapter.ActionRequestEnable);
              StartActivityForResult(wlaczbt, REQUEST_ENABLE_BT);
              //OnActivityResult(REQUEST_ENABLE_BT, Result.Ok, wlaczbt);
          }
          else
          {
              Toast.MakeText(Application.Context, &quot;xxx &quot;, ToastLength.Short).Show();
          }
  </code></pre>
  <p>OnActivity:</p>
  <pre><code>public void OnActivityResult(int requestCode,int resultCode,Intent data)
  {
      base.OnActivityResult(requestCode, Result.Ok , data);
      Toast.MakeText(Application.Context, &quot;xx &quot;, ToastLength.Short).Show();
      if (requestCode == REQUEST_ENABLE_BT)
      {
          if(resultCode.Equals(Result.Ok))
          {
              Toast.MakeText(Application.Context, &quot;xx &quot;,ToastLength.Short).Show();
          }
          else
          {
              Toast.MakeText(Application.Context, &quot;xx &quot;, ToastLength.Short).Show();
          }
      }
  }
  </code></pre>