drjia / android-bluetooth Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-bluetooth
Automatically exported from code.google.com/p/android-bluetooth
Will you implement the Bluetooth remote SIM Access Profile (rSAP)?
On http://code.google.com/p/android/issues/detail?id=4402 you can see that
there are enough requests for this.
Thanks,
Frank
Original issue reported on code.google.com by [email protected]
on 5 Aug 2010 at 2:43
What steps will reproduce the problem?
1. setPin will always return false.
What is the expected output? What do you see instead?
I've expected it to set the PIN and afterwords when I pair, the pairing
request with the remote device will start automatically without user interface.
What version of the product are you using? On what operating system?
0.2 and 0.3. On 1.5.
Please provide any additional information below.
What I really wanted to do is:
remoteBluetoothDevice.pair("123");
However, this function is not implemented. (Throws
UnsupportedOperationException )
So I thought I can do:
Boolean b = remoteBluetoothDevice.setPin("123");
remoteBluetoothDevice.pair();
However, it seems that setPin doesn't work hence, when I pair() the
function notifies the user that a pairing request is initiated and request PIN.
Am I doing something wrong?
Original issue reported on code.google.com by [email protected]
on 6 Oct 2009 at 9:33
What steps will reproduce the problem?
1. Connect to ANY Bluetooth device (previously paired or unknown/fake MAC).
remoteBluetoothDevice = localBluetoothDevice.getRemoteBluetoothDevice
("01:23:45:67:89:AB");
bluetoothSocket = remoteBluetoothDevice.openSocket(i);
inputStream = bluetoothSocket.getInputStream();
2. Exectution continues, no exception is thrown.
What is the expected output? What do you see instead?
Currently there is no obvious way how to find if the chosen device is in
range. I guess openSocket method should throw IOException or something in
case selected device is unreachable.
What version of the product are you using? On what operating system?
BT API 0.2 in Eclipse on Windows 7
Original issue reported on code.google.com by [email protected]
on 7 Sep 2009 at 7:03
What steps will reproduce the problem?
1. while calling scan() it is giving this excception. The following is code
sniipt for it.
2.
3.
public void startSearach(Context context)
{
try
{
localBluetoothDevice=
LocalBluetoothDevice.initLocalDevice(context);
Toast.makeText(this, "1",
Toast.LENGTH_LONG).show();
//localBluetoothDevice.setEnabled(boolean);
//To start scanning (discovery) of surrounding Bluetooth
devices just invoke the
bnotification=new BNotification(this);
Toast.makeText(this, "2", Toast.LENGTH_LONG).show();
data+="1";
//localBluetoothDevice.setEnabled(true);
data+="2";
Toast.makeText(this, "2", Toast.LENGTH_LONG).show();
data+="3";
localBluetoothDevice.setListener(bnotification);
Toast.makeText(this, "3", Toast.LENGTH_LONG).show();
data+="4";
localBluetoothDevice.scan();
Toast.makeText(this, "4", Toast.LENGTH_LONG).show();
data+="5";
}
catch(Exception e)
{
TextView tv=new TextView(this);
tv.setText(data);
setContentView(tv);
Toast.makeText(this, e.toString(),
Toast.LENGTH_LONG).show();
}
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
I am using HTC G1 T mobile.
Please provide any additional information below.
Let me know if you need any other thing. By the way. Good work.
Original issue reported on code.google.com by [email protected]
on 9 Aug 2009 at 1:43
What steps will reproduce the problem?
1. Connect to a device
bluetoothSocket = remoteBluetoothDevice.openSocket(i);
inputStream = bluetoothSocket.getInputStream();
outputStream = bluetoothSocket.getOutputStream();
2. Read/Write - using inputStream.read();
3. Close all
inputStream.close();
outputStream.close();
bluetoothSocket.close();
What is the expected output? What do you see instead?
InputStream.read() still blocks - nothing is returned nor exception
thrown. It should return -1 or throw an IOException.
What version of the product are you using? On what operating system?
Win Vista/Eclipse/G1 - same effect on different firmwares
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 31 Aug 2009 at 11:34
I can't seem to get thos to work on my HTC Tattoo 1.6, 1.67.405.6
I have an application that works fine on my Magic. I perform the pairing
outwith the application using the standard BT system tools.
Once this is paired i run the app which find the device then open a port to
it. On the Magic this works on the Tattoo I get;
ERROR/bluetooth_RfcommSocket.cpp(1751): connect error: No route to host (113)
The device is paired as I check this before I connect and isPaired returns
true.
I have attached the log.
Any iead why this works on magic and not tattoo would be a great help.
Original issue reported on code.google.com by [email protected]
on 24 Nov 2009 at 9:30
Attachments:
What steps will reproduce the problem?
1. get Source from http://android-bluetooth.googlecode.com/svn/trunk/
2. in eclipse import project
3. then get two error message
What is the expected output? What do you see instead?
Project 'AndroidBluetoothAPISamples' is missing required Java project:
'AndroidBluetoothAPI'
What version of the product are you using? On what operating system?
1. Eclipse IDE for Java Developers
2. android SDK
3. HTC G1 android 1.5
Please provide any additional information below.
My name : Ming-Jui
Mail: [email protected]
Original issue reported on code.google.com by [email protected]
on 13 Jan 2010 at 1:27
Attachments:
What steps will reproduce the problem?
1.Referenced AndroidBluetoothAPI_0.3.jar in build paths as external
2.Checked if localBluetoothDevice.isEnabled()
3.Called localBluetoothDevice.scan();
What is the expected output? What do you see instead?
scanCompleted should return non-zero value; I have a moto headset that
works with the phone turned on next to it.
Only scanCompleted is called; scanStarted() is never called;
What version of the product are you using? On what operating system?
AndroidBluetoothAPI_0.3.jar HTC tatoo 1.6
Please provide any additional information below.
Here is my source;
package com.eofisi.blueToothTest3;
import java.util.ArrayList;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import it.gerdavax.android.bluetooth.BluetoothDevice;
import it.gerdavax.android.bluetooth.LocalBluetoothDevice;
import it.gerdavax.android.bluetooth.LocalBluetoothDeviceListener;
import it.gerdavax.android.bluetooth.RemoteBluetoothDevice;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
public class blueToothTest3 extends Activity {
private static final String TAG = "DeviceDiscoverySample";
protected LocalBluetoothDevice localBluetoothDevice = null;
protected static ProgressDialog dialog;
protected Handler handler = new Handler();
protected ArrayList<String> devices;
protected AlertDialog deviceInfoDialog;
/*@Override
protected void onDestroy() {
if (localBluetoothDevice != null) {
localBluetoothDevice.close();
}
super.onDestroy();
}*/
@Override
protected void onDestroy() {
super.onDestroy();
localBluetoothDevice.close();
}
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//get local device details
TextView bluetoothStatusTextView = (TextView) findViewById(R.id.localDeviceBluetoothStatus);
TextView addressTextView = (TextView) findViewById(R.id.localDeviceAddress);
TextView friendlyNameTextView = (TextView) findViewById(R.id.localDeviceFriendlyName);
try {
localBluetoothDevice = LocalBluetoothDevice.initLocalDevice(this);
if (localBluetoothDevice.isEnabled()) {
//scan for an devices
scanForDevices();
} else {
bluetoothStatusTextView.setText("Status:Disables");
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void scanForDevices(){
DeviceAdapter adapter = new DeviceAdapter();
//setListAdapter(adapter);
TextView bluetoothStatusTextView = (TextView) findViewById(R.id.localDeviceBluetoothStatus);
TextView addressTextView = (TextView) findViewById(R.id.localDeviceAddress);
TextView friendlyNameTextView = (TextView) findViewById(R.id.localDeviceFriendlyName);
TextView descoveringDevices = (TextView) findViewById(R.id.descoveringDevices);
try {
//localBluetoothDevice = LocalBluetoothDevice.initLocalDevice(this);
bluetoothStatusTextView.setText("Status:Enabled");
String address = localBluetoothDevice.getAddress();
if (address != null) {
addressTextView.setText("Address: " + address);
}
String name = localBluetoothDevice.getName();
if (name != null) {
friendlyNameTextView.setText("Name: " + name);
}
localBluetoothDevice.setListener(adapter);
descoveringDevices.setText("Decovering:True");
try {
localBluetoothDevice.scan();
} catch (Exception e) {
descoveringDevices.setText("Decovering:Error");
e.printStackTrace();
}
} catch (Exception e) {
}
}
protected class DeviceAdapter extends BaseAdapter implements LocalBluetoothDeviceListener {
TextView ScanningStatus = (TextView) findViewById(R.id.ScanningStatus);
TextView bluetoothStatusTextView = (TextView) findViewById(R.id.localDeviceBluetoothStatus);
TextView ScanningStarted= (TextView) findViewById(R.id.ScanningStarted);
public int getCount() {
if (devices != null) {
return devices.size();
}
return 0;
}
public Object getItem(int position) {
return devices.get(position);
}
public long getItemId(int position) {
return 0;
}
public View getView(int position, View convertView, ViewGroup parent) {
ScanningStatus.setText("Status:View Called");
LinearLayout feedItem = null;
return feedItem;
}
public void scanCompleted(ArrayList<String> devs) {
devices = devs;
//notifyDataSetChanged();
//hideProgressDialog();
ScanningStatus.setText("Status:Scanning Complete");
// display the number of devices
TextView NoOfDevices = (TextView) findViewById(R.id.NoOfDevices);
int deviceCount=devices.size();
NoOfDevices.setText("DeviceNO:"+deviceCount);
String address = devices.get(0);
RemoteBluetoothDevice remoteBluetoothDevice = localBluetoothDevice.getRemoteBluetoothDevice(address);
}
public void scanStarted() {
//showProgressDialog();
ScanningStarted.setText("Scan Started");
}
public void disabled() {
bluetoothStatusTextView.setText("Blutooth:disabled");
}
public void enabled() {
bluetoothStatusTextView.setText("Blutooth:Enabled");
}
@Override
public void bluetoothDisabled() {
// TODO Auto-generated method stub
}
@Override
public void bluetoothEnabled() {
// TODO Auto-generated method stub
}
@Override
public void deviceFound(String arg0) {
// TODO Auto-generated method stub
ScanningStatus.setText("Status:Found Device");
}
}
}
Hope you can help.
Original issue reported on code.google.com by [email protected]
on 11 Jun 2010 at 4:39
What steps will reproduce the problem?
1. Add Jar - AndroidBluetoothAPI_0.3.jar
2. import it.gerdavax.android.bluetooth.LocalBluetoothDevice;
3. try {
localBD = LocalBluetoothDevice.initLocalDevice(this);
} catch (Exception e) {
Log.w("TEST","create Error: "+e.toString());
}
is printed
"create Error: java.lang.NullPointException"
What is the expected output? What do you see instead?
Not null...
What version of the product are you using? On what operating system?
Window xp (sp3) and eclipse, android 7 based.
Please provide any additional information below.
I need your help, please.
Thank you!!
* attach some code-------
package test.test;
import it.gerdavax.android.bluetooth.LocalBluetoothDevice;
import it.gerdavax.android.bluetooth.RemoteBluetoothDevice;
import java.util.Set;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.Toast;
public class TestActivity extends Activity implements OnClickListener {
/** Called when the activity is first created. */
private static final int REQUEST_ENABLE_BT = 2;
private BluetoothAdapter mBTAdap;
private Set<android.bluetooth.BluetoothDevice> pairedDevices;
private LocalBluetoothDevice localBD;
ImageButton setB = null;
ImageButton set2 = null;
EditText tView = null;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
tView = (EditText)findViewById(R.id.text);
setB = (ImageButton)findViewById(R.id.set);
setB.setOnClickListener(this);
set2 = (ImageButton)findViewById(R.id.set2);
set2.setOnClickListener(this);
try {
localBD = LocalBluetoothDevice.initLocalDevice(this);
} catch (Exception e) {
Log.w("TESTT","create E: "+e.toString());
}
}
.............................
Original issue reported on code.google.com by [email protected]
on 21 Jun 2010 at 7:53
Hi,
I own a HTC Tattoo but unfortunately the Android Market does not provide
the Bluetooth Samples App which is written by Stefan Sanna. Neither I can
find any source for.
Can anybody give a hint where I can download the source.
Thanks a lot.
regards
Stefan
Original issue reported on code.google.com by [email protected]
on 16 Mar 2010 at 9:24
What steps will reproduce the problem?
localDevice.stopScan();
localDevice.destroy();
execute commands immediately after each other.
What version of the product are you using? On what operating system?
Happens on Android 2.x and 1.x
Please provide any additional information below.
It might happen that localDevice.destroy() unregisters the receiver for
ACTION_DISCOVERY_FINISHED, but the receiver has already been called and was
interrupted during its receive() method. When the receiver now tries to
unregister the receiver it throws an exception.
04-02 15:16:16.523: ERROR/AndroidRuntime(30591): Caused by:
java.lang.IllegalArgumentException: Receiver not registered:
it.gerdavax.easybluetooth.LocalDevice2Impl$1@4474e758
04-02 15:16:16.523: ERROR/AndroidRuntime(30591): at
it.gerdavax.easybluetooth.LocalDevice2Impl$1.onReceive(LocalDevice2Impl.jav
a:32)
Solution:
Just surround the unregisterReceiver with a try-catch block
in Line 32 of LocalDevice2Impl.java
try {
ctx.unregisterReceiver(receiver);
} catch (IllegalArgumentException iae) {
//receiver was not really registered
}
Original issue reported on code.google.com by [email protected]
on 2 Apr 2010 at 1:26
Hello
not exactly an issue but more of a general question..
is it technically possible to open more than one bluetooth link ?
i know that your bluetooth class is implemented as a singleton, but i
wanted to know what would happen if lets say you tried to create more than
one instance.
thanks
Original issue reported on code.google.com by [email protected]
on 15 Nov 2009 at 12:02
What steps will reproduce the problem?
1. enable bluetooth device;
2. use fllowed code.
try {
if(localBtDev.isScanning() == false){
//localBtDev.scan();
}
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
tv.setText("cann't init
scanner"+e1.getMessage());
return;
}
What is the expected output? What do you see instead?
it print cann't init scanner null. what's wrong.
What version of the product are you using? On what operating system?
sdk 1.5 with android-bluetooth api. T-Mobile G1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Sep 2009 at 11:45
I'm using this api to connect to a KDC barcode scanner. Everything seems
pretty straight forward to use, however it seems to hang when I call pair().
1. I create my local device - ok
2. Initial a scan - ok
3. The listener reports seeing the KDC
4. When scan is complete, I pick the KDC from the devices
5. Check if it's paired already, return no.
6. call pair("0000"), this is the correct key for the KDC
My code is;
Log.i("BT", "Pairing ...");
kdc.pair("0000");
Log.i("BT", "Paired"); // *** THIS IS NEVER REACHED ***
Any ideas?
I have been able to connect to a KDC using JSR-82 on a Nokia if that helps.
What version of the product are you using? On what operating system?
Please provide any additional information below.
I am using an HTC magic with a 1.6 version of android.
Original issue reported on code.google.com by [email protected]
on 2 Nov 2009 at 2:34
What steps will reproduce the problem?
1.I can't run the application bluetoothSamples
2.
3.
What is the expected output? What do you see instead?
All devices with bluetooth should be displayed. I just got the message :"
application Android Device Discovery has stopped unexpectedly. Please try
again."
What version of the product are you using? On what operating system?
Android Dev Phone 2 using 1.6 OS , bluetooth 2.0 with EDR.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 3 Mar 2010 at 5:05
I tried to use the library on ADP1 os version 1.5, integrated with a Baracoda
Pencil2 blue tooth scanner, here are few problems I noticed.
1. Nothing is scanned but I get a bar code as 890251950039.
2. Whatever I scan I get a bar code as 890251950039.
I don't find any issues with the scanner as it's working fine with a blackberry
application.
So is there any compatibility issues with ADP1?
Original issue reported on code.google.com by [email protected]
on 21 Jul 2010 at 2:29
What steps will reproduce the problem?
1. while retrieving RSSI by getRSSI()
2.
3.
What is the expected output? What do you see instead?
ans) I was expecting any number but it gave null
What version of the product are you using? On what operating system?
ans) I am using windows for developement and i am testing it on g1
Please provide any additional information below.
let me know if you need any other thing.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2009 at 6:20
What steps will reproduce the problem?
1. Run AndroidBluetoothLibrarySamples
2. Choose Device Discovery Sample
3. Start device search
What is the expected output? What do you see instead?
I'm expecting a list of device names and addresses. My device is found (I
see its address), but a NullPointerException is thrown on line 92 of
DeviceDiscoverySample.java, which is:
name = localBluetoothDevice.getRemoteName(address);
(checked out from SVN on September 12)
What version of the product are you using? On what operating system?
HTC Hero, Android 1.5. I tried with the following devices being discovered:
- MacBook Pro
- Sony Ericsson k800i phone
- Lego Mindstorms NXT brick
and the result is always the same - a NPE when trying to get device name by
address.
Please provide any additional information below.
What I managed to figure out is that when the getRemoteName method is
called via reflection in LocalBluetoothDevice.java:855, it returns null, so
the NPE originates from calling toString(), but the actual problem seems to
be with the getRemoteName method. I checked that a method with such name
exists in the class under bluetoothServiceClass, but it returns null when
invoked.
Any ideas would be appreciated :)
Original issue reported on code.google.com by [email protected]
on 13 Sep 2009 at 12:28
What steps will reproduce the problem?
1. Start scanning for devies using localBluetoothDevice.scan();
What is the expected output? What do you see instead?
Should simply call scanCompleted() and provide the list of foudn devices,
but it results in a force close sometimes, especially when calling twice
after a short period of time.
What version of the product are you using? On what operating system?
AndroidBluetoothAPI 0.3b1 plus Android 1.5 & 1.6
Please provide any additional information below.
10-16 11:52:18.897: ERROR/AndroidRuntime(2335): Uncaught handler: thread
main exiting due to uncaught exception
10-16 11:52:19.207: DEBUG/dalvikvm(2335): GC freed 4748 objects / 346872
bytes in 120ms
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):
java.lang.StackOverflowError
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
java.util.Hashtable.getEntry(Hashtable.java:570)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
java.util.Hashtable.containsKey(Hashtable.java:413)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1002)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): at
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBl
Original issue reported on code.google.com by [email protected]
on 16 Oct 2009 at 3:57
What steps will reproduce the problem?
1. Open GPS RFCOMM sample
2. Connect to a 38.4Kbaud device
3. 255 is received as 65535
What is the expected output? What do you see instead?
expected output is 255. I see 65535. Is it possible to change the baudrate
through the drivers?
What version of the product are you using? On what operating system?
Android G1. Android SDK 1.5.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 26 Aug 2009 at 8:51
What steps will reproduce the problem?
1. Open project in Eclipse
2. Create folder in project called lib, drop jar library inside
3. Refresh files, right click AndroidBluetoothAPI_0.3b1.jar, select build
path -> add to build path
What is the expected output? What do you see instead?
Expected result is clean compile. I get this error:
java.lang.IllegalArgumentException: already added:
Landroid/bluetooth/IBluetoothDeviceCallback$Stub$Proxy;
[2009-10-08 22:06:31 - HelloAndroid] at
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[2009-10-08 22:06:31 - HelloAndroid] at
com.android.dx.dex.file.DexFile.add(DexFile.java:143)
[2009-10-08 22:06:31 - HelloAndroid] at
com.android.dx.command.dexer.Main.processClass(Main.java:299)
[2009-10-08 22:06:31 - HelloAndroid] at
com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
What version of the product are you using? On what operating system?
Using AndroidBluetoothAPI_0.3b1.jar, on Gentoo OS.
Please provide any additional information below.
1.5 SDK
Original issue reported on code.google.com by [email protected]
on 9 Oct 2009 at 5:18
What steps will reproduce the problem?
1. call LocalBluetoothDevice.getRemoteBluetoothDevice(address)
2. pair the device
3. when the listener is invoked call RemoteBluetoothDevice.openSocket(),
trying port 12-30.
What is the expected output? What do you see instead?
The expected is that a socket to the device will be opened. I see an error,
bluetooth_RfcommSocket.cpp(12375): connect error: No route to host (113)
it.gerdavax.android.bluetooth.BluetoothException:
it.gerdavax.android.bluetooth.BluetoothException: Can't connect to device
00:1C:88:12:B4:7B
What version of the product are you using? On what operating system?
version 0.3 on Windows XP
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Dec 2009 at 5:50
I would like to get the list of devices already paired. I found out that there
is no method to do that in the LocalBluetoothDevice class.
Is there any other way i can get the list of devices paired with the local
device?
I am using the OS version 1.6.
thanks
Original issue reported on code.google.com by [email protected]
on 9 Jun 2010 at 5:30
Hi everyone,
where do i can find documentation?
Original issue reported on code.google.com by [email protected]
on 21 Apr 2011 at 11:03
What steps will reproduce the problem?
1. Pairing
2. Connecting to Socket
3. Error
What is the expected output? What do you see instead?
Open a Socket, class not found android.bluetooth.rfcommsocket
What version of the product are you using? On what operating system?
Android Bluetooth Example Jar, Android 1.6 (Flytouch)
Please provide any additional information below.
I get a class not found on opening a socket with library version 0.3 and
example jar. Code used is GPSSample (see attachment).
Original issue reported on code.google.com by [email protected]
on 13 Feb 2011 at 12:11
Attachments:
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Dear gerdavax, I have try the BluetoothLibrarySamples in trunk.
I have finished all code and xml, have no error and I can install in my HTC
Magic Android 1.6, I can run the program, and see all the button "Bluetooth
Service, Local Bluetooth Device,....", but When I click any button, it will
error and show this message: Sorry! The application Android Bluetooth
Samples(process it.gerdavax.android.bluetooth.sample)has stopped unexpectedly.
Please try again.
What version of the product are you using? On what operating system?
Eclipse IDE for Java Developers
Build id: 20100218-1602
(c) Copyright Eclipse contributors and others 2000, 2009.
Platform: Android 1.6(HTC Magic 1.6)
jar: AndroidBluetoothAPI_0.2.jar
Please provide any additional information below.
All code I have already check again by again, but can't understand what's
wrong, and my English is broke, sorry about that.
Original issue reported on code.google.com by [email protected]
on 30 Aug 2010 at 12:39
How to use android-bluetooth to send file?
Original issue reported on code.google.com by [email protected]
on 12 Oct 2009 at 3:03
What steps will reproduce the problem?
1.remoteBluetoothDevice.pair()
2.
3.
What is the expected output? What do you see instead?
the public void pinRequested() or one of the other event listeners should
get triggered but nothing happens.
What version of the product are you using? On what operating system?
G1, android 1.6, the latest code base .3
Please provide any additional information below.
I am not trying to connect to a headset.. I'm connecting to a roving
networks bluetooth chip. The scan works fine and the bluetooth chip shows
up but the pair does not work. I am wondering if the other bluetooth
device class needs to be different.
Original issue reported on code.google.com by [email protected]
on 8 Dec 2009 at 1:01
I'm just getting started with this API and have successfully run the
initLocalDevice() method and checked its status with isEnabled() method
which returns true.
I go to access the scan() method and the program Force Closes. Does anyone
have any input? I can attach my source code.
Original issue reported on code.google.com by [email protected]
on 12 Oct 2009 at 3:13
Attachments:
What steps will reproduce the problem?
1. pair phones
2. try to connect to a BTSocket on the other phone from java using:
BluetoothSocket bs;
try {
bs = rDev.openSocket(5);
OutputStream os = bs.getOutputStream();
os.write(11);
os.write(this.msg.getBytes());
// sent testcontent
os.close();
bs.closeSocket();
} catch (BluetoothException e) {
Toast.makeText(this, e.getLocalizedMessage(), Toast.LENGTH_LONG).show();
e.printStackTrace();
} catch (Exception e) {
Toast.makeText(this, e.getLocalizedMessage(), Toast.LENGTH_LONG).show();
e.printStackTrace();
}
testcontent is 11 bytes long (fix)
reDev has been set before using:
rDev = this.ldb.getRemoteBluetoothDevice(s);
3. Crash to Homescreen
I have also had some Toasts in place in order to get debug messages
(working on a Samsung Galaxy). Logcat output says something like: "BlueZ
wrapper not initialized"
What is the expected output? What do you see instead?
An expected behaviour would be connecting to the remote device :) or not
crashing to desktop but telling me what I did wrong (I print the
errormessages in Toasts). Instead of that I see my homescreen.
What version of the product are you using? On what operating system?
0.3b1 of the BT Api
Firmware V. 1.5 on Samsung Galaxy
Please provide any additional information below:
I have attached the file in question. Every help is appreciated greatly!
Original issue reported on code.google.com by [email protected]
on 14 Oct 2009 at 1:45
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.