Вопрос

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?

Это было полезно?

Решение

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).

Другие советы

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 :)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top