Well because it will check the state of the network connection and avoid doing a network operation if there is no internet access (no wifi and 3g).
why does Flurry analytics required android.permission.ACCESS_NETWORK_STATE
-
02-06-2022 - |
Question
I am using Flurry analytics in my android application I get this Flurry exception on application startup
E/FlurryAgent(4466): java.lang.SecurityException: ConnectivityService: Neither user 10059 nor current process has android.permission.ACCESS_NETWORK_STATE.
i get this exception when making this call
from the OnStart() method
FlurryAgent.onStartSession(this, FLURRY_TOKEN);
I cannot find any mention of Flurry requiring this "uses permission"
why is this happening?
Solution
OTHER TIPS
It's required by Flurry SDK documentation.
http://support.flurry.com/index.php?title=Guides/f/Publishers/Code/Interstitials/Android
Question "why?" can initiate long discussion, so let's replace "why?" with "MUST" and this can close this shorter :)