This may be a stupid question to ask, but still I need to know the exact answer of it. When we create a DB for a particular app and deploy that app on a real device, where is the DB created by the system? On the internal storage or on the SD card?? If its on the internal storage by default, can we shift it to the SD card, because the app might crash due to low internal memory and increasing DB size. I have one DB with a table with 9 columns. Where would be the correct location to store the DB?
Share
If you dont provide any specific path during creating database using
SQLiteOpenHelper, then it will (default) store it in device’s internal memory:However, you may provide your own path/ location too when creating database, for e.g.