Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Upload. Access Steps, Battery and LE Params. Not very stable …
…yet.
- Loading branch information
Paul Gavrikov
committed
Dec 20, 2014
0 parents
commit 5cd686e
Showing
489 changed files
with
25,830 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.47 KB
...ndroid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/AnalogClock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.12 KB
...e.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/AutoCompleteTextView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.28 KB
...com.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/Button.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.6 KB
...droid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/CalendarView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.23 KB
...m.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/CheckBox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.08 KB
...id.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/CheckedTextView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.24 KB
...s/com.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/Date.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+814 Bytes
...droid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/DigitalClock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.45 KB
.../com.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/Email.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+302 Bytes
...ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ExpandableListView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.25 KB
....android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/LargeText.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+302 Bytes
...m.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ListView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.22 KB
...android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/MediumText.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.48 KB
...ipse.adt/palette-preview-r16b-21-apptheme-nexus10/MultiAutoCompleteTextView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.79 KB
...roid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/MultilineText.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+840 Bytes
...com.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/Number.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.14 KB
...roid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/NumberDecimal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+867 Bytes
...droid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/NumberSigned.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+354 Bytes
...m.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/Password.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.13 KB
...id.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/PasswordNumeric.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.82 KB
...android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/PersonName.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.62 KB
.../com.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/Phone.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.08 KB
....android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/PlainText.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.78 KB
...roid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/PostalAddress.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+820 Bytes
....eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ProgressBarHorizontal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.58 KB
...d.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ProgressBarLarge.png
Oops, something went wrong.
Binary file added
BIN
+1.25 KB
....ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ProgressBarNormal.png
Oops, something went wrong.
Binary file added
BIN
+410 Bytes
...d.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ProgressBarSmall.png
Oops, something went wrong.
Binary file added
BIN
+1.02 KB
....ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/QuickContactBadge.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...ndroid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/RadioButton.png
Oops, something went wrong.
Binary file added
BIN
+1.92 KB
...android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/RadioGroup.png
Oops, something went wrong.
Binary file added
BIN
+3.88 KB
....android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/RatingBar.png
Oops, something went wrong.
Binary file added
BIN
+1.6 KB
...om.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/SeekBar.png
Oops, something went wrong.
Binary file added
BIN
+1.05 KB
...ndroid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/SmallButton.png
Oops, something went wrong.
Binary file added
BIN
+783 Bytes
....android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/SmallText.png
Oops, something went wrong.
Binary file added
BIN
+741 Bytes
...com.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/Switch.png
Oops, something went wrong.
Binary file added
BIN
+1.13 KB
...m.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/TextView.png
Oops, something went wrong.
Binary file added
BIN
+1.49 KB
...s/com.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/Time.png
Oops, something went wrong.
Binary file added
BIN
+760 Bytes
...droid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ToggleButton.png
Oops, something went wrong.
Binary file added
BIN
+5.07 KB
...android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ZoomButton.png
Oops, something went wrong.
Binary file added
BIN
+5 KB
...droid.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/ZoomControls.png
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...s/com.android.ide.eclipse.adt/palette-preview-r16b-21-apptheme-nexus10/preview.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
background=#ffffff | ||
foreground=#000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*** SESSION Dec 19, 2014 23:01:54.22 ------------------------------------------- | ||
*** SESSION Dec 19, 2014 23:18:34.28 ------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
37 changes: 37 additions & 0 deletions
37
.metadata/.plugins/org.eclipse.core.resources/.history/0/a06de7faec870014196aa5e86be5823c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="${relativePackage}.${activityClass}" > | ||
|
||
<ProgressBar | ||
android:id="@+id/laoding" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" /> | ||
|
||
<TextView | ||
android:id="@+id/text_steps" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="32dp" | ||
android:fontFamily="sans-serif-light" | ||
android:gravity="center" | ||
android:text="8888" | ||
android:textAppearance="?android:attr/textAppearanceLarge" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentTop="true" | ||
android:layout_below="@+id/text_steps" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="32dp" | ||
android:fontFamily="sans-serif-light" | ||
android:gravity="center" | ||
android:text="steps today" /> | ||
|
||
</RelativeLayout> |
20 changes: 20 additions & 0 deletions
20
.metadata/.plugins/org.eclipse.core.resources/.history/1/70b49fdad98700141885aa2aa9523af4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<resources> | ||
|
||
<!-- | ||
Base application theme, dependent on API level. This theme is replaced | ||
by AppBaseTheme from res/values-vXX/styles.xml on newer devices. | ||
--> | ||
<style name="AppBaseTheme" parent="android:Theme.Light"> | ||
<!-- | ||
Theme customizations available in newer API levels can go in | ||
res/values-vXX/styles.xml, while customizations related to | ||
backward-compatibility can go here. | ||
--> | ||
</style> | ||
|
||
<!-- Application theme. --> | ||
<style name="AppTheme" parent="AppBaseTheme"> | ||
<!-- All customizations that are NOT specific to a particular API-level can go here. --> | ||
</style> | ||
|
||
</resources> |
46 changes: 46 additions & 0 deletions
46
.metadata/.plugins/org.eclipse.core.resources/.history/1/d0e8eaf4df8700141885aa2aa9523af4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.motioncoding.miband; | ||
|
||
import android.app.Activity; | ||
import android.bluetooth.BluetoothAdapter; | ||
import android.bluetooth.BluetoothDevice; | ||
import android.bluetooth.BluetoothGatt; | ||
import android.bluetooth.BluetoothGattCallback; | ||
import android.bluetooth.BluetoothManager; | ||
import android.content.Context; | ||
import android.os.Bundle; | ||
|
||
public class MiOverviewActivity extends Activity { | ||
|
||
private String mDeviceAddress; | ||
private BluetoothManager mBluetoothManager; | ||
private BluetoothAdapter mBluetoothAdapter; | ||
private BluetoothDevice mMiBand; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
getActionBar().hide(); | ||
mDeviceAddress = getIntent().getStringExtra("address"); | ||
setContentView(R.layout.activity_mi_overview); | ||
mBluetoothManager = ((BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE)); | ||
mBluetoothAdapter = mBluetoothManager.getAdapter(); | ||
mMiBand = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); | ||
mMiBand.connectGatt(this, false, this); | ||
} | ||
|
||
@Override | ||
public void onResume() { | ||
super.onResume(); | ||
|
||
} | ||
|
||
@Override | ||
public void onPause() { | ||
super.onPause(); | ||
} | ||
|
||
private BluetoothGattCallback mGattCallback = new BluetoothGattCallback() { | ||
|
||
}; | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
.metadata/.plugins/org.eclipse.core.resources/.history/10/c07a171bed870014196aa5e86be5823c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="${relativePackage}.${activityClass}" > | ||
|
||
<ProgressBar | ||
android:id="@+id/laoding" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" /> | ||
|
||
<TextView | ||
android:id="@+id/text_steps" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="32dp" | ||
android:fontFamily="sans-serif-light" | ||
android:gravity="center" | ||
android:text="8888" | ||
android:textAppearance="?android:attr/textAppearanceLarge" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentTop="true" | ||
android:layout_below="@+id/text_steps" | ||
android:layout_centerHorizontal="true" | ||
android:fontFamily="sans-serif-light" | ||
android:gravity="center" | ||
android:text="steps today" /> | ||
|
||
</RelativeLayout> |
26 changes: 26 additions & 0 deletions
26
.metadata/.plugins/org.eclipse.core.resources/.history/13/603c9935db8700141885aa2aa9523af4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="#414650" | ||
tools:context="${relativePackage}.${activityClass}" > | ||
|
||
<ImageView | ||
android:id="@+id/imageView1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" | ||
android:src="@drawable/mili_vertical_icon" /> | ||
|
||
<TextView | ||
android:id="@+id/textView1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" | ||
android:text="Looking for MiBand" | ||
android:paddingBottom="50dp" | ||
android:textAppearance="?android:attr/textAppearanceLarge" /> | ||
|
||
</RelativeLayout> |
25 changes: 25 additions & 0 deletions
25
.metadata/.plugins/org.eclipse.core.resources/.history/14/20df9f7bdb8700141885aa2aa9523af4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="#414650" | ||
tools:context="${relativePackage}.${activityClass}" > | ||
|
||
<ImageView | ||
android:id="@+id/image_miscan" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" | ||
android:src="@drawable/searching_mili_icon" /> | ||
|
||
<TextView | ||
android:layout_below="@+id/image_miscan" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" | ||
android:fontFamily="sans-serif-light" | ||
android:text="Looking for MiBand"/> | ||
|
||
</RelativeLayout> |
Oops, something went wrong.