├── .classpath ├── .gitattributes ├── .github └── workflows │ ├── stale.yml │ └── sync_issues.yml ├── .gitignore ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── README.md ├── bin ├── AndroidManifest.xml ├── BLE_Example.apk ├── XadowBLE.apk ├── classes.dex ├── classes │ └── com │ │ └── example │ │ └── seeedstudio │ │ └── BLE │ │ ├── BaseView.class │ │ ├── BluetoothLeService$1.class │ │ ├── BluetoothLeService$LocalBinder.class │ │ ├── BluetoothLeService.class │ │ ├── BuildConfig.class │ │ ├── Control$1.class │ │ ├── Control$2.class │ │ ├── Control$3.class │ │ ├── Control$4.class │ │ ├── Control$5.class │ │ ├── Control.class │ │ ├── Device.class │ │ ├── MainActivity$1$1.class │ │ ├── MainActivity$1.class │ │ ├── MainActivity$2$1.class │ │ ├── MainActivity$2.class │ │ ├── MainActivity$3.class │ │ ├── MainActivity$4.class │ │ ├── MainActivity.class │ │ ├── R$attr.class │ │ ├── R$dimen.class │ │ ├── R$drawable.class │ │ ├── R$id.class │ │ ├── R$layout.class │ │ ├── R$menu.class │ │ ├── R$string.class │ │ ├── R$style.class │ │ ├── R.class │ │ ├── SampleGattAttributes.class │ │ └── SearchDevicesView.class ├── dexedLibs │ ├── android-support-v4-61fd59ca7a434d08f11d5fd05371e341.jar │ └── android-support-v4-d4719140fd8633e23e4a32f81ae411ab.jar ├── jarlist.cache ├── res │ └── crunch │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-ldpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ └── drawable │ │ ├── backgroud.png │ │ ├── devicescan.png │ │ ├── gplus_search_args.png │ │ ├── gplus_search_bg.png │ │ ├── gplus_search_bg1.png │ │ ├── ic_launcher.png │ │ ├── locus_round_click.png │ │ ├── locus_round_click1.png │ │ └── redbear.png └── resources.ap_ ├── gen └── com │ └── example │ └── seeedstudio │ └── BLE │ ├── BuildConfig.java │ └── R.java ├── ic_launcher-web.png ├── libs └── android-support-v4.jar ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-ldpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── drawable-xxhdpi │ └── ic_launcher.png ├── drawable │ ├── backgroud.png │ ├── devicescan.png │ ├── gplus_search_args.png │ ├── gplus_search_bg.png │ ├── gplus_search_bg1.png │ ├── ic_launcher.png │ ├── locus_round_click.png │ ├── locus_round_click1.png │ ├── red_button.xml │ └── redbear.png ├── layout │ ├── device_list.xml │ ├── list_item.xml │ ├── loading_process_dialog_anim.xml │ ├── main.xml │ └── second.xml ├── menu │ └── bletest.xml ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml ├── values-w820dp │ └── dimens.xml └── values │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml └── src └── com └── example └── seeedstudio └── BLE ├── BaseView.java ├── BluetoothLeService.java ├── Control.java ├── Device.java ├── MainActivity.java ├── SampleGattAttributes.java └── SearchDevicesView.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | name: 'Close stale issues and PRs' 2 | 3 | on: 4 | workflow_dispatch: 5 | schedule: 6 | - cron: '0 4 * * *' 7 | 8 | jobs: 9 | stale: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - name: Checkout repository 14 | uses: actions/checkout@v4 15 | 16 | - name: Checkout script repository 17 | uses: actions/checkout@v4 18 | with: 19 | repository: Seeed-Studio/sync-github-all-issues 20 | path: ci 21 | 22 | - name: Run script 23 | run: ./ci/tools/stale.sh 24 | env: 25 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 26 | -------------------------------------------------------------------------------- /.github/workflows/sync_issues.yml: -------------------------------------------------------------------------------- 1 | name: Automate Issue Management 2 | 3 | on: 4 | issues: 5 | types: 6 | - opened 7 | - edited 8 | - assigned 9 | - unassigned 10 | - labeled 11 | - unlabeled 12 | - reopened 13 | 14 | jobs: 15 | add_issue_to_project: 16 | runs-on: ubuntu-latest 17 | steps: 18 | - name: Add issue to GitHub Project 19 | uses: actions/add-to-project@v1.0.2 20 | with: 21 | project-url: https://github.com/orgs/Seeed-Studio/projects/17 22 | github-token: ${{ secrets.ISSUE_ASSEMBLE }} 23 | labeled: bug 24 | label-operator: NOT -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # ========================= 18 | # Operating System Files 19 | # ========================= 20 | 21 | # OSX 22 | # ========================= 23 | 24 | .DS_Store 25 | .AppleDouble 26 | .LSOverride 27 | 28 | # Icon must end with two \r 29 | Icon 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | BLE_Example 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 39 | 40 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## BLE Example 2 | 3 | ### Introduction 4 | ![BLE Example](http://www.seeedstudio.com/wiki/images/e/e5/Ble_UUIDSelected.png)
5 | This android app is used to build communication with BLE Slave device. You can send/receive message with these devices, such as [Xadow BLE](http://www.seeedstudio.com/depot/Xadow-BLE-p-1727.html) or [Xadow BLE Slave](http://www.seeedstudio.com/depot/Xadow-BLE-Slave-p-1546.html). It will help you to increase the understanding of BLE. 6 | ### Usage 7 | ####1. Install the APK 8 | 9 | 1. Install the APK file(**BLE_Example.apk**) in bin/ folder, you need to make sure the android verison of your smart phone is higher than 4.3. 10 | 2. After successful install, click the ico of the APK, and you will see the UI as follow.
11 | ![BLE UI](http://www.seeedstudio.com/wiki/images/a/a7/Ble_start.png)
12 | 13 | 14 | 15 | ####2. Scan for slave devices 16 | 17 | 1.click the **start** button in the center of UI, it will start to scan for BLE slave devices. just like follow:
18 | ![BLE Scan](http://www.seeedstudio.com/wiki/images/0/03/Ble_scan.png)
19 |
20 | 2. The scan period will be up to 8 seconds, when it finished, the scan result will be show in the following dialog:
21 | ![BLE Scan Result](http://www.seeedstudio.com/wiki/images/2/2d/Ble_scanResult.png)
22 |
23 | 3. click the BLE device that you want to connect, then your mobilephone will try to connect the specified device automatically.
24 | 25 | ####3. Select specified UUID 26 | 1. If you can connect the ble slave device successfully, the UI will be as follow:
27 | ![BLE Select UUID](http://www.seeedstudio.com/wiki/images/1/13/Ble_selectUUID.png)
28 | You will find that the UUID is null and you need to pick up one from the list of **Characteristics UUID List** 29 | 2. Here we choose the UUID:0000ffe1-0000-1000-8000-00805f9b34fb, and the UI turns to:
30 | ![BLE UUID Selected](http://www.seeedstudio.com/wiki/images/e/e5/Ble_UUIDSelected.png)
31 | 32 | ####4. Send and recv data 33 | OK, the exciting moment has come! Input the command(data) to the textbox, and then click the Send button, the message will be send to the specified ble devices. and the recv textbox will show the message from the slave devices, just as follow. Have fun!
34 | ![BLE Send Data](http://www.seeedstudio.com/wiki/images/f/ff/Ble_sendData.png) 35 | ![BLE Recv Data](http://www.seeedstudio.com/wiki/images/7/7f/Ble_recvData.png)
36 | 37 | 38 | ---- 39 | This software is written by lawliet zou (![](http://www.seeedstudio.com/wiki/images/f/f8/Email-lawliet.zou.jpg)) for [Seeed Technology Inc.](http://www.seeed.cc) and is licensed under The GPL v2 License. Check License.txt for more information.
40 | 41 | Contributing to this software is warmly welcomed. You can do this basically by [forking](https://help.github.com/articles/fork-a-repo), committing modifications and then [pulling requests](https://help.github.com/articles/using-pull-requests) (follow the links above for operating guide). Adding change log and your contact into file header is encouraged.
42 | Thanks for your contribution. 43 | 44 | Seeed is a hardware innovation platform for makers to grow inspirations into differentiating products. By working closely with technology providers of all scale, Seeed provides accessible technologies with quality, speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000 pcs using in-house engineering, supply chain management and agile manufacture forces. Seeed also team up with incubators, Chinese tech ecosystem, investors and distribution channels to portal Maker startups beyond. 45 | 46 | [![Analytics](https://ga-beacon.appspot.com/UA-46589105-3/BLE_Example)](https://github.com/igrigorik/ga-beacon) 47 | 48 | -------------------------------------------------------------------------------- /bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 39 | 40 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /bin/BLE_Example.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/BLE_Example.apk -------------------------------------------------------------------------------- /bin/XadowBLE.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/XadowBLE.apk -------------------------------------------------------------------------------- /bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes.dex -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/BaseView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/BaseView.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/BluetoothLeService$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/BluetoothLeService$1.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/BluetoothLeService$LocalBinder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/BluetoothLeService$LocalBinder.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/BluetoothLeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/BluetoothLeService.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/BuildConfig.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/Control$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/Control$1.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/Control$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/Control$2.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/Control$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/Control$3.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/Control$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/Control$4.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/Control$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/Control$5.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/Control.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/Control.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/Device.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/Device.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/MainActivity$1$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/MainActivity$1$1.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/MainActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/MainActivity$1.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/MainActivity$2$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/MainActivity$2$1.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/MainActivity$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/MainActivity$2.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/MainActivity$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/MainActivity$3.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/MainActivity$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/MainActivity$4.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/MainActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/MainActivity.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R$attr.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R$dimen.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R$dimen.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R$drawable.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R$id.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R$layout.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R$menu.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R$menu.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R$string.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R$style.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/R.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/SampleGattAttributes.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/SampleGattAttributes.class -------------------------------------------------------------------------------- /bin/classes/com/example/seeedstudio/BLE/SearchDevicesView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/classes/com/example/seeedstudio/BLE/SearchDevicesView.class -------------------------------------------------------------------------------- /bin/dexedLibs/android-support-v4-61fd59ca7a434d08f11d5fd05371e341.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/dexedLibs/android-support-v4-61fd59ca7a434d08f11d5fd05371e341.jar -------------------------------------------------------------------------------- /bin/dexedLibs/android-support-v4-d4719140fd8633e23e4a32f81ae411ab.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/dexedLibs/android-support-v4-d4719140fd8633e23e4a32f81ae411ab.jar -------------------------------------------------------------------------------- /bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependency. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /bin/res/crunch/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/backgroud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/backgroud.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/devicescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/devicescan.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/gplus_search_args.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/gplus_search_args.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/gplus_search_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/gplus_search_bg.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/gplus_search_bg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/gplus_search_bg1.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/locus_round_click.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/locus_round_click.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/locus_round_click1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/locus_round_click1.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/redbear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/res/crunch/drawable/redbear.png -------------------------------------------------------------------------------- /bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/bin/resources.ap_ -------------------------------------------------------------------------------- /gen/com/example/seeedstudio/BLE/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.example.seeedstudio.BLE; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /gen/com/example/seeedstudio/BLE/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.example.seeedstudio.BLE; 9 | 10 | public final class R { 11 | public static final class attr { 12 | } 13 | public static final class dimen { 14 | /** Default screen margins, per the Android Design guidelines. 15 | 16 | Example customization of dimensions originally defined in res/values/dimens.xml 17 | (such as screen margins) for screens with more than 820dp of available width. This 18 | would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). 19 | 20 | */ 21 | public static final int activity_horizontal_margin=0x7f040000; 22 | public static final int activity_vertical_margin=0x7f040001; 23 | } 24 | public static final class drawable { 25 | public static final int backgroud=0x7f020000; 26 | public static final int devicescan=0x7f020001; 27 | public static final int gplus_search_args=0x7f020002; 28 | public static final int gplus_search_bg=0x7f020003; 29 | public static final int gplus_search_bg1=0x7f020004; 30 | public static final int ic_launcher=0x7f020005; 31 | public static final int locus_round_click=0x7f020006; 32 | public static final int locus_round_click1=0x7f020007; 33 | public static final int red_button=0x7f020008; 34 | public static final int redbear=0x7f020009; 35 | } 36 | public static final class id { 37 | public static final int action_settings=0x7f08000f; 38 | public static final int btn_send=0x7f08000b; 39 | public static final int deviceAddr=0x7f080002; 40 | public static final int deviceName=0x7f080001; 41 | public static final int et_tx=0x7f08000c; 42 | public static final int expandableListView1=0x7f08000e; 43 | public static final int listView=0x7f080000; 44 | public static final int pageloading=0x7f080003; 45 | public static final int search_device_view=0x7f080004; 46 | public static final int tv_connstatus=0x7f080007; 47 | public static final int tv_deviceaddr=0x7f080006; 48 | public static final int tv_devicename=0x7f080005; 49 | public static final int tv_rssi=0x7f080008; 50 | public static final int tv_rssi_value=0x7f080009; 51 | public static final int tv_rx=0x7f08000d; 52 | public static final int tv_targetuuid=0x7f08000a; 53 | } 54 | public static final class layout { 55 | public static final int device_list=0x7f030000; 56 | public static final int list_item=0x7f030001; 57 | public static final int loading_process_dialog_anim=0x7f030002; 58 | public static final int main=0x7f030003; 59 | public static final int second=0x7f030004; 60 | } 61 | public static final class menu { 62 | public static final int bletest=0x7f070000; 63 | } 64 | public static final class string { 65 | public static final int action_settings=0x7f050001; 66 | public static final int app_name=0x7f050000; 67 | public static final int searching=0x7f050002; 68 | } 69 | public static final class style { 70 | /** 71 | Base application theme, dependent on API level. This theme is replaced 72 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices. 73 | 74 | 75 | Theme customizations available in newer API levels can go in 76 | res/values-vXX/styles.xml, while customizations related to 77 | backward-compatibility can go here. 78 | 79 | 80 | Base application theme for API 11+. This theme completely replaces 81 | AppBaseTheme from res/values/styles.xml on API 11+ devices. 82 | 83 | API 11 theme customizations can go here. 84 | 85 | Base application theme for API 14+. This theme completely replaces 86 | AppBaseTheme from BOTH res/values/styles.xml and 87 | res/values-v11/styles.xml on API 14+ devices. 88 | 89 | API 14 theme customizations can go here. 90 | */ 91 | public static final int AppBaseTheme=0x7f060000; 92 | /** Application theme. 93 | All customizations that are NOT specific to a particular API-level can go here. 94 | */ 95 | public static final int AppTheme=0x7f060001; 96 | public static final int button_text=0x7f060002; 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/ic_launcher-web.png -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/libs/android-support-v4.jar -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-20 15 | -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable/backgroud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/backgroud.png -------------------------------------------------------------------------------- /res/drawable/devicescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/devicescan.png -------------------------------------------------------------------------------- /res/drawable/gplus_search_args.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/gplus_search_args.png -------------------------------------------------------------------------------- /res/drawable/gplus_search_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/gplus_search_bg.png -------------------------------------------------------------------------------- /res/drawable/gplus_search_bg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/gplus_search_bg1.png -------------------------------------------------------------------------------- /res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable/locus_round_click.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/locus_round_click.png -------------------------------------------------------------------------------- /res/drawable/locus_round_click1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/locus_round_click1.png -------------------------------------------------------------------------------- /res/drawable/red_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 10 | 11 | 14 | 15 | 17 | 18 | 23 | 24 | 25 | 26 | 27 | 28 | 32 | 33 | 36 | 37 | 39 | 40 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /res/drawable/redbear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seeed-Studio/BLE_Example/c69e13f9d01cf79079627562f6d748c32e9c1198/res/drawable/redbear.png -------------------------------------------------------------------------------- /res/layout/device_list.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /res/layout/list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | 21 | -------------------------------------------------------------------------------- /res/layout/loading_process_dialog_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | 17 | 18 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /res/layout/second.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | 12 | 17 | 24 | 31 | 32 | 33 | 34 | 39 | 46 | 53 | 54 | 55 | 56 | 61 | 68 | 69 | 76 | 77 | 78 | 83 | 91 | 92 | 99 | 100 | 101 | 106 | 113 | 114 | 122 | 123 | 124 | 125 | 131 |