8000 GitHub - amrsalah3/NetDetect: An Android library to check actual internet connectivity.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

amrsalah3/NetDetect

Repository files navigation

NetDetect

An Android library to check actual internet connectivity.

How To Use

  1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:
allprojects {
	repositories {
		...
		maven { url 'h
53AA
ttps://jitpack.io' }
	}
}
  1. Add the dependency:
implementation 'com.github.SalahoAmro:NetDetect:1.0.0'
  1. Initialize NetDetect in Application class:
NetDetect.init(this);
  1. Use it anywhere!
NetDetect.check((isConnected -> Toast.makeText(this, isConnected + "", Toast.LENGTH_SHORT).show()));

About

An Android library to check actual internet connectivity.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0