1 | import android.app.*; |
2 | import android.content.*; |
3 | |
4 | static void androidCancelRepeatingAlarm(S alarmSnippetID) ctex {
|
5 | alarmSnippetID = str(parseSnippetID(alarmSnippetID)); |
6 | Context context = androidContext(); |
7 | AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); |
8 | Class receiverClass = Class.forName("de.tinybrain.javax_allperms.AlarmManagerReceiver");
|
9 | Intent intent = new Intent(context, receiverClass); |
10 | intent.putExtra("snippetID", alarmSnippetID);
|
11 | PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, 0); |
12 | am.cancel(pi); |
13 | } |
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: | 767 / 761 |
| Referenced in: | [show references] |