Just to make this Complete, there some J2SE Code which shows whats
expected:

public final class ThreadLogger implements
Thread.UncaughtExceptionHandler
{
        private final static String LOG_TAG =
ThreadLogger.class.getSimpleName();

        /*
         * (non-Javadoc)
         *
         * @see
         *
java.lang.Thread.UncaughtExceptionHandler#uncaughtException(java.lang
         * .Thread, java.lang.Throwable)
         */
        @Override
        public void uncaughtException(final Thread _thread, final Throwable
_ex)
        {
                System.out.println("uncaughtException, Name " + 
_thread.getName() +
" prio " + _thread.getPriority());
                _ex.printStackTrace();
        }

        public static void main(String[] args)
        {
                Thread.currentThread().setUncaughtExceptionHandler(new
ThreadLogger());
                throw new RuntimeException("You just caught me..");
        }

}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to