This method is used to execute multiple SQL syntax such as query, update, insert and delete. SQLiteDatabase is the base class for sqlite database in android. SQLiteOpenHelper have getReadableDatabase() and getWritableDatabase() method in order to access to the object SQLiteDatabase, either in read or write mode
Moreover this method is used to update the database schema the most recent. onCreate() invoked if the database doesn’t exist. SQLiteOpenHelper used to determine the name and version of the database that will be used, in this class there is a onCreate() and onUpgrade() method. Database Sqlite : A reliable database which I will discuss in this article.External Storage : such as SD Cards and other external media.
Local cache : if we want to cache data and open the store, we need a method getCacheDir () on the object activity or context.When uninstalling the application, then the internal storage will also be deleted. By default, files will be stored in the internal storage that is part of the application. Internal Storage : locations where we can store files in the internal storage of the device.Shared Preferences : Permanent data storage in the form of key pair.Here are the locations that can be used to store data permanent and most commonly used : There are a lot of data storage options of android. Most applications require a medium for storing information inside.
To learn android sqlite database, it is good we know the various data storage media which are owned by the android. Seegatesite – Today i will share an article about Android Tutorial – Step By Step Learning Android Sqlite Database for Beginner.