I have a pending intent that does not cancel. I start the service when I login to my app and when they logout I stop it. The code below is located in my application class. Is that the proper place for it to go? I have tried to put it in the MainActivity I have but with the same results in the Application.

```
private PendingIntent mJobPendingIntent;
private final int RQSNUM_SIP = 1337;

public void startJob(){
    LogText.appendLog(TAG + " startJob");
    Intent intent = new Intent(this, JobReceiver.class);
    mJobPendingIntent = PendingIntent.getBroadcast(this, RQSNUM_SIP, intent, PendingIntent.FLAG_ONE_SHOT);
    ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)).setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP
                                                                                        , SystemClock.elapsedRealtime()+7000
                                                                                        , 7000
                                                                                        , mJobPendingIntent);
}

public void stopSipJob(){
    ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)).cancel(mJobPendingIntent);
    LogText.appendLog(TAG + " stopJob");
}

```

I know that stop job gets called but after I log out and call stop job, I look at my settings on the phone and see that the process is still running.

How can I stop this alarm?

Thanks for the help