I am having an issue getting ConnectivityManager:
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
I am using the application context, and I get this error:
Caused by: java.lang.NullPointerException: missing IConnectivityManager
at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:52)
at android.net.ConnectivityManager.<init>(ConnectivityManager.java:1045)
at android.net.MultiSimConnectivityManager.<init>(MultiSimConnectivityManager.java:86)
at android.app.ContextImpl$12.createService(ContextImpl.java:463)
at android.app.ContextImpl$ServiceFetcher.getService(ContextImpl.java:346)
at android.app.ContextImpl.getSystemService(ContextImpl.java:2036)
at android.content.ContextWrapper.getSystemService(ContextWrapper.java:551)
Have you seen this issue? Is there any way to solve it?
Thanks, Diego.