Log.d("StatusBarTest", "TestAlertActivity.dismiss"); finish();
super.onPause(); Log.d("StatusBarTest", "onPause: Canceling notification id=" + mId); NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); nm.cancel(mId); finish();
super.onResume(); Log.d("StatusBarTest", "TestAlertActivity.onResume"); Intent intent = getIntent(); mId = intent.getIntExtra("id", -1); Log.d("StatusBarTest", "Remembering notification id=" + mId); setContentView(R.layout.test_alert);