我一直在嘗試開發應用程序並在虛擬機上的Android x86上測試它們。我遇到的問題是它在打開藍牙時掛起並且從未實際打開它。我正在使用MacBook藍牙。我已經在虛擬框中啓用它(它旁邊有刻度)。我想知道是否有解決方案,因爲我沒有Android手機來測試。 Android x86 2.2是我正在使用的。Android x86藍牙macbook
我的日誌貓:
I/ActivityManager(2052): Starting activity: Intent { cmp=com.project.saff/.FaultScreenConnect }
I/ActivityManager(2052): Displayed activity com.project.saff/.FaultScreenConnect: 189 ms (total 189 ms)
I/ActivityManager(2052): Starting activity: Intent { act=android.bluetooth.adapter.action.REQUEST_ENABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity }
I/ActivityManager(2052): Starting activity: Intent { act=com.android.settings.bluetooth.ACTION_INTERNAL_REQUEST_BT_ON cmp=com.android.settings/.bluetooth.RequestPermissionHelperActivity }
I/ActivityManager(2052): Displayed activity com.android.settings/.bluetooth.RequestPermissionHelperActivity: 193 ms (total 198 ms)
I/ActivityManager(2052): Displayed activity com.android.settings/.bluetooth.RequestPermissionActivity: 198 ms (total 198 ms)
D/BluetoothService(2052): Bluetooth state 10 -> 11
V/BluetoothEventRedirector(2147): Received android.bluetooth.adapter.action.STATE_CHANGED
I/bluedroid(2052): Starting hciattach daemon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
D/dalvikvm(2291): GC_EXPLICIT freed 1414 objects/101976 bytes in 4ms
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
I/bluedroid(2052): Stopping bluetoothd deamon
I/bluedroid(2052): Stopping hciattach deamon
E/bluedroid(2052): bt_enable: Timeout waiting for HCI device to come up
D/BluetoothService(2052): Bluetooth state 11 -> 10
V/BluetoothEventRedirector(2147): Received android.bluetooth.adapter.action.STATE_CHANGED
歡迎來到堆棧溢出!如果您發現回覆有幫助,請投票。如果回覆成功回答您的問題,請點擊旁邊的綠色複選標記以接受答案。另請看看http://stackoverflow.com/questions/how-to-ask關於如何編寫一個好問題的建議 –
你的logcat中有沒有什麼有趣的事情發生?您可以通過adb連接到它:http://developer.android.com/guide/developing/tools/adb.html –
您是否在談論x86模擬器(如Google TV)?我不確定「虛擬盒子」在模擬器方面的位置。 – pjv