How to debug BOOT_COMPLETE broadcast receiver's “Force Close” crashes?

后端 未结 4 1346
广开言路
广开言路 2021-01-30 18:26

Since the phone restarts and thus gets disconnected from the Eclipse debugger/LogCat while it\'s booting up, how do I see where my boot complete broadcast receiver is crashing?<

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 19:22

    The receiver is only controlling when your code runs (i.e when the phone starts). Whilst debugging, run the code manually. You can resolve 99% of your issues this way and the remaining ones (if any) you can resolve by writing to LogCat so see what your code is doing.

提交回复
热议问题