android - Can I notify when any bluetooth of paired device is enabled? -



android - Can I notify when any bluetooth of paired device is enabled? -

hi working embedded bluetooth device connection android application.

my application installed in android phone , phone has paired bluetooth devices, want if paired bluetooth device enabled(starts/turns on) application should receive notification.

of-course bluetooth enabled in phone , bluetooth devices within range.

please allow me know how possible ?

thanks!

there nil automatic can observe this, have create both app , paired device work observe this. tyhere 2 options :

your app periodic device discovery (low frequency - else kill battery) search paired devices in vicinity. paired devices on getting enabled / starting on should set discoverable.

a improve way apired device autimaically initiate connection 1 time comes on device paired with, , typically on phones default if bluetooth turned on scanning incoming connection , app can ready take incoming connections.

android bluetooth

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -