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
android_learning:headfirst_android_development_notes:chapter_12 [2016/04/24 04:06] – [Chapter 12] mithatandroid_learning:headfirst_android_development_notes:chapter_12 [2016/04/24 04:08] (current) – [p. 513-514: Code block] mithat
Line 202: Line 202:
             // Get the name, description, and image for drinkNo:             // Get the name, description, and image for drinkNo:
             Cursor cursor = db.query ("DRINK",             Cursor cursor = db.query ("DRINK",
-                    new String[] { +                    new String[] 
-                        "NAME",  +                        {"NAME", "DESCRIPTION", "IMAGE_RESOURCE_ID", "FAVORITE"},
-                        "DESCRIPTION", +
-                        "IMAGE_RESOURCE_ID",  +
-                        "FAVORITE" +
-                    },+
                     "_id = ?",                     "_id = ?",
                     new String[] {Integer.toString(drinkNo)},                     new String[] {Integer.toString(drinkNo)},
android_learning/headfirst_android_development_notes/chapter_12.1461470806.txt.gz · Last modified: 2016/04/24 04:06 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki