title: Update SmartEyeglass display every 40ms
body: <p>I created a bitmap on the screen of my Sony SmartEyeglass like this:</p>
  
  <pre><code>private void updateLayout(){
      this.showBitmap(bitmap);
  }
  </code></pre>
  
  <p>Now I want to update it every 40 milliseconds or so.</p>
  
  <p>I tried calling it again and again from another thread and added <code>this.clearDisplay()</code> but it doesn't work.</p>
  
  <p>How can I achieve regular update of the display?</p>
  
  <p><br>
  <strong>Update:</strong></p>
  
  <p>I used the suggested code below.<br>Result: Stuttering image that overlaps the previous which doesn't get cleared from the screen.</p>
  
  <p>Tried adding <code>canvas.drawRect(new Rect(0, 0, 500, 500), paint);</code> before redrawing.<br>
  Result: It still flickers, but now also won't show the new images.</p>
  
  <p>Does anybody have any experience with real time graphics on SmartEyeglass.
  Reloading the Extension with different message to draw from is not an option!</p>