Android Open Source - BestBoard Rest






From Project

Back to project page BestBoard.

License

The source code is released under:

MIT License

If you think the Android project BestBoard listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package digitalgarden.magicmerlin.utils;
/*from w  w w . java2s .c o m*/
public class Rest
  {
  /** Resting time in ms: 1/10 sec */
  static final private long WAITING = 100L;
  
  /** Just waiting a bit */
  static public void aBit()
    {
      try
      {
      Thread.sleep( WAITING );
      } 
      catch (InterruptedException e)
      {
      ;
      }
    }

  /**
   * Just waiting a bit
   * @param millis exactly how many milliseconds?
   */
  static public void millis( int millis )
    {
      try
      {
      Thread.sleep( (long)millis );
      } 
      catch (InterruptedException e)
      {
      ;
      }
    }

  /**
   * Just waiting a bit - inside a loop
   * @param millis all time (in ms) needed by the loop
   * @param fraction steps of the loop
   */
  static public void fraction( int millis, int fraction )
    {
      try
      {
      Thread.sleep( (long)(millis/fraction) );
      } 
      catch (InterruptedException e)
      {
      ;
      }
    }
  }




Java Source Code List

digitalgarden.bestboard.BoardParser.java
digitalgarden.bestboard.Board.java
digitalgarden.bestboard.MainActivity.java
digitalgarden.bestboard.Roller.java
digitalgarden.bestboard.TokenizerTest.java
digitalgarden.magicmerlin.scribe.Scribe.java
digitalgarden.magicmerlin.utils.Keyboard.java
digitalgarden.magicmerlin.utils.Rest.java
digitalgarden.magicmerlin.utils.Screen.java
digitalgarden.magicmerlin.utils.Tokenizer.java