static void androidSetBootProgram(S serviceProgID) { O service = androidGetPermanentService(); if (service == null) { print("woot no service?"); ret; } SharedPreferences prefs = cast call(service, "getSharedPreferences"); SharedPreferences.Editor editor = prefs.edit(); editor.putString("serviceprogid", "" + parseSnippetID(serviceProgID)); editor.commit(); print("Set boot program to " + serviceProgID + "!"); }
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: | 484 / 487 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |