I have an app about to go to the market but I have a problem that I do not know how to solve.
When I make an inquiry from the contacts of the phone from the app, if the user has more than 500 contacts, the app remains frozen.
Do you know any way in android studio, to give more memory of the phone to my app and thus avoid this error?
I do the contact consultation to know which contacts on the phone my app already has and thus put them as friends. This way you can invite them inside the app. Thanks
I leave here the error
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals (java.lang.Object)' on a null object reference at en.totdemas.totdemas.Menu $ 40.onPostExecute (Menu.java:956) at en.totdemas.totdemas.Menu $ 40.onPostExecute (Menu.java:925) at android.os.AsyncTask.finish (AsyncTask.java:632) at android.os.AsyncTask.access $ 600 (AsyncTask.java:177) at android.os.AsyncTask $ InternalHandler.handleMessage (AsyncTask.java:645) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:145) at android.app.ActivityThread.main (ActivityThread.java:5942) at java.lang.reflect.Method.invoke (Native Method) at java.lang.reflect.Method.invoke (Method.java:372) at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:1400) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1195)