title: How I make an ImageView show-up immediatlly
body: <pre><code>public class MainActivity extends Activity {
     ImageView img;
     MediaPlayer failure;
  
     protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
  
        Button bButton= (Button)findViewById(R.id.blueBtn);
        img = (ImageView)findViewById(R.id.image);
        img.setVisibility(View.VISIBLE);
        failure= MediaPlayer.create(this,R.raw.failure_sound);
  
        bButton.setOnClickListener(new View.OnClickListener(){
          public void onClick(View v){
              img.setVisibility(View.VISIBLE);            
              try {
                  Thread.sleep(10000);
              } catch (InterruptedException e) {
                  e.printStackTrace();
              }
              failure.start();
  
          }
         });
  
        }
  </code></pre>
  
  <p>well thats my code.
  I just want to make that when I press the button it'll show the image
  then wait 1000 miliseconds, and then make a sound.
  BUT(!) unfortunaltly when I press that button: the process waits 1000 ms, and then make the sound and shows the img.</p>
  
  <p>help plz!!!</p>