title: Black view when starting new thread
body: <p>In my android application I want an automatically refresh every 60 seconds. So I tried it like this: </p>
  
  <pre><code>public void refresh_check() {
          Thread myThread = new Thread()
          {
              int counter = 0;
              @Override
              public void run() {
                  MyActivity.this.runOnUiThread(new Runnable(){
                      @Override
                      public void run() {
                          while (counter &lt; 60) {
                              try {
                                  Thread.sleep(1000);
                                  counter += 1;
                                  System.out.println("Counter: " + counter);
                              } catch (InterruptedException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                              }
                          }
                          refresh();
                      }});
                  super.run();
              }
          };
          myThread.start();       
      }
  </code></pre>
  
  <p>This works in the way that it prints the counter into logcat but in my Application I get a black view. <code>refresh()</code> is just a function with a http request, and this works alone, so the mistake has to be in the thread at any place :/ Can someone help?</p>