Eclipse Android Debugger - Where in my code did I cause the exception?

后端 未结 4 1750
长情又很酷
长情又很酷 2021-02-13 06:38

Admittedly, my question is basically the same as this one, but it seems to have been left unanswered:

NullPointerException in handleStopActivity -- No reference to my co

4条回答
  •  无人及你
    2021-02-13 06:59

    I ran your exact code and LogCat gave me the following exceptions:

    Caused by: java.lang.NullPointerException
        at mypackage.test.TestActivity.onCreate(TestActivity.java:23)
    

    Of course it is the

    iDareYou.byteValue();

    statement. This is clear as a bright day!

    I suggest that you must learn how to use Dalvik Debug Monitor Server in the proper way.

    The log you posted seems pretty useless, did you messed up some of the LogCat filters(it happened to me once)?

    OFFTOPIC: "Where in my code did I cause the exception?" - I think that your question is not well formulated.

    I think that proper name of this question might be - 'How to use Android debugger and LogCat? Some exceptions are not logged properly!'

提交回复
热议问题