btsocket stable connection

by Bwd » Fri, 05 Feb 2010 01:04:00 GMT

Sponsored Links
 Good day.
I was able to create a stable connection to the BT device.
To do this, I changed your code:
BluetoothSocket btsocket =

int RFCOMM_CHANEL = 1; //SPP chanel
Method m = btdev.getClass().getMethod("createRfcommSocket", new
Class[] { int.class });
BluetoothSocket connection = (BluetoothSocket) m.invoke(btdev,

And now the connection has been stable and not broken and you can read
and receive data by input and output streams.


Other Threads

1. Just check it out

{*filter*}s are video capturing devices connected to computers
or computer networks, often using USB or, if they connect
to networks, ethernet or WiFi. They are wellknown for
their low manufacturing costs and flexible applications.
The video capture process involves several processing steps

web page: http://www.***.com/ {*filter*}


2. Invoking a remote service in a different application


I have an eclipse project with a remote service that exports an API
(defined in a aidl file). I have another project that implements a
"client" that wants to call the remote service API.

When trying to run the "client" it crashes and Android complains:

"Unable to resolve superclass of Lse/remoteserviceclient/

My question is this:

What is the correct way of calling a remote service in a different
The 'service project' is on the build path of the 'client project'.

Do I need to export the service application into a jar file and
include in the client project?



3. reposition a button programatically

4. Android - Cisco VPN AnyConnect

5. Any examples of displaying an information box when clicked on a map marker ?

6. Share thread pool among activities ?

7. get the package/class name by code