Skip to content

Commit

Permalink
Imported version 2.0 of the sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
scaryghost committed Jul 16, 2014
1 parent dd11dca commit 2886563
Show file tree
Hide file tree
Showing 129 changed files with 14,655 additions and 583 deletions.
55 changes: 50 additions & 5 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mbientlab.metawear"
package="com.mbientlab.metawear.app"
android:versionCode="1"
android:versionName="1.0" >

Expand All @@ -17,19 +17,64 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >

<service android:name="com.mbientlab.metawear.api.MetaWearBleService" />
<service
android:name="no.nordicsemi.android.nrftoolbox.dfu.DfuService"
android:exported="true"
android:label="@string/dfu_service_title" >
<intent-filter>
<action android:name="no.nordicsemi.android.action.DFU_UPLOAD" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>

<activity
android:name="com.mbientlab.metawear.app.BLEScannerActivity"
android:label="@string/app_name" >
android:name="com.mbientlab.metawear.app.ModuleListActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.mbientlab.metawear.app.BLEDeviceController">
android:name="com.mbientlab.metawear.app.ModuleDetailActivity"
android:label="@string/title_module_detail"
android:parentActivityName="com.mbientlab.metawear.app.ModuleListActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.mbientlab.metawear.app.ModuleListActivity" />
</activity>

<!-- Plug-in activities -->
<activity
android:name="no.nordicsemi.android.nrftoolbox.dfu.DfuActivity"
android:icon="@drawable/ic_dfu_feature"
android:label="@string/dfu_feature_title" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name="no.nordicsemi.android.nrftoolbox.dfu.settings.SettingsActivity"
android:label="@string/dfu_settings_title" />
<activity
android:name="no.nordicsemi.android.nrftoolbox.dfu.NotificationActivity"
android:label="@string/dfu_feature_title" />
<activity
android:name="no.nordicsemi.android.nrftoolbox.dfu.DfuInitiatorActivity"
android:label="@string/dfu_service_title"
android:noHistory="true"
android:theme="@style/AppTheme.Translucent" >
<intent-filter>
<action android:name="no.nordicsemi.android.action.DFU_UPLOAD" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service android:name="com.mbientlab.metawear.api.MetaWearBLEService" />
</application>

</manifest>
Binary file added assets/fonts/trebuc.ttf
Binary file not shown.
Binary file added assets/fonts/trebucbd.ttf
Binary file not shown.
Binary file added libs/nrf-logger-v1.2.jar
Binary file not shown.
Binary file added res/drawable-hdpi/app_drive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/app_file_manager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/app_google_play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/app_total_commander.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/drawer_shadow.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_ab_back_holo_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_dfu_feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_drawer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_menu_about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_menu_moreoverflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_menu_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_rssi_0_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_rssi_1_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_rssi_2_bars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_rssi_3_bars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/item_background_light_n.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/item_background_light_p.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/list_divider_holo_light.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/stat_dfu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-land-xhdpi/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-land-xhdpi/nordic_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/drawer_shadow.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_dfu_feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_help.png
Binary file added res/drawable-xhdpi/ic_mcp_feature_fg.png
Binary file added res/drawable-xhdpi/ic_menu_about.png
Binary file added res/drawable-xhdpi/ic_menu_moreoverflow.png
Binary file added res/drawable-xhdpi/ic_menu_settings.png
Binary file added res/drawable-xhdpi/item_background_light_n.9.png
Binary file added res/drawable-xhdpi/item_background_light_p.9.png
Binary file added res/drawable-xhdpi/list_divider_holo_light.9.png
Binary file added res/drawable-xhdpi/nordic_logo_horiz.png
Binary file added res/drawable-xhdpi/stat_dfu.png
15 changes: 15 additions & 0 deletions res/drawable/app_file_browser.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="0" android:drawable="@drawable/app_drive" />
<item android:maxLevel="1" android:drawable="@drawable/app_file_manager" />
<item android:maxLevel="2" android:drawable="@drawable/app_total_commander" />
<item android:maxLevel="3" android:drawable="@drawable/app_google_play" />
</level-list>
15 changes: 15 additions & 0 deletions res/drawable/button.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/button_p" android:state_pressed="true"/>
<item android:drawable="@drawable/button_n"/>

</selector>
21 changes: 21 additions & 0 deletions res/drawable/button_n.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >

<corners android:radius="10dp" />

<solid android:color="#000000" />

<stroke
android:width="5dp"
android:color="#00000000" />

</shape>
21 changes: 21 additions & 0 deletions res/drawable/button_p.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >

<corners android:radius="10dp" />

<solid android:color="#000000" />

<stroke
android:width="5dp"
android:color="#99009CDE" />

</shape>
15 changes: 15 additions & 0 deletions res/drawable/ic_feature_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/ic_feature_bg_p" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_feature_bg_n"/>

</selector>
14 changes: 14 additions & 0 deletions res/drawable/ic_feature_bg_n.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="10dp"/>

<solid android:color="#0099da"/>
</shape>
14 changes: 14 additions & 0 deletions res/drawable/ic_feature_bg_p.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="10dp"/>

<solid android:color="#0081b7"/>
</shape>
15 changes: 15 additions & 0 deletions res/drawable/ic_feature_small_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/ic_feature_small_bg_p" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_feature_small_bg_n"/>

</selector>
16 changes: 16 additions & 0 deletions res/drawable/ic_feature_small_bg_n.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="3dp"/>

<solid android:color="#0099da"/>

<size android:width="24dp" android:height="24dp"/>
</shape>
16 changes: 16 additions & 0 deletions res/drawable/ic_feature_small_bg_p.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="3dp"/>

<solid android:color="#0081b7"/>

<size android:width="24dp" android:height="24dp"/>
</shape>
13 changes: 13 additions & 0 deletions res/drawable/ic_mcp_feature_small.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_feature_small_bg" />
<item android:drawable="@drawable/ic_mcp_feature_fg" />
</layer-list>
15 changes: 15 additions & 0 deletions res/drawable/ic_rssi_bar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="10" android:drawable="@drawable/ic_rssi_0_bar" />
<item android:maxLevel="28" android:drawable="@drawable/ic_rssi_1_bar" />
<item android:maxLevel="45" android:drawable="@drawable/ic_rssi_2_bars" />
<item android:maxLevel="100" android:drawable="@drawable/ic_rssi_3_bars" />
</level-list>
15 changes: 15 additions & 0 deletions res/drawable/item_background_light.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
The information contained herein is property of Nordic Semiconductor ASA.
Terms and conditions of usage are described in detail in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Licensees are granted free, non-transferable use of the information. NO WARRANTY of ANY KIND is provided.
This heading must NOT be removed from the file.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/item_background_light_p" android:state_pressed="true"/>
<item android:drawable="@drawable/item_background_light_n"/>

</selector>
Loading

0 comments on commit 2886563

Please sign in to comment.