There are a couple of threads on Stack Overflow regarding ways to test
Bluetooth code on a PC. As a few people have mentioned, the emulator
doesn't support BT (see the Bluetooth FAQ).

The best suggestion I've seen is to install Android-x86 on a virtual
machine (VMWare/VirtualBox/Qemu). This is useful if you don't have
access to a Androd device for development. I haven't tested this out,
but I wasn't able to find anything online that indicated that
Android-x86 doesn't support BT.

- Android-x86: Installation ISO images (2.2 is the latest they seem to have)
  http://www.android-x86.org/download

- Get source code
  http://www.android-x86.org/getsourcecode

- Android-x86: VirtualBox HowTo
  http://www.android-x86.org/documents/virtualboxhowto

I couldn't find download links for the 2.3 ISO on Android-x86. The
"Get Source" page mentions a source code branch for 2.3. You could
also try compiling the x86 code and creating the Gingerbread binaries
yourself.

I hope other list members who have successfully done any of the above
would be able to give you some tips to get you going.

As with anything else, you might want to test your app on a real
device before releasing it to the public.

----

The following are some links you might want to consider checking out
(some of them scraped from the Stack Overflow threads I mentioned):

- Android Open Source Project
  http://source.android.com/
  http://android.git.kernel.org/

  - Building for Devices
    http://source.android.com/source/building-devices.html


- Binaries for Nexus Phones
  http://code.google.com/android/nexus/drivers.html


- How to use Bluetooth in Android emulator?
  
http://stackoverflow.com/questions/2175076/how-to-use-bluetooth-in-android-emulator

  - Android-x86
    How to use Bluetooth in Android emulator?

  - Bluetooth FAQ
    https://sites.google.com/a/android.com/opensource/projects/bluetooth-faq


- Bluetooth support on Android Emulator
  
http://stackoverflow.com/questions/2384461/bluetooth-support-on-android-emulator

  - Android Bluetooth Simulator
    https://github.com/cheng81/Android-Bluetooth-Simulator



On Sun, May 29, 2011 at 11:01 PM, Kristopher Micinski
<krismicin...@gmail.com> wrote:
> BT only works on real devices, no emulator support (perhaps I heard of
> someone hacking it, but typically it's best to be on a device.)
>
> On May 30, 2011 1:58 AM, "khanh_qhi™" <khanhqh20...@gmail.com> wrote:
>
> Yeah, I run it on emulator and it won't work.
>
> On Mon, May 30, 2011 at 12:28 PM, Kristopher Micinski
> <krismicin...@gmail.com> wrote:
>>
>> >
>> > Are you running it on the emulator? That won't work.
>> >>
>> >> On May 30, 2011 1:08 AM, "khanh_qhi™"...
>>
>> > You received this message because you are subscribed to the Google
>>
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googl...
>
>
> --
>
> Regards,
> Khanh.
>
> --
> You received this message because you are subscribed to the Google
>
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegro...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to