Intent i = new Intent(this, TestService.class);
PendingIntent pi = PendingIntent.getService(this, 0, i, 0);
mCalendar.set(Calendar.HOUR_OF_DAY, 0); mCalendar.set(Calendar.MINUTE, 00); mCalendar.set(Calendar.SECOND, 00);
mManager.setRepeating(AlarmManager.RTC_WAKEUP, mCalendar.getTimeInMillis(), 1000 * 60 * 60 * 3, pi);
알람메니저를 통해서 pendingIntent.getService로 TestService만을 실행시키고 싶은데 이 함수를 부르는 MainActivity도 계속 불립니다. 즉, 어플에서 돌리면 어플이 실행되지 않은 상황에서 저 알람이 울릴 시 service 동작과 함께 Activity가 켜집니다. Activity가 안켜지게 하려면 어떻게 해야할까요?