我的Android3.0關於藍牙聊天應用
http://developer.android.com/resources/samples/BluetoothChat/res/index.html執行此示例代碼
藍牙聊天
<!-- BluetoothChat -->
<string name="send">Send</string>
<string name="not_connected">You are not connected to a device</string>
<string name="bt_not_enabled_leaving">Bluetooth was not enabled. Leaving Bluetooth Chat.</string>
<string name="title_connecting">connecting...</string>
<string name="title_connected_to">connected to <xliff:g id="device_name">%1$s</xliff:g></string>
<string name="title_not_connected">not connected</string>
<!-- DeviceListActivity -->
<string name="scanning">scanning for devices...</string>
<string name="select_device">select a device to connect</string>
<string name="none_paired">No devices have been paired</string>
<string name="none_found">No devices found</string>
<string name="title_paired_devices">Paired Devices</string>
<string name="title_other_devices">Other Available Devices</string>
<string name="button_scan">Scan for devices</string>
<!-- Options Menu -->
<string name="secure_connect">Connect a device - Secure</string>
<string name="insecure_connect">Connect a device - Insecure</string>
<string name="discoverable">Make discoverable</string>
如果我AVD管理設置爲2.2它給我有些錯誤..
爲什麼?
有些錯誤?不是其他錯誤? – 2012-03-20 02:57:10
你怎麼樣設法利用BT與模擬器.... – 2012-03-20 03:16:48
你說,你曾用「在Android3.0的示例代碼」來創建一個項目,改變其目標至Android 2.2及項目開始出現的錯誤..這可能是因爲android3.0示例可能已經使用了一些在android 2.2中不可用的函數。如果您需要創建項目針對的Android2.2然後使用Android2.2的示例代碼,而不是3.0 – 2012-03-20 04:59:42