User Tools

Site Tools


android_learning:headfirst_android_development_notes:chapter_12

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
android_learning:headfirst_android_development_notes:chapter_12 [2016/04/24 04:00] – [p. 518-520: Code block] mithatandroid_learning:headfirst_android_development_notes:chapter_12 [2016/04/24 04:06] – [Chapter 12] mithat
Line 1: Line 1:
 ====== Chapter 12 ====== ====== Chapter 12 ======
  
-This is just some text to get the section below to clear the Table of Contents. Otherwise the whole code block would appear very narrow. Kludgey for sure, but it gets the job done.  \\+This is just some text to get the section below to clear the Table of Contents. Otherwise the whole code block would appear very narrow. 
 + 
 +Kludgey for sure, but it gets the job done.  \\
  \\   \\ 
  \\   \\ 
Line 304: Line 306:
  
             @Override             @Override
-            public void onItemClick(AdapterView<?> parent, View view, int position, long id) { +            public void onItemClick (AdapterView<?> parent, View view, 
-                if (position == 0) { +                int position, long id) { 
-                    Intent intent = new Intent(TopLevelActivity.this,  +                    if (position == 0) { 
-                        DrinkCategoryActivity.class); +                        Intent intent = new Intent(TopLevelActivity.this,  
-                    startActivity(intent); +                            DrinkCategoryActivity.class); 
-                }+                        startActivity(intent); 
 +                    }
             }             }
         };         };
Line 548: Line 551:
 </file> </file>
  
-===== Logcat =====+===== Debug with the system log =====
 This isn't covered until Chapter 13 in the book, but it's worth using here. This isn't covered until Chapter 13 in the book, but it's worth using here.
  
android_learning/headfirst_android_development_notes/chapter_12.txt · Last modified: 2016/04/24 04:08 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki