lilzz
lilzz

Reputation: 5413

Debugging a simple Android App

First , I create the skeleton app with activity, and it runs then I add more complicated codes, then the app crashed.

Right now, I disable all other features of all my app except the skeleton,which the onCreate method of activity. I would expect the app would work but it just crashed, it didn't go back to work stage.

On the Console, I don't see red errors as what caused the issue. It just have the pop up message of application has stopped unexpectedly, Please try again. I have no clue why even the skeleton isn't working.

  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

  }

Upvotes: 0

Views: 109

Answers (1)

Gopal Nair
Gopal Nair

Reputation: 840

Open the DDMS perspective and check the LogCat to see what the error is.

See the following link for details about DDMS and how to use it. http://developer.android.com/guide/developing/debugging/ddms.html

Upvotes: 1

Related Questions