Android Open Source - brainrot Service Starter

From Project

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.

Java Source Code

package jcuenod.brainrot;
/*from  www  . j  a  va 2s .  c om*/
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class ServiceStarter extends BroadcastReceiver {

    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));

Java Source Code List