├── .gitignore ├── LICENSE ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── cn │ │ └── joy │ │ └── libs │ │ └── bluetooth │ │ └── profile │ │ └── ApplicationTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── cn │ │ │ └── joy │ │ │ └── libs │ │ │ └── bluetooth │ │ │ └── profile │ │ │ └── test │ │ │ ├── BluetoothBaseView.java │ │ │ ├── ClientActivity.java │ │ │ ├── MainActivity.java │ │ │ └── ServiceActivity.java │ └── res │ │ ├── color │ │ └── color_textview.xml │ │ ├── layout │ │ ├── activity_bluetooth.xml │ │ ├── activity_main.xml │ │ ├── layout_bluetooth_operate.xml │ │ ├── layout_remote_list.xml │ │ ├── li_remote.xml │ │ └── widget_loading.xml │ │ ├── menu │ │ └── menu_device.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── cn │ └── joy │ └── libs │ └── bluetooth │ └── profile │ └── ExampleUnitTest.java ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── library_bluetooth ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── xloong │ │ └── library_bluetooth │ │ └── ApplicationTest.java │ └── main │ ├── AndroidManifest.xml │ └── java │ └── cn │ └── joy │ └── libs │ └── bluetooth │ ├── BluetoothConnectManager.java │ ├── profile │ ├── BaseBluetoothProfileImpl.java │ ├── BluetoothA2dpProfile.java │ ├── BluetoothHeadsetProfile.java │ ├── DeviceBluetoothProfileManager.java │ ├── IBluetoothProfile.java │ └── Profile.java │ └── spp │ ├── BluetoothClientConnectThread.java │ ├── BluetoothDataThread.java │ ├── BluetoothServiceConnectThread.java │ ├── BluetoothSocketBaseThread.java │ └── BluetoothSppHelper.java └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/README.md -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/build.gradle -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/proguard-rules.pro -------------------------------------------------------------------------------- /app/src/androidTest/java/cn/joy/libs/bluetooth/profile/ApplicationTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/androidTest/java/cn/joy/libs/bluetooth/profile/ApplicationTest.java -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /app/src/main/java/cn/joy/libs/bluetooth/profile/test/BluetoothBaseView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/java/cn/joy/libs/bluetooth/profile/test/BluetoothBaseView.java -------------------------------------------------------------------------------- /app/src/main/java/cn/joy/libs/bluetooth/profile/test/ClientActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/java/cn/joy/libs/bluetooth/profile/test/ClientActivity.java -------------------------------------------------------------------------------- /app/src/main/java/cn/joy/libs/bluetooth/profile/test/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/java/cn/joy/libs/bluetooth/profile/test/MainActivity.java -------------------------------------------------------------------------------- /app/src/main/java/cn/joy/libs/bluetooth/profile/test/ServiceActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/java/cn/joy/libs/bluetooth/profile/test/ServiceActivity.java -------------------------------------------------------------------------------- /app/src/main/res/color/color_textview.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/color/color_textview.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_bluetooth.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/layout/activity_bluetooth.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_bluetooth_operate.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/layout/layout_bluetooth_operate.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_remote_list.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/layout/layout_remote_list.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/li_remote.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/layout/li_remote.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/widget_loading.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/layout/widget_loading.xml -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_device.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/menu/menu_device.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /app/src/test/java/cn/joy/libs/bluetooth/profile/ExampleUnitTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/app/src/test/java/cn/joy/libs/bluetooth/profile/ExampleUnitTest.java -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/gradlew.bat -------------------------------------------------------------------------------- /library_bluetooth/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /library_bluetooth/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/build.gradle -------------------------------------------------------------------------------- /library_bluetooth/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/proguard-rules.pro -------------------------------------------------------------------------------- /library_bluetooth/src/androidTest/java/com/xloong/library_bluetooth/ApplicationTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/androidTest/java/com/xloong/library_bluetooth/ApplicationTest.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/BluetoothConnectManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/BluetoothConnectManager.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/BaseBluetoothProfileImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/BaseBluetoothProfileImpl.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/BluetoothA2dpProfile.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/BluetoothA2dpProfile.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/BluetoothHeadsetProfile.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/BluetoothHeadsetProfile.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/DeviceBluetoothProfileManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/DeviceBluetoothProfileManager.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/IBluetoothProfile.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/IBluetoothProfile.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/Profile.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/profile/Profile.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothClientConnectThread.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothClientConnectThread.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothDataThread.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothDataThread.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothServiceConnectThread.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothServiceConnectThread.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothSocketBaseThread.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothSocketBaseThread.java -------------------------------------------------------------------------------- /library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothSppHelper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Joy-Whale/BluetoothProfile/HEAD/library_bluetooth/src/main/java/cn/joy/libs/bluetooth/spp/BluetoothSppHelper.java -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':library_bluetooth' 2 | --------------------------------------------------------------------------------