Android Open Source - ExampleChopping Wifi Event






From Project

Back to project page ExampleChopping.

License

The source code is released under:

Apache License

If you think the Android project ExampleChopping listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.chopping.example.bus;
/*from w  w w  . j a  v  a2  s.  c o  m*/
/**
 * Event when Wifi status has been changed.
 */
public final class WifiEvent {
  /**True, if current wifi-status is ON.*/
  private boolean mEnable;

  /**
   * Constructor of WifiEvent.
   * @param _isEnable Current wifi-status. True is ON, false is OFF.
   */
  public WifiEvent(boolean _isEnable) {
    mEnable = _isEnable;
  }

  /**Get current wifi-status. True is ON, false is OFF.*/
  public boolean isEnable() {
    return mEnable;
  }
}




Java Source Code List

com.chopping.example.App.java
com.chopping.example.MainActivity.java
com.chopping.example.OtherActivity.java
com.chopping.example.Prefs.java
com.chopping.example.WifiNetworkChangedReceiver.java
com.chopping.example.bus.WifiEvent.java
com.chopping.example.data.DOUser.java
com.chopping.example.data.DOUsers.java