NotificationManager mNoti = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
  Notification noti = new Notification(R.drawable.icon6,"SafeEarphone",System.currentTimeMillis());
  noti.flags |= Notification.FLAG_NO_CLEAR;
  
  PendingIntent pending = PendingIntent.getActivity(this, 0 , new Intent(this,SafeEarphone.class), 0);
  noti.setLatestEventInfo(this, "SafeEarphone", "어플이 실행 중입니다.", pending);
  mNoti.notify(1,noti);

위와같이 acticity가아닌 service에 Notification을 만들었습니다.

 

그런데 처음 어플실행하고 설정한 변수들이 알림창으로 어플을 다시 실행했을때는 다시 원상복구가 되버립니다....

 

예를들어..  기본값은 30dB인데 제가 10dB로 맞춰놓고 실행하다가 다시 실행했을때는 30dB로 되돌아가 있는거죠..

 

어떻게 해야 설정한 변수들이 원상복구가 안되게 할 수있나요?^^