종료버튼을 통해서
onDestroy();
this.finish();
를 통해서 앱을 종료하면
@Override
protected void onDestroy(){
super.onDestroy();
NotificationManager NM = (NotificationManager)
getSystemService(NOTIFICATION_SERVICE);
NM.cancel(MainActivity.NAPNOTI);
}
에 의해서 알림도 같이 사라지는데요
recent app에는 그대로 남아있습니다
종료시 recent app서도 사라지게 할 수 있는 방법이 없을까요?
(참고로 이건 아닙니다 -> android:excludeFromRecents="true")