From e9a73bbb3c14af340999f70146747787785f4fee Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 19 Dec 2011 18:20:33 +0000 Subject: initial commit --- electicAndroid/.classpath | 7 + electicAndroid/.project | 33 ++ electicAndroid/AndroidManifest.xml | 38 ++ electicAndroid/bin/classes.dex | Bin 0 -> 24576 bytes .../electic/AdapticsBluetooth$ConnectThread.class | Bin 0 -> 2641 bytes .../AdapticsBluetooth$ConnectedThread.class | Bin 0 -> 3061 bytes .../adaptics/electic/AdapticsBluetooth.class | Bin 0 -> 5490 bytes .../adaptics/electic/DeviceListActivity$1.class | Bin 0 -> 2079 bytes .../adaptics/electic/DeviceListActivity$2.class | Bin 0 -> 2522 bytes .../adaptics/electic/DeviceListActivity$3.class | Bin 0 -> 950 bytes .../adaptics/electic/DeviceListActivity.class | Bin 0 -> 5381 bytes .../futureproof/adaptics/electic/Electic$1.class | Bin 0 -> 4136 bytes .../futureproof/adaptics/electic/Electic$2.class | Bin 0 -> 1084 bytes .../com/futureproof/adaptics/electic/Electic.class | Bin 0 -> 7925 bytes .../com/futureproof/adaptics/electic/R$attr.class | Bin 0 -> 382 bytes .../futureproof/adaptics/electic/R$drawable.class | Bin 0 -> 446 bytes .../com/futureproof/adaptics/electic/R$id.class | Bin 0 -> 1611 bytes .../futureproof/adaptics/electic/R$layout.class | Bin 0 -> 542 bytes .../com/futureproof/adaptics/electic/R$menu.class | Bin 0 -> 437 bytes .../futureproof/adaptics/electic/R$string.class | Bin 0 -> 1388 bytes .../bin/com/futureproof/adaptics/electic/R.class | Bin 0 -> 689 bytes electicAndroid/bin/electicAndroid.apk | Bin 0 -> 28259 bytes electicAndroid/bin/resources.ap_ | Bin 0 -> 14541 bytes electicAndroid/default.properties | 11 + .../gen/com/futureproof/adaptics/electic/R.java | 97 ++++ electicAndroid/res/drawable-hdpi/app_icon.png | Bin 0 -> 5589 bytes electicAndroid/res/drawable/app_icon.png | Bin 0 -> 4182 bytes electicAndroid/res/layout/custom_title.xml | 39 ++ electicAndroid/res/layout/device_list.xml | 56 +++ electicAndroid/res/layout/device_name.xml | 21 + electicAndroid/res/layout/main.xml | 62 +++ electicAndroid/res/menu/option_menu.xml | 26 ++ electicAndroid/res/values/strings.xml | 51 ++ .../adaptics/electic/AdapticsBluetooth.java | 520 +++++++++++++++++++++ .../adaptics/electic/DeviceListActivity.java | 213 +++++++++ .../com/futureproof/adaptics/electic/Electic.java | 393 ++++++++++++++++ 36 files changed, 1567 insertions(+) create mode 100644 electicAndroid/.classpath create mode 100644 electicAndroid/.project create mode 100644 electicAndroid/AndroidManifest.xml create mode 100644 electicAndroid/bin/classes.dex create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth$ConnectThread.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth$ConnectedThread.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$1.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$2.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$3.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/Electic$1.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/Electic$2.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/Electic.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/R$attr.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/R$drawable.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/R$id.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/R$layout.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/R$menu.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/R$string.class create mode 100644 electicAndroid/bin/com/futureproof/adaptics/electic/R.class create mode 100644 electicAndroid/bin/electicAndroid.apk create mode 100644 electicAndroid/bin/resources.ap_ create mode 100644 electicAndroid/default.properties create mode 100644 electicAndroid/gen/com/futureproof/adaptics/electic/R.java create mode 100644 electicAndroid/res/drawable-hdpi/app_icon.png create mode 100644 electicAndroid/res/drawable/app_icon.png create mode 100644 electicAndroid/res/layout/custom_title.xml create mode 100644 electicAndroid/res/layout/device_list.xml create mode 100644 electicAndroid/res/layout/device_name.xml create mode 100644 electicAndroid/res/layout/main.xml create mode 100644 electicAndroid/res/menu/option_menu.xml create mode 100644 electicAndroid/res/values/strings.xml create mode 100644 electicAndroid/src/com/futureproof/adaptics/electic/AdapticsBluetooth.java create mode 100644 electicAndroid/src/com/futureproof/adaptics/electic/DeviceListActivity.java create mode 100644 electicAndroid/src/com/futureproof/adaptics/electic/Electic.java (limited to 'electicAndroid') diff --git a/electicAndroid/.classpath b/electicAndroid/.classpath new file mode 100644 index 0000000..6efcbb7 --- /dev/null +++ b/electicAndroid/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/electicAndroid/.project b/electicAndroid/.project new file mode 100644 index 0000000..f9aa56f --- /dev/null +++ b/electicAndroid/.project @@ -0,0 +1,33 @@ + + + BluetoothChat + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/electicAndroid/AndroidManifest.xml b/electicAndroid/AndroidManifest.xml new file mode 100644 index 0000000..caea1eb --- /dev/null +++ b/electicAndroid/AndroidManifest.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + diff --git a/electicAndroid/bin/classes.dex b/electicAndroid/bin/classes.dex new file mode 100644 index 0000000..1016160 Binary files /dev/null and b/electicAndroid/bin/classes.dex differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth$ConnectThread.class b/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth$ConnectThread.class new file mode 100644 index 0000000..0bacc78 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth$ConnectThread.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth$ConnectedThread.class b/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth$ConnectedThread.class new file mode 100644 index 0000000..4fc5fa3 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth$ConnectedThread.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth.class b/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth.class new file mode 100644 index 0000000..7e96169 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/AdapticsBluetooth.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$1.class b/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$1.class new file mode 100644 index 0000000..0f77230 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$1.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$2.class b/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$2.class new file mode 100644 index 0000000..8893047 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$2.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$3.class b/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$3.class new file mode 100644 index 0000000..ddbb75c Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity$3.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity.class b/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity.class new file mode 100644 index 0000000..502440a Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/DeviceListActivity.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/Electic$1.class b/electicAndroid/bin/com/futureproof/adaptics/electic/Electic$1.class new file mode 100644 index 0000000..8c80152 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/Electic$1.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/Electic$2.class b/electicAndroid/bin/com/futureproof/adaptics/electic/Electic$2.class new file mode 100644 index 0000000..79a3bcd Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/Electic$2.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/Electic.class b/electicAndroid/bin/com/futureproof/adaptics/electic/Electic.class new file mode 100644 index 0000000..1b6fba2 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/Electic.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/R$attr.class b/electicAndroid/bin/com/futureproof/adaptics/electic/R$attr.class new file mode 100644 index 0000000..eebe2bc Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/R$attr.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/R$drawable.class b/electicAndroid/bin/com/futureproof/adaptics/electic/R$drawable.class new file mode 100644 index 0000000..043f5b2 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/R$drawable.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/R$id.class b/electicAndroid/bin/com/futureproof/adaptics/electic/R$id.class new file mode 100644 index 0000000..a72686e Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/R$id.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/R$layout.class b/electicAndroid/bin/com/futureproof/adaptics/electic/R$layout.class new file mode 100644 index 0000000..65e3e00 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/R$layout.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/R$menu.class b/electicAndroid/bin/com/futureproof/adaptics/electic/R$menu.class new file mode 100644 index 0000000..f918045 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/R$menu.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/R$string.class b/electicAndroid/bin/com/futureproof/adaptics/electic/R$string.class new file mode 100644 index 0000000..1c3724b Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/R$string.class differ diff --git a/electicAndroid/bin/com/futureproof/adaptics/electic/R.class b/electicAndroid/bin/com/futureproof/adaptics/electic/R.class new file mode 100644 index 0000000..1d95ec5 Binary files /dev/null and b/electicAndroid/bin/com/futureproof/adaptics/electic/R.class differ diff --git a/electicAndroid/bin/electicAndroid.apk b/electicAndroid/bin/electicAndroid.apk new file mode 100644 index 0000000..4b58706 Binary files /dev/null and b/electicAndroid/bin/electicAndroid.apk differ diff --git a/electicAndroid/bin/resources.ap_ b/electicAndroid/bin/resources.ap_ new file mode 100644 index 0000000..550355c Binary files /dev/null and b/electicAndroid/bin/resources.ap_ differ diff --git a/electicAndroid/default.properties b/electicAndroid/default.properties new file mode 100644 index 0000000..66db0d1 --- /dev/null +++ b/electicAndroid/default.properties @@ -0,0 +1,11 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "build.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-10 diff --git a/electicAndroid/gen/com/futureproof/adaptics/electic/R.java b/electicAndroid/gen/com/futureproof/adaptics/electic/R.java new file mode 100644 index 0000000..2c0a7e3 --- /dev/null +++ b/electicAndroid/gen/com/futureproof/adaptics/electic/R.java @@ -0,0 +1,97 @@ +/* AUTO-GENERATED FILE. DO NOT MODIFY. + * + * This class was automatically generated by the + * aapt tool from the resource data it found. It + * should not be modified by hand. + */ + +package com.futureproof.adaptics.electic; + +public final class R { + public static final class attr { + } + public static final class drawable { + public static final int app_icon=0x7f020000; + } + public static final class id { + public static final int alarmBox=0x7f060014; + public static final int button_scan=0x7f060006; + public static final int discoverable=0x7f060022; + public static final int fadcText=0x7f06000b; + public static final int fadcText1=0x7f06000c; + public static final int insecure_connect_scan=0x7f060021; + public static final int new_devices=0x7f060005; + public static final int paired_devices=0x7f060003; + public static final int pmaxBox=0x7f060010; + public static final int pminBox=0x7f060012; + public static final int rb_01=0x7f06001e; + public static final int rb_05=0x7f06001d; + public static final int rb_2=0x7f06001c; + public static final int sadcText=0x7f060008; + public static final int sadcText1=0x7f060009; + public static final int samplespeed_group=0x7f06001b; + public static final int secure_connect_scan=0x7f060020; + public static final int tableLayout1=0x7f06000e; + public static final int tableLayout2=0x7f060016; + public static final int tableRow1=0x7f06000f; + public static final int tableRow2=0x7f060011; + public static final int tableRow3=0x7f060013; + public static final int tableRow4=0x7f060015; + public static final int tableRow5=0x7f060017; + public static final int tableRow6=0x7f060019; + public static final int tableRow7=0x7f06001a; + public static final int tableRow8=0x7f06001f; + public static final int textView1=0x7f060018; + public static final int textView2=0x7f060007; + public static final int textView3=0x7f06000a; + public static final int textView5=0x7f06000d; + public static final int title_left_text=0x7f060000; + public static final int title_new_devices=0x7f060004; + public static final int title_paired_devices=0x7f060002; + public static final int title_right_text=0x7f060001; + } + public static final class layout { + public static final int custom_title=0x7f030000; + public static final int device_list=0x7f030001; + public static final int device_name=0x7f030002; + public static final int main=0x7f030003; + } + public static final class menu { + public static final int option_menu=0x7f050000; + } + public static final class string { + public static final int app_name=0x7f040000; + public static final int bt_not_enabled_leaving=0x7f040003; + public static final int button_scan=0x7f04000d; + public static final int discoverable=0x7f040010; + public static final int insecure_connect=0x7f04000f; + public static final int labelAlarm=0x7f040016; + public static final int label_01=0x7f04001a; + public static final int label_05=0x7f040019; + public static final int label_2=0x7f040017; + public static final int label_PMAX=0x7f040014; + public static final int label_PMIN=0x7f040015; + public static final int label_flags=0x7f040013; + public static final int label_interval=0x7f040018; + public static final int none_found=0x7f04000a; + public static final int none_paired=0x7f040009; + public static final int not_connected=0x7f040002; + /** DeviceListActivity + */ + public static final int scanning=0x7f040007; + /** Options Menu + */ + public static final int secure_connect=0x7f04000e; + public static final int select_device=0x7f040008; + /** BluetoothChat + */ + public static final int send=0x7f040001; + public static final int title_connected_to=0x7f040005; + public static final int title_connecting=0x7f040004; + public static final int title_fadc=0x7f040012; + public static final int title_not_connected=0x7f040006; + public static final int title_other_devices=0x7f04000c; + public static final int title_paired_devices=0x7f04000b; + public static final int title_sadc=0x7f040011; + } +} diff --git a/electicAndroid/res/drawable-hdpi/app_icon.png b/electicAndroid/res/drawable-hdpi/app_icon.png new file mode 100644 index 0000000..8836ff6 Binary files /dev/null and b/electicAndroid/res/drawable-hdpi/app_icon.png differ diff --git a/electicAndroid/res/drawable/app_icon.png b/electicAndroid/res/drawable/app_icon.png new file mode 100644 index 0000000..d3e09a5 Binary files /dev/null and b/electicAndroid/res/drawable/app_icon.png differ diff --git a/electicAndroid/res/layout/custom_title.xml b/electicAndroid/res/layout/custom_title.xml new file mode 100644 index 0000000..57eb6b4 --- /dev/null +++ b/electicAndroid/res/layout/custom_title.xml @@ -0,0 +1,39 @@ + + + + + + \ No newline at end of file diff --git a/electicAndroid/res/layout/device_list.xml b/electicAndroid/res/layout/device_list.xml new file mode 100644 index 0000000..395695f --- /dev/null +++ b/electicAndroid/res/layout/device_list.xml @@ -0,0 +1,56 @@ + + + + + + + +