Search code examples
androidbluetooth-lowenergyflagsads

How to remove advertisement flags in advertising packet in android?


Hi everyone I am developing an android app that make BLE advertisement. I am actually doing this but I want to use all packet for my specific data. Now I can manipulate manufacturer specific data but cant remove advertisement flags. How can I do this. Any help will be appreciated. Thanks a lot.


Solution

  • You can use https://developer.android.com/reference/android/bluetooth/le/AdvertiseSettings.Builder.html#setConnectable(boolean) and set it to false.