title: Android activity inside dialog
body: <p>I want to start an activity inside a pop-up screen. Are there any suggestions for a quick change?</p>
  
  <pre><code>new AlertDialog.Builder(SearchResults.this)
          .setTitle("Refine") 
          .setItems(/*catNames*/, new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int which) {
                  /* User clicked so do some stuff */
                  String catName = catNames[which];
                  String categoryIds = subCats.get(catName);
              })
              .setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int whichButton) {
                  //do nothing just dispose
              }
          })
          .create().show();
  </code></pre>