Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.ContentValues;

import android.database.sqlite.SQLiteDatabase;

public class Main {
    public static void insertPlayer(SQLiteDatabase db, String fio, int teamId, String info, int number) {
        ContentValues playerValues = new ContentValues();

        playerValues.put("FIO", fio);
        playerValues.put("TEAM_id", teamId);
        playerValues.put("INFO", info);
        playerValues.put("NUMBER", number);

        db.insert("PLAYERS", null, playerValues);

    }
}