海はすべてのボディは親切方法Androidアプリケーションで10分ごとにアラームを設定するにはどうすればよいですか?
をalarmManager.setRepeating私
Intent intent = new Intent(this, ConnectionReceiver.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0,
intent, PendingIntent.FLAG_ONE_SHOT);
AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + (1 * 1000), pendingIntent);
Toast.makeText(this, "Alarm set", Toast.LENGTH_LONG).show();//every 10 minutes i want to print the toast
(1 * 1000)を(10 * 60 * 1000)で置き換えます。ここでは、あなたのコードでalarmManagerを設定します。 – Hiral