Android Bangla Tutorial 7.11 : Creating table And database (part-2) | SQLite Database

Publié le: 05 décembre 2017
sur la chaîne: Anisul Islam
23,937
163

Learning outcomes
-------------------------------
1) How to upgrade the database
2) how to drop a table

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

try {
Toast.makeText(context,"onUpgrade is called",Toast.LENGTH_SHORT).show();
db.execSQL(DROP_TABLE);
onCreate(db);
}catch (Exception e)
{
Toast.makeText(context,"Exception : "+e,Toast.LENGTH_SHORT).show();
}




}

sql Database :    • MySQL Database Bangla Tutorials Updated fo...  
Subscribe :    / @anisul-islam  
Facebook :   / anisul2010s  
Facebook page :   / studywithanis  


Sur cette page du site, vous pouvez voir la vidéo en ligne Android Bangla Tutorial 7.11 : Creating table And database (part-2) | SQLite Database durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Anisul Islam 05 décembre 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 23,937 fois et il a aimé 163 téléspectateurs. Bon visionnage!