Error Message :
java.lang.SecurityException: ConnectivityService: Neither user 10153 nor current process has android.permission.ACCESS_NETWORK_STATE.

Solution :

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>