I am developing and app to Send BLE Advertisement packet in android. I have use AdvertiseData and AdverstiseSettings classes to generate the advertise packet. But when i do
You only need to add this code: @TargetApi(Build.VERSION_CODES.M) over your method
@TargetApi(Build.VERSION_CODES.M)