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

17
LINES

< > BotCompany Repo | #1001289 // Android: Random Smiley Animation

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

Transpiled version (213L) is out of date.

!747

m {
  static Activity androidContext;
  static L<S> smileys = litlist("#1001283", "#1001284", "#1001285", "#1001286", "#1001287");
  
  static int minDelayDS = 5, maxDelayDS = 25; // deciseconds
  
  p {
    while (true) {
      new Random random;
      int i = random.nextInt(smileys.size());
      androidShowFullScreenImage(smileys.get(i), 0xFFFFFFFF); // white
      sleep((random.nextInt(maxDelayDS-minDelayDS+1)+minDelayDS)*100);
    }
  }
}

Author comment

Began life as a copy of #1001288

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, ufhdzwgrioxs, vouqrxazstgt

No comments. add comment

Snippet ID: #1001289
Snippet name: Android: Random Smiley Animation
Eternal ID of this version: #1001289/1
Text MD5: 9fab05cde90f70bfe6cf38cc5b6ca484
Author: stefan
Category: javax
Type: JavaX source code (Android)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-06 19:45:06
Source code size: 469 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 609 / 642
Referenced in: [show references]