I added the ExceptionHandler to GameListActivity

This commit is contained in:
2012-07-18 15:02:13 -04:00
parent 67c0bc11a1
commit 5dd35f38f5

View File

@@ -6,6 +6,8 @@
*/ */
package com.TwentyCode.android.ExaltedDice; package com.TwentyCode.android.ExaltedDice;
import com.TwentyCodes.android.exception.ExceptionHandler;
import android.app.Activity; import android.app.Activity;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
@@ -61,6 +63,7 @@ public class GameListActivity extends Activity implements OnClickListener, Datab
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));
setContentView(R.layout.game_list); setContentView(R.layout.game_list);
findViewById(R.id.new_game_button).setOnClickListener(this); findViewById(R.id.new_game_button).setOnClickListener(this);
mList = (ListView) findViewById(android.R.id.list); mList = (ListView) findViewById(android.R.id.list);