How to debug Android project
问题 I'm new to the Android framework (using Eclipse) and I have a question about debugging. Recently I did this error in an activity: // The installation button Button button = (Button) findViewById(R.id.preparationInstallButtonID); button.setOnClickListener(this); setContentView(R.layout.preparation); i.e. I tried to add an onclick-event prior the layout had been rendered. This crashed the program, "Sorry, the application xxx has stopped unexpectedly". Running it again, with debug-mode, Eclipse