Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)
Exceptions and Stack Traces Figure 4.2 Exception and stack trace in Logcat The report tells you the top-level exception and its ...
Chapter 4 Debugging Android Apps Diagnosing misbehaviors Problems with your apps will not always be crashes. In some cases, the ...
Logging stack traces The exception that you pass to Log.d(String, String, Throwable) does not have to be a thrown exception that ...
Chapter 4 Debugging Android Apps Setting breakpoints Now you will use the debugger that comes with Android Studio to track down ...
Setting breakpoints Figure 4.5 Stop right there! ...
Chapter 4 Debugging Android Apps The debug tool window at the bottom of the screen is now visible. It contains the Frames and V ...
Using exception breakpoints Now return your OnClickListener to its former glory. Listing 4.5 Returning to normalcy (QuizActivit ...
Chapter 4 Debugging Android Apps Now select Run → View Breakpoints... to pull up the breakpoints dialog, as shown in Figure 4.7 ...
Android-Specific Debugging Android-Specific Debugging Most Android debugging is just like Java debugging. However, you will run ...
Chapter 4 Debugging Android Apps Figure 4.8 Lint warnings You can select an issue in this list to see more detailed informatio ...
Issues with the R class Issues with the R class You are familiar with build errors that occur when you reference resources befor ...
Chapter 4 Debugging Android Apps Challenge: Exploring the Layout Inspector For support debugging layout file issues, the layout ...
Challenge: Exploring Allocation Tracking Challenge: Exploring Allocation Tracking The Allocation Tracker tool creates detailed r ...
Chapter 4 Debugging Android Apps Figure 4.11 Allocation Tracker report The allocation report shows the count of memory allocat ...
5. Your Second Activity In this chapter, you will add a second activity to GeoQuiz. An activity controls a screen of information ...
Chapter 5 Your Second Activity If users choose to view the answer and then return to the QuizActivity and answer the question, ...
Setting Up a Second Activity Setting Up a Second Activity There is a lot to do in this chapter. Fortunately, some of the grunt w ...
Chapter 5 Your Second Activity You should then see a dialog like Figure 5.4. Set Activity Name to CheatActivity. This is the na ...
Creating a new activity Figure 5.5 Diagram of layout for CheatActivity Open activity_cheat.xml from the layout directory and sw ...
Chapter 5 Your Second Activity Notice the special XML namespace for tools and the tools:text attribute on the TextView widget w ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf