Android Programming The Big Nerd Ranch Guide, 3rd Edition
Exceptions and Stack Traces 77 Figure 4.2 Exception and stack trace in Logcat The report tells you the top-level exception and ...
Chapter 4 Debugging Android Apps 78 Diagnosing misbehaviors Problems with your apps will not always be crashes. In some cases, ...
Logging stack traces 79 The exception that you pass to Log.d(String, String, Throwable) does not have to be a thrown exception t ...
Chapter 4 Debugging Android Apps 80 Setting breakpoints Now you will use the debugger that comes with Android Studio to track d ...
Setting breakpoints 81 Figure 4.5 Stop right there! http://www.ebook3000.com ...
Chapter 4 Debugging Android Apps 82 The debug tool window at the bottom of the screen is now visible. It contains the Frames an ...
Using exception breakpoints 83 Now return your OnClickListener to its former glory. Listing 4.5 Returning to normalcy (QuizActi ...
Chapter 4 Debugging Android Apps 84 Now select Run → View Breakpoints... to pull up the breakpoints dialog, as shown in Figure ...
Android-Specific Debugging 85 Android-Specific Debugging Most Android debugging is just like Java debugging. However, you will r ...
Chapter 4 Debugging Android Apps 86 Figure 4.8 Lint warnings You can select an issue in this list to see more detailed informa ...
Issues with the R class 87 Issues with the R class You are familiar with build errors that occur when you reference resources be ...
Chapter 4 Debugging Android Apps 88 Challenge: Exploring the Layout Inspector For support debugging layout file issues, the lay ...
Challenge: Exploring Allocation Tracking 89 Challenge: Exploring Allocation Tracking The Allocation Tracker tool creates detaile ...
Chapter 4 Debugging Android Apps 90 Figure 4.11 Allocation Tracker report The allocation report shows the count of memory allo ...
91 5. Your Second Activity In this chapter, you will add a second activity to GeoQuiz. An activity controls a screen of informat ...
Chapter 5 Your Second Activity 92 If users choose to view the answer and then return to the QuizActivity and answer the questio ...
Setting Up a Second Activity 93 Setting Up a Second Activity There is a lot to do in this chapter. Fortunately, some of the grun ...
Chapter 5 Your Second Activity 94 You should then see a dialog like Figure 5.4. Set Activity Name to CheatActivity. This is the ...
Creating a new activity 95 Figure 5.5 Diagram of layout for CheatActivity Open activity_cheat.xml from the layout directory and ...
Chapter 5 Your Second Activity 96 Notice the special XML namespace for tools and the tools:text attribute on the TextView widge ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf