可能是alarmManager.setRepeating(AlarmManager.RTC, 0, 1* 1000, pendingIntent);里面参数的问题,你再看下这个函数的参数,比如试下加上System.currentTimeMillis()

解决方案 »

  1.   

    这几个参数没问题啊,AlarmManager.RTC正常的定时器,0是等待时间,1* 1000是执行的时间间隔,pendingIntent要执行的动作
      

  2.   

    你看下系统自带的闹钟的用法:
            long alarmTimeUTC = today.getTimeInMillis();        mMidnightIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_MIDNIGHT), 0);
            AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
            am.setRepeating(AlarmManager.RTC, alarmTimeUTC, AlarmManager.INTERVAL_DAY, mMidnightIntent);
      

  3.   

    RTC模式:只当前系统调用System.currentTimeMillis()方法返回值与第二个参数相等时启动。看你设置的参数,你应该用ELAPSED_REALTIME_WAKEUP替换RTC
      

  4.   

    debug去一步步看看,而且目测,没有注册广播,,,