Got exception determining connectivity


Hello Everyone, pls kindly help me with the below error:
java.lang.SecurityException: ConnectivityService: Neither user 10034 nor current process has android.permission.ACCESS_NETWORK_STATE.


Hello, could you give a more in depth explanation of how you encountered that exception? Looks to me like you have not given your app permission to use the internet.


When you make a search for it, here is the answer:


when my device point to another URL (ip url ) it works fine, but when it point to dns, it shows like that.
and I try to test with browser on device, it show Untrust Security Certificate. I think this is the problem here.
Is there any solution to make it accept it?


pls check my description.


Let's start with the easy things, show us how you initiate our countly sdk.

Also, enable countly logging and show us what the output was then running the application.


I guess your device has CA (certificate authorities) messed up. We cannot help you with that.

But in case you're trying to make self-signed certificates work, I'm afraid our SDK doesn't support that. You can easily set up a valid certificate with Let's Encrypt.


I am new to this, but what I know is, my app does not accept the SSL certificate.
LOG_URL use https
protected void onCreate(Bundle savedInstanceState) {
Countly.sharedInstance().init(this, LOG_URL, API_KEY_LOG , "123@321");





What server URL are you using?