title: android call two function in onclick
body: <p>I'm trying to call two functions in the same <code>onClick</code> event. When I click the <code>Button</code> just one function is called and the second is called for the second time I click the <code>Button</code>.</p>
  
  <pre><code>btnSpeak.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
          promptSpeechInput();
          String result =  txtSpeechInput.getText().toString();// Wrong emplacement // TODO: 23/04/2017
          if (result.equals("call")) {
              call("number");
          }
      }
  });
  </code></pre>