Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/** 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);
@burobot2016

This comment has been minimized.

Copy link

@burobot2016 burobot2016 commented Feb 11, 2018

i will try it

@burobot2016

This comment has been minimized.

Copy link

@burobot2016 burobot2016 commented Feb 11, 2018

its easy to write it and display that result
but

@Hammad003

This comment has been minimized.

Copy link

@Hammad003 Hammad003 commented Sep 27, 2020

Screenshot (17)

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?

@Zaineb1

This comment has been minimized.

Copy link

@Zaineb1 Zaineb1 commented May 6, 2021

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