Libraryless. Click here for Pure Java version (2095L/15K/48K).
1 | !636 |
2 | !modern |
3 | |
4 | main {
|
5 | static O androidContext; |
6 | static S programID; |
7 | static long seconds; |
8 | |
9 | psvm {
|
10 | while (true) {
|
11 | ++seconds; |
12 | print(seconds); |
13 | if (androidContext != null) |
14 | updateWidgetWithText("" + seconds);
|
15 | Thread. sleep(1000); // rough sleeping :)) |
16 | } |
17 | } |
18 | } |
Began life as a copy of #1000701
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, hxnwyiuffukg, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, mrjhfnjfopze, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #743 |
| Snippet name: | Second counter (on widget) |
| Eternal ID of this version: | #743/1 |
| Text MD5: | c8608620f51de8f095f2265c82486aa4 |
| Transpilation MD5: | ccf56a61b27fdb497d0e4961e45ed587 |
| Author: | stefan |
| Category: | |
| Type: | JavaX source code (Android) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-08-23 02:11:46 |
| Source code size: | 312 bytes / 18 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 785 / 870 |
| Referenced in: | [show references] |