Android4.03,蓝牙设备和手机蓝牙可以正常配对链接,但是和单声道和双声道耳机配对时自动断开,但是在重新启动设置时看到已经与耳机配对,再次点击耳机直接就退出设置。而且蓝牙耳机也一直无法工作。等高人解决。

解决方案 »

  1.   

    当点击蓝牙耳机的头标后,dalvik就shutdown了,log如下:
    ***************************************************************************************
    D/LocalBluetoothManager( 3152): setting foreground activity to non-null context
    D/LocalBluetoothManager( 3152): setting foreground activity to null
    D/LocalBluetoothManager( 3152): setting foreground activity to non-null context
    D/LocalBluetoothManager( 3152): setting foreground activity to null
    D/LocalBluetoothManager( 3152): setting foreground activity to non-null context
    D/AndroidRuntime( 3152): Shutting down VM
    W/dalvikvm( 3152): threadid=1: thread exiting with uncaught exception (group=0x40f0a1f8)
    E/AndroidRuntime( 3152): FATAL EXCEPTION: main
    E/AndroidRuntime( 3152): java.lang.NullPointerException
    E/AndroidRuntime( 3152):        at com.android.settings.bluetooth.HeadsetProfile.isPreferred(HeadsetProfile.java:144)
    E/AndroidRuntime( 3152):        at com.android.settings.bluetooth.CachedBluetoothDevice.connectWithoutResettingTimer(CachedBluetoothDevice.java:201)
    E/AndroidRuntime( 3152):        at com.android.settings.bluetooth.CachedBluetoothDevice.connect(CachedBluetoothDevice.java:175)
    E/AndroidRuntime( 3152):        at com.android.settings.bluetooth.BluetoothDevicePreference.onClicked(BluetoothDevicePreference.java:179)
    E/AndroidRuntime( 3152):        at com.android.settings.bluetooth.DeviceListPreferenceFragment.onDevicePreferenceClick(DeviceListPreferenceFragment.java:148)
    E/AndroidRuntime( 3152):        at com.android.settings.bluetooth.BluetoothSettings.onDevicePreferenceClick(BluetoothSettings.java:218)
    E/AndroidRuntime( 3152):        at com.android.settings.bluetooth.DeviceListPreferenceFragment.onPreferenceTreeClick(DeviceListPreferenceFragment.java:140)
    E/AndroidRuntime( 3152):        at android.preference.Preference.performClick(Preference.java:949)
    E/AndroidRuntime( 3152):        at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:202)
    E/AndroidRuntime( 3152):        at android.widget.AdapterView.performItemClick(AdapterView.java:292)
    E/AndroidRuntime( 3152):        at android.widget.AbsListView.performItemClick(AbsListView.java:1058)
    E/AndroidRuntime( 3152):        at android.widget.AbsListView$PerformClick.run(AbsListView.java:2514)
    E/AndroidRuntime( 3152):        at android.widget.AbsListView$1.run(AbsListView.java:3168)
    E/AndroidRuntime( 3152):        at android.os.Handler.handleCallback(Handler.java:605)
    E/AndroidRuntime( 3152):        at android.os.Handler.dispatchMessage(Handler.java:92)
    E/AndroidRuntime( 3152):        at android.os.Looper.loop(Looper.java:137)
    E/AndroidRuntime( 3152):        at android.app.ActivityThread.main(ActivityThread.java:4424)
    E/AndroidRuntime( 3152):        at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 3152):        at java.lang.reflect.Method.invoke(Method.java:511)
    E/AndroidRuntime( 3152):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
    E/AndroidRuntime( 3152):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    E/AndroidRuntime( 3152):        at dalvik.system.NativeStart.main(Native Method)
    W/ActivityManager(  809): Process com.android.settings has crashed too many times: killing!
    W/ActivityManager(  809):   Force finishing activity com.android.settings/.Settings
    I/ActivityManager(  809): Killing proc 3152:com.android.settings/1000: crash
    W/NetworkManagementSocketTagger(  809): setKernelCountSet(1000, 0) failed with errno -2
    W/NetworkManagementSocketTagger(  809): setKernelCountSet(10018, 1) failed with errno -2
    [ 4099.560000] binder: release proc 3152, transaction 167210, not freed
    ************************************************************************************