title: AlertDialog background activity
body: <p>I have an alert dialog that displays correctly as I intend it to. The problem is that when I trigger the alert from any activity, it opens what appears to be a blank layout then opens the alert dialog box inside the blank layout. I want my alert dialog box to open in the activity that the user is in when they trigger it. This is my code:</p>
  
  <pre><code>AlertDialog dialog = new AlertDialog.Builder(this)
      .setCancelable(false)
      .setView(getLayoutInflater().inflate(R.layout.activity_about_t2m, null))
      .create();  
      dialog.setTitle("About T2M");
      dialog.show();
  </code></pre>
  
  <p>I thought that the problem may be the second argument but how do I even detect the current activity?</p>