Developing Bluetooth Smart Applications for Android Tutorial

  Переглядів 199,523

InfoQ

InfoQ

День тому

00:30 - Bluetooth GATT Basics
04:01 - DEMO: Android GATT Central Application
24:11 - Bluetooth LE Broadcasters
25:49 - DEMO: Android LE Observer Application
-
Dave Smith, NewCircle instructor and Sr. Android Engineer at Double Encore will talk about Bluetooth LE API's, and show you how easy it is to add some really interesting capabilities to mobile applications using this technology.
Android Training from NewCircle: crcl.to/t1pva
**Transcript & additional resources: crcl.to/smart
**More about the hardware accessories used in this video: www.kstechnologies.com/
**More info on Double Encore's app development services: www.doubleencore.com/

КОМЕНТАРІ: 95
@levzoosmanovskiy4812
@levzoosmanovskiy4812 9 років тому
Budda bless you for this TUT. Thank you!
@iceproz1549
@iceproz1549 7 років тому
Working with 2 Ion sensors and trying to display the temps. This was very helpful!
@seanreilly6446
@seanreilly6446 9 років тому
Thank you very much for this tutorial. You helped me get my Bluetooth app working at long last!
@bogdanalexandru5071
@bogdanalexandru5071 9 років тому
Such beautiful code organization... very inspiring! Thanks :D
@crklopotic
@crklopotic 5 років тому
Very well done. Trying to follow the Android developer examples are very confusing due to the code being split across many classes. The examples you provided are well organized and easy to follow. The state machine that is used to register different gatt notifications was huge. I was having a hard time getting more than one gatt notification to work. Thank you for posting this.
@leetcodebaby6680
@leetcodebaby6680 2 роки тому
Dave Smith again to the rescue! Thank you so much for this Dave.
@DebaterOfMath
@DebaterOfMath 10 років тому
One of the best android tutorials I've seen
@raheelhamid
@raheelhamid 9 років тому
hey i need your help its too important related to study and work so kindly contact me ASAP
@deepakevgoogle
@deepakevgoogle 4 роки тому
Thank you for this excellent tutorial.
@whitemageFFXI
@whitemageFFXI 8 років тому
This is so helpful! Thank you so much!
@jiankunli7148
@jiankunli7148 9 років тому
Very good stuff. Thanks a lot for teaching and sharing.
@greenspand
@greenspand 10 років тому
Great tutorial. Thank you so much.
@konstantinkotsev
@konstantinkotsev 9 років тому
Great tutorial! Thank you.
@fifaham
@fifaham 3 роки тому
@27:30 and since the Temp Sensor is placed inside the refrigerator then the refrigerator metal walls may slightly attenuate the BLE propagating signal and thus weakens the Signal Level, and this may explain why the SSI is reading the lowest (-79 dBm) at 9.0 C . Very well detailed explanation of BLE Advertising and Beacon methods - many thanks - tons of applications for those methods.
@praveenkumarmanoharan876
@praveenkumarmanoharan876 6 років тому
thanks dave, its pretty helpful to understanding Bluetooth manager but need some clarification how to find uuid and to read services of any other custom heath monitoring devices
@sdplusm3
@sdplusm3 8 років тому
Thank you very much for the video.
@tomaszkwiatkowski5219
@tomaszkwiatkowski5219 9 років тому
Great Tutorial Very useful
@shabarishbk
@shabarishbk 9 років тому
Great tutorial, thanks a ton Dave, i have a specific requirement based on PROXIMITY, can you please tell me why isnt PROXIMITY included in the Profile/Services? CC2541 doesnot support Proximity? it would be a great help.
@AmrMohsen
@AmrMohsen 10 років тому
This is very interesting.....
@ashishmchauhan1
@ashishmchauhan1 9 років тому
Hi, It is really a nice video and that helped me in my development of the BLE application. In our application, we are using smart android phone and BLE watch, now, i want to pass command from the watch by pressing "command" button to smart phone and based on that i want to do some activities to be opened up on mobile phones. so can you please guide me how my application will trace the command to be fired by BLE watch. thanks in advance.
@SRIKANTH-ls9bm
@SRIKANTH-ls9bm 5 років тому
Excellent video
@genzclasses9208
@genzclasses9208 7 років тому
thank you!!!!
@leeannescame8730
@leeannescame8730 7 років тому
Hi i want to develop a multimeter app that is connected via wifi can you please give me some idea to create it? Thankyou
@sinak7585
@sinak7585 9 років тому
Hi Dave, I have a question regarding your code. Each time you receive a callback in OnCharactericChange, you post the reference to the characteristic inside a message to the main thread. However, OnCharactericChange is a callback from another thread. How do we know that the reference to the characteristic object is still valid once the main thread receives the message (since the callback is already over once the message is received)? Thanks!
@vinayTshetty
@vinayTshetty 6 років тому
It is a good tutorials, Is it possible to make Bluetooth Le services as started services so we can run in background indefinitely.
@omengaming9714
@omengaming9714 7 років тому
PLz tell us about the UUID and necessary things we need to connect to our sensor.
@sj82516
@sj82516 8 років тому
Hi, I wana ask how to modify the code to connect universal sensor? like common BLE scanner
@FranciscoMunoz-tu4oy
@FranciscoMunoz-tu4oy 9 років тому
Hello, first say thatyour video its really interesting and secondly, I have a sensor tag and I would like to know if you have any application where you use the accelerometer of sensor tag to view data in your App. Thanks
@geoaxis
@geoaxis 10 років тому
Great demo and tutorial Dave I am curious how you recorded/streamed the android screen?
@devunwired
@devunwired 10 років тому
Shahzada, we have an HDMI adapter for the Nexus 7 that mirrors the display on the external output.
@geoaxis
@geoaxis 10 років тому
thanks, I have been using BBQScreen for live demos (which need to be streamed), but I guess HDMI in should also work.
@sarappumma
@sarappumma 8 років тому
Maybe my mistake is related to the function "invalidateOptionMenu", because it says "Cannot resolve Symbols". Then It cannot connect to the device because the option menu does not appear after the scan. Do I have to declare in the file xml for the menu the "option menu" button? thanks
@nomandcrystal4297
@nomandcrystal4297 8 років тому
Thank You for tutorial. I want to develop accelerometer in sensortag to my app. How can i do it ?
@iliastheodorou9553
@iliastheodorou9553 7 років тому
did you find anything helpful? i want to implement accelerometer and gyroscope as well. please if you found anything let me know.!
@samarthsingh5394
@samarthsingh5394 6 років тому
Hi, does it work smoothly with HM-10 BLE modules ?
@tusharsinghal686
@tusharsinghal686 9 років тому
Hi Dave, Great demo.. I am developing an application to communicate to OBD2 - ELM327 device for reading car data(rpm, speed.. etc). Can you guide me how to do this ?.. I am able to connect via bluetooth.. but facing problem in communicating...
@SriRam-bj6gc
@SriRam-bj6gc 6 років тому
Hi how to send the data from characteristic changed to the activity to display in the ui?
@francescacarbonara462
@francescacarbonara462 8 років тому
Thank u very much for your help with this tutorial. If I have one service with two characteristic (I'm using Environmental Sensing with Temperature and Humidity characteristics), is the same approach? I'm using your code and the app is able to discover my device, but after scan, it stops the scan! have you any idea about the possible mistake?
@omengaming9714
@omengaming9714 7 років тому
did u find the solution ??
@KevinSkazz
@KevinSkazz 6 років тому
esci il codice x)
@CannonballCircuit
@CannonballCircuit 8 років тому
I keep getting an error in the gradle every time I try to run the code!
@sameerahamad5867
@sameerahamad5867 4 роки тому
Can you please tell me the which heart rate monitor support the GATT profile ,The first type is a short 16-bit UUID. The predefined Heart rate service, e.g., has the UUID 0x180D and one of its enclosed characteristics, the Heart Rate Measurement characteristic, has the UUID 0x2A37. which heart rate monitor is now available in market
@SamathNorng
@SamathNorng 8 років тому
Dear sir, Could you tell me, "get distance from my android device to ibeacon" ?
@lorda97
@lorda97 8 років тому
What font are you using ?
@tonu001
@tonu001 10 років тому
Hi Great demo, i have developed an android application for one BLE sensor. And the application connect to the sensor successfully, while calling the mBluetoothGatt.discoverServices() function, getting an exception. I have checked different application in Nexus7 tablet, but not solved this issue. Any solution for this issue. -tony-
@hbaocr
@hbaocr 10 років тому
thanks a lot
@hieucdtspk
@hieucdtspk 10 років тому
so excited!
@abrutsze
@abrutsze 7 років тому
Hi all, can anyone provide a source code, please ? You see couldnt find it at the link under the video.
@abdellahmouhcine8695
@abdellahmouhcine8695 Рік тому
Hi have you found the source code or not, if you are found share with me the link please
@yasinshah4343
@yasinshah4343 5 років тому
sir how i make offline android bluetooth assistent for artificial intelligence mode .like a google assistant
@BikashDebnath
@BikashDebnath 9 років тому
After API 21, the bluetoothAdapter.startLeScan(callback) is deprecated. Could you please suggest what is to be used instead. It seems we cannot use this "Activity implements BluetoothAdapter".
@akshayaappaswamy5205
@akshayaappaswamy5205 9 років тому
you can use deprecated methods however it is not recommended in the long run
@BikashDebnath
@BikashDebnath 9 років тому
Akshaya Appaswamy ....hello Akshaya....I am not sure how to do that. Can you please guide or direct. I tried using those methods, but somehow they are not working. By the way, do you know any one in the Pune, India area. I am here these days, may be we can collaborate and complete the project. Let me know. Thanks again.
@Aliveni3
@Aliveni3 9 років тому
Jkp
@BikashDebnath
@BikashDebnath 9 років тому
whats JKP?
@Sirikid
@Sirikid 8 років тому
Your should use BluetoothLeScanner
@anarion28
@anarion28 5 років тому
I found the source code for this tutorial, maybe someone needs github.com/devunwired/accessory-samples/tree/master/BluetoothGatt
@cheddargt
@cheddargt 3 роки тому
You're the best
@beegood123
@beegood123 5 років тому
Shouldn't there invalidateOptionsMenu being called? In onOptionsItemSelected for action_scan, after mDevices was clear
@dmdm9269
@dmdm9269 9 років тому
how to find UUID for a device?
@md.shadekurrahman6356
@md.shadekurrahman6356 9 років тому
I want to write in a characteristic that is not belong to a device information. I also want to write protect that characteristic with a password. Is it possible?
@joshuaevan4554
@joshuaevan4554 7 років тому
I try to make my own code and adopt your code to read and write characteristic, but i found that my writecharacteristic method return false. Can u help me why it return false?
@BikashDebnath
@BikashDebnath 9 років тому
Hello, I am using the nrf8001 chip. How can I find the UUID for the proximity services. Can any one help please?
@catherineharrison5224
@catherineharrison5224 8 років тому
i'm confused.
@elvarias9730
@elvarias9730 7 років тому
me 2
@ezekielchow9939
@ezekielchow9939 6 років тому
me 3
@TheCoti1220
@TheCoti1220 6 років тому
Hi confused, I'm dad!
@nishanthtelukunta
@nishanthtelukunta 8 років тому
I see that lambda expressions are not supported in Android Studio, can you please let me know how did you implement them...
@benjaminbatya5547
@benjaminbatya5547 7 років тому
Android Studio is pretty printing the anonymous inner class. Java's anonymous inner class is a clunky way to write a lambda.
@sourabhverma9034
@sourabhverma9034 7 років тому
Use retrolambda
@marianpazdzioch5437
@marianpazdzioch5437 9 років тому
What SW do you use to cast Android device screen to PC (?) with clicks feedback visible?
@rajeshpatoju183
@rajeshpatoju183 7 років тому
i think he was using bluestacks.....
@youcef4504
@youcef4504 8 років тому
Hi, I want to develop the same app in my watch. can you help me please ?
@diksharajguru4283
@diksharajguru4283 3 роки тому
How can i discover bluetooth device in the background
@tejashreejadhav600
@tejashreejadhav600 7 років тому
hello sir, nice video , but i cant found shortSignedAtOffset(),shortUnsignedAtOffset(), mHandler.removeCallBack(mStopRunnable); mHandler.removeCallBack(mStartRunnable); method
@abdellahmouhcine8695
@abdellahmouhcine8695 Рік тому
Hi have you found the source code or not, if you are found share with me the link please
@SulavTimsina
@SulavTimsina 5 років тому
Are you reading any specific book?
@vinayTshetty
@vinayTshetty 6 років тому
Can anyone mail me the source code of this tutorials
@user-gd7gh4cg6m
@user-gd7gh4cg6m 3 роки тому
were is a link to your code?
@ahmedfayyazbutt4836
@ahmedfayyazbutt4836 7 років тому
Can i get the source code of the app ?
@abdulfattah6978
@abdulfattah6978 6 років тому
can i get the code?
@larenmarkdcruz7074
@larenmarkdcruz7074 3 роки тому
Could you provide link to github?
@SciHeartJourney
@SciHeartJourney 10 років тому
He's making this harder than it has to be. This is part of Apple's plan.
@maxnovikov51
@maxnovikov51 6 років тому
thank you very much, i was stuck on : BluetoothGattDescriptor d = readCharacteristic.getDescriptor(UUID.fromString("XX-XXXX-XXXX")); d.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE); mGatt.writeDescriptor(d);
@abdellahmouhcine8695
@abdellahmouhcine8695 Рік тому
Hi have you found the source code or not, if you are found share with me the link please
@abdulfattah6978
@abdulfattah6978 6 років тому
why dont u show uuid?
@danny117hd
@danny117hd 2 роки тому
You need to think about me watching the video on a tv or a handheld device and not being able to see the code.
@chmhanif1647
@chmhanif1647 6 років тому
i want to get the code
@pablomoran3853
@pablomoran3853 6 років тому
ch m hanif y me pregunto
@SciHeartJourney
@SciHeartJourney 10 років тому
Yet his Apple computer is right in front of us. I think this guy is an "insider" trying to discourage people from competing with Apple.
@parsec5366
@parsec5366 4 роки тому
DON'T WORK
@gokaogak905
@gokaogak905 4 роки тому
crcl.to/smart LINK NO WORKING
Building Android Apps to Control Bluetooth LE Devices
38:51
CrossComm, Inc.
Переглядів 34 тис.
How Netflix Really Uses Java
50:31
InfoQ
Переглядів 3,6 тис.
Help Herobrine Escape From Spike
00:28
Garri Creative
Переглядів 54 млн
ESP32 BLE - Bluetooth Low Energy sending data to phone
8:31
Asali
Переглядів 78 тис.
Kotlin 101: How to communicate to a Bluetooth device Part 1
43:50
NIST 800-207A: Implementing Zero Trust Architecture
45:07
Ellisys Bluetooth Video 1: Intro to Bluetooth Low Energy
8:06
Ellisys
Переглядів 113 тис.
Android App Development in Java All-in-One Tutorial Series (4 HOURS!)
3:54:35
Learn Web Development And ACTUALLY Get A Job In 2023 | Ultimate Guide
1:33:52
How Netflix Ensures Highly-Reliable Online Stateful Systems
49:32
Bluetooth Low Energy App Development: The Basics
5:59
Kelvin Aviles
Переглядів 97 тис.
Infrared Soldering Iron from Cigarette Lighter
0:58
ALABAYCHIC
Переглядів 1,3 млн