title: Android button onClick() is slow
body: <p>that takes screenshot from the device screen. It take several seconds before and action will be perfomed and toast message with animation will appear. 
  Here is my code:</p>
  
  <pre><code>    public void onClick(View v) {
              v.startAnimation(animAlpha);
              try {
                  Toast.makeText(GlobalTouchService.this, "Start process", 5000).show();
                  Process sh = Runtime.getRuntime().exec("su", null,null);
                  OutputStream os = sh.getOutputStream();
                  os.write(("/system/bin/screencap -p " + "/sdcard/img.png").getBytes("ASCII"));
                  os.flush();
                  os.close();
                  sh.waitFor();
                  Toast.makeText(GlobalTouchService.this, "Screenshot captured", 5000).show();
              } catch (IOException io){
                  io.printStackTrace();
              } catch (InterruptedException ie){
                  ie.printStackTrace();
              }
  </code></pre>
  
  <p>I can't use bitmaps here. I don't care about slow action, but I want to display something after click immediately (because I want to know that button is clicked). Any suggestions?</p>