사용자가 실행하도록 예약 할 때 특정 작업을 실행해야하는 앱을 개발 중입니다. Android 문서에서 다음이 무엇을 의미하는지 잘 모르겠습니다.
triggerAtMillis: time in milliseconds that the alarm should go off, using the appropriate clock (depending on the alarm type)
이것은 set
메소드 문서 의 인용문입니다 .
예를 들어 27.10.2013 18:05에 작업을 실행하려면 밀리 초 단위의 날짜 인 1382810700000을 사용해야합니까? 아니면 지금과 그 시간 사이의 시간을 밀리 초 단위로 사용해야합니까?
예를 들어 알람을 만들고 싶다면 for example-27.10.2013 18:05 you can use try something like this :
Calendar cal = Calendar.getInstance();
cal.set(year, month, day, hourOfDay, minute, second);
경보 서비스 :
AlarmManager alarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, cal .getTimeInMillis(), pendingIntent);
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다