Android Check Internet Connectivity

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

This method is used to check weather WI-Fi is connected or not.

Syntax

  • isNetworkAvailable() : To check if Internet available on device

Parameters

ParameterDetail
ContextA reference of Activity context

Remarks

If internet connected then method will return true or false.



Got any Android Question?