How to change color of backGround on app load(onCreate())?
<p>I am trying to change r=the color of the back ground on app load. For this I have used something like this :</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final View view= new View(getApplicationContext());
        view.post(new Runnable() {
            @Override
            public void run() {
                view.setBackgroundColor(Color.BLACK);
            }
        });
        addListenerOnButton();
    }
</code></pre>

<p>This does not work. See the emulator screen shot below :
<img src="http://i.stack.imgur.com/3wuIQ.jpg" alt="enter image description here"></p>

<p>As you can see the back ground color is still white . Any ideas on what i can do to rectify this ?</p>
