Bluetooth Low Energy On Android: Top Tips For The Tricky Bits @ GDG Detroit

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 48

  • @maksym1266
    @maksym1266 3 роки тому

    This is the greatest video about the BLE technology that I've ever seen. Thanks a lot.

  • @TheViking2
    @TheViking2 5 років тому +2

    Finally, that one worthy video for BLE . Thanks!

  • @ctkqiang
    @ctkqiang 5 років тому +3

    Finally !!!!!!! A saviour is here!!!!! finally someone taught this in ENGLISH !!!! I am subscribing to this channel!

    • @izaiahflynn2724
      @izaiahflynn2724 3 роки тому +1

      a tip: watch movies at flixzone. I've been using them for watching loads of movies lately.

    • @deaconeric268
      @deaconeric268 3 роки тому +1

      @Izaiah Flynn Definitely, have been watching on flixzone for years myself :)

  • @fahim.m.choudhury
    @fahim.m.choudhury 4 роки тому

    This is one of the best presentations I have ever seen on any technical topic, it's concise, informative and perfectly explained.
    Thank you very much!

  • @jonathanmartins7744
    @jonathanmartins7744 2 роки тому

    Thank you very much! This talk worth gold!

  • @EmilenL
    @EmilenL 7 років тому +3

    Nice video!
    Just a correction: you don't need to serialize among all peripherals. It is enough with one queue per BluetoothGatt object, since the Bluetooth stack internally can hold one queued operation per BluetoothGatt object. Also, the only benefit of not calling close directly after disconnect is to avoid getting a warning in the log about an internal NullPointerException. So I would say the workaround isn't really needed unless you want the log clean.

    • @majey666
      @majey666 5 років тому

      Tho the author regarding the queueing: also, please mind that device is using one antena for connecting to all devices, how it can transfer radio data simultaniously, so the api follow more less the phisical pattern bere. I think that might be cleare and less confusing why it is not so intuitive at first. Anyway, thank you for the video, lots of info I needed.

  • @80amnesia
    @80amnesia 4 роки тому

    Finally found a good explanation for Bluetooth LE for android. Thanks!

    • @stuartkent5182
      @stuartkent5182  4 роки тому

      Glad you found it useful; thanks for letting me know!

  • @ashutoshsoni6473
    @ashutoshsoni6473 4 роки тому +1

    Thanks a lot, your video on ble is amazing.

    • @stuartkent5182
      @stuartkent5182  4 роки тому +1

      Thank you for the kind words; I'm glad you found it helpful!

  • @gigajoules6636
    @gigajoules6636 3 роки тому +1

    Wish I had watched this video BEFORE I wrote the app I'm working on right now but at least I feel confident that I've handled things properly :)

    • @stuartkent5182
      @stuartkent5182  3 роки тому

      Props for getting it all figured out! Glad the talk helped you confirm your approach :)

  • @qkloh6804
    @qkloh6804 4 роки тому

    Right on spot, clear and short.

  • @ehsanpartovi8279
    @ehsanpartovi8279 3 роки тому

    Amazing video. Informative and succinct. I am new to Android and I thought I was the only one being confused about where to start. Not to mention my Java is tacky, so I wouldn't blame myself. I would appreciate any leads on a descriptive video on multi connections since that's what I am interested in rn. I could not find one on your channel, so I took the chance to ask.

  • @davebound268
    @davebound268 5 років тому

    Wonderful information Stuart - thank you so much for this. Now I might not go mad.

  • @HQHAN
    @HQHAN 6 років тому

    Thanks for sharing this lesson and learned. You've done a great job !

  • @axa.axa.
    @axa.axa. 5 років тому +1

    i put a hole in my screen pounding the thumbs up.
    Edit add back my initial question:
    So is location required only for scanning?

    • @r7stuart
      @r7stuart 5 років тому +1

      That's correct! One update since this talk was given: if you target API level 28 or newer, you _must_ request ACCESS_FINE_LOCATION; ACCESS_COARSE_LOCATION doesn't cut it any more.

    • @axa.axa.
      @axa.axa. 5 років тому

      @@r7stuart good to know

    • @dirrelito
      @dirrelito 4 роки тому

      @@axa.axa. Also, for API 28 and above, you may use companion device pairing instead, and you won't need any location permission at all.

  • @BhAvAnAPaTiL
    @BhAvAnAPaTiL 3 роки тому

    hey.. I am not able to get devices... location and BLE is on though

    • @David-gu8hv
      @David-gu8hv 3 роки тому +1

      Did you check the permission? You have to even if you put it in the manifest:
      if((ContextCompat.checkSelfPermission(application, Manifest.permission.ACCESS_FINE_LOCATION)) ==PackageManager.PERMISSION_GRANTED)
      {
      val settings = ScanSettings
      .Builder()
      .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)
      .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES)
      .build()
      bluetoothScanner.startScan(null, settings, scanCallback)
      }

  • @michelletseng4610
    @michelletseng4610 3 роки тому

    Thank you so much!

  • @it-series-music
    @it-series-music 4 роки тому

    while scanning / connecting or doing any other operations, do we need to do it in a background service or calling the callbacks in the activity is ok? I am working with BLE for the first time on android so I am confused about it. Please help me, Sir :)

    • @stuartkent5182
      @stuartkent5182  4 роки тому +1

      You can safely call methods from the main thread in your Activity or Fragment. However, note that when your callback methods are invoked by the framework, they will NOT be invoked on the main thread (so you'll need to explicitly return to the main thread before updating your UI).

    • @it-series-music
      @it-series-music 4 роки тому +1

      @@stuartkent5182 Thankyou sir✌️

  • @rudreshsp3236
    @rudreshsp3236 5 років тому

    could you please share link for source code download

    • @stuartkent5182
      @stuartkent5182  5 років тому +1

      Unfortunately there is no source code available with this talk (it was based on a proprietary project). I recommend checking out github.com/NordicSemiconductor/Android-nRF-Blinky and the underlying library github.com/NordicSemiconductor/Android-BLE-Library/ to see how to use these concepts in practice.

  • @rudreshsp3236
    @rudreshsp3236 5 років тому

    where is the source code

  • @Existentialkev
    @Existentialkev 6 років тому

    You're doing God's work good sir

  • @naveen1251
    @naveen1251 6 років тому

    Very informative...

  • @ofir-bar-softr
    @ofir-bar-softr 5 років тому

    HERO!!!!!! YOU ARE A FUC**** HERO