Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/omidhaqi/kotlinnetworkchecker


https://github.com/omidhaqi/kotlinnetworkchecker

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Kotlin App Network Checker

1. copy NetworkChecker.kt in the folder that MainActivity.kt exist and add your package name in the first line of the file.

2. Add this lines in AndroidManifest.xml.

```bash


```
3. Use this Condition for check network.

```bash
if ( NetworkChecker(this).isInternetConnected ) {
Toast.makeText(this, "Network is connected", Toast.LENGTH_SHORT).show()
}else{
Toast.makeText(this, "Network is not connected", Toast.LENGTH_SHORT).show()

}
```