1 | static void androidSetBootProgram(S serviceProgID) { |
2 | O service = androidGetPermanentService(); |
3 | if (service == null) { print("woot no service?"); ret; } |
4 | |
5 | SharedPreferences prefs = cast call(service, "getSharedPreferences"); |
6 | SharedPreferences.Editor editor = prefs.edit(); |
7 | editor.putString("serviceprogid", "" + parseSnippetID(serviceProgID)); |
8 | editor.commit(); |
9 | |
10 | print("Set boot program to " + serviceProgID + "!"); |
11 | } |
Began life as a copy of #1002656
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: | #1004173 |
Snippet name: | androidSetBootProgram |
Eternal ID of this version: | #1004173/1 |
Text MD5: | 8a16560b28bc3778fa4ab51f19744c85 |
Author: | stefan |
Category: | javax / android |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-08 22:58:48 |
Source code size: | 438 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 483 / 487 |
Referenced in: | [show references] |