Android execution error in AVD
<p>an anyone look at this simple code (?) and tell me what's wrong please?
I'm a complete beginner to android development and I don't understand why my application doesn't even start. I get an unexpected error.. : (
Here it is:</p>

<pre><code>package applicationTest.ppr.com;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
public class MainClass extends Activity {
    /** Called when the activity is first created. */

    /*Global vars*/
    public static LinearLayout lila;

    @Override
    public void onCreate(Bundle savedInstanceState) {       
        super.onCreate(savedInstanceState);
        lila = (LinearLayout) findViewById(R.id.lilay);
        setContentView(lila);
    }

    public void Shortoast(){new Game(this);}

    public static LinearLayout returnLayout(){return lila;}


}
</code></pre>

<p>The program doesn't even launch, and I think it might have something to do with how I handle the LinearLayout and setContentView();</p>

<p>anyway thanks very much in advance!</p>
