Android java NullPointerException
<pre><code>public class Database extends Activity {

private TextView tvInfo = (TextView)findViewById(R.id.tvInfo);
private Button btnInfo = (Button)findViewById(R.id.btnInfo);
</code></pre>

<p>Hello guys, probably this is just an newbie error in java, but why is this throwing me a NPE? I'm just declaring those variables and it gives me an NPE.</p>
