Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1004169 // androidCancelRepeatingAlarm

JavaX fragment (include)

import android.app.*;
import android.content.*;

static void androidCancelRepeatingAlarm(S alarmSnippetID) ctex {
  alarmSnippetID = str(parseSnippetID(alarmSnippetID));
  Context context = androidContext();
  AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
  Class receiverClass = Class.forName("de.tinybrain.javax_allperms.AlarmManagerReceiver");
  Intent intent = new Intent(context, receiverClass);
  intent.putExtra("snippetID", alarmSnippetID);
  PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, 0);
  am.cancel(pi); 
}

Author comment

Began life as a copy of #1004167

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004169
Snippet name: androidCancelRepeatingAlarm
Eternal ID of this version: #1004169/1
Text MD5: 9d03743108fe15b41a0c5a900225e5c2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-18 18:55:56
Source code size: 588 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 546 / 540
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)