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

Published: 05 December 2017
on channel: 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  


On this page of the site you can watch the video online Android Bangla Tutorial 7.11 : Creating table And database (part-2) | SQLite Database with a duration of hours minute second in good quality, which was uploaded by the user Anisul Islam 05 December 2017, share the link with friends and acquaintances, this video has already been watched 23,937 times on youtube and it was liked by 163 viewers. Enjoy your viewing!