List of usage examples for android.content ContentValues put
public void put(String key, byte[] value)
From source file:Main.java
private static void insertDataTopic(SQLiteDatabase db, String section, String name, String url, int resourceId) { ContentValues values = new ContentValues(); values.put("SECTION", section); values.put("NAME", name); values.put("URL", url); values.put("IMAGE_RESOURCE_ID", resourceId); db.insert("TOPIC", null, values); }
From source file:Main.java
private static void insertStartTimeDrumlins(SQLiteDatabase db, String startStopName, String startTime) { ContentValues routevalues = new ContentValues(); routevalues.put("START_STOPNAME_DRUMLINS", startStopName); routevalues.put("START_TIME_SU_DRUMLINS", startTime); db.insert("FROMSU_DRUMLINS", null, routevalues); }
From source file:Main.java
private static void insertDrink(SQLiteDatabase db, String name, String description, int resourceId) { ContentValues drinkValues = new ContentValues(); drinkValues.put("NAME", name); drinkValues.put("DESCRIPTION", description); drinkValues.put("IMAGE_RESOURCE_ID", resourceId); db.insert("DRINK", null, drinkValues); }
From source file:Main.java
private static void insertStartTime(SQLiteDatabase db, String startStopName, String startTime) { ContentValues routevalues = new ContentValues(); routevalues.put("START_STOPNAME", startStopName); routevalues.put("START_TIME_FROM_CAMPUS_JAMES", startTime); db.insert("FROMSUROUTE_JAMES", null, routevalues); }
From source file:Main.java
private static void insertSounds(SQLiteDatabase db, String name, String quote, int sound_id_1) { ContentValues soundValues = new ContentValues(); soundValues.put("pNAME", name); soundValues.put("QUOTE", quote); soundValues.put("SOUND_ID_1", sound_id_1); db.insert("SOUNDS", null, soundValues); }
From source file:Main.java
private static void insertStopNames(SQLiteDatabase db, String stopNames) { ContentValues stopNameValues = new ContentValues(); stopNameValues.put("STOP_NAMES", stopNames); db.insert("STOPS_LIST", null, stopNameValues); }
From source file:Main.java
private static void insertDrink(SQLiteDatabase db, String name, String description, int resourceId) { ContentValues drinkValues = new ContentValues(); drinkValues.put("NAME", name); drinkValues.put("DESCRIPTION", description); drinkValues.put("IMAGE_RESOURCE_ID", resourceId); ;// w w w . j a va 2s .c o m db.insert("DRINK", null, drinkValues); }
From source file:Main.java
private static void insertToSUJames(SQLiteDatabase db, String startStopName, String toStopName, int timeGap) { ContentValues routevalues = new ContentValues(); routevalues.put("START_STOP_JAMES_TO_SU", startStopName); routevalues.put("TO_STOP", toStopName); routevalues.put("TIME_GAP", timeGap); db.insert("TOSUROUTE_JAMES", null, routevalues); }
From source file:Main.java
private static void insertPeople(SQLiteDatabase db, String lastName, String name, String bio, int image_id) { ContentValues peopleValues = new ContentValues(); peopleValues.put("LAST_NAME", lastName); peopleValues.put("NAME", name); peopleValues.put("BIO", bio); peopleValues.put("IMAGE_ID", image_id); db.insert("PEOPLE", null, peopleValues); }
From source file:Main.java
/********************************************************************************************** * * Helper method to insert items into the individual muscle group tables of the database * *********************************************************************************************/ private static void insertLift(SQLiteDatabase db, String name, String description, String searchLink, String image_id, String muscleGroup) { ContentValues lift = new ContentValues(); lift.put("NAME", name); lift.put("DESCRIPTION", description); lift.put("SEARCH_LINK", searchLink); lift.put("IMAGE_RESOURCE_ID", image_id); db.insert(muscleGroup, null, lift);/*from w w w . j av a 2 s. c o m*/ }