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

18
LINES

< > BotCompany Repo | #743 // Second counter (on widget)

JavaX source code (Android) [tags: use-pretranspiled] - run with: the app

Libraryless. Click here for Pure Java version (2095L/15K/48K).

!636
!modern

main {
  static O androidContext;
  static S programID;
  static long seconds;

  psvm {
    while (true) {
      ++seconds;
      print(seconds);
    if (androidContext != null)
      updateWidgetWithText("" + seconds);
      Thread. sleep(1000); // rough sleeping :))
    }
  }
}

Author comment

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: 470 / 495
Referenced in: [show references]