java.io.IOException: open failed: EMFILE (Too many open files)
if you are seeing above errors, then you need to check if you are using okhttp, if yes, then, make all your call to share the same client instance. make a globel instance.
And close reponse if you are using reponse.body()
then you may get above issues when you are using a lot of AsyncTask.
you need to create Executor and limit the threadpool size. then execute your task by: