// create a row of shot chart coordinates public long createShot(ShotChartCoords shot) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues values = new ContentValues(); values.put(KEY_G_ID, shot.getgid()); values.put(KEY_P_ID, shot.getpid()); values.put(KEY_T_ID, shot.gettid()); values.put(KEY_X, shot.getx()); values.put(KEY_Y, shot.gety()); values.put(KEY_MADE, shot.getmade()); // insert row long shot_id = db.insert(TABLE_SHOT_CHART_COORDS, null, values); shot.setshotid(shot_id); _undoInstance.setshot(shot); if (!_local) { _net.createShot(shot, shot_id); } return shot_id; }