title: Android how to call another Image after 3 times click on same Image?
body: <p>I am developing application on Images.</p>
  
  <p>In that if I click on same image the image will replace by another one that already into my <strong>Drawable</strong></p>
  
  <p>Right now onclick I am able to display only Toast Message; but I want to replace Image. I don't know How to do?
  Any Help and suggestion  appreciable.</p>
  
  <p>you can take it images name as : img1 ,img2 ,img3.</p>
  
  <pre><code>   ImageView imgV = (ImageView) layout.findViewById(R.id.img1);
      imgV.setOnClickListener(new OnClickListener() {
                      public void onClick(View v) {
  
                          if (v.isClickable()) {
                              i++;
                              String ii = new Integer(i).toString();
                              Log.i("Inside", ii);
                              if (ii.equals("3")) {
                                  Toast.makeText(getApplicationContext(), "Call another Image ",Toast.LENGTH_SHORT).show();}
  </code></pre>