android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 2062): , while compiling: PRAGMA cache_size ################################################################# Error Code : 2062 (SQLITE_CANTOPEN_EMFILE) Caused By : Application has opened too many files. Maximum of available file descriptors in one process is 1024 in default. (unable to open database file (code 2062): , while compiling: PRAGMA cache_size) ################################################################# at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1221) at android.database.sqlite.SQLiteConnection.executeForLong(SQLiteConnection.java:789) at android.database.sqlite.SQLiteConnection.setCacheSizeFromConfiguration(SQLiteConnection.java:429) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:290) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:213) at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:701) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:272) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:239) at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:1276) at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:1231) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:889) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:879) at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:305) at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:262) at f4.a.j(Unknown Source:0) at com.entitcs.office_attendance.model_classes.GPSTracker.v(Unknown Source:322) at com.entitcs.office_attendance.model_classes.GPSTracker.onLocationChanged(Unknown Source:41) at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:309) at android.location.LocationManager$ListenerTransport.-wrap0(Unknown Source:0) at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:237) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7025) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)