[android-developers] Android Bluetooth Low Energy Direct Advertising Support

2017-01-31 Thread Oguzhan Türksoy
Hi, I would love to develop an Android app with Bluetooth Low Energy Direct Advertising. Do you know when this will be available with Android? I know that you can use your Android device as peripheral device now and also perform regular advertising, but I am really looking forward to using

[android-developers] Android Bluetooth Increase Speed Performance

2016-06-06 Thread Devin Chen
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

[android-developers] Android Bluetooth Profile AVRCP not working?

2016-05-06 Thread Mad
Hi everybody, i'm trying to connect a remote controller using bluetooth to my Android device and everytime the failure is the same, when the android device sends the SDP ( bluetooth service discovery protocol ) to the remote controller, the remote controller response with the attributes and

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

2015-03-13 Thread Nadav
Use-case 1. Implement a BlueTooth keyboard to connect to an android device 2. BT Keyboard should be able to lunch the 'Recent apps http://img.wonderhowto.com/img/49/72/63550209324803/0/install-android-lollipop-recent-apps-menu-any-android.w654.jpg' menu Problem description To

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

2013-02-15 Thread tom_mai78101
Then I don't understand why it's failing to connect. Most of the error exception log messages point to either UUID is wrong or I'm not cancelling BluetoothAdapter discovery. I had looked back at the BluetoothChat SDK Sample, compared it with my codes, and see no significant differences other

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

2013-02-15 Thread tom_mai78101
Re-reading Android Reference, it said the UUID needs to be the same for both the server-side and the client-side. UUID.randomUUID() and BluetoothDevice.getUuids() are sure to fail. I hate it, but it looks like I need to set up to 7 constant (final) UUIDs without generating them at

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

2013-02-15 Thread Kristopher Micinski
Why is generating them and sticking them in your code bad? Why do you hate it? This is standard practice in many situations, so much that IDEs do it for you sometimes. Kris On Fri, Feb 15, 2013 at 5:28 AM, tom_mai78101 tom.mai78...@gmail.com wrote: Re-reading Android Reference, it said the

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

2013-02-15 Thread tom_mai78101
Why is generating them and sticking them in your code bad? Why do you hate it? This is standard practice in many situations, so much that IDEs do it for you sometimes. I disliked having to generate them and stick them into my code, for fear of security. And I never recalled my IDE

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

2013-02-15 Thread Kristopher Micinski
Bluetooth isn't really all that secure of a protocol... You have to instead implement that at the application layer. (Although you can read about Bluetooth encryption..) Generating UUIDs is standard practice used all over the place in more than Bluetooth: it's also used in many IDLs to identify

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

2013-02-15 Thread tom lee
Thanks for the info. I have now fully grasped the usage of UUIDs in an app. -- -- 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

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

2013-02-14 Thread tom lee
The UUID just says what port the Bluetooth Server is on. I could have a server running on Bluetooth port 1. Does this imply there's a way to specify different Bluetooth ports, if the port(s) exists? I have never heard of Bluetooth using ports like TCP. If you're just making an example, then

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

2013-02-14 Thread Kristopher Micinski
That's not how it works: Bluetooth is built on top of RFCOMM, so it's more like a serial channel. It's merely presented with a socket like interface to wrap the behavior. Kris On Thu, Feb 14, 2013 at 4:56 AM, tom lee tom.mai78...@gmail.com wrote: The UUID just says what port the Bluetooth

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

2013-02-14 Thread bob
Yes, you can specify ports, but I think you may have to use Reflection on Android. This will give you a connection to port 17: *BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();* * * *BluetoothDevice device = adapter.getRemoteDevice(address);* * * *M**ethod m =

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

2013-02-14 Thread Kristopher Micinski
So there is port emulation you can use if you use reflection, but it's kind of wacky and doesn't really work like vanilla TCP: so it's helpful not to think of it that way. You can read about it here:

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

2013-02-14 Thread tom_mai78101
I don't think ports matter in this case. In fact, I don't need ports. Thanks anyway. *BEWARE: Wall of text* I have now narrowed down my problem, hopefully reaching a conclusion soon. I'm having trouble with fetching one single UUID for two devices to use. Here's a picture of what I have

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

2013-02-13 Thread tom lee
After extensive researching on the Bluetooth Chat example, it all comes down to using pre-determined UUIDs to connect to another device, the 1-to-1 way. However, that doesn't make it useful. I need to not rely on pre-determined UUIDs, so that I'm able to connect multiple devices together with

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

2013-02-13 Thread Kristopher Micinski
For many reasons, you really shouldn't be using non deterministic UUID generation: it just doesn't make sense as to why you'd need it. (Keep in mind, phones can only be connected to two or three other things at a time.) What's your real problem? I've had cases where I generate 10 UUIDs and then

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

2013-02-13 Thread bob
You just need one UUID for your app. Use it on the server and the clients. It basically tells the clients what Bluetooth port number on the server they need to connect to (from 1 to 31, I think). You can use the uuidgen tool on Mac. Here's a UUID I just made if you want it: uuidgen

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

2013-02-13 Thread Kristopher Micinski
That's actually not quite right: if you have your app make multiple connections then you do generally need multiple UUIDs. However, if you need only a single connection then sure. My point is that you should never need more than (theoretically) seven, as that's the size of a BT piconet. Kris

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

2013-02-13 Thread bob
I have made multiple connections to a single UUID. It is like TCP. The UUID just says what port the Bluetooth Server is on. I could have a server running on Bluetooth port 1. Then I could make 2 or 3 simultaneous connections to it just like I can make 2 or 3 simultaneous connections

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

2013-02-13 Thread Kristopher Micinski
I know it's *nominally* implemented this way, I'm just saying that hasn't been my experience across devices (bugs and all). Though take that with a grain of salt, my implementation was done over two years ago now, Kris On Wed, Feb 13, 2013 at 12:25 PM, bob b...@coolfone.comze.com wrote: I have

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

2013-02-08 Thread tom lee
I just tried. The connection is still refused. I don't think the result was affected by the timeout, since the timeout error was reported in the Logcat after the connection was reported to be refused first. -- -- You received this message because you are subscribed to the Google Groups Android

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

2013-02-08 Thread bob
Why not try the Bluetooth Chat Sample and see if that works? On Friday, February 8, 2013 4:22:06 AM UTC-6, tom_mai78101 wrote: I just tried. The connection is still refused. I don't think the result was affected by the timeout, since the timeout error was reported in the Logcat after

Re: [android-developers]android bluetooth multi-connect one after another

2012-12-10 Thread akash roy
i have posted this because its not working like that. On Mon, Dec 10, 2012 at 12:47 PM, gjs garyjamessi...@gmail.com wrote: Hi, Then concentrate on getting 1 or 2 devices working with - mChatService.connect(device); Regards On Sunday, December 9, 2012 1:19:08 AM UTC+11, akash roy

Re: [android-developers]android bluetooth multi-connect one after another

2012-12-09 Thread gjs
Hi, Then concentrate on getting 1 or 2 devices working with - mChatService.connect(device); Regards On Sunday, December 9, 2012 1:19:08 AM UTC+11, akash roy wrote: please have a look on it..thankyou. On Sat, Dec 8, 2012 at 9:26 AM, akash roy akashr...@gmail.comjavascript: wrote:

Re: [android-developers]android bluetooth multi-connect one after another

2012-12-08 Thread akash roy
please have a look on it..thankyou. On Sat, Dec 8, 2012 at 9:26 AM, akash roy akashroy.n...@gmail.com wrote: ** here i am trying to connect multiple devices one after another at one go. now if it connects to a device it will send the message else it will try to connect the next paired

[android-developers]android bluetooth multi-connect one after another

2012-12-07 Thread akash roy
** here i am trying to connect multiple devices one after another at one go. now if it connects to a device it will send the message else it will try to connect the next paired device. here the main problem is that its not connecting any device rather getting skipped one after other , before

[android-developers] Android Bluetooth Features

2012-12-04 Thread fahad mullaji
Hi, Can we explore other device's content once we pair device with our device using Android Bluetooth package? And get files from other device? Thanks and Regards Fahad Mullaji -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Android Bluetooth Authorization

2012-11-28 Thread dct
I am working on an application that attempts to make a Bluetooth connection between an Android tablet and a custom device. The SDK of the custom device requires that properties pertaining to authentication, authorization, and encryption are set. I know I can use various versions of the

[android-developers] Android Bluetooth Device Picker Usage

2012-10-21 Thread Avinash Gupta
My Application required bluetooth connectivity. And in the first phase I am trying to open up the standard Activity *Bluetooth Device Picker* to help user scan for new device or chose a device from the list. The problem is that I am unable to get any working example for the bluetooth device

Re: [android-developers] Android Bluetooth party

2012-09-06 Thread Quentin MOURCOU
Hi, Kristopher, you said the hard limit is seven nodes, but I have a similar problem. I'm trying to connect 6 bluetooth devices which uses the HSP/HFP profiles on an Android phone but it seems to doesn't work on Android 2.3 (I tried with Android 2.3.4, 2.3.5 and 2.3.6 on different devices) but

Re: [android-developers] Android Bluetooth party

2012-09-06 Thread Kristopher Micinski
I've discussed this various places, this is one of them: http://stackoverflow.com/questions/10963614/android-bluetooth-chat-sample-app-multiple-connections/10963812#10963812 The basic story is, yes, more than a few nodes is quite hard because of some soft limitations and (iirc) flaky bluetooth

Re: [android-developers] Android Bluetooth party

2012-09-06 Thread Quentin MOURCOU
Ok thank you, that's what I thought. Quentin Le jeudi 6 septembre 2012 15:28:29 UTC+2, Kristopher Micinski a écrit : I've discussed this various places, this is one of them: http://stackoverflow.com/questions/10963614/android-bluetooth-chat-sample-app-multiple-connections/10963812#10963812

[android-developers] Android Bluetooth party

2012-09-05 Thread bob
Anyone know if it is possible to have 16 Android devices simultaneously connected to the same Bluetooth server? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Android Bluetooth party

2012-09-05 Thread Kristopher Micinski
It is not, Bluetooth piconets enforce a hard limit of seven nodes. You can try more exotic routing techniques and get the same effect.. it doesn't work very well. kris On Wed, Sep 5, 2012 at 3:56 PM, bob b...@coolfone.comze.com wrote: Anyone know if it is possible to have 16 Android devices

[android-developers] 【Android】bluetooth file transfer

2012-06-18 Thread weixiang
hello,I am Tester using InstrumetationTestCase to Test, and i want to write some case about file transfer,However,when run,logcat display some abnormal below is my code,debug process, the defect pointer is while(bis.read() != -1) { if(bis.read(mybytearray) == -1) break; for(int i = 0 ; i

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

2012-04-17 Thread Sam
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

[android-developers] Android bluetooth communication

2012-04-02 Thread dusslk
I need to send 10-bit data from the Analog to digital converter(ADC) from a dsPIC at 2Mbps through UART interface, to the bluetooth module. Then the bluetooth module should read this data through its UART interface and transmit this data via bluetooth which will be finally received by an Android

[android-developers]Android Bluetooth HID profile

2012-03-29 Thread I-Sheng Lin
Hi Android developers, I have done that the porting of HID profile onto Android 2.3 as the host. My Android device(Gingerbread) now is able to connect to the Bluetooth mouse/kb and it works really nice! However, my question is that it seems very lack of information about to make Android device

Re: [android-developers]Android Bluetooth HID profile

2012-03-29 Thread Justin Anderson
Please don't post the same message multiple times... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 29, 2012 at 3:43 AM, I-Sheng Lin ckjboy2...@gmail.com wrote: Hi Android developers, I have done that the porting of HID profile onto

[android-developers] android bluetooth send string other device (like j2me,iphone,balcberry ...etc)

2011-10-24 Thread pankaj sharma
Hi, i m newbie in android devlopment. and i am tryning to connect and send string continous other devices with bluetooth. pls help me . thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] android bluetooth send string other device (like j2me,iphone,balcberry ...etc)

2011-10-24 Thread TreKing
On Mon, Oct 24, 2011 at 5:21 AM, pankaj sharma pankajs22...@gmail.comwrote: Hi, i m newbie in android devlopment. and i am tryning to connect and send string continous other devices with bluetooth. pls help me . thnks http://catb.org/~esr/faqs/smart-questions.html

[android-developers] android bluetooth

2011-09-12 Thread miundroid
Hi all, I was wondering if anyone knows the data frame protocol that android uses by default. Or if anyone knows of a technical document with this information I'd be more than happy to read it for myself. I need to know what exactly the data frame looks like, for example... 8-data bits | 1 Odd

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

2011-05-18 Thread damienb2
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

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

2010-12-18 Thread 苗鹏
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] android bluetooth

2010-11-29 Thread Jags
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

[android-developers] android bluetooth

2010-11-29 Thread Jags
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

[android-developers] Android Bluetooth : read service records / getRemoteServiceRecord

2010-10-28 Thread Radu
Hello All, I am working on developing a HID Bluetooth Driver, that would allow an user to connect a bluetooth keyboard or mouse. So far I was able to achieve this goal using JNI, and a C BlueZ interface, but there were compatibility problems: the software only worked on a few devices. As

[android-developers] android bluetooth client program

2010-07-26 Thread KwangWon
I wonder what would be the right java android bluetooth rfcomm client code to connect to the following python bluetooth server program. Thanks in advance. # # The following is the PyBluez-0.18 simple example : rfcomm-server.py # # desc: simple demonstration of a server application that uses

[android-developers] Android Bluetooth Development - Problem connecting

2010-03-17 Thread philDev
@moderator please excuse my first mail, I hit the wrong button. Hi everybody, I'm trying for hours and couldn't find an answer anywhere online nor in my Logs. I'm trying to establisch an RFCOMM Link by Bluetooth between an external Device that implements the SPP 1.04 Profile. Here is the output

[android-developers] Android Bluetooth Development - Problem connecting

2010-03-17 Thread philDev
Hi everybody, I'm trying for hours and couldn't find an answer anywhere online nor in my Logs. I'm trying to establisch an RFCOMM Link by Bluetooth between an external Device that implements the SPP 1.04 Profile. Here is the output from sdptool: sudo sdptool browse Inquiring ... Browsing

[android-developers] android bluetooth

2009-11-09 Thread george
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

[android-developers] android-bluetooth api issue

2009-09-21 Thread Breese.Kay
hi,all. I use the android-bluetooth control my T-mobile G1 phone.But when I scan remotedevice I cause an ?null? Exception. this is the part of code. try { if(localBtDev.isScanning() == false){ //localBtDev.scan(); } } catch (Exception e1) { // TODO Auto-generated catch

[android-developers] Android Bluetooth 2.0 Support

2009-05-19 Thread cohenSH
I was wondering whether anyone could clarify the following: I am attempting to create an accurate GPS transmitting program on a T- Mobile G1, and I am looking to purchase a GlobalSat-368i bluetooth GPS receiver to get better accuracy than the phone's internal receiver. The thing is that the