我創建了一個對話框,但根據活動工作流它應該觸發onpause,但它不會。出了什麼問題? Android的活動流程:http://developer.android.com/training/basics/activity-lifecycle/pausing.htmlOnPaused not triggered
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
//stopAutoCall = true;
// Handle item selection
// if (item.getTitle().toString().toLowerCase() == "settings")
// {
AlertDialog.Builder alert = new AlertDialog.Builder(this);
alert.setTitle("Number");
alert.setMessage("Put here the number in to call");
alert.show();
}
@Override
public void onPause()
{
super.onPause();
stopAutoCall = true;
}