Back to project page brainrot.
The source code is released under:
Apache License
If you think the Android project brainrot listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package jcuenod.brainrot; /*from www . j a va 2s . c om*/ import android.app.AlarmManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class ServiceStarter extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { DBHelper db = new DBHelper(context); AlarmManager alarmManager = (AlarmManager)(context.getSystemService( MainActivity.ALARM_SERVICE )); alarmManager.set(AlarmManager.RTC_WAKEUP, db.getSoonestDueMilliseconds(), MainActivity.getSyncPendingIntent(context)); db.close(); } }