title: android imgeview pause and clear
body: <p>I have this code and I'm trying to read 2 images from the SD card and I don't know how to pause between the 2 images that I can have enough time to see each 1 of them. Also, I don't know how to clear the <code>ImgeView</code> after I display the 2 images</p>
  <p>This is how I want it to go:</p>
  <pre><code>load first image -&gt; wait for 5 sec -&gt; load sec image-&gt; wait for 5 sec clear the ImageView
  </code></pre>
  <p><strong>MainActivity.java</strong></p>
  <pre><code>import android.app.Activity;
  import android.graphics.Bitmap;
  import android.graphics.BitmapFactory;
  import android.os.Bundle;
  import android.widget.ImageView;
  
  public class ReadfromSD extends Activity
  {
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          String imageInSD = &quot;/sdcard/Hanud/AD2.jpg&quot;;
          Bitmap bitmap = BitmapFactory.decodeFile(imageInSD);
          ImageView myImageView = (ImageView) findViewById(R.id.imageview1);
          myImageView.setImageBitmap(bitmap);
  
          String imageInSD2 = &quot;/sdcard/Hanud/AD1.jpg&quot;;
          Bitmap bitmap2 = BitmapFactory.decodeFile(imageInSD2);
          ImageView myImageView1 = (ImageView) findViewById(R.id.imageview1);
          myImageView1.setImageBitmap(bitmap2);
      }
  }
  </code></pre>
  <p><strong>activity_main.xml</strong></p>
  <pre><code>&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;fill_parent&quot;
      android:orientation=&quot;vertical&quot;&gt;
  
      &lt;TextView
          android:layout_width=&quot;fill_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:text=&quot;@string/hello&quot; /&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/imageview1&quot;
          android:layout_width=&quot;fill_parent&quot;
          android:layout_height=&quot;fill_parent&quot;
          android:layout_gravity=&quot;center&quot;
          android:scaleType=&quot;center&quot; /&gt;
      
  &lt;/LinearLayout&gt;
  </code></pre>