求助蓝牙单双声道耳机与开发板蓝牙设备配对时自动断开问题 Android4.03,蓝牙设备和手机蓝牙可以正常配对链接,但是和单声道和双声道耳机配对时自动断开,但是在重新启动设置时看到已经与耳机配对,再次点击耳机直接就退出设置。而且蓝牙耳机也一直无法工作。等高人解决。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 当点击蓝牙耳机的头标后,dalvik就shutdown了,log如下:***************************************************************************************D/LocalBluetoothManager( 3152): setting foreground activity to non-null contextD/LocalBluetoothManager( 3152): setting foreground activity to nullD/LocalBluetoothManager( 3152): setting foreground activity to non-null contextD/LocalBluetoothManager( 3152): setting foreground activity to nullD/LocalBluetoothManager( 3152): setting foreground activity to non-null contextD/AndroidRuntime( 3152): Shutting down VMW/dalvikvm( 3152): threadid=1: thread exiting with uncaught exception (group=0x40f0a1f8)E/AndroidRuntime( 3152): FATAL EXCEPTION: mainE/AndroidRuntime( 3152): java.lang.NullPointerExceptionE/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/.SettingsI/ActivityManager( 809): Killing proc 3152:com.android.settings/1000: crashW/NetworkManagementSocketTagger( 809): setKernelCountSet(1000, 0) failed with errno -2W/NetworkManagementSocketTagger( 809): setKernelCountSet(10018, 1) failed with errno -2[ 4099.560000] binder: release proc 3152, transaction 167210, not freed************************************************************************************ 自定义listView的Item的样式出现问题 求教 求android连接sqlserver 数据库实例代码 请教怎么实现文字不拖动的时候就自动垂直滚动? android能不能用spring,依赖注入 获得系统日期时间 如何动态改变 AbsoluteLayout布局中其它布局的坐标,急 如何单独设置锁屏壁纸 实现手机和电脑之间的数据传输的解决方案 lntent的问题 Android studio中添加的依赖标红,并且xml中无法引用 关于Layout-***x***的困惑 录音格式转换成wav格式
***************************************************************************************
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
************************************************************************************