我一直在寻找将参数传递给private void setAlarm () {
int id = (int) System.currentTimeMillis();
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, id, intent, PendingIntent.FLAG_UPDATE_CURRENT);
AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, mcurrentTime.getTimeInMillis(), 1000 * 60 * 5, pendingIntent);
Log.d("Time", String.valueOf(mcurrentTime.getTimeInMillis()));
}
的方法
我发现我必须在类中使用ParameterizedThreadStart或封装线程方法,现在我需要知道
示例
ThreadStart()