[android-developers] Bluetooth programming

2010-05-03 Thread Scatman
how powerful is Bluetooth programming on Android? is it possible to
add new protocols and encryption techniques? or even change in the
current protocols?
does it support bluetooth 2.1+EDR?

-- 
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] Bluetooth File Transfer OPP

2010-04-29 Thread Henry
Hi,

i want to send files via Bluetooth to a another device. Currently I
can do that with Intent.ACTION_SEND but this use a user intaction. I
want to send files to a device programmatically. Has anyone a idea how
i can send files via Bluetooth OPP?

Thank you very much!

-- 
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] Bluetooth File Transfer OPP

2010-04-29 Thread Henry
Hi,

i want to send files via Bluetooth to a another device. Currently I
can do that with Intent.ACTION_SEND but this use a user intaction. I
want to send files to a device programmatically. Has anyone a idea how
i can send files via Bluetooth OPP?

Thank you very much!

-- 
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] Bluetooth SPP communication bluetooth chat example

2010-04-27 Thread Peng
I try to build SPP connection between the android and PC.

the UUID is set to: 1101--1000-8000-00805F9B34FB
but when the application connect, it go directly to the A2dpservice,
then close the connection, the log:


04-27 13:55:44.836: VERBOSE/BluetoothEventRedirector(326): Received
android.bleutooth.device.action.UUID
04-27 13:55:45.436: DEBUG/BluetoothA2dpService(170): Auto-connecting
A2DP to sink 00:23:4D:E8:02:75


the android phone is HTC Tattoo, I update the firmware to OpenEclari
2.1


Also, I try to run the bluetooth chat example, but also can't connect
to each other?

-- 
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] bluetooth - IOException: Connection refused

2010-04-21 Thread Nand
Hi,
I'm able to discover devices which r bluetooth ON from my application.
But when i try to connect using the Bluetoothsocket's connect()
method, I'm getting an IOException: Connection refused.
I'm using the following UUID
private static final UUID MY_UUID =
UUID.fromString(1101--1000-8000-00805F9B34FB);

Please help in solving this issue.

Thanks in advance,
Nand

-- 
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] Bluetooth file transfer to Laptop is failing.

2010-04-20 Thread guru
Bluetooth file transfer to mobile (any set) is successful. But if I
tried to transfer to Laptop it is failing. Below is the log for
successful and unsuccessful case

For unsuccessful case, it is unable to get channel number. Whether i
have to do settings for laptop case?

Phone to Mobile(Motorola) transfer success:
BluetoothShare.DIRECTION_OUTBOUND
V/BtOppTransfer( 1405): startConnectSession IN
V/BluetoothOppPreference( 1405): getChannel 00:17:E2:8D:76:C4_1105
V/BluetoothOppPreference( 1405): getChannel for 00:17:E2:8D:76:C4_1105
as null
V/BtOppTransfer( 1405): doOpushSdp IN
I/AppsUtility( 1236): [apps_filldata]raw data=609
I/AppsUtility( 1236): [apps_update_zero_point][apps_update_zero_point]:
[609,483,608]
I/AppsUtility( 1236): [apps_check_TDS]raw data: x=609, y=483, z=608;
zero point: x=608, y=482, z=607; delta data: dx=0, dy=0, dz=0, state=0
I/AppsUtility( 1236): [ELAN_HandleEvent]dx=0, dy=0, dz=0, state=0
I/AppsUtility( 1236): [apps_filldata]raw data=483
I/AppsUtility( 1236): [apps_filldata]raw data=608
I/AppsUtility( 1236): [apps_filldata]raw data=515
I/AppsUtility( 1236): [apps_filldata]raw data=12
I/AppsUtility( 1236): [apps_filldata]raw data=32
V/BtOppTransfer( 1405): Do Opush SDP request for address 00:17:E2:8D:
76:C4
D/BluetoothDevice( 1405): getServiceChannel IN
D/BtOppTransfer( 1405): Get OPUSH channel 8 from SDP for 00:17:E2:8D:
76:C4
V/BtOppTransfer( 1405): startConnectSession OUT
V/BtOppTransfer( 1405): SDP request returned 8 (2 ms)


Phone to Laptop: Unsuccessful case.
 V/BtOppTransfer( 1423): BluetoothShare.DIRECTION_OUTBOUND
V/BtOppTransfer( 1423): startConnectSession IN
V/BluetoothOppPreference( 1423): getChannel 00:25:56:CD:5D:13_1105
V/BluetoothOppPreference( 1423): getChannel for 00:25:56:CD:5D:13_1105
as null
V/BtOppTransfer( 1423): doOpushSdp IN
V/BtOppTransfer( 1423): Do Opush SDP request for address 00:25:56:CD:
5D:13
D/BluetoothDevice( 1423): getServiceChannel IN
V/BtOppTransfer( 1423): Remote Service channel not in cache
D/BluetoothDevice( 1423): fetchUuidsWithSdp IN
V/BtOppTransfer( 1423): Start new SDP, wait for result
V/BtOppTransfer( 1423): doOpushSdp OUT-1
V/BtOppTransfer( 1423): startConnectSession OUT

..
..
..

V/BtOppTransfer( 1423): onReceive IN
V/BtOppTransfer( 1423): ACTION_UUID for device 00:25:56:CD:5D:13
V/BtOppTransfer( 1423): device.equals(mBatch.mDestination)
V/BtOppTransfer( 1423): uuid != null
V/BtOppTransfer( 1423): onReceive OUT
V/BtOppTransfer( 1423): SDP request returned -1 (4268 ms)

Thanks
Guru

-- 
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] Bluetooth SPP not working on HTC Desire

2010-04-19 Thread ssozonoff
Hello,

I have been doing some Bluetooth SPP development with an HTC Legend
which was working just fine.
Today I received my HTC Desire and I cant get an SPP connection to
work.

The first thing I had to do is remove the mAdapter.cancelDiscovery()
call in the connectThread().
It seems there is some sort of timing issue here and with the faster
processor its not working like this.

Below is an extract from the logs when mAdapter.cancelDiscovery() was
being called just prior to mmSocket.connect();

04-19 16:30:58.984: DEBUG/BluetoothSppService(759): Running
mConnectThread
04-19 16:30:58.984: ERROR/BluetoothEventLoop.cpp(92): pollData[0] is
revented, check next one
04-19 16:30:58.984: ERROR/BluetoothService.cpp(92):
stopDiscoveryNative: D-Bus error in StopDiscovery:
org.bluez.Error.Failed (Invalid discovery session)
04-19 16:30:59.024: DEBUG/DEVICE(293): BLTA -
*DiscoverServices


I get a little farther after this change and it almost seems as if the
connection is up because the BT Icon on my laptop changes to green but
then the connection fails anyway.
Here is an extract of the stack after the call to mmSocket.connect();

04-19 16:33:40.314: DEBUG/DEVICE(293): BLTA -
*DiscoverServices
04-19 16:33:40.314: INFO/DTUN_HCID_BZ4(293):
dtun_client_get_remote_svc_channel: starting discovery on
(uuid16=0x0011)
04-19 16:33:40.314: INFO/DTUN_HCID_BZ4(293): bdaddr=00:23:4D:F3:3B:BE
04-19 16:33:40.314: INFO/DTUN_CLNT(293): Client calling
DTUN_METHOD_DM_GET_REMOTE_SERVICE_CHANNEL (id 4)
04-19 16:33:40.314: INFO/(260): DTUN_ReceiveCtrlMsg: [DTUN] Received
message [BTLIF_DTUN_METHOD_CALL] 4354
04-19 16:33:40.314: INFO/(260): handle_method_call:
handle_method_call :: received
DTUN_METHOD_DM_GET_REMOTE_SERVICE_CHANNEL (id 4), len 134
04-19 16:33:40.314: ERROR/BTLD(260): search UUID =
1101***
04-19 16:33:40.314: INFO//system/bin/btld(256):
btapp_dm_GetRemoteServiceChannel()
04-19 16:33:40.314: INFO//system/bin/btld(256): # USerial_Ioctl:
BT_Wake, 0x8003 
04-19 16:33:40.914: INFO//system/bin/btld(256): # USerial_Ioctl:
BT_Sleep, 0x8004 
04-19 16:33:41.394: WARN/BTLD(260): ccb timer ticks: 0
04-19 16:33:41.394: INFO//system/bin/btld(256): # USerial_Ioctl:
BT_Wake, 0x8003 
04-19 16:33:41.464: WARN/BTLD(260): info:x10
04-19 16:33:41.464: INFO/BTL-IFS(260): send_ctrl_msg: [BTL_IFS CTRL]
send BTLIF_DTUN_SIGNAL_EVT (CTRL) 10 pbytes (hdl 14)
04-19 16:33:41.464: DEBUG/DTUN_HCID_BZ4(293): dtun_dm_sig_link_up()
04-19 16:33:41.464: INFO/DTUN_HCID_BZ4(293): dtun_dm_sig_link_up:
dummy_handle = 260
04-19 16:33:41.464: DEBUG/ADAPTER(293):
adapter_get_device(00:23:4D:F3:3B:BE)
04-19 16:33:41.464: ERROR/BluetoothEventLoop.cpp(92): pollData[0] is
revented, check next one
04-19 16:33:41.464: ERROR/BluetoothEventLoop.cpp(92): event_filter:
Received signal org.bluez.Device:PropertyChanged from /org/bluez/293/
hci0/dev_00_23_4D_F3_3B_BE
04-19 16:33:41.584: WARN/BTLD(260): process_service_search_attr_rsp
04-19 16:33:41.624: INFO/BTL-IFS(260): send_ctrl_msg: [BTL_IFS CTRL]
send BTLIF_DTUN_SIGNAL_EVT (CTRL) 13 pbytes (hdl 14)
04-19 16:33:41.624: INFO/DTUN_HCID_BZ4(293):
dtun_dm_sig_rmt_service_channel: success=0, service=
04-19 16:33:41.624: ERROR/DTUN_HCID_BZ4(293): discovery unsuccessful!
04-19 16:33:42.126: INFO//system/bin/btld(256): # USerial_Ioctl:
BT_Sleep, 0x8004 
04-19 16:33:42.724: INFO//system/bin/btld(256): # USerial_Ioctl:
BT_Wake, 0x8003 
04-19 16:33:42.824: INFO/BTL-IFS(260): send_ctrl_msg: [BTL_IFS CTRL]
send BTLIF_DTUN_SIGNAL_EVT (CTRL) 11 pbytes (hdl 14)
04-19 16:33:42.824: DEBUG/DTUN_HCID_BZ4(293): dtun_dm_sig_link_down()
04-19 16:33:42.824: INFO/DTUN_HCID_BZ4(293): dtun_dm_sig_link_down
device = 0xf4f8 handle = 260 reason = 22
04-19 16:33:42.824: ERROR/BluetoothEventLoop.cpp(92): pollData[0] is
revented, check next one
04-19 16:33:42.824: ERROR/BluetoothEventLoop.cpp(92): event_filter:
Received signal org.bluez.Device:PropertyChanged from /org/bluez/293/
hci0/dev_00_23_4D_F3_3B_BE
04-19 16:33:42.824: DEBUG/BluetoothA2dpService(92): Received intent
Intent { act=android.bluetooth.device.action.ACL_DISCONNECTED (has
extras) }
04-19 16:33:43.334: INFO//system/bin/btld(256): # USerial_Ioctl:
BT_Sleep, 0x8004 
04-19 16:33:46.334: DEBUG/CachedBluetoothDevice(168): updating
profiles for APOLLO-4
04-19 16:33:46.344: ERROR/CachedBluetoothDevice(168): onUuidChanged:
Time since last connect866040
04-19 16:33:46.344: DEBUG/BluetoothService(92): Cleaning up failed
UUID channel lookup: 00:23:4D:F3:3B:BE
1101--1000-8000-00805f9b34fb
04-19 16:33:46.354: ERROR/BluetoothSppService(805): BT Connection
exception
java.io.IOException: Service discovery failed
at android.bluetooth.BluetoothSocket
$SdpHelper.doSdp(BluetoothSocket.java:377)
at
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
at com.sozonoff.android.bluetooth.BluetoothSppService

[android-developers] Bluetooth Bug/Omission

2010-04-19 Thread FrostEngine
When performing a device discover the remote device name is cached.
All subsequent device discoveries returns the same cached name over
and over even if the remote device name has changed. Is this a known
problem? Does a workaround exist? Some way to clear the cached name or
force the phone to try and get the name again?

-- 
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] Bluetooth RFCOMM connection dying immediately after .connect()

2010-04-19 Thread Max Gilead
Hi!

I'm trying to connect to Zeemote (http://zeemote.com/) gaming controller
from Moto Droid running 2.0.1 firmware. The test application below does
connect to the device (LED flashes) but connection is dropped immediately. I
can connect to the device perfectly fine using bluez tools (log attached as
well).

I'm quite at a loss here, I work on it for so long that I ran out of ideas
so any help would be very much appreciated.

Btw, looks like this issue is somewhat similar to
http://groups.google.com/group/android-developers/browse_thread/thread/a7ff7771ae3be1c/6f8bb2bc0300806c?hl=enlnk=gstq=bluetooth+connecting#6f8bb2bc0300806c

Thanks,
Max

=== Code:

package zee.test;

import java.io.IOException;
import java.io.InputStream;
import java.util.UUID;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.os.Bundle;
import android.util.Log;

public class ZeeTest extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
test();
} catch (IOException e) {
e.printStackTrace();
}
}

public void test() throws IOException {
BluetoothDevice zee =
BluetoothAdapter.getDefaultAdapter().getRemoteDevice(00:1C:4D:02:A6:55);
Log.d(ZeeTest,  Creating socket);
BluetoothSocket sock =
zee.createRfcommSocketToServiceRecord(UUID.fromString(8e1f0cf7-508f-4875-b62c-fbb67fd34812));
Log.d(,  Connecting);
sock.connect();
Log.d(,  Connected);


final InputStream in = sock.getInputStream();
new Thread() {
@Override
public void run() {
byte[] buffer = new byte[32];
int bytes = 0;
int x = 0;
Log.d(,  Listening...);
while (x  200) {
x++;
try {
bytes = in.read(buffer);
Log.d(ZeeTest,  Read + bytes + bytes);
} catch (IOException e) {
if (x % 50 == 0) {
Log.d(, Tried + x + times (+ bytes +));
}
try { Thread.sleep(100); } catch
(InterruptedException ie) {}
}
}
Log.d(ZeeTest,  Done: thread exit);
}
}.start();
Log.d(ZeeTest,  Done: test());
}
}


=== Log:

I/ActivityManager( 1169): Start proc zee.test for activity
zee.test/.ZeeTest: pid=4294 uid=10084 gids={3002, 3001, 3003}
I/dalvikvm( 4294): Debugger thread not active, ignoring DDM send
(t=0x41504e4d l=38)
D/dalvikvm( 4287): LinearAlloc 0x0 used 640700 of 5242880 (12%)
I/dalvikvm( 4294): Debugger thread not active, ignoring DDM send
(t=0x41504e4d l=20)
D/ZeeTest ( 4294):  Creating socket
D/( 4294):  Connecting
E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal
org.bluez.Device:PropertyChanged from
/org/bluez/1240/hci0/dev_00_1C_4D_02_A6_55
I/usbd( 1068): process_usb_uevent_message(): buffer = add@
/devices/virtual/bluetooth/hci0/hci0:1
I/usbd( 1068): main(): call select(...)
E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal
org.bluez.Adapter:DeviceFound from /org/bluez/1240/hci0
V/BluetoothEventRedirector( 1242): Received
android.bluetooth.device.action.FOUND
V/BluetoothEventRedirector( 1242): Received
android.bleutooth.device.action.UUID
D/( 4294):  Connected
D/ZeeTest ( 4294):  Done: test()
D/( 4294):  Listening...
I/ActivityManager( 1169): Displayed activity zee.test/.ZeeTest: 2296 ms
(total 2296 ms)
E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal
org.bluez.Device:PropertyChanged from
/org/bluez/1240/hci0/dev_00_1C_4D_02_A6_55
I/usbd( 1068): process_usb_uevent_message(): buffer = remove@
/devices/virtual/bluetooth/hci0/hci0:1
I/usbd( 1068): main(): call select(...)
V/BluetoothEventRedirector( 1242): Received
android.bleutooth.device.action.UUID
D/( 4294): Tried 50 times (0)
D/( 4294): Tried 100 times (0)
D/( 4294): Tried 150 times (0)
D/( 4294): Tried 200 times (0)
D/ZeeTest ( 4294):  Done: thread exit

=== Terminal log:

$ 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 

[android-developers] Bluetooth : Device Name/scan/discoverable event is not getting generated.

2010-04-14 Thread guru
Hi,

some times when I try to rename device name or scan for devices,
nothing is working...

Success case:
event_filter: Received signal org.bluez.Adapter:PropertyChanged from /
org/bluez/1518/hci0
I/BluetoothEventLoop( 1229): ---onPropertyChanged IN
I/BluetoothEventLoop( 1229): ---Broadcasting
ACTION_LOCAL_NAME_CHANGED
I/BluetoothEventLoop( 1229): ---onPropertyChanged OUT
V/BluetoothNamePreference( 1489): --- onReceive IN
V/BluetoothNamePreference( 1489): ---
BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED
V/BluetoothNamePreference( 1489): ---setSummaryToName IN
V/BluetoothNamePreference( 1489): ---adapter.isEnabled so call
setSummary
V/BluetoothNamePreference( 1489): ---setSummaryToName OUT
V/BluetoothNamePreference( 1489): --- onReceive OUT


Problem Case: the below event is not getting generated... so name
change is not happening.
event_filter: Received signal org.bluez.Adapter:PropertyChanged from /
org/bluez/1518/hci0

Please any clue or idea why this is happening.

Guru

-- 
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, reply using remove me as the subject.


[android-developers] Bluetooth data transfer is very slow

2010-04-14 Thread VovaN
Hello,
I have application which send files from one devise to another.
During testing I've faced two problems:
1)Data transfer is very slow. I compare to standard bluetooth
application;
2)From time to time received data is less then sent. Small parts are
missed if file(files) is huge.
Have anybody else the same problems? How to fix them?

-- 
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, reply using remove me as the subject.


[android-developers] Bluetooth Problem

2010-04-14 Thread Davyd Melo
Hi,

My name is Davyd Melo and I am beginning with Bluetooth over Android. After
creating a empty project and I have added the following line of code in the
MainActivity:

BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();

This generate the following exception in the Logcat:

04-14 20:46:56.711: ERROR/AndroidRuntime(1131): Uncaught handler: thread
main exiting due to uncaught exception
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): java.lang.VerifyError:
com.bluetoothonetester.MainActivity
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
java.lang.Class.newInstanceImpl(Native Method)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
java.lang.Class.newInstance(Class.java:1472)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
android.app.Instrumentation.newActivity(Instrumentation.java:1097)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
android.app.ActivityThread.access$2100(ActivityThread.java:116)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
android.os.Handler.dispatchMessage(Handler.java:99)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
android.os.Looper.loop(Looper.java:123)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
android.app.ActivityThread.main(ActivityThread.java:4203)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
java.lang.reflect.Method.invokeNative(Native Method)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
java.lang.reflect.Method.invoke(Method.java:521)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
04-14 20:46:56.802: ERROR/AndroidRuntime(1131): at
dalvik.system.NativeStart.main(Native Method)

Whats the problem!?! I already add the permissions for Bluetooth usage and I
have using the 2.1 SDK.

Thanks!

-- 
Davyd Bandeira de Melo - GREat
Sun Certified Java Programmer 6.0

Email Pessoal: davydm...@gmail.com
GReat Mail: davydm...@great.ufc.br
Messenger: davyd...@hotmail.com

-- 
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, reply using remove me as the subject.


[android-developers] Bluetooth stack becomes dead

2010-04-13 Thread Rafał Grzybowski
After Bluetooth connection is lost. Bluetooth stack on HTC Legend is
messed up. Nothing works till Bluetooth is turned off and on. Here is
the sample, the problem is blocking read on the thread but
InputStream.available call always returns 0 and cannot be used to
implement some ugly, busy-waiting workaround.

package com.example.android.disconnectproblem;

import java.io.IOException;
import java.io.InputStream;
import java.io.InvalidObjectException;
import java.io.OutputStream;
import java.util.UUID;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class MainActivity extends Activity {
private ArrayAdapterString messages = null;
private BluetoothAdapter adapter = null;
private BluetoothDevice device = null;
private BluetoothSocket socket = null;
private ConnectedThread thread = null;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
try {
super.onCreate(savedInstanceState);
super.setContentView(R.layout.main);
}
catch (Throwable throwable) {
}
}

@Override
public void onStart () {
try
{
super.onStart();

// setup click handler
Button btnConnect = (Button)
super.findViewById(R.id.btnConnect);
btnConnect.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
try {
MainActivity.this.doConnect();
}
catch (Throwable throwable) {
MainActivity.this.handleThrowable(doConnect
failed, throwable);
}
}
});

Button btnDisconnect = (Button)
super.findViewById(R.id.btnDisconnect);
btnDisconnect.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
try {
MainActivity.this.doDisconnect();
}
catch (Throwable throwable) {
MainActivity.this.handleThrowable(doDisconnect
failed, throwable);
}
}
});

// setup messages
this.messages = new ArrayAdapterString(this,
R.layout.message);
 
((ListView)super.findViewById(R.id.lstMessages)).setAdapter(this.messages);
}
catch (Throwable throwable) {
this.handleThrowable(onStart failed, throwable);
}
}

private void doConnect () throws Throwable{
if (this.adapter == null) {
this.adapter = BluetoothAdapter.getDefaultAdapter();
this.addMessage(adapter retrieved);
}

if (this.device == null) {
this.device = adapter.getRemoteDevice(00:18:9A:01:3E:7E);
this.addMessage(device retrieved);
}

if (this.socket != null) {
throw new InvalidObjectException(Socket already retrieved);
}
else {
this.socket =
device.createRfcommSocketToServiceRecord(UUID.fromString(1101--1000-8000-00805F9B34FB));
this.addMessage(socket retrieved);
}

socket.connect();
this.addMessage(connected);

this.thread = new ConnectedThread(this.socket);
this.thread.start();
/*
InputStream input = socket.getInputStream();
this.addMessage(input stream opened);

OutputStream output = socket.getOutputStream();
this.addMessage(output stream opened);
Thread.sleep(2000);

output.close();
this.addMessage(output stream closed);

input.close();
this.addMessage(input stream closed);

socket.close ();
this.addMessage(closed);
*/
}

private void doDisconnect () throws Throwable {
this.thread.cancel();
this.socket.close();
this.socket = null;
}
private void addMessage (String message) {
this.messages.add(message);
}

Handler addMessageHandler = new Handler(){
@Override
public void handleMessage(Message msg) {
MainActivity.this.addMessage ((String)msg.obj);
}
};

protected void handleThrowable (String message, Throwable
throwable) {
if (Log.isLoggable(
Disconnect Problem,

[android-developers] Bluetooth application

2010-04-12 Thread guru
Hi All,

This is regarding to bluetooth application in Android.

When scanning of devices is active, if I invoke Device rename option,
then some times the dialog for rename option  is not coming. When I
see the log, the onClick method of device name change is not invoked!.
After scanning completes then that dialog comes or some time it will
not display.

Why this behavior and what may be the problem for this?

Thanks
Gururaja B O

-- 
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, reply using remove me as the subject.


[android-developers] Bluetooth: programmatically clearing the devices names cache? And unbinding a device? And why does a device become paired after a failed connection attempt?

2010-04-08 Thread mrqzzz
Hi.

Question 1:
In any Android version, supporting Bluetooth, after a device dicovery
is done, there is no way to *programmatically* clear the devices names
that were cached by the system during the discovery. (Unless, an
attempt to connect to a device is done, then the name is updated.)
Is there a way to *programmatically* update or clear this device names
cache?


Question 2:
In my app i need to bind-to some devices and then forget the device,
unbinding.
How can this be done *programmatically* ?


Question 3:
If i attempt a connection using

  sock = foundDevice.createRfcommSocketToServiceRecord(someWierdUUID);
  sock.connect();

even if the connection fails (of course, because of my bogus
someWierdUUID), i find that foundDevice is marked bounded.
Isn't it a bug?



Thanks,
Marcus.

-- 
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] Bluetooth pairing request

2010-04-02 Thread Rafał Grzybowski
Hello there

When my Bluetooth application is about to create SPP connection to the
unpaired remote device, pairing notification is displayed.
From the documentation I can see that pairing request can display a
dialog or sent notification. I'd like to know what logic causes my app
to sent notification than display a regular pairing dialog. Maybe I'm
blind but the problem is I were not aware of that notification and was
fighting with pairing problem for few hours :) And I'd really would
prefer my app to trigger dialog display.

Thank you,

Best regards
Rafał Grzybowski

-- 
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, reply using remove me as the subject.


[android-developers] Bluetooth file trasfer

2010-03-29 Thread Jobs He
Hello:
 I want to know android can or not transfer through Bluetooth,and
now,android have how much capalicity about Bluetooth.Thank you !

-- 
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] Bluetooth headset muted when playing FM Radio

2010-03-24 Thread jgui
The Bluetooth headset is muted by the FM Radio app, when connecting
wired headphones to use them as antenna -otherwise it won't play at
all.

Would it be possible to redirect this audio signal to the Bluetooth
headset?

-- 
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] [bluetooth] Can't connect to SPP device

2010-03-18 Thread Gui
Hi, I currently run android 1.5 on a HTC magic. I'm trying to
communicate from my phone to a bluetooth device that supports SPP. I
can't seem to be able to connect to the device. I have tryed two ways
to connect:
1- via the official 2.0 API using the backport-android to make it work
on android 1.5
2- via the unofficial bluetooth api 0.3

Both method give me an error around the same connection process.

With API 2.0, I can discover devices and pair with them. Then i create
a socket which seems to work, but when I use the .connect() method, I
get this error in CatLog:IOException Unable to start Service
Discovery. This is related to doSdp() in public class
BluetoothSocket.

Searching the web, it seems this error is related to a wrong UUID ...
but I am using the SPP UUID properly.

So, I thought the problem could be backport android, so I tried with
the unofficial API from Gerdavax ( http://code.google.com/p/android-bluetooth/
)

To connect to a device with this API you first create a socket, then
you connect using the .openSocket( port number) method. The weird
thing is, if I try with a new port, it connects, if I try a second
time, it wont work, unless I change the port. I get a similar related
error of SDP.


Here is my code for API 2.0, but im pretty sure its ok.

public class RegulVoile extends Activity {

private BluetoothAdapter adapteurGen= null;
private BluetoothDevice moduleDistant = null;
public String adressTrouver = null;
private BluetoothSocket socketBt = null;
private static final UUID MON_UUID =
UUID.fromString(1101--1000-8000-00805F9B34FB);
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

//final TextView modeText=
(TextView)this.findViewById(R.id.txt_state);
//final TextView infoText=
(TextView)this.findViewById(R.id.txt_name);
Button connectionBt =
(Button)this.findViewById(R.id.btn_connexion);

adapteurGen = BluetoothAdapter.getDefaultAdapter();



connectionBt.setOnClickListener(new OnClickListener(){
public void onClick(View v){

//make SURE there is not a discovery going on.
adapteurGen.cancelDiscovery();

moduleDistant = adapteurGen.getRemoteDevice(00:1D:
43:00:D1:0D);

try{

socketBt =
moduleDistant.createRfcommSocketToServiceRecord(MON_UUID);

} catch (IOException e) {

}



//try the connect
try {

socketBt.connect();
} catch (IOException e) {
try {
e.printStackTrace();
socketBt.close();
} catch (IOException e2) {
}
}


}
});

}

@Override
protected void onStop() {
try {
socketBt.close();
} catch (IOException e1) {

e1.printStackTrace();
}
   super.onStop();
}

@Override
protected void onDestroy() {
try {
socketBt.close();
} catch (IOException e1) {

e1.printStackTrace();
}
   super.onDestroy();
}
}

-- 
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] Bluetooth API in 2.x problem.

2010-03-15 Thread Rafal Z
I have written a small app that puts my bluetooth in discoverable mode
for a long time (G1 - API 1.6). I use that along with small program on
windows to lock/unlock the computer if the phone is close by. Recently
i try to port this app to my nexus one but it seems like i have to pop
up the message every 300s to enable device to go to discoverable mode.
does anyone know how i can suppress that?

-- 
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] Bluetooth UUID

2010-03-11 Thread Peter Fortuin
Hello,

I want to create a serial connection over Bluetooth to a device I have. But
the problem is that I don't know the UUID of the service on that device. How
can I found out what the UUID is before connecting?

-- 
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] Bluetooth Server in C/C++

2010-03-04 Thread Chris
Hi,

Has anyone tried using Bluetooth sockets where the server machine is
running C/C++? Android Bluetooth Devices returns a socket from
BluetoothDevice.createRfcommSocketToServiceRecord(UUID) and says in
the reference designed to be used with
listenUsingRfcommWithServiceRecord(String, UUID) for peer-peer
Bluetooth applications.  I can't use Bluetooth.Socket.connect()
because it does not take any parameters for the remote Bluetooth
Device nor does the Bluetooth Device class have any other methods that
return a socket.

Does anyone know a way around this?

Chirs

-- 
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] Bluetooth chat example from sdk resources works ok?

2010-03-03 Thread BobG
Hello fellow android developers. I assume the bluetooth chat example
on the developer resources page runs on something I have a dev
phone 2, which I think is an HTC Ion, with os ver 1.6. Will the btchat
example dl and run on 1.6? (right now its saying it stopped
unexpectedly...). So is it possible to upgrade the dev phone 2 to the
newer os? My goal is to cvt the chat prog into a receive only prog...
I have a bluetooth dongle on my pc running ITV bluesoliel and I want
to send data out the virtual serial port on the pc and receive it on
the phone. Step one is get something running on the phone. Step two is
opening com15 or com16 on the pc so I can send data out the com
port com1 works fine thanks for any ideas.

-- 
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] Bluetooth connection : pairing before connecting ?

2010-03-03 Thread Thomas
I'm having an issue here while trying to connect to an RS232 device
with the BluetoothChat sample program.

1- If I first pair my phone with the device through Bluetooth
Settings, no problem. The connection is made perfectly and the program
works.

2- If not bonded beforehand, I get two errors in a row when I click on
my device :

03-03 13:38:20.000: INFO/BluetoothChatService(3625): BEGIN
mConnectThread
03-03 13:38:20.020: ERROR/BluetoothService.cpp(2077):
stopDiscoveryNative: D-Bus error in StopDiscovery:
org.bluez.Error.Failed (Invalid discovery session) // Probably because
we're calling cancelDiscovery() as a security (it's already been
cancelled at some point beforehand)
03-03 13:38:20.040: ERROR/BluetoothEventLoop.cpp(2077):
onCreateDeviceResult: D-Bus error: org.bluez.Error.AlreadyExists
(Device already exists) // This I don't understand
03-03 13:38:20.050: VERBOSE/BluetoothEventRedirector(2136): Received
android.bleutooth.device.action.UUID

I tried to check out the Android Source by myself but, given that I'm
a newbie, it's kind of tough. If some experienced guy could work it
out, it'd be great : do you know how I can change the code so it can
do whatever the Bluetooth Settings application does before trying to
connect ? Thanks by advance,

-- 
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] Bluetooth connect not working

2010-02-26 Thread Jamie
I am trying to establish a connection to another Bluetooth device on
my Nexus One (2.1) with the following code, which occurs when on the
broadcast receiver when a device is found.

BluetoothDevice device = (BluetoothDevice)
intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
BluetoothSocket btSocket = null;

try
{
btSocket = device.createRfcommSocketToServiceRecord(MY_UUID);
BluetoothClass btClass = device.getBluetoothClass();
Log.d(BLUETOOTH, -- createRfcommSocketToServiceRecord
WORKED:  + btClass.toString());
btSocket.connect();
Log.e(BLUETOOTH, ON RESUME: BT connection established, data
transfer link);
}
catch (IOException e)
{
Log.e(BLUETOOTH, IOException:  + e);
}

I have tried both the following UUIDs for both the SPP and OOP
profiles:

private static final UUID MY_UUID =
UUID.fromString(1101--1000-8000-00805F9B34FB);
private static final UUID MY_UUID =
UUID.fromString(1105--1000-8000-00805F9B34FB);

Every time I call the connect command I get an IOException with
Service discovery failed. I have tried connecting to a G1, iPhone
and a Nokia phone all with the same results.

What am I doing wrong?

-- 
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] Bluetooth A2DP/AVRCP profiles on Android

2010-02-26 Thread Loco Moco
Hello,

I would like to develop a software using Bluetooth A2DP/AVRCP profiles
on Android.
I could not find the related API on the developer's website at this
moment.
But, I found a product by Sybase below.
http://www.sybase.com/detail?id=1064424
Do we have any other option?
Thank you very much in advance.

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] bluetooth discoverable

2010-02-17 Thread Shrenik Vikam
Hello,
I need to set bluetooth service discoverable till my application is
running,
how to do that in android 2.0  above

-- 
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] Bluetooth support in Android 1.5

2010-02-10 Thread Indu
I am working on a module that need Bluetooth support. Our application
should support Android 1.5 onwards. I saw that in Android 1.5 the
android.bluetooth package is not supplied. What is the alternative in
1.5?

-- 
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] Bluetooth always times out after 45 secs

2010-02-01 Thread DonFrench
My app is a modified version of the Bluetooth Chat example.  It uses
SPP for one thing and it is uni-directional communication, which is to
say that it does not listen on the Input stream.  It throws an IO
Exception consistently about 40 seconds after making the connection,
as shown in the following Log output:

02-01 21:46:17.288: INFO/BluetoothService(2487): BEGIN
mConnectedThread

02-01 21:46:57.078: ERROR/BluetoothService(2487): Exception during
write

02-01 21:46:57.078: ERROR/BluetoothService(2487): java.io.IOException:
Connection timed out

02-01 21:46:57.078: ERROR/BluetoothService(2487):  at
android.bluetooth.BluetoothSocket.writeNative(Native Method)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.bluetooth.BluetoothSocket.write(BluetoothSocket.java:317)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.bluetooth.BluetoothOutputStream.write
(BluetoothOutputStream.java:85)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
java.io.OutputStream.write(OutputStream.java:82)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.thegadgetworks.automate.BluetoothService$ConnectedThread.write
(BluetoothService.java:428)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.thegadgetworks.automate.BluetoothService.write
(BluetoothService.java:199)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.thegadgetworks.automate.AutoMate.sendMessage(AutoMate.java:244)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.thegadgetworks.automate.AutoMate.access$0(AutoMate.java:233)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.thegadgetworks.automate.AutoMate$5.onClick(AutoMate.java:188)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.View.performClick(View.java:2364)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.View.onTouchEvent(View.java:4179)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.widget.TextView.onTouchEvent(TextView.java:6540)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.View.dispatchTouchEvent(View.java:3709)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1107)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.app.Activity.dispatchTouchEvent(Activity.java:2061)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.os.Handler.dispatchMessage(Handler.java:99)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.os.Looper.loop(Looper.java:123)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
android.app.ActivityThread.main(ActivityThread.java:4363)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
java.lang.reflect.Method.invokeNative(Native Method)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
java.lang.reflect.Method.invoke(Method.java:521)

02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:860)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
02-01 21:46:57.078: ERROR/BluetoothService(2487): at
dalvik.system.NativeStart.main(Native Method)

Any idea how to get around this problem?

-- 
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] Bluetooth connect socket timeout

2010-01-31 Thread avin gupta
Hi ron the g1 made by connect only handsets.its not working with others like
pc and mobiles.

NIRMAL

On Jan 28, 2010 7:26 AM, Ron ronbruck...@comcast.net wrote:

I'm getting a connect timeout using Android as a bluetooth client
connecting to a server device.  I'm pretty sure the UUID is correct as
I no longer get the immediate service discovery errors that I got when
using any other UUID string.  So I have two questions:

1) Is it possible to lengthen the (about) 12 second timeout for the
socket connect?
2) Are there any other settings I need to be looking at to make this
work?

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.comandroid-developers%2bunsubscr...@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] bluetooth support

2010-01-29 Thread Honest
Hello,

From my application i need to do communication with external bluetotoh
device. applictrion need to communicate using  SPP profile connection.
So can some one tell me which android version i should use ? i did
work on 1.5 bluetooth but we have to use third party tool. so can some
one suggest me what should i do ? which android version is better ?

-- 
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] Bluetooth connect socket timeout

2010-01-27 Thread Ron
I'm getting a connect timeout using Android as a bluetooth client
connecting to a server device.  I'm pretty sure the UUID is correct as
I no longer get the immediate service discovery errors that I got when
using any other UUID string.  So I have two questions:

1) Is it possible to lengthen the (about) 12 second timeout for the
socket connect?
2) Are there any other settings I need to be looking at to make this
work?

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] Bluetooth background discovery without Activity

2010-01-26 Thread steff
Hi there,

I'm looking for a way to implement a 'background' bluetooth discovery.
The app should periodically scan for nearby bluetooth devices (no
connection required) without user interaction.
Discovering devices works fine when I use it within an Activity. But
how can I set up the BroadcastReceiver within a standard Java class?

Thanks in advance,
steff

-- 
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] Bluetooth UUID

2010-01-22 Thread Fran
Hi everyone :)

I've got a doubt with the uuid. The question is I've the uuid from a
J2ME app  with javax.bluetooth.uuid new UUID(19088743L); and I'd like
to convert it to java.util to port to Android using fromString(String
uuid) or something similar that let me make the same UUID on Android.

Cheers.

-- 
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] Bluetooth barcode scanner application

2010-01-20 Thread Anees
Hi experts,
I am planning to develop an android application for scanning barcodes.

The barcode scanner used would be a bluetooth device. When I scan a
barcode using the bluetooth barcode scanner, the corresponding number
of the barcode should be obtained in Android phone.

Can this bluetooth barcode scanner application be perfectly
implemented using Android 2.0 SDK? Are there any technical constraints
currently with Android 2.0 SDK for implementing this?

Please reply. I would be proceeding with this based on the feedbacks I
get from here.

Any help in this regard is well appreciated.

Regards,
Anees
-- 
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] Bluetooth Operation On Android 1.5

2009-12-31 Thread lynfordd
I see a fix was posted  Can someone explain why this still does not
work?



Nick Pelly
View profile
 More options Dec 12 2008, 4:29 pm
We have fixed this bug - you can now trigger voice dial from
bluetooth, it will be pushed to the open source repo soon.
Nick

- Hide quoted text -
On Fri, Dec 12, 2008 at 11:43 AM, Muze muzak...@gmail.com wrote:
 looking for a way to do that myself, so this reply is a bit late,
 but...
 the current android SDK doesn't allow you to mess with the BT stack,
 so until there's a new SDK (and thus, probably, a new kernel release)
 it won't be possible
 On Oct 28, 1:30 pm, RAMGarden ramgar...@gmail.com wrote:
 How easy would it be to write an application for Android that would
 listen for the bluetooth headset's button press and then launch the
 same voice dial application that is launched from a long press on the
 green send button?  What's the bluetooth API look like and is there an
 option to even listen for this event on a bluetooth headset?


-- 
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] Bluetooth SPP question

2009-12-28 Thread Fred
Hello All,
I have a simple device, not developed by me, that uses SPP to send out
a simple 55 byte data packet once every second.  The device accepts no
communication other than any needed for pairing/connection.  Once it
has been connected it is supposed to start sending the 1Hz packets
out.

I can pair the device just fine, but have yet to be able to establish
a connection.  If I try setting up a BluetoothSocket using the connect
() method, it fails with an error related to services, i.e. no known
services are on the device.  I figure this isn't a big deal, as connect
() appears to be only for the outgoing data, but then I try to listen
using   BluetoothServerSocket::listenUsingRfcommWithServiceRecord()
but get nothing.  It seems that I should need to actively do something
to establish the connection, but don't see anything in the javadocs
that look liek what I think I need.  I just want to connect the device
and start catching the packets so I can move on to coding the real
application.
Fred

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

2009-12-20 Thread DAVIDT
Hi All,

How to detect the bluetooths device found?

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] Bluetooth Developers Guide and Bluetooth Sample Code

2009-12-18 Thread Nick Pelly
Hi Bluetooth Developers,

We have just published an Android Bluetooth Developers Guide, and a
Sample Application. See links below.
http://developer.android.com/guide/topics/wireless/bluetooth.html
http://developer.android.com/resources/samples/BluetoothChat/index.html

I hope these become a useful resource,

Happy Holidays,
Nick Pelly
Android Bluetooth Project Lead

-- 
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] bluetooth connect process

2009-11-24 Thread AGA
How can a bluetooth client connect to a bluetooth server?
As we know, in tcp mode, the client fire the connection with a given
pair of IP address and port. From the server side a listening thread/
process waits for the connection request and setup a data connection.
But how it works in bluetooth wireless network? There's only a
bluetooth Mac address, but how about the port number? I've noticed
there's a UUID parameter in the method
BluetoothAdapter.listenUsingRfcommWithServiceRecord but how it works?
Or does anybody have a bluetooth connection establishment work flow
chart?

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


Re: [android-developers] bluetooth connect process

2009-11-24 Thread Nick Pelly
Here's some basic code snippets.

Server code

UUID uuid = uuid.fromString(27648B4D-D854-5674-FA60E4F535E44AF7);  //
generate your own UUID at http://www.uuidgenerator.com
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
BluetoothServerSocket serverSocket =
adapter.listenUsingRfcommWithServiceRecord(MyBluetoothApp, uuid);
BluetoothSocket socket = serverSocket.accept();  // blocks until a
connection is accepted
serverSocket.close();  // close the listening socket - does not close
the connected client socket

Client code

UUID uuid = uuid.fromString(27648B4D-D854-5674-FA60E4F535E44AF7);  //
UUID of server socket
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
BluetoothDevice device = adapter.getRemoteDevice(00:11:22:33:44:55);
 // BT MAC address of server
BluetoothSocket socket = device.createRfcommSocketToServiceRecord(uuid);
adapter.cancelDiscovery();
adapter.connect();  // blocks until connection established

At this point both sides have a connected BluetoothSocket that you can go
crazy with.

InputStream in = socket.getInputStream();
OutputStream out = socket.getOutputStream();
out.write(...);
in.read(...);
...
in.close();
out.close();
socket.close();


Nick


On Mon, Nov 23, 2009 at 10:18 PM, AGA changxiangzh...@gmail.com wrote:

 How can a bluetooth client connect to a bluetooth server?
 As we know, in tcp mode, the client fire the connection with a given
 pair of IP address and port. From the server side a listening thread/
 process waits for the connection request and setup a data connection.
 But how it works in bluetooth wireless network? There's only a
 bluetooth Mac address, but how about the port number? I've noticed
 there's a UUID parameter in the method
 BluetoothAdapter.listenUsingRfcommWithServiceRecord but how it works?
 Or does anybody have a bluetooth connection establishment work flow
 chart?

 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.comandroid-developers%2bunsubscr...@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] bluetooth uuid

2009-11-24 Thread Paul
Can someone explain how to use createRfcommSocketToServiceRecord? How
do I find out the UUID of the device I want to connect to?

Thanks,
Paul

-- 
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] bluetooth uuid

2009-11-24 Thread Sean Liao
try this one:  1101--1000-8000-00805F9B34FB

WIDCOM SDK and a C# SDK actually define the above constant value for
SPP/RFCOMM

It seems work for me although I am having problem use the inputStream and
outSteam out of the connection.

Hope it works for you.



On Tue, Nov 24, 2009 at 4:20 PM, Paul paules...@gmail.com wrote:

 Can someone explain how to use createRfcommSocketToServiceRecord? How
 do I find out the UUID of the device I want to connect to?

 Thanks,
 Paul

 --
 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.comandroid-developers%2bunsubscr...@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] bluetooth uuid

2009-11-24 Thread Nick Pelly
No no no no :)

Go to a uuid generator, and generate your own unique UUID for your
application. For example: http://www.uuidgenerator.com

It can be any valid UUID, so long as you use the same UUID on both the
server and the client of your application.

Instead of allowing applications to choose there own RFCOMM channel, we
allow apps to pick a UUID instead, which has a much lower chance of
namespace collisions (there are only 30 RFCOMM channels). Android will
automatically connect to the correct RFCOMM channel by looking up the UUID
in the service discovery database on the remote device.

Nick

On Tue, Nov 24, 2009 at 4:39 PM, Sean Liao wirelessw...@gmail.com wrote:

 try this one:  1101--1000-8000-00805F9B34FB

 WIDCOM SDK and a C# SDK actually define the above constant value for
 SPP/RFCOMM

 It seems work for me although I am having problem use the inputStream and
 outSteam out of the connection.

 Hope it works for you.



 On Tue, Nov 24, 2009 at 4:20 PM, Paul paules...@gmail.com wrote:

 Can someone explain how to use createRfcommSocketToServiceRecord? How
 do I find out the UUID of the device I want to connect to?

 Thanks,
 Paul

 --
 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] bluetooth service discovery

2009-11-17 Thread Sean Liao
Although I personal feel service discovery is quiet fundamental in generic
bluetooth solution, it is actually not very high priority for my current
products.  Since we custom make the remote devices and home grown mobile
applications, we feel getting data from connection is faster than going thru
SDP and get data from service records.  Our application runs continuously
and we are trying to shorten each cycle as short as possible.  The down side
is that it requires the mobile appl understand proprietary data
format/interface.

Having say the above, we are planning to use service record next year for
certain business cases that common interface is more important than
performance.

On Mon, Nov 16, 2009 at 2:02 PM, Nick Pelly npe...@google.com wrote:

 There is no explicit public SDP API. Android will automatically do SDP
 for you when creating RFCOMM connections with BluetoothSocket and
 BluetoothServerSocket.

 We haven't ruled out exposing some SDP at a later point, although its
 not a high priority right now. Maybe you could outline what your use
 case is and what kind of SDP API's you might like, to help our future
 planning.

 Nick

 On Mon, Nov 16, 2009 at 12:36 PM, Sean Liao wirelessw...@gmail.com
 wrote:
  I don't see any trivial API to do service discovery in android.bluetooth
  package.  Is it support in current 2.0 release?
  If yes, I appreciate any pointer.
  If not, is it something already ruled out on Android platform, or coming
  soon?
  Thanks in advance.
  Sean
 
  --
  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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] bluetooth service discovery

2009-11-17 Thread Nick Pelly
Can you be more specific about how you get better performance through
SDP? What size data are you sending? Do you mean higher throughput or
higher latency?

The dominant factor in short transfers over both SDP and RFCOMM is the
page scan, which would be 1-2 seconds no matter which protocol you
use.

Nick

On Tue, Nov 17, 2009 at 9:32 AM, Sean Liao wirelessw...@gmail.com wrote:
 Although I personal feel service discovery is quiet fundamental in generic
 bluetooth solution, it is actually not very high priority for my current
 products.  Since we custom make the remote devices and home grown mobile
 applications, we feel getting data from connection is faster than going thru
 SDP and get data from service records.  Our application runs continuously
 and we are trying to shorten each cycle as short as possible.  The down side
 is that it requires the mobile appl understand proprietary data
 format/interface.
 Having say the above, we are planning to use service record next year for
 certain business cases that common interface is more important than
 performance.

 On Mon, Nov 16, 2009 at 2:02 PM, Nick Pelly npe...@google.com wrote:

 There is no explicit public SDP API. Android will automatically do SDP
 for you when creating RFCOMM connections with BluetoothSocket and
 BluetoothServerSocket.

 We haven't ruled out exposing some SDP at a later point, although its
 not a high priority right now. Maybe you could outline what your use
 case is and what kind of SDP API's you might like, to help our future
 planning.

 Nick

 On Mon, Nov 16, 2009 at 12:36 PM, Sean Liao wirelessw...@gmail.com
 wrote:
  I don't see any trivial API to do service discovery in android.bluetooth
  package.  Is it support in current 2.0 release?
  If yes, I appreciate any pointer.
  If not, is it something already ruled out on Android platform, or coming
  soon?
  Thanks in advance.
  Sean
 
  --
  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

 --
 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] bluetooth service discovery

2009-11-17 Thread Sean Liao
I think you are right.  I meant to say that if client initiates Service
Discovery, this process takes time to complete.  So, if my mobile
application already know what data already available,and know how to get it,
our current mobile appl just simple go and get it by establish an connection
and perform read and write to the connection.  The other choice would be
advertise the data via service records, and let mobile application perform
Service Discovery first, then get connection out of the SR, and perform read
and write, etc.



On Tue, Nov 17, 2009 at 9:48 AM, Nick Pelly npe...@google.com wrote:

 Can you be more specific about how you get better performance through
 SDP? What size data are you sending? Do you mean higher throughput or
 higher latency?

 The dominant factor in short transfers over both SDP and RFCOMM is the
 page scan, which would be 1-2 seconds no matter which protocol you
 use.

 Nick

 On Tue, Nov 17, 2009 at 9:32 AM, Sean Liao wirelessw...@gmail.com wrote:
  Although I personal feel service discovery is quiet fundamental in
 generic
  bluetooth solution, it is actually not very high priority for my current
  products.  Since we custom make the remote devices and home grown mobile
  applications, we feel getting data from connection is faster than going
 thru
  SDP and get data from service records.  Our application runs continuously
  and we are trying to shorten each cycle as short as possible.  The down
 side
  is that it requires the mobile appl understand proprietary data
  format/interface.
  Having say the above, we are planning to use service record next year for
  certain business cases that common interface is more important than
  performance.
 
  On Mon, Nov 16, 2009 at 2:02 PM, Nick Pelly npe...@google.com wrote:
 
  There is no explicit public SDP API. Android will automatically do SDP
  for you when creating RFCOMM connections with BluetoothSocket and
  BluetoothServerSocket.
 
  We haven't ruled out exposing some SDP at a later point, although its
  not a high priority right now. Maybe you could outline what your use
  case is and what kind of SDP API's you might like, to help our future
  planning.
 
  Nick
 
  On Mon, Nov 16, 2009 at 12:36 PM, Sean Liao wirelessw...@gmail.com
  wrote:
   I don't see any trivial API to do service discovery in
 android.bluetooth
   package.  Is it support in current 2.0 release?
   If yes, I appreciate any pointer.
   If not, is it something already ruled out on Android platform, or
 coming
   soon?
   Thanks in advance.
   Sean
  
   --
   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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] bluetooth service discovery

2009-11-16 Thread Sean Liao
I don't see any trivial API to do service discovery in android.bluetooth
package.  Is it support in current 2.0 release?

If yes, I appreciate any pointer.
If not, is it something already ruled out on Android platform, or coming
soon?

Thanks in advance.
Sean

-- 
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] bluetooth service discovery

2009-11-16 Thread Nick Pelly
There is no explicit public SDP API. Android will automatically do SDP
for you when creating RFCOMM connections with BluetoothSocket and
BluetoothServerSocket.

We haven't ruled out exposing some SDP at a later point, although its
not a high priority right now. Maybe you could outline what your use
case is and what kind of SDP API's you might like, to help our future
planning.

Nick

On Mon, Nov 16, 2009 at 12:36 PM, Sean Liao wirelessw...@gmail.com wrote:
 I don't see any trivial API to do service discovery in android.bluetooth
 package.  Is it support in current 2.0 release?
 If yes, I appreciate any pointer.
 If not, is it something already ruled out on Android platform, or coming
 soon?
 Thanks in advance.
 Sean

 --
 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] bluetooth connection - paring required?

2009-11-12 Thread Sean Liao
=== copy and pasted ===
We only auto-pair using  when:
1.) the remote device looks like a headset
2.) the user initiated the connection request through Bluetooth Settings

2 questions to the above:
1.)  Do both conditions have to meet or either one?
2.)  how to make the remote device looks like a headset?  set the right COD
or implement headset profile on the remote device?

BTW, we use remote devices as some custom sensors.  In deployment
environment, there could be a lot sensors, and they could get swap in and
out as well.  And our mobile application has to run continuously in the
background without stopping.   Our patented application has ported to j2me,
.netcf, native C++ mobile applications and jailbroken iPhone.  We are hoping
to deploy it to Android phones.  We are facing the same issue as Blackberry,
and in the process of working with RIM to remove this Blackberry paring
requirement.

Is there a official channel to request new features for next release?

Thanks again.
Sean



On Wed, Nov 11, 2009 at 5:29 PM, Nick Pelly npe...@google.com wrote:



 On Wed, Nov 11, 2009 at 4:55 PM, Sean Liao wirelessw...@gmail.com wrote:

 Thanks for the quick response.  Having watching this topic for a long
 time since 1.1, I just cannot help feeling a little down now.


 I'm sure you'll recover. We're talking about one dialog in the case of
 connecting to a new device.


 Not trying to complain, I just want to make sure I did not miss
 anything feature I can utilize.  On top of my head, there was a
 discussion mentioning that using a pre-canned  pin code on
 remote device to by pass the paring request.  That doesn't go thru on
 the current release either?


 We only auto-pair using  when:
 - the remote device looks like a headset
 - the user initiated the connection request through Bluetooth Settings



 If someone can confirm this, that will save me some bucks just to buy
 one to try it out.

 Thanks in advance and really appreciate it.

 Best regards,
 Sean



 On Wed, Nov 11, 2009 at 3:34 PM, Nick Pelly npe...@google.com wrote:
 
 
  On Wed, Nov 11, 2009 at 3:13 PM, Sean Liao wirelessw...@gmail.com
 wrote:
 
  Do you mean that if the remote device doesn't require a pin, the
 android
  api will not be able to establish a connection to such remote devices?
 
  BluetoothSocket enforces pairing. You'll need to pair before the
 connection
  can complete.
 
 
  Do I have an option to inject the paring key pragmatically if my appl
  already know the pin code of the remote device?  Or, if the remote
 device
  doesn't require pin code, new new bluetooth api will just connect
 without
  user intervention?
 
  You'll need to pair before the connection can complete. You cannot
 inject a
  pin code.
 
 
  The idea is that we want to have a background service running without
 user
  intervention.
 
  Well the user only needs to pair once. If your remote device supports
  Bluetooth 2.1 then pairing is really easy - the user just hits 'Yes'.
 
 
  Please advise.
  Sean
  On Wed, Nov 11, 2009 at 10:02 AM, Nick Pelly npe...@google.com
 wrote:
 
 
  On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao wirelessw...@gmail.com
  wrote:
 
  Hi,
 
  Before 2.0 released, there were some questions/discussions related to
  the Bluetooth security, i.e whether paring is required to establish
  connection.
 
  Anyone know the answer or try it out already:  Is paring requirement
  enforced in the new bluetooth api in SDK 2?  Any public info
 available
  related to this topic?
 
  Yes pairing is required. But the OS will handle this in the
 background.
  For example, if you use BluetoothSocket and BluetoothServerSocket and
 try
  to make an unpaired connection, the OS will provide notifications to
 the
  user that pairing is required. Once they are paired the connection
 will
  complete. You application does not need to handle pairing.
 
 
  Thanks in advance.
  Sean
 
  --
  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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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 

Re: [android-developers] bluetooth connection - paring required?

2009-11-12 Thread Nick Pelly
On Thu, Nov 12, 2009 at 8:51 AM, Sean Liao wirelessw...@gmail.com wrote:

 === copy and pasted ===
 We only auto-pair using  when:
 1.) the remote device looks like a headset
 2.) the user initiated the connection request through Bluetooth Settings

 2 questions to the above:
 1.)  Do both conditions have to meet or either one?


Both.


 2.)  how to make the remote device looks like a headset?  set the right COD
 or implement headset profile on the remote device?


Right now it is class of device.


 BTW, we use remote devices as some custom sensors.  In deployment
 environment, there could be a lot sensors, and they could get swap in and
 out as well.  And our mobile application has to run continuously in the
 background without stopping.   Our patented application has ported to j2me,
 .netcf, native C++ mobile applications and jailbroken iPhone.  We are hoping
 to deploy it to Android phones.  We are facing the same issue as Blackberry,
 and in the process of working with RIM to remove this Blackberry paring
 requirement.

 Is there a official channel to request new features for next release?


Ok, I understand your use case now. Once we have some time on the current
set of API's we might consider allowing unathenticated and unencrypted
bluetooth connections for applications with BLUETOOTH_ADMIN permission. This
is not a step we'd take lightly -  we have to balance your desire for
unencumbered Bluetooth connections with the users desire for privacy and
security.

This is the best forum to request such features.


 Thanks again.
 Sean



 On Wed, Nov 11, 2009 at 5:29 PM, Nick Pelly npe...@google.com wrote:



 On Wed, Nov 11, 2009 at 4:55 PM, Sean Liao wirelessw...@gmail.comwrote:

 Thanks for the quick response.  Having watching this topic for a long
 time since 1.1, I just cannot help feeling a little down now.


 I'm sure you'll recover. We're talking about one dialog in the case of
 connecting to a new device.


 Not trying to complain, I just want to make sure I did not miss
 anything feature I can utilize.  On top of my head, there was a
 discussion mentioning that using a pre-canned  pin code on
 remote device to by pass the paring request.  That doesn't go thru on
 the current release either?


 We only auto-pair using  when:
 - the remote device looks like a headset
 - the user initiated the connection request through Bluetooth Settings



 If someone can confirm this, that will save me some bucks just to buy
 one to try it out.

 Thanks in advance and really appreciate it.

 Best regards,
 Sean



 On Wed, Nov 11, 2009 at 3:34 PM, Nick Pelly npe...@google.com wrote:
 
 
  On Wed, Nov 11, 2009 at 3:13 PM, Sean Liao wirelessw...@gmail.com
 wrote:
 
  Do you mean that if the remote device doesn't require a pin, the
 android
  api will not be able to establish a connection to such remote devices?
 
  BluetoothSocket enforces pairing. You'll need to pair before the
 connection
  can complete.
 
 
  Do I have an option to inject the paring key pragmatically if my appl
  already know the pin code of the remote device?  Or, if the remote
 device
  doesn't require pin code, new new bluetooth api will just connect
 without
  user intervention?
 
  You'll need to pair before the connection can complete. You cannot
 inject a
  pin code.
 
 
  The idea is that we want to have a background service running without
 user
  intervention.
 
  Well the user only needs to pair once. If your remote device supports
  Bluetooth 2.1 then pairing is really easy - the user just hits 'Yes'.
 
 
  Please advise.
  Sean
  On Wed, Nov 11, 2009 at 10:02 AM, Nick Pelly npe...@google.com
 wrote:
 
 
  On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao wirelessw...@gmail.com
  wrote:
 
  Hi,
 
  Before 2.0 released, there were some questions/discussions related
 to
  the Bluetooth security, i.e whether paring is required to establish
  connection.
 
  Anyone know the answer or try it out already:  Is paring requirement
  enforced in the new bluetooth api in SDK 2?  Any public info
 available
  related to this topic?
 
  Yes pairing is required. But the OS will handle this in the
 background.
  For example, if you use BluetoothSocket and BluetoothServerSocket and
 try
  to make an unpaired connection, the OS will provide notifications to
 the
  user that pairing is required. Once they are paired the connection
 will
  complete. You application does not need to handle pairing.
 
 
  Thanks in advance.
  Sean
 
  --
  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.comandroid-developers%2bunsubscr...@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 

Re: [android-developers] bluetooth connection - paring required?

2009-11-12 Thread Neiman Buffard
ok for starters im pretty sure im not doin this right but i wanted to throw
an idea at anyone who would take the time to read/listen for upgrades to
come if it cant make the cut for the next one. I would like to see this done
in an upgrade instead of an app only because i feel that this is somthin
everyone would enjoy. BIG PICTURES i feel that  When ur favorite
contacts/friends call and u have a customized ring tone and possibly an
assigned contact photo would it be askin to much to utilize the  3.2-inch
TFT-LCD flat touch-sensitive screen with 320 x 480 (HVGA) resolution for
that photo. Very simple yes i know however we are limited to that small
picture with out even being givin the option as to weather you' like it that
small or not.

just a thought i've had for some time now that i wanted to share thanks for
listening follow android but more specificly G1 users

On Thu, Nov 12, 2009 at 11:51 AM, Sean Liao wirelessw...@gmail.com wrote:

 === copy and pasted ===
 We only auto-pair using  when:
 1.) the remote device looks like a headset
 2.) the user initiated the connection request through Bluetooth Settings

 2 questions to the above:
 1.)  Do both conditions have to meet or either one?
 2.)  how to make the remote device looks like a headset?  set the right COD
 or implement headset profile on the remote device?

 BTW, we use remote devices as some custom sensors.  In deployment
 environment, there could be a lot sensors, and they could get swap in and
 out as well.  And our mobile application has to run continuously in the
 background without stopping.   Our patented application has ported to j2me,
 .netcf, native C++ mobile applications and jailbroken iPhone.  We are hoping
 to deploy it to Android phones.  We are facing the same issue as Blackberry,
 and in the process of working with RIM to remove this Blackberry paring
 requirement.

 Is there a official channel to request new features for next release?

 Thanks again.
 Sean



 On Wed, Nov 11, 2009 at 5:29 PM, Nick Pelly npe...@google.com wrote:



 On Wed, Nov 11, 2009 at 4:55 PM, Sean Liao wirelessw...@gmail.comwrote:

 Thanks for the quick response.  Having watching this topic for a long
 time since 1.1, I just cannot help feeling a little down now.


 I'm sure you'll recover. We're talking about one dialog in the case of
 connecting to a new device.


 Not trying to complain, I just want to make sure I did not miss
 anything feature I can utilize.  On top of my head, there was a
 discussion mentioning that using a pre-canned  pin code on
 remote device to by pass the paring request.  That doesn't go thru on
 the current release either?


 We only auto-pair using  when:
 - the remote device looks like a headset
 - the user initiated the connection request through Bluetooth Settings



 If someone can confirm this, that will save me some bucks just to buy
 one to try it out.

 Thanks in advance and really appreciate it.

 Best regards,
 Sean



 On Wed, Nov 11, 2009 at 3:34 PM, Nick Pelly npe...@google.com wrote:
 
 
  On Wed, Nov 11, 2009 at 3:13 PM, Sean Liao wirelessw...@gmail.com
 wrote:
 
  Do you mean that if the remote device doesn't require a pin, the
 android
  api will not be able to establish a connection to such remote devices?
 
  BluetoothSocket enforces pairing. You'll need to pair before the
 connection
  can complete.
 
 
  Do I have an option to inject the paring key pragmatically if my appl
  already know the pin code of the remote device?  Or, if the remote
 device
  doesn't require pin code, new new bluetooth api will just connect
 without
  user intervention?
 
  You'll need to pair before the connection can complete. You cannot
 inject a
  pin code.
 
 
  The idea is that we want to have a background service running without
 user
  intervention.
 
  Well the user only needs to pair once. If your remote device supports
  Bluetooth 2.1 then pairing is really easy - the user just hits 'Yes'.
 
 
  Please advise.
  Sean
  On Wed, Nov 11, 2009 at 10:02 AM, Nick Pelly npe...@google.com
 wrote:
 
 
  On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao wirelessw...@gmail.com
  wrote:
 
  Hi,
 
  Before 2.0 released, there were some questions/discussions related
 to
  the Bluetooth security, i.e whether paring is required to establish
  connection.
 
  Anyone know the answer or try it out already:  Is paring requirement
  enforced in the new bluetooth api in SDK 2?  Any public info
 available
  related to this topic?
 
  Yes pairing is required. But the OS will handle this in the
 background.
  For example, if you use BluetoothSocket and BluetoothServerSocket and
 try
  to make an unpaired connection, the OS will provide notifications to
 the
  user that pairing is required. Once they are paired the connection
 will
  complete. You application does not need to handle pairing.
 
 
  Thanks in advance.
  Sean
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To 

Re: [android-developers] bluetooth connection - paring required?

2009-11-11 Thread Nick Pelly
On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao wirelessw...@gmail.com wrote:

 Hi,

 Before 2.0 released, there were some questions/discussions related to the
 Bluetooth security, i.e whether paring is required to establish connection.

 Anyone know the answer or try it out already:  Is paring requirement
 enforced in the new bluetooth api in SDK 2?  Any public info available
 related to this topic?


Yes pairing is required. But the OS will handle this in the background.

For example, if you use BluetoothSocket and BluetoothServerSocket and try to
make an unpaired connection, the OS will provide notifications to the user
that pairing is required. Once they are paired the connection will complete.
You application does not need to handle pairing.



 Thanks in advance.
 Sean

 --
 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.comandroid-developers%2bunsubscr...@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] bluetooth connection - paring required?

2009-11-11 Thread Sean Liao
Do you mean that if the remote device doesn't require a pin, the android api
will not be able to establish a connection to such remote devices?

Do I have an option to inject the paring key pragmatically if my appl
already know the pin code of the remote device?  Or, if the remote device
doesn't require pin code, new new bluetooth api will just connect without
user intervention?

The idea is that we want to have a background service running without user
intervention.

Please advise.
Sean

On Wed, Nov 11, 2009 at 10:02 AM, Nick Pelly npe...@google.com wrote:



 On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao wirelessw...@gmail.com wrote:

 Hi,

 Before 2.0 released, there were some questions/discussions related to the
 Bluetooth security, i.e whether paring is required to establish connection.

 Anyone know the answer or try it out already:  Is paring requirement
 enforced in the new bluetooth api in SDK 2?  Any public info available
 related to this topic?


 Yes pairing is required. But the OS will handle this in the background.

 For example, if you use BluetoothSocket and BluetoothServerSocket and try
 to make an unpaired connection, the OS will provide notifications to the
 user that pairing is required. Once they are paired the connection will
 complete. You application does not need to handle pairing.



 Thanks in advance.
 Sean

  --
 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] bluetooth connection - paring required?

2009-11-11 Thread Nick Pelly
On Wed, Nov 11, 2009 at 3:13 PM, Sean Liao wirelessw...@gmail.com wrote:

 Do you mean that if the remote device doesn't require a pin, the android
 api will not be able to establish a connection to such remote devices?


BluetoothSocket enforces pairing. You'll need to pair before the connection
can complete.



 Do I have an option to inject the paring key pragmatically if my appl
 already know the pin code of the remote device?  Or, if the remote device
 doesn't require pin code, new new bluetooth api will just connect without
 user intervention?


You'll need to pair before the connection can complete. You cannot inject a
pin code.



 The idea is that we want to have a background service running without user
 intervention.


Well the user only needs to pair once. If your remote device supports
Bluetooth 2.1 then pairing is really easy - the user just hits 'Yes'.



 Please advise.
 Sean

 On Wed, Nov 11, 2009 at 10:02 AM, Nick Pelly npe...@google.com wrote:



 On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao wirelessw...@gmail.comwrote:

 Hi,

 Before 2.0 released, there were some questions/discussions related to the
 Bluetooth security, i.e whether paring is required to establish connection.

 Anyone know the answer or try it out already:  Is paring requirement
 enforced in the new bluetooth api in SDK 2?  Any public info available
 related to this topic?


 Yes pairing is required. But the OS will handle this in the background.

 For example, if you use BluetoothSocket and BluetoothServerSocket and try
 to make an unpaired connection, the OS will provide notifications to the
 user that pairing is required. Once they are paired the connection will
 complete. You application does not need to handle pairing.



 Thanks in advance.
 Sean

  --
 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] bluetooth connection - paring required?

2009-11-11 Thread Sean Liao
Thanks for the quick response.  Having watching this topic for a long
time since 1.1, I just cannot help feeling a little down now.

Not trying to complain, I just want to make sure I did not miss
anything feature I can utilize.  On top of my head, there was a
discussion mentioning that using a pre-canned  pin code on
remote device to by pass the paring request.  That doesn't go thru on
the current release either?

If someone can confirm this, that will save me some bucks just to buy
one to try it out.

Thanks in advance and really appreciate it.

Best regards,
Sean



On Wed, Nov 11, 2009 at 3:34 PM, Nick Pelly npe...@google.com wrote:


 On Wed, Nov 11, 2009 at 3:13 PM, Sean Liao wirelessw...@gmail.com wrote:

 Do you mean that if the remote device doesn't require a pin, the android
 api will not be able to establish a connection to such remote devices?

 BluetoothSocket enforces pairing. You'll need to pair before the connection
 can complete.


 Do I have an option to inject the paring key pragmatically if my appl
 already know the pin code of the remote device?  Or, if the remote device
 doesn't require pin code, new new bluetooth api will just connect without
 user intervention?

 You'll need to pair before the connection can complete. You cannot inject a
 pin code.


 The idea is that we want to have a background service running without user
 intervention.

 Well the user only needs to pair once. If your remote device supports
 Bluetooth 2.1 then pairing is really easy - the user just hits 'Yes'.


 Please advise.
 Sean
 On Wed, Nov 11, 2009 at 10:02 AM, Nick Pelly npe...@google.com wrote:


 On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao wirelessw...@gmail.com
 wrote:

 Hi,

 Before 2.0 released, there were some questions/discussions related to
 the Bluetooth security, i.e whether paring is required to establish
 connection.

 Anyone know the answer or try it out already:  Is paring requirement
 enforced in the new bluetooth api in SDK 2?  Any public info available
 related to this topic?

 Yes pairing is required. But the OS will handle this in the background.
 For example, if you use BluetoothSocket and BluetoothServerSocket and try
 to make an unpaired connection, the OS will provide notifications to the
 user that pairing is required. Once they are paired the connection will
 complete. You application does not need to handle pairing.


 Thanks in advance.
 Sean

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

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

-- 
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] bluetooth connection - paring required?

2009-11-11 Thread Nick Pelly
On Wed, Nov 11, 2009 at 4:55 PM, Sean Liao wirelessw...@gmail.com wrote:

 Thanks for the quick response.  Having watching this topic for a long
 time since 1.1, I just cannot help feeling a little down now.


I'm sure you'll recover. We're talking about one dialog in the case of
connecting to a new device.


 Not trying to complain, I just want to make sure I did not miss
 anything feature I can utilize.  On top of my head, there was a
 discussion mentioning that using a pre-canned  pin code on
 remote device to by pass the paring request.  That doesn't go thru on
 the current release either?


We only auto-pair using  when:
- the remote device looks like a headset
- the user initiated the connection request through Bluetooth Settings



 If someone can confirm this, that will save me some bucks just to buy
 one to try it out.

 Thanks in advance and really appreciate it.

 Best regards,
 Sean



 On Wed, Nov 11, 2009 at 3:34 PM, Nick Pelly npe...@google.com wrote:
 
 
  On Wed, Nov 11, 2009 at 3:13 PM, Sean Liao wirelessw...@gmail.com
 wrote:
 
  Do you mean that if the remote device doesn't require a pin, the android
  api will not be able to establish a connection to such remote devices?
 
  BluetoothSocket enforces pairing. You'll need to pair before the
 connection
  can complete.
 
 
  Do I have an option to inject the paring key pragmatically if my appl
  already know the pin code of the remote device?  Or, if the remote
 device
  doesn't require pin code, new new bluetooth api will just connect
 without
  user intervention?
 
  You'll need to pair before the connection can complete. You cannot inject
 a
  pin code.
 
 
  The idea is that we want to have a background service running without
 user
  intervention.
 
  Well the user only needs to pair once. If your remote device supports
  Bluetooth 2.1 then pairing is really easy - the user just hits 'Yes'.
 
 
  Please advise.
  Sean
  On Wed, Nov 11, 2009 at 10:02 AM, Nick Pelly npe...@google.com wrote:
 
 
  On Sun, Nov 8, 2009 at 12:34 PM, Sean Liao wirelessw...@gmail.com
  wrote:
 
  Hi,
 
  Before 2.0 released, there were some questions/discussions related to
  the Bluetooth security, i.e whether paring is required to establish
  connection.
 
  Anyone know the answer or try it out already:  Is paring requirement
  enforced in the new bluetooth api in SDK 2?  Any public info available
  related to this topic?
 
  Yes pairing is required. But the OS will handle this in the background.
  For example, if you use BluetoothSocket and BluetoothServerSocket and
 try
  to make an unpaired connection, the OS will provide notifications to
 the
  user that pairing is required. Once they are paired the connection will
  complete. You application does not need to handle pairing.
 
 
  Thanks in advance.
  Sean
 
  --
  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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this 

[android-developers] bluetooth connection - paring required?

2009-11-09 Thread Sean Liao
Hi,

Before 2.0 released, there were some questions/discussions related to the
Bluetooth security, i.e whether paring is required to establish connection.

Anyone know the answer or try it out already:  Is paring requirement
enforced in the new bluetooth api in SDK 2?  Any public info available
related to this topic?

Thanks in advance.
Sean

-- 
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] Bluetooth connection between Android - PC

2009-11-02 Thread AntoniMG
Hi developers,

Is there any way to comunicate an android phone with a computer trough
bluetooth? Ive made a server/client applicattion in Java using
bluetooth, but i need to do the client in Android and i dont know how
to start, I dont know even if is possible.

Is there any way to do it? Is possible? I only need to send a text
message

Thanks all.

-- 
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] Bluetooth connection between Android - PC

2009-11-02 Thread Nick Pelly
Try using the RFCOMM protocol. It's similar to TCP but for Bluetooth.

See BluetoothSocket.java.

Nick

On Mon, Nov 2, 2009 at 8:16 AM, AntoniMG tonio...@gmail.com wrote:
 Hi developers,

 Is there any way to comunicate an android phone with a computer trough
 bluetooth? Ive made a server/client applicattion in Java using
 bluetooth, but i need to do the client in Android and i dont know how
 to start, I dont know even if is possible.

 Is there any way to do it? Is possible? I only need to send a text
 message

 Thanks all.

 --
 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] Bluetooth Support (lack of it)

2009-08-28 Thread Usability Architect

Andriod doesn't support many profiles.  (ummm 1, the headset profile)

I just bought a MyTouch 3G as my first Android phone and to say the
least, disappointed.  I like the open aspect of the phone, but I've
bought phones 5+ years ago that supported more BT profiles than
this.

I came from a Blackjack (windows mobile 6.1) phone which had
multimedia connections, DUN, OBEX, keyboard, and the list goes on.
The new version of windows mobile has PAN and supports tethering out
of the box.

For GOD sakes, I can't even get a directory listing via USB
connection.  How does anyone load their own videos and music on this
device?
I can't listen to music via bluetooth in my car anymore.

Someone please tell me that there is a issue with my New MyTouch
Andriod device and that I that I just didn't take a 10 year jump in BT
functionality my making the jump to an open platform.

Yours truly,
Very frustrated

--~--~-~--~~~---~--~~
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] Bluetooth Support in Eclair

2009-08-27 Thread Shabeerali K P

Hi,

What is the Bluez version supported in Eclair?
What are the BT profile supported in Eclair

Regards,
Shabeer

--~--~-~--~~~---~--~~
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] [Bluetooth]Implementing L2CAP

2009-08-13 Thread MaheshSharma

With reference to the current work at :
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/bluetooth;hb=master

Can you tell me how can I implement L2CAP Socket?

I need to do it ASAP for a university project.
Hoping for optimistic reciprocation.


--~--~-~--~~~---~--~~
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] [Bluetooth]Implementing L2CAP

2009-08-13 Thread MaheshSharma

Hi,
Has anyone implemented L2CAP sockets?

I have been trying out , but no success as yet.
Please help! :)
--~--~-~--~~~---~--~~
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] bluetooth use in android

2009-08-09 Thread Honest

I want to use bluetooth APIS in my android application. I could found
the API related to wifi but i could not find the API for bluetooth.
Can some one tell me how can i use it ? any links for API docs and
code snippt will be much useful to me.

Thanks to all.
--~--~-~--~~~---~--~~
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] bluetooth api

2009-06-17 Thread brilliant winger

HI

I want to develop an application for input device(bluetooth).
I would like to use HID profile or SPP.
But Android SDK support only A2DP and AVCRP profile.
I'll have to wait until the next version is released.

I have one question.
I think A2DP, AVCRP profile use SPP.
is correct?
If so, we can use SPP instead of A~~ profiles?

I don't know bluetooth api.



--~--~-~--~~~---~--~~
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] Bluetooth and ADB

2009-05-28 Thread romka.shakhman...@googlemail.com

Can you help me with my question? Is it possible to use adb commands
if device connected via Bluetooth?

Regards,
Roman.

--~--~-~--~~~---~--~~
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] Bluetooth microphone activation

2009-05-20 Thread sylpheo

Hi !
I have a bluetooth headset that works fine with android 1.5 for
listening music or calling people.

My problem is that microphone is only active when I call someone, but
I would like it to be activated anytime, for dictation.

Is there any way to activate bluetooth microphone wih sdk or is there
some special headsets that would be ok for that ?

Thanks a lot !

--~--~-~--~~~---~--~~
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] Bluetooth sound output

2009-05-15 Thread e-satis

Hello,

I just noticed, using the HTC Dream that using a bluetooth headset was
really easy for phone calls, but nothing seemed to be available for
videos / music sound output. V1.0 limitations are not at fault since
when you play a music and start a call, you can hear the music in the
headset for a second. So it's technically possible, just not available
in the settings.

Does anybody knows how to redirect programatically the sound output to
the blutooth headset ?

I'd like to code a little app that let you listen to your music while
looking like a total idiot with a big device hanging to your hear :-)

Cheers !
--~--~-~--~~~---~--~~
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] Bluetooth file transfer

2009-05-03 Thread jcook2004

Is there some bluetooth API for android that enables developers to
create a way to transfer files from one g1 to another via bluetooth?


--~--~-~--~~~---~--~~
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] Bluetooth

2009-05-03 Thread moa

Can someone explain the current situation with bluetooth from a
developer point?

I take it the latest 1.5 version still does not have development of
bluetooth apps?

If not, when is this going to happen? It's been in J2ME for years!

I saw some post about it being available via compiling the framework,
what does this mean? Does this mean an app can be done that uses
bluetooth or is this just for developemt only?

I am only just starting to look at Android, so totally new to this.
However, if I can't do bluetooth SPP connections then it's no use to
me for what I want, so I'll not bother for now.




--~--~-~--~~~---~--~~
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] Bluetooth and Serial Port Profile

2009-04-21 Thread Alin

Hello

I realize that the Bluetooth API is subject to change over time and
that the only available profiles are A2DP and AVCRP, but I am really
interested about the options I have to develop an application using
the Serial Port Profile. I don't really care if the API will later
change, this application is meant to be used only by me (I am trying
to communicate to a mirocontroller using Bluetooth and the only
supported profiles are SPP and GAP).

I am going through the /core/java/android/bluetooth/ classes at the
moment but I don't see anything that refers to the SPP or otherwise. I
am willing to invest time to learn and write a SPP implementation,
provided I have someone to guide me. This is valuable to me because I
am doing this project as a final year project so I'm not exactly
waiting for someone else to do my work.

In conclusion, does anyone have any suggestions on where I could start
looking and studying to be able to use the SPP in an application?

Any piece of advice is greatly appreciated,
Alin
--~--~-~--~~~---~--~~
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] Bluetooth headset service is always running - Is it normal?

2009-04-04 Thread sm1

On my phone, a dev phone, the bluetooth headset service is always
running even though bluetooth connectivity is disable in the Settings
app. Is this normal?

The ear speaker is not emitting any sound for maybe two weeks now,
even if the on-call sound level is at max (5), so I'm checking a few
things before I try to send back the phone for repair or exchange.

thanks
serge
--~--~-~--~~~---~--~~
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] Bluetooth headset service is always running - Is it normal?

2009-04-04 Thread sm1

On my phone, a dev phone, the bluetooth headset service is always
running even though bluetooth connectivity is disable in the Settings
app. Is this normal?

The ear speaker is not emitting any sound for maybe two weeks now,
even if the on-call sound level is at max (5), so I'm checking a few
things before I try to send back the phone for repair or exchange.

thanks
serge
--~--~-~--~~~---~--~~
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] Bluetooth : RFCOMM connection fails while connecting to a headset which is in discoverable mode.

2009-04-01 Thread Bhargavi

Hi,
  Iam novice to android and i have seen a issue in G1. can some one
help me to proceed further ?
Steps to reproduce:
1.Pair and connect to a BT mono / Stereo headset.
2. Disconnect the headset from the G1 phone.
3. Switch off the headset.(Plantronics 320 / Motorola HT820)
4. Put the headset back in discoverable mode.
5. Now initiate a connection from G1.
6. Problem in connecting to Headset message pops up.
Note: when a stereo headset is connected in the same way (step 5) ,
only a2dp connection succeeds and HFP connection always fails. when a
mono headset is connected (step 5) , failure happens as it supports
only hfp.
From my initial analysis , i found that HFP conenction failed because
of the RFCOMM connection failure. I see the below message in the log:

rfcomm async connect() error: CONNECTION REFUSED (111).40 attempts of
calls to waitForAsyncConnectNative has failed and the result was
returned as  0..
Reference: waitForAsyncConnectNative() function in
android_server_headsetbase.cpp.

Any help would be really useful.

Thanks in advance,
Bhargavi


--~--~-~--~~~---~--~~
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] Bluetooth modem

2009-03-06 Thread donnysp

Hi all,

I'm thinking of getting a T-Mobile G1 as a replacement for my existing
Windows Mobile PDA. So far as I can tell it will have everything I
want bar one, namely TomTom. I have bought TomTom Navigator for the
PDA and also pay for a Traffic subscription.

Since I'll only have one tariff with unlimited data (on the G1), what
I'd like to be able to do is use the G1 as a bluetooth modem that the
PDA can use to download the live traffic data.

Is there support in Android for networking over Bluetooth?
Alternatively, is there and application I can get that will do this?
Lastly if the answer to both is no (and given that I am a software
developer by trade), would this be possible using the appropriate
APIs?

Thanks in advance for your help and advice,
DonnySP

--~--~-~--~~~---~--~~
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] BlueTooth API in 1.1?

2009-02-10 Thread pradeep.va...@gmail.com

Could anyone tell me if there is Bluetooth API in SDK 1.1?

Is bluetooth chatting already been implemented on the G Phone?

--~--~-~--~~~---~--~~
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] Bluetooth enabling

2009-02-09 Thread Dilli

Hi all

I just bought a new a android device

I try to connect my device to bluetooth.
I am able to recive phone calls to from that bluetooth headset device,
but i can't listen to music
using the bluetooth headset.

I think i missed some settings in the device

Any suggestions

Thanks  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] bluetooth on android

2009-01-14 Thread tavleen singh

hi guys.. im a newbie to the android world. I currently am trying to
enable bluetooth. Can someone guide me what should i do to get it done
im working on the 0.9beta version of sdk

--~--~-~--~~~---~--~~
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] Bluetooth in Android How to enable bccmd

2008-12-15 Thread Jerry Zhang
Hi,

   I wanna enable the bluetooth in Android. On my board, I need to use the
command bccmd to configure my bluetooth chip firstly. However I can not
find it in the Android file system. Maybe I have to recompile the android
sdk to enable it. I know that the bluez-libs is located in externel/bluez.
How can I reconfigure it and add enable-bccmd options.

   Sorry for my pool english.

   Thanks very much


BR
Jerry

--~--~-~--~~~---~--~~
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] Bluetooth DUN profile

2008-12-02 Thread Arimus

Hi,

I know that the Bluetooth DUN profile was removed prior to the initial
release of Android, does anyone have any information as to whether the
profile (in particular for the T-Mob G1) will be reinstated at some
point in the not too far future?

Richard.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Bluetooth PAN tethering

2008-11-26 Thread Disconnect
It requires root (just like all the good bits :) ..) but I have worked up a
first pass of PAN bluetooth tethering for the G1. All the details are on my
site at http://www.gotontheinter.net/node/515

The summary: With root, and a little command-line work, it allows you to do
standard bluetooth tethering, just like you could if you had a real
smartphone. :P OSX will show Bluetooth network device (not sure what
Windows or Linux will call it.) This is not the old-style DUN (ppp) but the
newer, lighter-weight PAN protocol.  Suggestions welcome, just post any
comments to the article.

If the site collapses under load (I hope not..) I've got a mirror available.

If you don't have root, don't complain to me..

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Bluetooth Availability? Timeframe?

2008-11-04 Thread USAePay

I am sure this issue has probably been talked about before but I could
not find a lot of information by searching this group as to when the
SDK will support Bluetooth for applications.

I have read that the bluetooth was locked down for security but that
it may be released in the next SDK release but I can not find a
timeframe for that release.

A lot of people have complained that Bluetooth is a very important
piece to the success of the phone and I can not agree more. For those
that argue that iPhone has the same thing have to realize that
comparing the market value of the iPhone to a phone like the G1 is
absurd. If anything the G1 NEEDS to have Bluetooth available just so
it CAN compete against the iPhone.

I hope to hear some good news about the Bluetooth, it will be a shame
if bluetooth will continue to go unsupported in the SDK. Thanks in
advance.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Bluetooth Emulation

2008-05-21 Thread Jose

Hi everybody,

I have been looking for information about Android's bluetooth support,
but unfortunately it is not implemented yet at the Android's emulator.
(see [ 1 ] )

I have found some sensor emulators, such as cameras or acelerometers,
which let us use the sensors through a socket connection, using an
external server which provides access to the real sensors. (see [ 2 ]
and [ 3 ])

Can somebody tell me if there is something similar for bluetooth?

Thanks

Jose

[ 1 ] http://code.google.com/android/reference/emulator.html#limitations
[ 2 ] http://www.tomgibara.com/android/camera-source
[ 3 ] http://code.google.com/p/openintents/wiki/SensorSimulator
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Bluetooth api

2008-04-27 Thread Prashant Kalkar
Does any one know when will the bluetooth api be available? Will it be
available in the next SDK release?

Regards
Prashant

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] bluetooth simulation?

2008-04-03 Thread Jason Pyeron

Does the SDK simulator support running two phones and communicating via
Bluetooth?


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



<    1   2   3   4