我的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