title: How can i repeat same activity after user has chosen right option?
body: <pre><code>   ImageView Iv2 = (ImageView)findViewById(R.id.imageView2);
              textId++;
              String imgId = "full_" + textId;
              int Ivid = getResources().getIdentifier(imgId, "drawable", getPackageName());  
              Iv2.setImageResource(Ivid);
              Iv2.setOnTouchListener(new OnTouchListener() {
  
                  @Override
                  public boolean onTouch(View v, MotionEvent event) {
                      // TODO Auto-generated method stub
                      clapping =  MediaPlayer.create(textBasedquiz.this, R.raw.applause);
                      clapping.start();
                      Intent intent = getIntent();
                      overridePendingTransition(0, 0);
                      intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
                      finish();
                      overridePendingTransition(0, 0);
                      startActivity(intent);
                      return true;
                  }
              });
  </code></pre>
  
  <p>*<em>Basically im trying to build an quiz for kids and in this im selecting images randomly i want to restart same code after user has touch on right image so he/she can get another question , but activity must start after sound has been played Please Guys help me i really need your valued comments *</em></p>