Android Open Source - xiaomi-miband-android Mi Le Params Activity






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;
//  www. j  a  va  2s .c o m
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

import com.motioncoding.miband.model.LeParams;

public class MiLeParamsActivity extends ListActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getActionBar().hide();
    
    LeParams params = (LeParams) getIntent().getParcelableExtra("params");
    
    String[] values = new String[6];
    
    values[0] = String.format("Connection Intervall\n%s ms", params.connInt);
    values[1] = String.format("Connection Intervall Min\n%s ms", params.connIntMin);
    values[2] = String.format("Connection Intervall Max\n%s ms", params.connIntMax);
    
    values[3] = String.format("Advertising Intervall\n%s ms", params.advInt);
    values[4] = String.format("Latency\n%s ms", params.latency);
    values[5] = String.format("Timeout\n%s ms", params.timeout);
    
    
    ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
            android.R.layout.simple_list_item_1, values);
    this.setListAdapter(adapter);
  }
}




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