public long createPlayByPlay(PlayByPlay pbp) { SQLiteDatabase db = this.getWritableDatabase(); Log.i("INTEG", "starting play by play creation"); ContentValues values = new ContentValues(); values.put(KEY_G_ID, pbp.getgid()); values.put(KEY_ACTION, pbp.getaction()); values.put(KEY_TIME, pbp.gettime()); values.put(KEY_PERIOD, pbp.getperiod()); values.put(KEY_HOME_SCORE, pbp.gethomescore()); values.put(KEY_AWAY_SCORE, pbp.getawayscore()); // insert row long a_id = db.insert(TABLE_PLAY_BY_PLAY, null, values); pbp.setaid(a_id); if (!_local) { Log.i("INTEG", "entering network pbp creation"); _net.createPlayByPlay(pbp, a_id); } return a_id; }