/**
* 文 件 名: MT_UncaughtExceptionHandler.java
* 描 述:
* 版 权: Copyright (c)20010-2011 motone All Rights Reserved.
* 公 司: 摩通科技
* 作 者: 邓丽霞
* 版 本: 1.0
* 创建时间: 2011-4-14
*
* 修改历史:
* 时间 作者 版本 描述
* ------------------------------------------------------------------
* 2011-4-14 邓丽霞 1.0 1.0 Version
*/
package com.eric.test;
import java.lang.Thread.UncaughtExceptionHandler;
import android.content.Context;
import android.util.Log;
public class MyUncaughtExceptionHandler implements UncaughtExceptionHandler {
private Context context;
public MyUncaughtExceptionHandler(Context context) {
this.context = context;
}
public void uncaughtException(Thread thread, Throwable ex) {
android.os.Process.killProcess(android.os.Process.myPid());
// System.exit(10);
}
}