Permalink
Browse files

Initial commit.

  • Loading branch information...
0 parents commit 988eb841d2ed1a770dbd3ba4474352ba38c7156c @awinograd committed Jun 3, 2012
Showing with 1,627 additions and 0 deletions.
  1. +8 −0 .classpath
  2. +33 −0 .project
  3. +4 −0 .settings/org.eclipse.jdt.core.prefs
  4. +39 −0 AndroidManifest.xml
  5. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$1.class
  6. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$2.class
  7. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$3.class
  8. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$4.class
  9. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$5.class
  10. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$6.class
  11. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$7.class
  12. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$8.class
  13. BIN bin/classes/com/winograd/mp3remote/BluetoothChat$9.class
  14. BIN bin/classes/com/winograd/mp3remote/BluetoothChat.class
  15. BIN bin/classes/com/winograd/mp3remote/BluetoothChatService$AcceptThread.class
  16. BIN bin/classes/com/winograd/mp3remote/BluetoothChatService$ConnectThread.class
  17. BIN bin/classes/com/winograd/mp3remote/BluetoothChatService$ConnectedThread.class
  18. BIN bin/classes/com/winograd/mp3remote/BluetoothChatService.class
  19. BIN bin/classes/com/winograd/mp3remote/BuildConfig.class
  20. BIN bin/classes/com/winograd/mp3remote/Command.class
  21. BIN bin/classes/com/winograd/mp3remote/CommandArgs.class
  22. BIN bin/classes/com/winograd/mp3remote/DeviceListActivity$1.class
  23. BIN bin/classes/com/winograd/mp3remote/DeviceListActivity$2.class
  24. BIN bin/classes/com/winograd/mp3remote/DeviceListActivity$3.class
  25. BIN bin/classes/com/winograd/mp3remote/DeviceListActivity.class
  26. BIN bin/classes/com/winograd/mp3remote/R$attr.class
  27. BIN bin/classes/com/winograd/mp3remote/R$drawable.class
  28. BIN bin/classes/com/winograd/mp3remote/R$id.class
  29. BIN bin/classes/com/winograd/mp3remote/R$layout.class
  30. BIN bin/classes/com/winograd/mp3remote/R$menu.class
  31. BIN bin/classes/com/winograd/mp3remote/R$string.class
  32. BIN bin/classes/com/winograd/mp3remote/R.class
  33. +3 −0 bin/jarlist.cache
  34. BIN bin/res/drawable-hdpi/app_icon.png
  35. BIN bin/res/drawable/app_icon.png
  36. +6 −0 gen/com/winograd/mp3remote/BuildConfig.java
  37. +77 −0 gen/com/winograd/mp3remote/R.java
  38. BIN libs/gson-2.2.1-javadoc.jar
  39. BIN libs/gson-2.2.1-sources.jar
  40. BIN libs/gson-2.2.1.jar
  41. +14 −0 project.properties
  42. BIN res/drawable-hdpi/app_icon.png
  43. BIN res/drawable/app_icon.png
  44. +39 −0 res/layout/custom_title.xml
  45. +56 −0 res/layout/device_list.xml
  46. +21 −0 res/layout/device_name.xml
  47. +106 −0 res/layout/main.xml
  48. +21 −0 res/layout/message.xml
  49. +23 −0 res/menu/option_menu.xml
  50. +44 −0 res/values/strings.xml
  51. +471 −0 src/com/winograd/mp3remote/BluetoothChat.java
  52. +438 −0 src/com/winograd/mp3remote/BluetoothChatService.java
  53. +12 −0 src/com/winograd/mp3remote/Command.java
  54. +10 −0 src/com/winograd/mp3remote/CommandArgs.java
  55. +202 −0 src/com/winograd/mp3remote/DeviceListActivity.java
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Mp3Remote</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.5
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.winograd.mp3remote"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <uses-sdk android:minSdkVersion="6" android:targetSdkVersion="10" />
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
+ <uses-permission android:name="android.permission.BLUETOOTH" />
+
+ <application android:label="@string/app_name"
+ android:icon="@drawable/app_icon" >
+ <activity android:name=".BluetoothChat"
+ android:label="@string/app_name"
+ android:configChanges="orientation|keyboardHidden">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity android:name=".DeviceListActivity"
+ android:label="@string/select_device"
+ android:theme="@android:style/Theme.Dialog"
+ android:configChanges="orientation|keyboardHidden" />
+ </application>
+</manifest>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
+# cache for current jar dependecy. DO NOT EDIT.
+# format is <lastModified> <length> <SHA-1> <path>
+# Encoding is UTF-8
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,6 @@
+/** Automatically generated file. DO NOT MODIFY */
+package com.winograd.mp3remote;
+
+public final class BuildConfig {
+ public final static boolean DEBUG = true;
+}
@@ -0,0 +1,77 @@
+/* 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.winograd.mp3remote;
+
+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 button_scan=0x7f060006;
+ public static final int button_send=0x7f060012;
+ public static final int discoverable=0x7f060014;
+ public static final int edit_text_out=0x7f060011;
+ public static final int in=0x7f060010;
+ public static final int new_devices=0x7f060005;
+ public static final int nextButton=0x7f06000b;
+ public static final int paired_devices=0x7f060003;
+ public static final int pauseButton=0x7f06000a;
+ public static final int playButton=0x7f060009;
+ public static final int prevButton=0x7f060008;
+ public static final int scan=0x7f060013;
+ public static final int seekSlider=0x7f06000f;
+ public static final int textView1=0x7f06000c;
+ public static final int textView2=0x7f06000e;
+ 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 int trackTitle=0x7f060007;
+ public static final int volumeSlider=0x7f06000d;
+ }
+ 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 int message=0x7f030004;
+ }
+ 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;
+ /** Options Menu
+ */
+ public static final int connect=0x7f04000e;
+ public static final int discoverable=0x7f04000f;
+ public static final int next_button=0x7f040012;
+ public static final int none_found=0x7f04000a;
+ public static final int none_paired=0x7f040009;
+ public static final int not_connected=0x7f040002;
+ public static final int pause_button=0x7f040011;
+ public static final int play_button=0x7f040010;
+ public static final int prev_button=0x7f040013;
+ /** DeviceListActivity
+ */
+ public static final int scanning=0x7f040007;
+ 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_not_connected=0x7f040006;
+ public static final int title_other_devices=0x7f04000c;
+ public static final int title_paired_devices=0x7f04000b;
+ }
+}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,14 @@
+# 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 edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-15
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ >
+ <TextView android:id="@+id/title_left_text"
+ android:layout_alignParentLeft="true"
+ android:ellipsize="end"
+ android:singleLine="true"
+ style="?android:attr/windowTitleStyle"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ />
+ <TextView android:id="@+id/title_right_text"
+ android:layout_alignParentRight="true"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:textColor="#fff"
+ android:layout_weight="1"
+ />
+</RelativeLayout>
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
+ <TextView android:id="@+id/title_paired_devices"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/title_paired_devices"
+ android:visibility="gone"
+ android:background="#666"
+ android:textColor="#fff"
+ android:paddingLeft="5dp"
+ />
+ <ListView android:id="@+id/paired_devices"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:stackFromBottom="true"
+ android:layout_weight="1"
+ />
+ <TextView android:id="@+id/title_new_devices"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/title_other_devices"
+ android:visibility="gone"
+ android:background="#666"
+ android:textColor="#fff"
+ android:paddingLeft="5dp"
+ />
+ <ListView android:id="@+id/new_devices"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:stackFromBottom="true"
+ android:layout_weight="2"
+ />
+ <Button android:id="@+id/button_scan"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/button_scan"
+ />
+</LinearLayout>
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18sp"
+ android:padding="5dp"
+/>
Oops, something went wrong.

0 comments on commit 988eb84

Please sign in to comment.