Android: app is crashing
<p>This is my code : </p>

<pre><code>public void onCreate(Bundle savedInstanceState)
{
   super.onCreate(savedInstanceState);
   TextView editTextDay = (TextView)findViewById(R.id.editTextDay);
   editTextDay.setVisibility(8);    //GONE
   setContentView(R.layout.main);
}
</code></pre>

<p>without the line " editTextDay.setVisibility(8); " the app doesn't crash.</p>

<p>any idea on what's wrong ?</p>
