Re: [android-developers] Can't solve this problem.

2011-03-24 Thread Justin Anderson
*> Class2 c2 = new Class2(); * Woops... didn't notice that line. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 24, 2011 at 3:15 PM, TreKing wrote: > Class2 c2 = new Class2(); > > -- You received this message because you are subscribed to

Re: [android-developers] Can't solve this problem.

2011-03-24 Thread TreKing
On Wed, Mar 23, 2011 at 7:57 PM, eli wrote: > public class Class2 extends Activity > Class2 c2 = new Class2(); No. You don't create Activities, they're created for you by the system. - TreKing

Re: [android-developers] Can't solve this problem.

2011-03-24 Thread Justin Anderson
What does the stacktrace say? My initial guess is that you aren't calling setContentView in the onCreate method of Class2... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 23, 2011 at 6:57 PM, eli wrote: > FILE MainClass.java > > package xxx

[android-developers] Can't solve this problem.

2011-03-24 Thread eli
FILE MainClass.java package xxx.yyy; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class MainClass extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {