Discovering available bluetooth devices

SyncMaster

New Member
Hi,

I just started learning android development. I am writing an android program to scan available bluetooth devices and list them in a log file and later find the strength of the bluetooth signals.

Below is a code snippet for Finding available bluetooth devices. As I am new to android, I am unable to figure out what is wrong in the code.

When I try the debug mode, the control skips the "BroadcastReceiver()". I could not find any entries in the log. Can you help me in figuring out what the problem is and how I can list the available bluetooth devices.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…