Created
April 26, 2017 00:14
-
-
Save udacityandroid/d621c1a5ba77b31129b3ef2d954912d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** For this example, assume that | |
* public static final int GENDER_MALE = 1; | |
* public static final int GENDER_FEMALE = 2; | |
**/ | |
String[] projection = { PetEntry.COLUMN_PET_BREED, | |
PetEntry.COLUMN_PET_WEIGHT }; | |
String selection = PetEntry.COLUMN_PET_GENDER + “=?”; | |
String[] selectionArgs = new String[] { String.valueOf(PetEntry.GENDERFEMALE) }; | |
Cursor c = db.query(PetEntry.TABLE_NAME, projection, | |
selection, selectionArgs, | |
null, null, null); |
its easy to write it and display that result
but
Hi!, you forget ';' in last ligne after 'quantyTextView.setText(""+number)};'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i will try it