我正在尝试进行多次从数据库中获取时间的警报并将其设置为警报,该警报将在同一时间内每天响铃一段指定的持续时间(即:15:00,5天)。这是我的代码:
GROUP = 1
火警:
SELECT users.dloc
FROM users
WHERE users.id in (
SELECT group_members.member_id
FROM group_members
INNER JOIN users on users.id = group_members.group_id
WHERE users.pnum='23101' AND `GROUP` = 1
)
OR users.id IN (
SELECT users.ID
FROM users
WHERE pnum='23101' AND `GROUP` = 0
);
在给出的代码中,我在这里以毫秒为单位接收时间有问题:import java.util.Calendar;
public class OCalendar {
public int vRepeatAfter;
public String vMessage;
public Calendar vCalendar;
/*
* 0 = never stops
*/
public int vStopAfter =0;
public int vRaised = 0;
public void CancelAlarm (int id) {
MainActivity.ALARM_MANAGER.cancel(MainActivity.ARY_PENDING_INTENTS.get(id));
// Reset All
MainActivity.ARY_CALNEDARS.get(id).vRaised = 0;
}
}
。我需要它来设置日历时间。
谢谢!