Delay actions in android
<p>I want to change the image in <code>imageView</code> after 5 seconds from app start.</p>

<p>This is the code that I tried so far:</p>

<pre><code>public class MainActivity extends Activity {
ImageView screen;
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    screen=(ImageView)findViewById(R.id.imageView1);

    screen.setImageResource(R.drawable.ic_launcher);

    }
}
</code></pre>
