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); |
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
Hello Ma'am: I am from India and I start Web Dev course on Udacity and i am practicing since 1 week,
as I send Screenshot I stucked there I am continuously trying to figure out but i cudn't , so plz tell me should I continue or not?