DEV Community

petersafwat
petersafwat

Posted on

Alarm manager doesn't reschedule after reboot even when added in on receive

I registered my receiver in manifest with intent filter(action.BOOT_COMPLETED), but after reboot my service called just once, and never called again, Can't figure out what's the problem.

here is my code

main activity

public class MainActivity extends AppCompatActivity {

Button startButton,stopButton;
static AlarmManager alarm;
static PendingIntent pIntent;
EditText numberText;
TextView

Top comments (0)