Problem with my SQLite (SQLiteOpenHelper) : I am creating a sqlite database with android studio. My application closes at the call of my method  "Insertprofile () " in my main. 


My DatabaseManager :

public class DatabaseManager extends SQLiteOpenHelper {

        private static final String DATABASE_NAME = "Userx.db";
        private static final int DATABASE_VERSION = 1;
    SQLiteDatabase db;
        public DatabaseManager( Context context ) {
            super( context, DATABASE_NAME, null, DATABASE_VERSION );
        }

        @Override
        public void onCreate(SQLiteDatabase db) {
            String strSql = "create table User ("
                    + "    id integer primary key autoincrement,"
                    + "    mission integer not null,"
                    + "    day integer not null"
                    + ")";
            db.execSQL( strSql );
            Log.i( "DATABASE", "onCreate invoked" );
        }

        @Override
        public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
            
        }

        public void insertProfil( int mission, int day ) {
            //name = name.replace( "'", "''" );
            String strSql = "INSERT INTO User (mission, day) VALUES ("
                    + mission + ", " + day + ")";
            this.getWritableDatabase().execSQL( strSql );
            Log.i( "DATABASE", "insertScore invoked" );
        }

        public Profil readData() {
            Profil profil = null;
            //REQUEST
            String strSql = "SELECT * from User";
            //CREATE CURSOR WITH REQUEST
            Cursor cursor = this.getReadableDatabase().rawQuery(strSql, null);
            //PUT IN TOP
            cursor.moveToFirst();
            if (!cursor.isAfterLast()) {
                //RECEPT DATA AND CREATE VALUES THIS
                Integer id = cursor.getInt(0);
                Integer mission = cursor.getInt(1);
                Integer day = cursor.getInt(2);
                profil = new Profil(id, mission, day);
                //POSSIBLE CREATE LIST WITH WHILE
            }
            cursor.close();
            return profil;
        }
        public void modifyData(int mission){
            SQLiteDatabase db = this.getWritableDatabase();
            String strSql = "UPDATE User SET mission = " + mission + " WHERE id = " + "1";
            db.execSQL( strSql );
        }
        public void deleteData(){

            String strSql = "DELETE FROM User" ;
            this.getWritableDatabase().execSQL( strSql );
        }
    }


And my Main: 

public class MainActivity extends AppCompatActivity {

    private TextView profil_text;
    private DatabaseManager databaseManager;
    Profil profil;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        profil_text = (TextView) findViewById( R.id.profil_text);
        Log.d("**************1", "onCreate: ");
        databaseManager = new DatabaseManager(this);
        Log.d("**************2", "onCreate: ");
        Log.d("**************3", "onCreate: ");
        databaseManager.modifyData(80);
        Log.d("**************4", "onCreate: ");
        profil = databaseManager.readData();
        Log.d("**************5", "onCreate: ");
        profil_text.setText(Integer.toString(profil.getMission()));
        databaseManager.close();
    }

And my class profil is just simple classe with getter and setter and constructor.

PS: I'm french, my English is bad.