forked from ldeluca/Metawear-SampleAndroidApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff7b33c
commit 70152b4
Showing
14 changed files
with
584 additions
and
31 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# MetaWear Android App # | ||
|
||
## Version ## | ||
2.5 | ||
|
||
## About ## | ||
This app provides an example of how to use the MetaWear API. It uses the sample BluetoothLeGatt app on the Android developer page and the Nordic nRF Toolbox app as references. | ||
|
||
[http://developer.android.com/samples/BluetoothLeGatt/index.html](http://developer.android.com/samples/BluetoothLeGatt/index.html) | ||
[https://play.google.com/store/apps/details?id=no.nordicsemi.android.nrftoolbox&hl=en](https://play.google.com/store/apps/details?id=no.nordicsemi.android.nrftoolbox&hl=en) | ||
|
||
### Version ### | ||
Current version is: 2.4 | ||
|
||
### Build ### | ||
## Build ## | ||
The API was created with Android Developer Tools v22.6.2-1085508. It is targeted for Android 4.4.2 (API 19) SDK with Android 4.3 (API 18) as the minimum required SDK and requires a JDK compiler compliance level of 1.7. To build the project, you will need to download the MetaWear API and configure the example app to include the API in the build path. More information on configuring the build is available in the "Getting Started" guide, available on the MbientLab website: [https://mbientlab.com/docs/](https://mbientlab.com/docs/). | ||
|
||
By default, the app is configured to refer to the MetaWear API Eclipse project. You may change it to link to the jar instead if you do not plan on modifying the API code. |
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
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
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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ListView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/firmware_version_list" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
</ListView> |
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,162 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright 2014 MbientLab Inc. All rights reserved. | ||
IMPORTANT: Your use of this Software is limited to those specific rights | ||
granted under the terms of a software license agreement between the user who | ||
downloaded the software, his/her employer (which must be your employer) and | ||
MbientLab Inc, (the "License"). You may not use this Software unless you | ||
agree to abide by the terms of the License which can be found at | ||
www.mbientlab.com/terms . The License limits your use, and you acknowledge, | ||
that the Software may not be modified, copied or distributed and can be used | ||
solely and exclusively in conjunction with a MbientLab Inc, product. Other | ||
than for the foregoing purpose, you may not use, reproduce, copy, prepare | ||
derivative works of, modify, distribute, perform, display or sell this | ||
Software and/or its documentation for any purpose. | ||
YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE | ||
PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, | ||
INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, | ||
NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL | ||
MBIENTLAB OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, | ||
STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE | ||
THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED | ||
TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST | ||
PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, | ||
SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY | ||
DEFENSE THEREOF), OR OTHER SIMILAR COSTS. | ||
Should you have any questions regarding your right to use this Software, | ||
contact MbientLab Inc, at www.mbientlab.com. | ||
--> | ||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/accelerometer_detail" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="16dp" > | ||
|
||
<LinearLayout | ||
android:id="@+id/linearLayout1" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" > | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:weightSum="2" > | ||
|
||
<TextView | ||
android:id="@+id/textView1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="0.50" | ||
android:labelFor="@+id/editText1" | ||
android:text="@string/label_settings_device_name" /> | ||
|
||
<EditText | ||
android:id="@+id/editText1" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1.5" | ||
android:hint="@string/label_settings_device_name_hint" | ||
android:inputType="text" > | ||
|
||
</EditText> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:weightSum="2" > | ||
|
||
<TextView | ||
android:id="@+id/textView2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="0.50" | ||
android:labelFor="@+id/editText2" | ||
android:text="@string/label_settings_advertising_interval" /> | ||
|
||
<EditText | ||
android:id="@+id/editText2" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1.5" | ||
android:hint="@string/label_settings_advertising_interval_hint" | ||
android:inputType="number" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:weightSum="2" > | ||
|
||
<TextView | ||
android:id="@+id/textView4" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="0.50" | ||
android:labelFor="@+id/editText4" | ||
android:text="@string/label_settings_advertising_timeout" /> | ||
|
||
<EditText | ||
android:id="@+id/editText4" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1.5" | ||
android:ems="10" | ||
android:hint="@string/label_settings_advertising_timeout_hint" | ||
android:inputType="number" > | ||
|
||
</EditText> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:weightSum="2" > | ||
|
||
<TextView | ||
android:id="@+id/textView3" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="0.50" | ||
android:labelFor="@+id/editText3" | ||
android:text="@string/label_settings_tx_power" /> | ||
|
||
<EditText | ||
android:id="@+id/editText3" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1.5" | ||
android:hint="@string/label_settings_tx_power_hint" | ||
android:inputType="numberSigned" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/LinearLayout1" | ||
style="?android:attr/buttonBarStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" > | ||
|
||
<Button | ||
android:id="@+id/button1" | ||
style="@style/MetaWear.Button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/label_set" /> | ||
|
||
<Button | ||
android:id="@+id/button2" | ||
style="@style/MetaWear.Button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/label_clear" /> | ||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
</ScrollView> |
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
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
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
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
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
Oops, something went wrong.