[android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Soyer
Sure, first bluetooth detection on Android emulator is not supported on Wind7 so i used VirtualBox to run it on Linux2.4, so the bluetooth features are supported by the Host OS and the emulator, but the thing is that the app is not detecting any devices (My phone...) This is my code: package

Re: [android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Kristopher Micinski
Did you try running this in a debugger to see what's going on? kris On Thu, Feb 9, 2012 at 9:58 AM, Soyer mblack...@gmail.com wrote: Sure, first bluetooth detection on Android emulator is not supported on Wind7 so i used VirtualBox to run it on Linux2.4, so the bluetooth features are

[android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Soyer
Hello Kris, i tried it on a mobile phone (HTC Hero) and no detected devices were displayed...it's showing the default bluetooth adapter, and then Start discovering, Done with discovery and at last: Devices paired: and nothing displayed, though my other mobile phone is next to it. On Feb

Re: [android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Kristopher Micinski
Oh, you're not using the BluetoothAdapter correctly... You basically call startdiscovery and then display stuff. That's not how it works. It's an asynchronous call. You start discovery with .startDiscovery() and then you have to wait until it's finished. To handle that, you wait for a

[android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Soyer
so it's an order issue, Could you please instruct me which part should i change?, because honestly i have read loads of articles and i don't think i am going anywhere which getting more n more frustrating... That would be Very Appreciated. On Feb 9, 8:21 pm, Kristopher Micinski

Re: [android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Kristopher Micinski
On Thu, Feb 9, 2012 at 11:44 AM, Soyer mblack...@gmail.com wrote: so it's an order issue, Could you please instruct me which part should i change?, because honestly i have read loads of articles and i don't think i am going anywhere which getting more n more frustrating... That would be Very

[android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Soyer
alright Thanks for the guidance mate. I will update u, thanks again. cheers :) On Feb 9, 8:54 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Thu, Feb 9, 2012 at 11:44 AM, Soyer mblack...@gmail.com wrote: so it's an order issue, Could you please instruct me which part should i