List of usage examples for android.content ContentValues put
public void put(String key, byte[] value)
From source file:Main.java
public static long insert(SQLiteDatabase db, String name, String data) { ContentValues values = new ContentValues(); values.put("data", data); return db.insert(name, null, values); }
From source file:Main.java
public static void insertDrink(SQLiteDatabase db, String name) { ContentValues actValues = new ContentValues(); actValues.put("NAME", name); db.insert(dbName, null, actValues);// ww w . jav a 2 s. c o m }
From source file:Main.java
private static void insertWestcottStart(SQLiteDatabase db, String time) { ContentValues routevalues = new ContentValues(); routevalues.put("TOWARDS_START_TIME_WESTCOTT", time); db.insert("WESTCOTT_START", null, routevalues); }
From source file:Main.java
private static void insertLodiStart(SQLiteDatabase db, String time) { ContentValues routevalues = new ContentValues(); routevalues.put("LODI_TIME", time); db.insert("JAMES_START", null, routevalues); }
From source file:Main.java
private static void insertEastCampusStartSunday(SQLiteDatabase db, String time) { ContentValues routevalues = new ContentValues(); routevalues.put("STARTSTOP_TIME_EASTCAMPUS", time); db.insert("EASTCAMPUS_START_SUNDAY", null, routevalues); }
From source file:Main.java
private static void insertEastCampusStart(SQLiteDatabase db, String time) { ContentValues routevalues = new ContentValues(); routevalues.put("STARTSTOP_TIME_EASTCAMPUS", time); db.insert("EASTCAMPUS_START", null, routevalues); }
From source file:Main.java
private static void insertDrumlinsStart(SQLiteDatabase db, String time) { ContentValues routevalues = new ContentValues(); routevalues.put("TOWARDS_START_TIME_DRUMLINS", time); db.insert("DRUMLINS_START", null, routevalues); }
From source file:Main.java
private final static void updateMeta(Context ctx, Uri uri, String name, long ts) { ContentValues cv = new ContentValues(); cv.put(MediaStore.Images.ImageColumns.DATE_TAKEN, ts); cv.put(MediaStore.Images.ImageColumns.IS_PRIVATE, 1); cv.put(MediaStore.Images.ImageColumns.TITLE, name); ctx.getContentResolver().update(uri, cv, null, null); }
From source file:Main.java
private static void insertLodiStartWeekends(SQLiteDatabase db, String time) { ContentValues routevalues = new ContentValues(); routevalues.put("LODI_TIME", time); db.insert("JAMES_START_WEEKEND", null, routevalues); }
From source file:Main.java
private static void insert(SQLiteDatabase db, String tableName, String name, String description, int resourceId) { ContentValues values = new ContentValues(); values.put("NAME", name); values.put("DESCRIPTION", description); values.put("IMAGE_RESOURCE_ID", resourceId); db.insert(tableName, null, values);// w w w . j a va 2 s .c o m }