지금 죽지 않는 서비스 즉 백 버튼을 눌러도 계속 실행되고 있는 어플을 제작 중입니다.
Service 부분인 onstartCommand 부분에 찾아서 넣었더니 setLastestEventInfo 부분에서 에러가 뜹니다..메소드가 없다고 .. 어떻게 수정해야지 꺼도 정상적으로 되고 있을까요 .
Notification notification = new Notification(R.drawable.sunny, "서비스 실행됨", System.currentTimeMillis());
notification.setLatestEventInfo(getApplicationContext(), "Screen Service", "Foreground로 실행됨", null);
startForeground(1,notification);