Android应用的调试
来源:wenku163.com 资料编号:WK16317448 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9AWK16317448
资料介绍
Android应用的调试(中文7000字,英文4000字)
本章将学习如何处理应用bug。同时也会学习如何使用LogCat、Android Lint以及Eclipse内置的代码调试器。
为练习应用调试,我们先刻意搞点破坏。打开命名为QuizQuizActivity.java文件,在onCreate(Bundle)方法中,注释掉获取TextView组件并赋值给mQuestionTextView变量的那行代码。Debugging Android Apps
In this chapter, you will find out what to do when apps get buggy. You will learn how to use LogCat, Android Lint, and the debugger that comes with Eclipse.
To practice debugging, the first step is to break something. In QuizActivity.java, comment out the code in onCreate(Bundle) where you pull out mQuestionTextView. |