android 定时发送intent

AlarmManager am = (AlarmManager)cur.getSystemService(Context.ALARM_SERVICE);
        am.set(AlarmManager.RTC, System.currentTimeMillis()+300,
                PendingIntent.getActivity(cur, 0, new Intent(cur,MoreAct.class), 0));

你可能感兴趣的:(定时)