java - Does each Bluetooth device has its own unique MAC Address? How can we access it in an app? -


it understanding there universally unique identifier associated bluetooth devices moment leave factory door. instance, link "if device discoverable, respond discovery request sharing information, such device name, class, , itsunique mac address." explicitly interested in mac address , had better universally unique. if assumption wrong, thing know too.

to fetch bluetooth mac address use bluetoothadapter class. can achieve calling getaddress method as:

string straddress = null; bluetoothadapter bluetoothadapter = bluetoothadapter.getdefaultadapter(); // if device not support bluetooth if(bluetoothadapter==null){     log.d(tag,"device doesn't supports bluetooth"); // in case of emulator     straddress = null; } else       straddress = bluetoothadapter.getaddress(); 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -