[android-developers] Re: android bluetooth

2009-11-09 Thread aparna
Hello George,


Are you trying to develop a bluetooth chat application?
Even I was interested in doin the same..
Can you pls guide me for the same?

Regards
Aparna

On Nov 9, 4:50 pm, george  wrote:
> Hi all
>
> I'm developing chat application
>
> i want android device to connect with other non android device that
> implement jsr 82
>
> so how can i declare my bluetooth service on android
>
> or how to connect to any jsr 82 service ...
>
> Thanks

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


[android-developers] Re: android bluetooth

2010-12-14 Thread Jags
Can anybody please put some insight into how can I intercept bluetooth
handsfree button press in my application ?

regards
Jags

On Nov 29, 3:36 pm, Jags  wrote:
> I am using an handsfree bluetooth handset in ndroid device. i need to
> program the handsfree in my application. Firstly, when i create a beep
> sound it should be heard in handsfree. When i press some button (in
> fact 1 out of 2 buttons, I need yes or no answer) in handsfree and the
> appropriate answer is received by my application
>
> is this possible ? how to do this ?
>
> regards

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


[android-developers] Re: android bluetooth

2010-12-16 Thread Jags
is this message a spam ? Nobody is able to see my message or what ?
dont get answers, only get spams posted in the forum !

On Dec 16, 11:03 am, "hanika"  wrote:
> hi
>
> Thanks & Regards,
> cid:image002@01CA2AEF.10F60770
> Vijay Patel
> Test Engineer
> Elitecore Technologies Ltd.
> 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> Tel: +91-79-66065606 | HYPERLINK
> "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> P    Please do not print this email unless it is absolutely necessary.
> Spread environmental awareness.
>
>  image001.jpg
> 2KViewDownload

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


[android-developers] Re: android bluetooth

2010-12-16 Thread Indicator Veritatis
I don't know why this thread is getting spam, but I can offer a guess
why you are not getting answers. Your questions seems to strongly
imply you have not studied the basics of how to do Bluetooth (whether
on Android or not). Specifically, the beep you are interested in
controlling is under the headset's control: it is NOT controllable
from Android. Nor should it be, so don't wait for it to be added in a
future version.

On Dec 16, 1:21 am, Jags  wrote:
> is this message a spam ? Nobody is able to see my message or what ?
> dont get answers, only get spams posted in the forum !
>
> On Dec 16, 11:03 am, "hanika"  wrote:
>
> > hi
>
> > Thanks & Regards,
> > cid:image002@01CA2AEF.10F60770
> > Vijay Patel
> > Test Engineer
> > Elitecore Technologies Ltd.
> > 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> > Tel: +91-79-66065606 | HYPERLINK
> > "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> > HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> > P    Please do not print this email unless it is absolutely necessary.
> > Spread environmental awareness.
>
> >  image001.jpg
> > 2KViewDownload
>
>

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


[android-developers] Re: android bluetooth

2010-12-22 Thread Jags
thanks IV,

I guess i could not put my [oint across properly. Beep is at headsets
control, i know. Now when the headset is paired, and my custom
application plays a beep, does it automatically beep in the headset or
in the handset ? if it automatically beeps in the headset, good, if
not what can i do in my custom app to make the beep heard in the
headset ?

more to that i also need to capture some keypress volume up and down
from the headset in my application
will I be able to do that in my application ? how ? documentation is
not clear on this !

thanks and regards
Jagat

On Dec 17, 10:57 am, Indicator Veritatis  wrote:
> I don't know why this thread is getting spam, but I can offer a guess
> why you are not getting answers. Your questions seems to strongly
> imply you have not studied the basics of how to do Bluetooth (whether
> on Android or not). Specifically, the beep you are interested in
> controlling is under the headset's control: it is NOT controllable
> from Android. Nor should it be, so don't wait for it to be added in a
> future version.
>
> On Dec 16, 1:21 am,Jags wrote:
>
> > is this message a spam ? Nobody is able to see my message or what ?
> > dont get answers, only get spams posted in the forum !
>
> > On Dec 16, 11:03 am, "hanika"  wrote:
>
> > > hi
>
> > > Thanks & Regards,
> > > cid:image002@01CA2AEF.10F60770
> > > Vijay Patel
> > > Test Engineer
> > > Elitecore Technologies Ltd.
> > > 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> > > Tel: +91-79-66065606 | HYPERLINK
> > > "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> > > HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> > > P    Please do not print this email unless it is absolutely necessary.
> > > Spread environmental awareness.
>
> > >  image001.jpg
> > > 2KViewDownload
>
>

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


[android-developers] Re: android bluetooth

2010-12-23 Thread Indicator Veritatis
Yes, that is right. You did not get your point across properly. You
are doing better in this post, though, despite the disappointing typo
of '[oint' for 'point'.

But if you do know that the beep is "at headsets[sic] control", why
you even asking where it is? That makes no sense.

The truth of the matter is that the Bluetooth spec does not mandate
the beep. The implementer may chose to do it in the headset software,
as it is the only choice that makes sense: otherwise the user gets no
audio feedback to know that pairing just happened. The only feedback
that the Android application gets is that now the headset is listed in
the list of bound devices returned by getBondedDevices().

That is, you can sense when the headset was paired by polling
getBondedDevices(), but you cannot cause the beep, nor can you sense
when the headset does its own beep. You can only rely on what the
headset manufacturer chose to implement in their own Bluetooth code.

On Dec 22, 9:52 pm, Jags  wrote:
> thanks IV,
>
> I guess i could not put my [oint across properly. Beep is at headsets
> control, i know. Now when the headset is paired, and my custom
> application plays a beep, does it automatically beep in the headset or
> in the handset ? if it automatically beeps in the headset, good, if
> not what can i do in my custom app to make the beep heard in the
> headset ?
>
> more to that i also need to capture some keypress volume up and down
> from the headset in my application
> will I be able to do that in my application ? how ? documentation is
> not clear on this !
>
> thanks and regards
> Jagat
>
> On Dec 17, 10:57 am, Indicator Veritatis  wrote:
>
> > I don't know why this thread is getting spam, but I can offer a guess
> > why you are not getting answers. Your questions seems to strongly
> > imply you have not studied the basics of how to do Bluetooth (whether
> > on Android or not). Specifically, the beep you are interested in
> > controlling is under the headset's control: it is NOT controllable
> > from Android. Nor should it be, so don't wait for it to be added in a
> > future version.
>
> > On Dec 16, 1:21 am,Jags wrote:
>
> > > is this message a spam ? Nobody is able to see my message or what ?
> > > dont get answers, only get spams posted in the forum !
>
> > > On Dec 16, 11:03 am, "hanika"  wrote:
>
> > > > hi
>
> > > > Thanks & Regards,
> > > > cid:image002@01CA2AEF.10F60770
> > > > Vijay Patel
> > > > Test Engineer
> > > > Elitecore Technologies Ltd.
> > > > 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> > > > Tel: +91-79-66065606 | HYPERLINK
> > > > "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> > > > HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> > > > P    Please do not print this email unless it is absolutely necessary.
> > > > Spread environmental awareness.
>
> > > >  image001.jpg
> > > > 2KViewDownload
>
>

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


[android-developers] Re: android bluetooth

2010-12-23 Thread Jags
Thanks a ton IV, I am happy as long as I get some relevant
solution :) .

1. Beep, means I did not mean default handset beep. I meant in my
custom application i play a sound. if my hedset is paired when i am
playing the sound in my custom application using Mediaplayer class,
will it be heard in my headset ?

2. will i be able to capture volume up/down key press in the headset
in my application ? if yes how ?

regards

On Dec 24, 5:53 am, Indicator Veritatis  wrote:
> Yes, that is right. You did not get your point across properly. You
> are doing better in this post, though, despite the disappointing typo
> of '[oint' for 'point'.
>
> But if you do know that the beep is "at headsets[sic] control", why
> you even asking where it is? That makes no sense.
>
> The truth of the matter is that the Bluetooth spec does not mandate
> the beep. The implementer may chose to do it in the headset software,
> as it is the only choice that makes sense: otherwise the user gets no
> audio feedback to know that pairing just happened. The only feedback
> that the Android application gets is that now the headset is listed in
> the list of bound devices returned by getBondedDevices().
>
> That is, you can sense when the headset was paired by polling
> getBondedDevices(), but you cannot cause the beep, nor can you sense
> when the headset does its own beep. You can only rely on what the
> headset manufacturer chose to implement in their own Bluetooth code.
>
> On Dec 22, 9:52 pm,Jags wrote:
>
> > thanks IV,
>
> > I guess i could not put my [oint across properly. Beep is at headsets
> > control, i know. Now when the headset is paired, and my custom
> > application plays a beep, does it automatically beep in the headset or
> > in the handset ? if it automatically beeps in the headset, good, if
> > not what can i do in my custom app to make the beep heard in the
> > headset ?
>
> > more to that i also need to capture some keypress volume up and down
> > from the headset in my application
> > will I be able to do that in my application ? how ? documentation is
> > not clear on this !
>
> > thanks and regards
> > Jagat
>
> > On Dec 17, 10:57 am, Indicator Veritatis  wrote:
>
> > > I don't know why this thread is getting spam, but I can offer a guess
> > > why you are not getting answers. Your questions seems to strongly
> > > imply you have not studied the basics of how to do Bluetooth (whether
> > > on Android or not). Specifically, the beep you are interested in
> > > controlling is under the headset's control: it is NOT controllable
> > > from Android. Nor should it be, so don't wait for it to be added in a
> > > future version.
>
> > > On Dec 16, 1:21 am,Jags wrote:
>
> > > > is this message a spam ? Nobody is able to see my message or what ?
> > > > dont get answers, only get spams posted in the forum !
>
> > > > On Dec 16, 11:03 am, "hanika"  wrote:
>
> > > > > hi
>
> > > > > Thanks & Regards,
> > > > > cid:image002@01CA2AEF.10F60770
> > > > > Vijay Patel
> > > > > Test Engineer
> > > > > Elitecore Technologies Ltd.
> > > > > 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> > > > > Tel: +91-79-66065606 | HYPERLINK
> > > > > "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> > > > > HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> > > > > P    Please do not print this email unless it is absolutely necessary.
> > > > > Spread environmental awareness.
>
> > > > >  image001.jpg
> > > > > 2KViewDownload
>
>

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


[android-developers] Re: android bluetooth

2010-12-24 Thread Per
As far as I can see, Android does not currently support playing sound
(beeps or other) through a mono (SCO) BT headset. I believe that BT
stereo (A2DP) headsets work, though. Have not tried.
You might want to check this thread for more info:
http://code.google.com/p/android/issues/detail?id=7906

As for getting info on headset button activations in your app, I
believe that this requires support for the AVRCP profile. Again, this
is commonly seen for stereo headsets, but not for mono. I don't think
that the Android BT stack supports AVRCP.
This wikipedia article gives a good intro to BT profiles, if you need
that: http://en.wikipedia.org/wiki/Bluetooth_profile

If you manage to get it to work, be aware that the various
manufacturer's interpretation of the BT spec tend to vary a bit... In
other words: I'd recommend to test the functionality with every
headset that you wish to claim supported by your app.

Good luck!

BR
Per


On 24 Dec., 06:51, Jags  wrote:
> Thanks a ton IV, I am happy as long as I get some relevant
> solution :) .
>
> 1. Beep, means I did not mean default handset beep. I meant in my
> custom application i play a sound. if my hedset is paired when i am
> playing the sound in my custom application using Mediaplayer class,
> will it be heard in my headset ?
>
> 2. will i be able to capture volume up/down key press in the headset
> in my application ? if yes how ?
>
> regards
>
> On Dec 24, 5:53 am, Indicator Veritatis  wrote:
>
> > Yes, that is right. You did not get your point across properly. You
> > are doing better in this post, though, despite the disappointing typo
> > of '[oint' for 'point'.
>
> > But if you do know that the beep is "at headsets[sic] control", why
> > you even asking where it is? That makes no sense.
>
> > The truth of the matter is that the Bluetooth spec does not mandate
> > the beep. The implementer may chose to do it in the headset software,
> > as it is the only choice that makes sense: otherwise the user gets no
> > audio feedback to know that pairing just happened. The only feedback
> > that the Android application gets is that now the headset is listed in
> > the list of bound devices returned by getBondedDevices().
>
> > That is, you can sense when the headset was paired by polling
> > getBondedDevices(), but you cannot cause the beep, nor can you sense
> > when the headset does its own beep. You can only rely on what the
> > headset manufacturer chose to implement in their own Bluetooth code.
>
> > On Dec 22, 9:52 pm,Jags wrote:
>
> > > thanks IV,
>
> > > I guess i could not put my [oint across properly. Beep is at headsets
> > > control, i know. Now when the headset is paired, and my custom
> > > application plays a beep, does it automatically beep in the headset or
> > > in the handset ? if it automatically beeps in the headset, good, if
> > > not what can i do in my custom app to make the beep heard in the
> > > headset ?
>
> > > more to that i also need to capture some keypress volume up and down
> > > from the headset in my application
> > > will I be able to do that in my application ? how ? documentation is
> > > not clear on this !
>
> > > thanks and regards
> > > Jagat
>
> > > On Dec 17, 10:57 am, Indicator Veritatis  wrote:
>
> > > > I don't know why this thread is getting spam, but I can offer a guess
> > > > why you are not getting answers. Your questions seems to strongly
> > > > imply you have not studied the basics of how to do Bluetooth (whether
> > > > on Android or not). Specifically, the beep you are interested in
> > > > controlling is under the headset's control: it is NOT controllable
> > > > from Android. Nor should it be, so don't wait for it to be added in a
> > > > future version.
>
> > > > On Dec 16, 1:21 am,Jags wrote:
>
> > > > > is this message a spam ? Nobody is able to see my message or what ?
> > > > > dont get answers, only get spams posted in the forum !
>
> > > > > On Dec 16, 11:03 am, "hanika"  wrote:
>
> > > > > > hi
>
> > > > > > Thanks & Regards,
> > > > > > cid:image002@01CA2AEF.10F60770
> > > > > > Vijay Patel
> > > > > > Test Engineer
> > > > > > Elitecore Technologies Ltd.
> > > > > > 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> > > > > > Tel: +91-79-66065606 | HYPERLINK
> > > > > > "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> > > > > > HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> > > > > > P    Please do not print this email unless it is absolutely 
> > > > > > necessary.
> > > > > > Spread environmental awareness.
>
> > > > > >  image001.jpg
> > > > > > 2KViewDownload

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


[android-developers] Re: android bluetooth

2010-12-24 Thread Indicator Veritatis
You are welcome.

Now as for your handset beep: there is no API in the android.bluetooth
packet for generating the headset beep on a remote device. The best
you can hope for is that the headset manufacturer publishes a protocol
for setting this using the RFCOMM a.k.a. SPP link to the device. But I
have never seen a Bluetooth headset that does this.

But you should also look at 
https://sites.google.com/a/android.com/opensource/projects/bluetooth-faq

On Dec 23, 9:51 pm, Jags  wrote:
> Thanks a ton IV, I am happy as long as I get some relevant
> solution :) .
>
> 1. Beep, means I did not mean default handset beep. I meant in my
> custom application i play a sound. if my hedset is paired when i am
> playing the sound in my custom application using Mediaplayer class,
> will it be heard in my headset ?
>
> 2. will i be able to capture volume up/down key press in the headset
> in my application ? if yes how ?
>
> regards
>
> On Dec 24, 5:53 am, Indicator Veritatis  wrote:> Yes, that 
> is right. You did not get your point across properly. You
> > are doing better in this post, though, despite the disappointing typo
> > of '[oint' for 'point'.
>
> > But if you do know that the beep is "at headsets[sic] control", why
> > you even asking where it is? That makes no sense.
>
> > The truth of the matter is that the Bluetooth spec does not mandate
> > the beep. The implementer may chose to do it in the headset software,
> > as it is the only choice that makes sense: otherwise the user gets no
> > audio feedback to know that pairing just happened. The only feedback
> > that the Android application gets is that now the headset is listed in
> > the list of bound devices returned by getBondedDevices().
>
> > That is, you can sense when the headset was paired by polling
> > getBondedDevices(), but you cannot cause the beep, nor can you sense
> > when the headset does its own beep. You can only rely on what the
> > headset manufacturer chose to implement in their own Bluetooth code.
>
> > On Dec 22, 9:52 pm,Jags wrote:
>
> > > thanks IV,
>
> > > I guess i could not put my [oint across properly. Beep is at headsets
> > > control, i know. Now when the headset is paired, and my custom
> > > application plays a beep, does it automatically beep in the headset or
> > > in the handset ? if it automatically beeps in the headset, good, if
> > > not what can i do in my custom app to make the beep heard in the
> > > headset ?
>
> > > more to that i also need to capture some keypress volume up and down
> > > from the headset in my application
> > > will I be able to do that in my application ? how ? documentation is
> > > not clear on this !
>
> > > thanks and regards
> > > Jagat
>
> > > On Dec 17, 10:57 am, Indicator Veritatis  wrote:
>
> > > > I don't know why this thread is getting spam, but I can offer a guess
> > > > why you are not getting answers. Your questions seems to strongly
> > > > imply you have not studied the basics of how to do Bluetooth (whether
> > > > on Android or not). Specifically, the beep you are interested in
> > > > controlling is under the headset's control: it is NOT controllable
> > > > from Android. Nor should it be, so don't wait for it to be added in a
> > > > future version.
>
> > > > On Dec 16, 1:21 am,Jags wrote:
>
> > > > > is this message a spam ? Nobody is able to see my message or what ?
> > > > > dont get answers, only get spams posted in the forum !
>
> > > > > On Dec 16, 11:03 am, "hanika"  wrote:
>
> > > > > > hi
>
> > > > > > Thanks & Regards,
> > > > > > cid:image002@01CA2AEF.10F60770
> > > > > > Vijay Patel
> > > > > > Test Engineer
> > > > > > Elitecore Technologies Ltd.
> > > > > > 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> > > > > > Tel: +91-79-66065606 | HYPERLINK
> > > > > > "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> > > > > > HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> > > > > > P    Please do not print this email unless it is absolutely 
> > > > > > necessary.
> > > > > > Spread environmental awareness.
>
> > > > > >  image001.jpg
> > > > > > 2KViewDownload
>
>

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


RE: [android-developers] Re: android bluetooth

2010-12-15 Thread hanika
hi 
  
  
Thanks & Regards, 
cid:image002.jpg@01CA2AEF.10F60770 
Vijay Patel 
Test Engineer 
Elitecore Technologies Ltd. 
904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA), 
Tel: +91-79-66065606 | HYPERLINK
"mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com 
HYPERLINK "http://www.cyberoam.com"www.cyberoam.com 
PPlease do not print this email unless it is absolutely necessary.
Spread environmental awareness. 
  

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

Re: [android-developers] Re: android bluetooth

2010-12-16 Thread Abhilash baddam
Hi every one..
 I am new to Android. I want to send an image from
sdcard to server. For that already  I have displayed all the images from
sdcard in Grid View. Now I want , when we click on a particular image that
image have to sent to server.  For that plz send any code snippets regarding
this issue.


Regards,
Abhay_401

On Thu, Dec 16, 2010 at 2:51 PM, Jags  wrote:

> is this message a spam ? Nobody is able to see my message or what ?
> dont get answers, only get spams posted in the forum !
>
> On Dec 16, 11:03 am, "hanika"  wrote:
> > hi
> >
> > Thanks & Regards,
> > cid:image002@01CA2AEF.10F60770
> > Vijay Patel
> > Test Engineer
> > Elitecore Technologies Ltd.
> > 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> > Tel: +91-79-66065606 | HYPERLINK
> > "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> > HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> > PPlease do not print this email unless it is absolutely necessary.
> > Spread environmental awareness.
> >
> >  image001.jpg
> > 2KViewDownload
>
> --
> 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

[android-developers] Re: Android Bluetooth Development - Problem connecting

2010-03-17 Thread DonFrench

> BTW: There is some very important Information missing on the Android-
> dev Page about the Bluetooth API. The android.Permissions.INTERNET
> have to be set in the Manifest too, because without them creating a
> Socket will fail.

I am not replying to your main question because I don't have time to
wade through all the extraneous information, but as to this last bit
-- I can tell you that my Bluetooth app does not have INTERNET
permissions and it works.

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


[android-developers] Re: Android Bluetooth Development - Problem connecting

2010-03-17 Thread philDev
OK, but still thank you

On Mar 17, 7:10 pm, DonFrench  wrote:
> > BTW: There is some very important Information missing on the Android-
> > dev Page about the Bluetooth API. The android.Permissions.INTERNET
> > have to be set in the Manifest too, because without them creating a
> > Socket will fail.
>
> I am not replying to your main question because I don't have time to
> wade through all the extraneous information, but as to this last bit
> -- I can tell you that my Bluetooth app does not have INTERNET
> permissions and it works.

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


[android-developers] Re: Android Bluetooth Development - Problem connecting

2010-03-20 Thread philDev
push

On Mar 17, 7:23 pm, philDev  wrote:
> OK, but still thank you
>
> On Mar 17, 7:10 pm, DonFrench  wrote:
>
> > > BTW: There is some very important Information missing on theAndroid-
> > > dev Page about theBluetoothAPI. Theandroid.Permissions.INTERNET
> > > have to be set in the Manifest too, because without them creating a
> > > Socket will fail.
>
> > I am not replying to your main question because I don't have time to
> > wade through all the extraneous information, but as to this last bit
> > -- I can tell you that myBluetoothapp does not have INTERNET
> > permissions and it works.
>
>

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: Android Bluetooth l2cap socket bind()

2012-04-17 Thread Sam
Anyone could help??? Please...

On Apr 17, 4:58 pm, Sam  wrote:
> Android version: 2.3.7
>
> Kernel version: 2.6.35-14-CyanogenMod-Arco-Kalim arco@tuxbox #1
>
> Mod version: CyanogenMod-7.1.0.1-click
>
> The device has been fully rooted.
>
> I have added piece of code in my project
>
> which taken from Bluez Utils in hidd.c.
>
> The code is the following:
>
> if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
>     close(sk);
>     return -1;
>     }
>
> bind() keeps returning -1.
>
> I added a line(DisablePlugins = input) to the bluetooth configuration
> in my Android device /system/etc/bluetooth/main.conf
>
> The information I have is: sk:37
>
> (struct sockaddr *) &addr=0x44597e90
>
> sizeof(addr)=12
>
> errno:13
>
> Reason: Permission Denied.
>
> Can anyone help? If you need to know in more detail, feel free to let
> me know.

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


[android-developers] Re: Android Bluetooth Increase Speed Performance

2016-06-07 Thread gjs
Improve transfer speed by buffering the reads and writes (in 
pre-allocated fixed sized arrays) and DON'T allocate a new byte buffer in 
the middle of your while loop...

On Tuesday, June 7, 2016 at 3:18:13 AM UTC+10, Devin Chen wrote:
>
>
> I am trying to increase the transfer speed on android bluetooth. I 
> experimented transferring a 2.7MB buffer from one android device to another 
> using RFComm socket of the Bluetooth API (see code below). It took ~70 secs 
> to complete. I compared this method against the "Share" via bluetooth 
> function that came with the phone. The "Share" function gave exceptionally 
> better performance (~15 secs to transfer a 2.7MB file). 
>
> How does the "Share" function differ from using the Bluetooth API? How can 
> I replicate the "Share" method to get optimized transfer speed?
>
> Thanks,
>
> Bluetooth API test code:
>
> Server side - installed on one android device
>
>
> Thanks,
>
> Bluetooth API test code:
>
>
> Server side - installed on one android device
>
>
> BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
> mServerSocket = 
> mBluetoothAdapter.listenUsingRfcommWithServiceRecord("DeviceName", MY_UUID);
> socket = mServerSocket.accept();
> mInStream = socket.getInputStream();int totalByte = 1;while (totalByte < 
> 2718720) {
> int bytesAvailable = mInStream.available();
> if (bytesAvailable > 0) {
> totalByte += bytesAvailable;
> byte[] buffer = new byte[bytesAvailable];
> mInStream.read(buffer);
> }}
>
> Client side - installed on other android device
>
>
> mClientSocket = device.createInsecureRfcommSocketToServiceRecord(
> MY_UUID);
> mClientSocket.connect();
> mOutStream = mClientSocket.getOutputStream();byte byteValue = 0;for (int i=0; 
> i<2718720; i++) {
> byteValue++;
> mOutStream.write(byteValue);}
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/812ee3a1-09a6-4843-ab18-4a53db402122%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android Bluetooth Development - Problem connecting

2010-04-19 Thread Max
Hi Phil!

I just found your post and thought I'd chime in.

Funnily enough I'm just spending second day trying to connect to a
device with very similar signature to yours and I'm using code which
is pretty much the same as yours and, of course, I can't make it work
as well so I thought we could coordinate our efforts.

I'm attaching the result of my experiments using bluez at the end of
this email. As you can see the device report some UUID but I think
it's UUID for service discovery only because if I try to connect to it
the .connect() call gets through without any problems but the device
doesn't stay connected and, obviously, doesn't transmit any data.
I tried these UUIDs (actually more but these are the ones I have on
record :) ), without success:
8e1f0cf7-508f-4875-b62c-fbb67fd34812 // the one device reports
and a lot of base+number UUIDs:
--1000-8000-00805F9B34FB
with X being 0001, 0003, 0040, 04fb, 1000, 1101, 1124, 1240 and a host
of others.

The 1240 one is a random guess as I'm getting "Received signal
org.bluez.Device:PropertyChanged from /org/bluez/1240/hci0/
dev_00_1C_4D_02_A6_55" errors on LogCat so I gave '1240' a try.

I'm not even sure the base-uuid-plus-some-number scheme is a good idea
any more.

If you solve your problem please shout, I'll report any successes as
well. Good luck! :)

Cheers,
Max

$ sdptool browse
Inquiring ...
Browsing 00:1C:4D:02:A6:55 ...

$ sdptool records 00:1C:4D:02:A6:55
Service Name: Zeemote
Service RecHandle: 0x10015
Service Class ID List:
  UUID 128: 8e1f0cf7-508f-4875-b62c-fbb67fd34812
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:0x6a
  base_offset: 0x100

$ rfcomm connect /dev/tty10 00:1C:4D:02:A6:55
Connected /dev/rfcomm0 to 00:1C:4D:02:A6:55 on channel 1
Press CTRL-C for hangup

# rfcomm show /dev/tty10
rfcomm0: 00:1F:3A:E4:C8:40 -> 00:1C:4D:02:A6:55 channel 1 connected
[reuse-dlc release-on-hup tty-attached]

# cat /dev/tty10
(nothing here)

# hcidump
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0x
< HCI Command: Create Connection (0x01|0x0005) plen 13
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
> HCI Event: Read Remote Supported Features (0x0b) plen 11
< ACL data: handle 11 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
> HCI Event: Max Slots Change (0x1b) plen 3
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
> HCI Event: Command Status (0x0f) plen 4
> ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Info rsp: type 2 result 0
  Extended feature mask 0x
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x04fb scid 0x0040 result 1 status 2
  Connection pending - Authorization pending
> HCI Event: Remote Name Req Complete (0x07) plen 255
> ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x04fb scid 0x0040 result 0 status 0
  Connection successful
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x04fb flags 0x00 clen 4
  MTU 1013
> ACL data: handle 11 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
  Success
> ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
  MTU 1013
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x04fb flags 0x00 result 0 clen 4
  MTU 1013
< ACL data: handle 11 flags 0x02 dlen 8
L2CAP(d): cid 0x04fb len 4 [psm 3]
  RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
  RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(d): cid 0x04fb len 14 [psm 3]
  RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
  dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0
  frame_size 1008 max_retrans 0 credits 7
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 18
L2CAP(d): cid 0x0040 len 14 [psm 3]
  RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
  dlci 2 frame_type 0 credit_flow 14 pri 7 ack_timer 0
  frame_size 1008 max_retrans 0 credits 0
< ACL data: handle 11 flags 0x02 dlen 8
L2CAP(d): cid 0x04fb len 4 [psm 3]
  RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59
> ACL data: handle 11 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
  RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92
< ACL data: handle 11 flags 0x02 dlen 12
L

[android-developers] Re: Android Bluetooth Development - Problem connecting

2010-04-19 Thread ssozonoff
Hi Guys,

I am having the same issue with code which worked fine on the HTC
Legend and now fails on the HTC Desire.

Could you report which handsets you are using as well. I would like to
establish if this could be some sort of timing related issue.

Thanks,
Serge

On Apr 18, 12:32 am, Max  wrote:
> Hi Phil!
>
> I just found your post and thought I'd chime in.
>
> Funnily enough I'm just spending second day trying to connect to a
> device with very similar signature to yours and I'm using code which
> is pretty much the same as yours and, of course, I can't make it work
> as well so I thought we could coordinate our efforts.
>

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


Re: [android-developers] Re: Android Bluetooth Development - Problem connecting

2010-04-19 Thread Max Gilead
Hi Serge!

Moto Droid 2.0.1 here.

I described the issue in much more (and up to date) detail on Stack
Overflow:
http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after

What kind of timing issue you think about?

Cheers,
Max


On 19 April 2010 21:26, ssozonoff  wrote:

> Hi Guys,
>
> I am having the same issue with code which worked fine on the HTC
> Legend and now fails on the HTC Desire.
>
> Could you report which handsets you are using as well. I would like to
> establish if this could be some sort of timing related issue.
>
> Thanks,
> Serge
>
> On Apr 18, 12:32 am, Max  wrote:
> > Hi Phil!
> >
> > I just found your post and thought I'd chime in.
> >
> > Funnily enough I'm just spending second day trying to connect to a
> > device with very similar signature to yours and I'm using code which
> > is pretty much the same as yours and, of course, I can't make it work
> > as well so I thought we could coordinate our efforts.
> >
>
> --
> 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

[android-developers] Re: Android - Bluetooth communication with Lego NXT brick

2011-05-18 Thread gjs
Hi

Have a look at http://www.javaspecialists.eu/archive/Issue189.html

And maybe email the author.

Regards

On May 18, 7:43 pm, damienb2  wrote:
> Hello everybody!
>
> i'm developping an android application to remote control a lego
> mindstorm NXT.
> The NXT let the mobile control motors, and sensors (ultrasonic, light,
> temperature,...)
> The android mobile is linked to the nxt by bluetooth.
>
> I success in controling the motors, but now i've got one problem :
> accessing the sensors.
> I tried to get informations from the ultrasonic sensor since a long
> time, but no success!
>
> how i do it :
>
> 1) i send first the information "my ultrasonic sensor is linked to the
> port 1" according to instructions of the bluetooth Lego NXT developper
> kit:
>
> setUp
>
> void initUltrasonicSensor(int sensorPort){
>
>         byte[] message = new byte[5];
>
>         message[0]= LCPMessage.DIRECT_COMMAND_NOREPLY;  // DirectCommand, byte
> constant : 0x00
>         message[1]= LCPMessage.SET_INPUT_MODE;                  // 
> SetInputMode, byte
> constant : 0x05
>         message[2] =  (byte) sensorPort;                                // 
> Input Port, 0 1 2 or 3
>         message[3]= typePort ;                                                
>   // Type Port, ultrasonic = 0x0B
>         message[4]= (byte) 0x00;                                              
>   // Sensor mode
>
>         sendMessage(message);
>
> }
>
> /**
>  * Sends a message on the opened OutputStream
>  * @param message, the message as a byte array
>  */
> void sendMessage(byte[] message) throws IOException {
>         if (nxtOutputStream == null)
>                 throw new IOException();
>
>         // send message length
>         int messageLength = message.length;
>         nxtOutputStream.write(messageLength);
>         nxtOutputStream.write(messageLength >> 8);
>         nxtOutputStream.write(message, 0, message.length);
>
> }
>
> 2) then, i send the informtion "get distance from the ultrasonic
> sensor" :
>
> public void getInputValues(int sensor) {
>
>         byte[] request = new byte[3];
>
>         request[0] = LCPMessage.DIRECT_COMMAND_REPLY;   // DirectCommand, byte
> constant : 0x00
>         request[1] = LCPMessage.GET_INPUT_VALUES;               // 
> getInputValues, byte
> constant : 0x07
>         request[2] = (byte) sensor;                                           
>   // input port, 0 1 2 or 3
>
>         sendMessage(message);
>
> }
>
> 3) when i reveived the reply information from the NXT, i get it :
>
> 05-18 10:33:53.652: INFO/(8885): Values received from
> UltrasonicSensor : [ 2 7 0 0 1 0 B 0 0 0 0 0 0 0 0 0 ]
>
> the expected response, according to instructions of the bluetooth Lego
> NXT developper kit:
> byte 0: 0x02
> byte 1: 0x07
> byte 2: status byte
> byte 3: input port (range: 0-3)
> byte 4: valid? (boolean TRUE if new data value should be seen as valid
> data)
> byte 5: calibrated? (boolean TRUE if calibration file found and used
> for "Calibrated Value" field below)
> byte 6: sensor type (enumerated)
> byte 7: sensor mode (enumerated)
> byte 8-9: Row A/D value(UWORD; device dependent)
> byte 10-11: Normalized A/D value(UWORD; device dependent; Range:
> 0-1023)
> byte 12-13: Scaled value (SWORD; mode dependent)
> byte 14-15: Calibrated value (SWORD; value scaled according to
> calibration. CURENTLY UNUSED.)
>
> So i'm supposed to get the information about the distance from the 8-9
> byte, but i get 0!
>
> Could anyone help me ?
> thanks for all!
> (sorry for my english, i'm french!)

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


[android-developers] Re: Android - Bluetooth communication with Lego NXT brick

2011-05-19 Thread damienb2
ok thank you for your answer !

but in fact, the author of the topic on javaspecialists.eu use the
LeJOS firmware on the NXT brick, so the LeJOSlibrary too.
I don't want to use this library, because i want my android
application running whatever the firmware is.

Anywhere i will email him, maybe he could help me!


On 19 mai, 04:12, gjs  wrote:
> Hi
>
> Have a look athttp://www.javaspecialists.eu/archive/Issue189.html
>
> And maybe email the author.
>
> Regards
>
> On May 18, 7:43 pm, damienb2  wrote:
>
>
>
>
>
>
>
> > Hello everybody!
>
> > i'm developping an android application to remote control a lego
> > mindstorm NXT.
> > The NXT let the mobile control motors, and sensors (ultrasonic, light,
> > temperature,...)
> > The android mobile is linked to the nxt by bluetooth.
>
> > I success in controling the motors, but now i've got one problem :
> > accessing the sensors.
> > I tried to get informations from the ultrasonic sensor since a long
> > time, but no success!
>
> > how i do it :
>
> > 1) i send first the information "my ultrasonic sensor is linked to the
> > port 1" according to instructions of the bluetooth Lego NXT developper
> > kit:
>
> > setUp
>
> > void initUltrasonicSensor(int sensorPort){
>
> >         byte[] message = new byte[5];
>
> >         message[0]= LCPMessage.DIRECT_COMMAND_NOREPLY;  // DirectCommand, 
> > byte
> > constant : 0x00
> >         message[1]= LCPMessage.SET_INPUT_MODE;                  // 
> > SetInputMode, byte
> > constant : 0x05
> >         message[2] =  (byte) sensorPort;                                // 
> > Input Port, 0 1 2 or 3
> >         message[3]= typePort ;                                              
> >     // Type Port, ultrasonic = 0x0B
> >         message[4]= (byte) 0x00;                                            
> >     // Sensor mode
>
> >         sendMessage(message);
>
> > }
>
> > /**
> >  * Sends a message on the opened OutputStream
> >  * @param message, the message as a byte array
> >  */
> > void sendMessage(byte[] message) throws IOException {
> >         if (nxtOutputStream == null)
> >                 throw new IOException();
>
> >         // send message length
> >         int messageLength = message.length;
> >         nxtOutputStream.write(messageLength);
> >         nxtOutputStream.write(messageLength >> 8);
> >         nxtOutputStream.write(message, 0, message.length);
>
> > }
>
> > 2) then, i send the informtion "get distance from the ultrasonic
> > sensor" :
>
> > public void getInputValues(int sensor) {
>
> >         byte[] request = new byte[3];
>
> >         request[0] = LCPMessage.DIRECT_COMMAND_REPLY;   // DirectCommand, 
> > byte
> > constant : 0x00
> >         request[1] = LCPMessage.GET_INPUT_VALUES;               // 
> > getInputValues, byte
> > constant : 0x07
> >         request[2] = (byte) sensor;                                         
> >     // input port, 0 1 2 or 3
>
> >         sendMessage(message);
>
> > }
>
> > 3) when i reveived the reply information from the NXT, i get it :
>
> > 05-18 10:33:53.652: INFO/(8885): Values received from
> > UltrasonicSensor : [ 2 7 0 0 1 0 B 0 0 0 0 0 0 0 0 0 ]
>
> > the expected response, according to instructions of the bluetooth Lego
> > NXT developper kit:
> > byte 0: 0x02
> > byte 1: 0x07
> > byte 2: status byte
> > byte 3: input port (range: 0-3)
> > byte 4: valid? (boolean TRUE if new data value should be seen as valid
> > data)
> > byte 5: calibrated? (boolean TRUE if calibration file found and used
> > for "Calibrated Value" field below)
> > byte 6: sensor type (enumerated)
> > byte 7: sensor mode (enumerated)
> > byte 8-9: Row A/D value(UWORD; device dependent)
> > byte 10-11: Normalized A/D value(UWORD; device dependent; Range:
> > 0-1023)
> > byte 12-13: Scaled value (SWORD; mode dependent)
> > byte 14-15: Calibrated value (SWORD; value scaled according to
> > calibration. CURENTLY UNUSED.)
>
> > So i'm supposed to get the information about the distance from the 8-9
> > byte, but i get 0!
>
> > Could anyone help me ?
> > thanks for all!
> > (sorry for my english, i'm french!)

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


[android-developers] Re: Android, Bluetooth HID Keyboard, 'recent apps' 'Consumer Device' code

2015-03-16 Thread Nadav



*UPDATE:*What I need is the HID equivalent of executing to following adb 
commandline ( that trigges the 'Recent Apps' menu ):

adb shell input keyevent 187


On Saturday, March 14, 2015 at 7:05:52 AM UTC+2, Nadav wrote:
>
> Use-case
>
>1. Implement a BlueTooth keyboard to connect to an android device
>2. BT Keyboard should be able to lunch the 'Recent apps 
>
> '
>  
>menu
>
>
> Problem description
> To be able to support special keys, in accordance with this link 
> , I have 
> implemented a consumer device SDP implementing 'HID Consumer Page (0x0c)', 
> I have found the 'HID Usage' values for all buttons needed, BUT the HID 
> Usage value for opening the 'Recent apps' menu.
>
> All is perfecty working BUT, opening the 'Recent apps' menu, 
> *what 'HID Usage value' should I use to open the 'Recent apps' menu?*
>
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2012-05-20 Thread koladoo nitish
i have tried this solution.. but it does not work. it crashes on the third 
device connction. We get an error like this 
"

05-12 15:41:55.463: I/net.clc.bt.ConnectionService(10793): IOException in 
getConnectedSocket
05-12 15:41:55.463: I/net.clc.bt.ConnectionService(10793): java.io.IOException: 
Service discovery failed

"

On Saturday, December 18, 2010 6:25:08 PM UTC+4, 枫儿 wrote:
>
> It is possible to connect simultaneously to multiple bluetooth devices?
>

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

[android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-19 Thread James
of course you can,

On Dec 18, 9:25 am, 苗鹏  wrote:
> It is possible to connect simultaneously to multiple bluetooth devices?

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


[android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-20 Thread Morrison Chang
Look at http://code.google.com/p/apps-for-android/
Specifically the code for BTClickLinkCompete for a sample of Bluetooth
connectivity.
http://code.google.com/p/apps-for-android/source/browse/#svn%2Ftrunk%2FBTClickLinkCompete

I think the air hockey sample supports 4 other devices along with the
server device.

-Morrison

On Dec 20, 3:37 am, 苗鹏  wrote:
> could you share me your code?Thanks!
>
> 2010/12/20 James <030440...@163.com>
>
>
>
>
>
>
>
> > of course you can,
>
> > On Dec 18, 9:25 am, 苗鹏  wrote:
> > > It is possible to connect simultaneously to multiple bluetooth devices?
>
> > --
> > 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 > cr...@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


Re: [android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2012-05-20 Thread Ali Rezaeian
I am using the Android Bluetooth Chat Sample, and I was wondering how and 
where I should add codes to able to connect to multiple devices?

On Wednesday, December 22, 2010 8:57:53 PM UTC-6, Kristopher Micinski wrote:
>
> Many people have this problem, this implements a Bluetooth Piconet,
> this is why this is using seven different UUIDs for the Bluetooth
> socket.
> I went through this example and saw how it is implemented, it is
> similar to how we implement this client/server functionality in a few
> of our applications in our research.
> I believe the key to getting this to work is inthe mUuid list.
>
> Take a close look at what this is doing?
>
> for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock ==
> null; i++) {
> for (int j = 0; j < 3 && myBSock == null; j++) {
> myBSock = getConnectedSocket(myBtServer, mUuid.get(i));
> if (myBSock == null) {
> try {
> Thread.sleep(200);
> } catch (InterruptedException e) {
> Log.e(TAG, "InterruptedException in connect", 
> e);
> }
> }
> }
> }
>
> What this code does is looks to connect to the device, but how does it
> do so? It tries the socket multiple times, using multiple UUIDs for
> the session. In essence it means that we can use UUID only *once*. So
> instead this application implements using seven UUIDs, then the server
> listens and accepts each UUID on the server side, this is what is done
> with the following code:
>
> for (int i = 0; i < Connection.MAX_SUPPORTED &&
> maxConnections > 0; i++) {
> BluetoothServerSocket myServerSocket = mBtAdapter
>
> .listenUsingRfcommWithServiceRecord(srcApp, mUuid.get(i));
> BluetoothSocket myBSock = myServerSocket.accept();
> myServerSocket.close(); // Close the socket now that 
> the
> // connection has been made.
>
> String address = 
> myBSock.getRemoteDevice().getAddress();
>
> mBtSockets.put(address, myBSock);
> mBtDeviceAddresses.add(address);
> Thread mBtStreamWatcherThread = new Thread(new
> BtStreamWatcher(address));
> mBtStreamWatcherThread.start();
> mBtStreamWatcherThreads.put(address,
> mBtStreamWatcherThread);
> maxConnections = maxConnections - 1;
> if (mCallback != null) {
> mCallback.incomingConnection(address);
> }
> }
>
> Now, on the client side of things what is done? The client does not
> know how many active connections the server currently has. If we have
> some agreed upon order that the clients must use we can simply use
> this, however, in our case, we simply just try *each UUID* in sequence
> until we "find the right one."
>
> Hopefully this helps you, and everyone else who has questions about
> this problem, feel free to email me with problems you have.
>
> Short version:
>   -- Use multiple UUIDs, you can only use one at once. So define seven
> (max for piconet usage) and try each one until you find the right one.
>
> Thanks,
> Kristopher Micinski
> Michigan State University
>
> 2010/12/22 苗鹏 
> >
> > I looked at  the FBTClickLinkCompete'source,
> >  for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock == null; i++) {
> > for (int j = 0; j < 3 && myBSock == null; j++) {
> > myBSock = getConnectedSocket(myBtServer, 
> mUuid.get(i));
> > if (myBSock == null) {
> > try {
> > Thread.sleep(200);
> > } catch (InterruptedException e) {
> > Log.e(TAG, "InterruptedException in 
> connect", e);
> > }
> > }
> > }
> > }
> > This code fragment shows a client  that trys to connect the server... 
> The sample of SDK(BluetoothChat) used same code except
> > for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock == null; i++) {
> > for (int j = 0; j < 3 && myBSock == null; j++) { 
> > I don't understand why?   what'more, it can't connect to multiple 
> devices at the same time!
> > Thanks!!!
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 2010/12/21 Morrison Chang 
> >>
> >> Look at http://code.google.com/p/apps-for-android/
> >> Specifically the code for BTClickLinkCompete for a sample of Bluetooth
> >> connectivity.
> >> 
> http://code.google.com/p/apps-for-android/source/browse/#svn%2Ftrunk%2FBTClickLinkCompete
> >>
> >> I think the air hockey sample supports 4 other devices along with the
> >> server device.
> >>
> >> -Morrison
> >>
> >> On Dec 20, 3:37 am, 苗鹏  wrote:
> >> > could y

Re: [android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2012-05-21 Thread Kristopher Micinski
That seems to be a general problem, and it's typically with device
hardware, rather than anything you're doing.

Basically, may manufacturers cheap out on the BT adapters, (or the
lower level APIs aren't working properly).  It sucks, but it's nothing
you're doing, if I'm understanding your description correctly.

kris

On Thu, May 17, 2012 at 8:36 AM, koladoo nitish  wrote:
> i have tried this solution.. but it does not work. it crashes on the third
> device connction. We get an error like this
> "
>
> 05-12 15:41:55.463: I/net.clc.bt.ConnectionService(10793): IOException in
> getConnectedSocket
> 05-12 15:41:55.463: I/net.clc.bt.ConnectionService(10793):
> java.io.IOException: Service discovery failed
>
> "
>
> On Saturday, December 18, 2010 6:25:08 PM UTC+4, 枫儿 wrote:
>>
>> It is possible to connect simultaneously to multiple bluetooth devices?
>
> --
> 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


Re: [android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-20 Thread 苗鹏
could you share me your code?Thanks!

2010/12/20 James <030440...@163.com>

> of course you can,
>
> On Dec 18, 9:25 am, 苗鹏  wrote:
> > It is possible to connect simultaneously to multiple bluetooth devices?
>
> --
> 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

Re: [android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-20 Thread 苗鹏
I will have a try! Thanks !

2010/12/21 Morrison Chang 

> Look at http://code.google.com/p/apps-for-android/
> Specifically the code for BTClickLinkCompete for a sample of Bluetooth
> connectivity.
>
> http://code.google.com/p/apps-for-android/source/browse/#svn%2Ftrunk%2FBTClickLinkCompete
>
> I think the air hockey sample supports 4 other devices along with the
> server device.
>
> -Morrison
>
> On Dec 20, 3:37 am, 苗鹏  wrote:
> > could you share me your code?Thanks!
> >
> > 2010/12/20 James <030440...@163.com>
> >
> >
> >
> >
> >
> >
> >
> > > of course you can,
> >
> > > On Dec 18, 9:25 am, 苗鹏  wrote:
> > > > It is possible to connect simultaneously to multiple bluetooth
> devices?
> >
> > > --
> > > 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 cr...@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
>

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

Re: [android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-22 Thread 苗鹏
I looked at  the
FBTClickLinkCompete
'source,
 for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock == null; i++) {
for (int j = 0; j < 3 && myBSock == null; j++) {
myBSock = getConnectedSocket(myBtServer, mUuid.get(i));
if (myBSock == null) {
try {
Thread.sleep(200);
} catch (InterruptedException e) {
Log.e(TAG, "InterruptedException in connect",
e);
}
}
}
}

This code fragment shows a client  that trys to connect the server... The
sample of SDK(BluetoothChat) used same code except
for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock == null; i++) {
for (int j = 0; j < 3 && myBSock == null; j++) { 
I don't understand why?   what'more, it can't connect to multiple devices *at
the same time*!
Thanks!!!
















2010/12/21 Morrison Chang 

> Look at http://code.google.com/p/apps-for-android/
> Specifically the code for BTClickLinkCompete for a sample of Bluetooth
> connectivity.
>
> http://code.google.com/p/apps-for-android/source/browse/#svn%2Ftrunk%2FBTClickLinkCompete
>
> I think the air hockey sample supports 4 other devices along with the
> server device.
>
> -Morrison
>
> On Dec 20, 3:37 am, 苗鹏  wrote:
> > could you share me your code?Thanks!
> >
> > 2010/12/20 James <030440...@163.com>
> >
> >
> >
> >
> >
> >
> >
> > > of course you can,
> >
> > > On Dec 18, 9:25 am, 苗鹏  wrote:
> > > > It is possible to connect simultaneously to multiple bluetooth
> devices?
> >
> > > --
> > > 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 cr...@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
>

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

Re: [android-developers] Re: Android bluetooth api connect to multiple devices at the same time

2010-12-22 Thread Kristopher Micinski
Many people have this problem, this implements a Bluetooth Piconet,
this is why this is using seven different UUIDs for the Bluetooth
socket.
I went through this example and saw how it is implemented, it is
similar to how we implement this client/server functionality in a few
of our applications in our research.
I believe the key to getting this to work is inthe mUuid list.

Take a close look at what this is doing?

for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock ==
null; i++) {
for (int j = 0; j < 3 && myBSock == null; j++) {
myBSock = getConnectedSocket(myBtServer, mUuid.get(i));
if (myBSock == null) {
try {
Thread.sleep(200);
} catch (InterruptedException e) {
Log.e(TAG, "InterruptedException in connect", e);
}
}
}
}

What this code does is looks to connect to the device, but how does it
do so? It tries the socket multiple times, using multiple UUIDs for
the session. In essence it means that we can use UUID only *once*. So
instead this application implements using seven UUIDs, then the server
listens and accepts each UUID on the server side, this is what is done
with the following code:

for (int i = 0; i < Connection.MAX_SUPPORTED &&
maxConnections > 0; i++) {
BluetoothServerSocket myServerSocket = mBtAdapter

.listenUsingRfcommWithServiceRecord(srcApp, mUuid.get(i));
BluetoothSocket myBSock = myServerSocket.accept();
myServerSocket.close(); // Close the socket now that the
// connection has been made.

String address = myBSock.getRemoteDevice().getAddress();

mBtSockets.put(address, myBSock);
mBtDeviceAddresses.add(address);
Thread mBtStreamWatcherThread = new Thread(new
BtStreamWatcher(address));
mBtStreamWatcherThread.start();
mBtStreamWatcherThreads.put(address,
mBtStreamWatcherThread);
maxConnections = maxConnections - 1;
if (mCallback != null) {
mCallback.incomingConnection(address);
}
}

Now, on the client side of things what is done? The client does not
know how many active connections the server currently has. If we have
some agreed upon order that the clients must use we can simply use
this, however, in our case, we simply just try *each UUID* in sequence
until we "find the right one."

Hopefully this helps you, and everyone else who has questions about
this problem, feel free to email me with problems you have.

Short version:
  -- Use multiple UUIDs, you can only use one at once. So define seven
(max for piconet usage) and try each one until you find the right one.

Thanks,
Kristopher Micinski
Michigan State University

2010/12/22 苗鹏 
>
> I looked at  the FBTClickLinkCompete'source,
>  for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock == null; i++) {
> for (int j = 0; j < 3 && myBSock == null; j++) {
> myBSock = getConnectedSocket(myBtServer, mUuid.get(i));
> if (myBSock == null) {
> try {
> Thread.sleep(200);
> } catch (InterruptedException e) {
> Log.e(TAG, "InterruptedException in connect", e);
> }
> }
> }
> }
> This code fragment shows a client  that trys to connect the server... The 
> sample of SDK(BluetoothChat) used same code except
> for (int i = 0; i < Connection.MAX_SUPPORTED && myBSock == null; i++) {
> for (int j = 0; j < 3 && myBSock == null; j++) { 
> I don't understand why?   what'more, it can't connect to multiple devices at 
> the same time!
> Thanks!!!
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 2010/12/21 Morrison Chang 
>>
>> Look at http://code.google.com/p/apps-for-android/
>> Specifically the code for BTClickLinkCompete for a sample of Bluetooth
>> connectivity.
>> http://code.google.com/p/apps-for-android/source/browse/#svn%2Ftrunk%2FBTClickLinkCompete
>>
>> I think the air hockey sample supports 4 other devices along with the
>> server device.
>>
>> -Morrison
>>
>> On Dec 20, 3:37 am, 苗鹏  wrote:
>> > could you share me your code?Thanks!
>> >
>> > 2010/12/20 James <030440...@163.com>
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > of course you can,
>> >
>> > > On Dec 18, 9:25 am, 苗鹏  wrote:
>> > > > It is possible to connect simultaneously to multiple bluetooth devices?
>> >
>> > > --
>> > > 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

[android-developers] Re: Android Bluetooth: I get "Connection Refused" after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-07 Thread tom_mai78101
I did a Pastebin for those who don't want to download the attachment. For 
your convienence.
 
Pastebin 

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Android Bluetooth: I get "Connection Refused" after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-07 Thread bob
Why not call accept with no timeout?

 socket = mmServerSocket.accept();

That makes more sense.


On Thursday, February 7, 2013 11:13:21 AM UTC-6, tom_mai78101 wrote:
>
> There is an attachment that contains an Android application project for 
> Eclipse, zipped nicely in a ZIP folder.
>  
> *Problem:* I'm having this issue of getting "Connection Refused" after I 
> initiated a pairing between two Android devices. While waiting to accept 
> incoming connections, I gave it a timeout value of 12000, which I believed 
> it to be 12 seconds long. Below is the Logcat output:
>  
>
>> D/DEBUG(24298): Connect Thread is now running.
>> D/DEBUG(24298): Connect Thread is now accepting.
>> D/DEBUG(24298): Unable to create a socket for targetSocket.
>> D/DEBUG(24298): java.io.IOException: Connection refused
>> D/DEBUG(24298):  at 
>> android.bluetooth.BluetoothSocket.connectNative(Native Method)
>> D/DEBUG(24298):  at 
>> android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:212)
>> D/DEBUG(24298):  at o.p.Main$1.onReceive(Main.java:138)
>> D/DEBUG(24298):  at 
>> android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:781)
>> D/DEBUG(24298):  at android.os.Handler.handleCallback(Handler.java:605)
>> D/DEBUG(24298):  at android.os.Handler.dispatchMessage(Handler.java:92)
>> D/DEBUG(24298):  at android.os.Looper.loop(Looper.java:154)
>> D/DEBUG(24298):  at 
>> android.app.ActivityThread.main(ActivityThread.java:4945)
>> D/DEBUG(24298):  at java.lang.reflect.Method.invokeNative(Native Method)
>> D/DEBUG(24298):  at java.lang.reflect.Method.invoke(Method.java:511)
>> D/DEBUG(24298):  at 
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
>> D/DEBUG(24298):  at 
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
>> D/DEBUG(24298):  at dalvik.system.NativeStart.main(Native Method)
>> D/DEBUG(24298): Unable to accept incoming connection.
>> D/DEBUG(24298): java.io.IOException: Connection timed out
>> D/DEBUG(24298):  at android.bluetooth.BluetoothSocket.acceptNative(Native 
>> Method)
>> D/DEBUG(24298):  at 
>> android.bluetooth.BluetoothSocket.accept(BluetoothSocket.java:311)
>> D/DEBUG(24298):  at 
>> android.bluetooth.BluetoothServerSocket.accept(BluetoothServerSocket.java:107)
>> D/DEBUG(24298):  at o.p.Main$Connect.run(Main.java:62)
>> D/DEBUG(24298):  at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
>> D/DEBUG(24298):  at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
>> D/DEBUG(24298):  at java.lang.Thread.run(Thread.java:864)
>> D/DEBUG(24298): Now closing the targetServerSocket.
>>
> I would like for someone to help me on getting two devices to connect 
> successfully. If for some reason, this "Connection Refused" is very common, 
> what known steps can I take that I have not covered? Thanks in advance.
>  
> *Hardware (Android OS Version):* HTC Evo 3D (4.0.3), Samsung Galaxy Nexus 
> (4.1.1)
>  
> *Have covered:* 
>
>1. Using 1 randomly-generated UUID for the entire execution of the app.
>2. Using 2 randomly-generated UUID for the entire execution of the 
>app. One UUID is for BluetoothDevice.createRf...(), the other is for 
>BluetoothServerSocket.listen...().
>3. Using the workaround invocation method (Method invoking) of 
>"removeBond", "createBond", and "createRfcommSocket".
>
>  
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.