일정시간 실행1 [Android] AlarmManager 일정시간 이벤트 실행 public void registerAlarm(){ Log.e("###", "registerAlarm"); Intent intent = new Intent(this, AlarmService_Service.class); PendingIntent sender = PendingIntent.getBroadcast(this, 0, intent, 0); try { // 내일 아침 8시 10분에 처음 시작해서, 24시간 마다 실행되게 Date tomorrow = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").parse("2012-02-25 08:10:00"); AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); am.s.. 2016. 1. 29. 이전 1 다음