Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

slydeveloper/android-internet-stats-example

Repository files navigation

Android internet stats - example

Here is a very simple example how to prepare a mechanism for checking internet connection. It allows to detect if device has internet connection and of connection as well (Mobile or Wifi).

Goals

The example application has the following goals:

  • Check if device has internet connection
  • Detect connection type (Mobile or Wifi)
  • Handle system event when internet connection has changed

Solution

  • Example mostly based on the ConnectivityManager which allows get state of network connectivity
  • Register the BroadcastReceiver on action: <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/> for handle any change of connectivity

Screen

Screen

About

Example of internet connection status in Android

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /