我想在弹出式屏幕中开始一个活动.有什么建议来快速改变吗?
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",int whichButton) { //do nothing just dispose } }) .create().show();