title: Condition On Button click
body: <p>When the button is clicked it should show me some text. This is working. Whenever the limit on the button click is exceeded, it must show some user defined text. After clicking the button 3 times, it is showing me some text not the user defined one. Here is my code for the OnClickListener:</p>
  
  <pre><code>final Button btnca =(Button) findViewById(R.id.btnca);
  btnca.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
          int c=1;
          if(c &lt;= 3) //if button click for first three times
          {
              new FancyShowCaseView.Builder(Playing.this)
                      .title(questionPlay.get(index).getCorrectAnswer())
                      .build()
                      .show();
              score -= 10;
              txtScore.setText(String.format("%d", score));
              c++;
          }
          if(c&gt;3) //if button click for after three times
          {
              new FancyShowCaseView.Builder(Playing.this)
                      .title("Your Limit Exceed")
                      .build()
                      .show();
          }}
  });
  </code></pre>