I have a service that saves information to database every 10 secs.
It stops saying this error
android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 2062)
#################################################################
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))
What causes this and how to prevent this like try and catch statement if it encounters such error, it will just do nothing and will wait the next loop schedule. ty
It stops saying this error
android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 2062)
#################################################################
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))
What causes this and how to prevent this like try and catch statement if it encounters such error, it will just do nothing and will wait the next loop schedule. ty