friends,
i am trying to check internetconnectivity in android and using following code
final ConnectivityManager conn_manager = (ConnectivityManager) 
            this.getSystemService(Context.CONNECTIVITY_SERVICE);
            final NetworkInfo network_info = conn_manager.getActiveNetworkInfo();
            if ( network_info != null && network_info.isConnected() ) 
            {
                return true;
            }
            else
            {
                return false;
            }
but it gives me network/ wifi connectivity if wifi is connected it gives me true and if internet is not connected then it also gives me true.
any one guide me what is the solution?