2011-11-13 82 views
1

我一直在嘗試開發應用程序並在虛擬機上的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 
+0

歡迎來到堆棧溢出!如果您發現回覆有幫助,請投票。如果回覆成功回答您的問題,請點擊旁邊的綠色複選標記以接受答案。另請看看http://stackoverflow.com/questions/how-to-ask關於如何編寫一個好問題的建議 –

+0

你的logcat中有沒有什麼有趣的事情發生?您可以通過adb連接到它:http://developer.android.com/guide/developing/tools/adb.html –

+0

您是否在談論x86模擬器(如Google TV)?我不確定「虛擬盒子」在模擬器方面的位置。 – pjv

回答

1

的x86模擬器爲Android上,您可以運行谷歌電視,目前只適用於Linux的與KVM - 支持內核(在BIOS英特爾虛擬化支持)。 當前不支持Windows和Mac OS X.

System reqs

+0

這是我的日誌貓 – user1022306

0

你沒有說明你從哪裏得到你的Android X86的形象,所以我會假設,這是從www.android-x86.org。此係統構建需要運行特定的硬件,即使您的硬件實際支持,它也可能無法通過Virtual Box工作。

有關實際測試硬件的列表,請參閱here。在我使用Virtual Box測試過的版本上,大部分工作正常,但有限的設備支持,例如相機,GPS,藍牙,WIFI無法正常工作(無法打開)。有關Virtual Box here上的Android X86的指南,並且有this博客條目描述瞭如何設置一些附加選項,以便模仿實際設備的屬性(如手機的屏幕分辨率等)