Hi there. I'm just starting out with android and have two questions:

1) I'm trying to invoke a UI using the following method:

public class Main extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        new BasicUI( ).myView( );
    }
}

public class BasicUI extends Activity {
        public void myView( ) {
            setContentView(R.layout.main);
            // etc...
    }
}

but it crashes with: "Application has stopped unexpectedly". What am I
doing wrong?

2) How do I debug problems like this. I've tried the "adb logcat" but
there weren't any standard Java stack traces from the app crash. I
guess android does something different, what should I be doing or
looking for?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to