Android Open Source - xiaomi-miband-android Mi Band






From Project

Back to project page xiaomi-miband-android.

License

The source code is released under:

GNU General Public License

If you think the Android project xiaomi-miband-android 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.motioncoding.miband.model;
/*from  www.ja  va  2s  . c  o m*/
import java.util.Observable;

import com.motioncoding.debugging.L;


public class MiBand extends Observable {

  public String mBTAddress;
  public int mSteps;
  public String mName;
  public Battery mBattery;
  public LeParams mLeParams;
  
  
  
  public void setName(String name) {
    mName = name;
    L.i("setting "+name+" as BLE name");
    setChanged();
    notifyObservers();
  }
  
  public void setSteps(int steps) {
    mSteps = steps;
    L.i("setting "+steps+" steps");
    setChanged();
    notifyObservers();
  }
  
  public void setBattery(Battery battery) {
    mBattery = battery;
    L.i(battery.toString());
    setChanged();
    notifyObservers();
  }

  public void setLeParams(LeParams params) {
    mLeParams = params;
  }
  
}




Java Source Code List

com.motioncoding.debugging.L.java
com.motioncoding.miband.MiActivity.java
com.motioncoding.miband.MiLeParamsActivity.java
com.motioncoding.miband.MiOverviewActivity.java
com.motioncoding.miband.model.Battery.java
com.motioncoding.miband.model.LeParams.java
com.motioncoding.miband.model.MiBand.java
com.motioncoding.miband.view.ColorPickerDialog.java