0
ごとに数分を誰かが私がやっているかもしれないものにすることができた後、私は2時間後に実行すべき活動のOnCreateのが、その走行時のアラームマネージャを作成していますが間違っていますか?アンドロイド:アラームマネージャーの失火
public class DrawerActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_drawer_menu);
ButterKnife.bind(this);
setUpFitnessAlarm();
}
}
private void setUpFitnessAlarm(){
Intent alarmIntent = new Intent(DrawerActivity.this, GoogleFitAutoStart.class);
pendingIntent = PendingIntent.getBroadcast(DrawerActivity.this, 0, alarmIntent, 0);
int wkupTime;
wkupTime =72000;
Log.i(TAG,"Default timer fetch : "+wkupTime);
manager.setInexactRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), wkupTime, pendingIntent);
}
最後のパラメータを指摘していただきありがとうございます。ミリ秒です。私は迷っていました。 – Sutirth