alarm一小时一次

 long firstTime = SystemClock.elapsedRealtime(); firstTime += remainingMilisecondsToTopHour; long a=c.getTimeInMillis();  AlarmManager am = (AlarmManager)ctx.getSystemService(Context.ALARM_SERVICE); am.setRepeating(AlarmManager.ELAPSED_REALTIME, c.getTimeInMillis(), 1*60*60*1000, sender);

你可能感兴趣的:(C++,c,C#)