Where is the bluetooth MAC address saved?

by windrg » Wed, 29 Apr 2009 15:25:06 GMT

Sponsored Links
 Hello, All?
I'd like to know where the bluetooth MAC address is saved in the file
Could you let me know the path where it is saved and maintained if you


Where is the bluetooth MAC address saved?

by Nick Pelly » Wed, 29 Apr 2009 23:27:16 GMT

 It's on the Bluetooth chipset. You can obtain it programatically using
Bluez's DBUS interface, or BluetoothDevice.java. Bluez also uses the
address in /data/misc/hcid/[MAC] but its a bad idea to rely on that.



Sponsored Links

Where is the bluetooth MAC address saved?

by windrg » Thu, 30 Apr 2009 10:29:15 GMT

 Thx for your answer.
BTW, I couldn't find the path /data/misc/hcid/[MAC].
Plus I couldn't find the path 'data' under the root.
Could you check the path again, plz?



Other Threads

1. How to record a audio in Android and save it in Database ?

 I am making an Android app , I am facing problem in recording a audio
( it should record for 5-10 sec) and store that in Database.
 For audio recording i follow this:    http://xhampa.pastebin.com/Yr2hie6q

But it is not working properly. What to do ? I can not record the
Audio on my G1 mobile. Any suggestion welcome.


2. Unable to display tiles on MapActivity


I have a map activity that I created following the Hello MapView
example. But when I try loading the activity, I get only grey tiles
and no actual map tiles. In the DDMS I see the "Couldnt get connection
factory client" exception. I am using Emulator with Device API version
as 8 and using Android 2.2.

It seems a lot of people on this forum has that issue and it has been
pointed that this results in either the wrong map key or internet
connectivity issue. I did try browse google maps on emulator and it
worked fine. So internet shouldnt be an issue.

For the maps key I did get the MD5 certificate and confirmed the API
key. I dont know of any other way to find that the key is valid or

Here is what I used to get the certificate:

C:\Program Files\Java\jdk1.6.0_22\bin>keytool -list -alias
androiddebugkey -keys
tore "c:\documents and settings\apurvag\.android\debug.keystore" -
storepass andr
oid -keypass android

Here is my manifest file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      <uses-permission android:name="android.permission.INTERNET" />

    <application android:icon="@drawable/icon" android:label="@string/
        <activity android:name=".LoginScreen"
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />
<activity android:name=".MainMenu"
<activity android:name=".GPSScreen"
<uses-library android:name="com.google.android.maps"/>

Any help on this one is highly appreciated.



3. How to code on KeyEvent.KeyCodeBack when on tab view..

4. "Problem parsing the package"

5. Newbie having trouble launching new activity, application stops unexpectedly

6. App under 1.5 for large screens?

7. After updating API my all android emulators can`t connect to web