FJ Software Foren-Übersicht  
 Homepage   •  Suchen   •  FAQ   •  Mitgliederliste   •  Registrieren   •  Login
 Possible workaround for Bluetooth pairing issue in ICS Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
petersv



Anmeldedatum: 16.01.2013
Beiträge: 4

BeitragVerfasst am: Mi Jan 16, 2013 22:41 Antworten mit ZitatNach oben

It seems that the problems with Bluetooth serial profile (SPP) in some Android ICS phones may have a workaround as described here:

http://code.google.com/p/android/issues/detail?id=34161&can=4&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

http://stackoverflow.com/questions/12274210/android-bluetooth-spp-with-galaxy-s3

http://stackoverflow.com/questions/11082819/bluetooth-connection-on-android-ics-not-possible/14070240

Basically only unsecured serial socets seems to work for some ICS releases. The workaround as suggested is to use
private BluetoothSocket createBluetoothSocket(BluetoothDevice device) throws IOException {
if(Build.VERSION.SDK_INT >= 10){
try {
final Method m = device.getClass().getMethod("createInsecureRfcommSocketToServiceRecord", new Class[] { UUID.class });
return (BluetoothSocket) m.invoke(device, SPP_UUID);
} catch (Exception e) {
Log.e(TAG, "Could not create Insecure RFComm Connection",e);
}
}
return device.createRfcommSocketToServiceRecord(SPP_UUID);
}

If the MyPhoneExplorer client could offer an option to use this instead of only the regular createRfcommSocketToServiceRecord maybe all the ICS phones can work with MyPhoneExplorer.
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 31952
Wohnort: Tirol

BeitragVerfasst am: Sa Jan 26, 2013 02:59 Antworten mit ZitatNach oben

This problem does not affect MyPhoneExplorer cause he does host a Bluetooth-Service on the phone, the issues you see do open a connection from the phone to another device, MyPhoneExplorer does connect from PC to phone using the API listenUsingRfcommWithServiceRecord.

_________________
Ich bitte um Verständnis daß ich aufgrund des hohen Aufkommens im Forum und meines zeitlichen Rahmens nichtmehr jeden Thread im Forum persönlich lesen bzw. beantworten kann.

Bitte benutzt auch die Forum-Suche bzw. die FAQ
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
petersv



Anmeldedatum: 16.01.2013
Beiträge: 4

BeitragVerfasst am: Mo Jan 28, 2013 13:26 Antworten mit ZitatNach oben

FJ hat Folgendes geschrieben:
This problem does not affect MyPhoneExplorer cause he does host a Bluetooth-Service on the phone, the issues you see do open a connection from the phone to another device, MyPhoneExplorer does connect from PC to phone using the API listenUsingRfcommWithServiceRecord.


The problem also exists for connections from PC to the phone and does affect MyPhoneExplorer. The error seems to be introduced somewhere between Gingerbread and ICS. The listenUsingRfcommWithServiceRecord just seems broken in ICS on many phones.

It seems that only the unsecured version works, regardless of direction.
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 31952
Wohnort: Tirol

BeitragVerfasst am: Mi Feb 20, 2013 23:44 Antworten mit ZitatNach oben

Which phone model do you have and which Android Version ?

_________________
Ich bitte um Verständnis daß ich aufgrund des hohen Aufkommens im Forum und meines zeitlichen Rahmens nichtmehr jeden Thread im Forum persönlich lesen bzw. beantworten kann.

Bitte benutzt auch die Forum-Suche bzw. die FAQ
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
petersv



Anmeldedatum: 16.01.2013
Beiträge: 4

BeitragVerfasst am: Do Feb 21, 2013 08:18 Antworten mit ZitatNach oben

I have a Sony Xperia Go (ST27i) with ICS (4.0.4). This prooblem seems to affect all Sony Xperia phones with ICS (the ones not yet upgraded from Gingerbread can use BT with MyPhoneExplorer). The problem seems to also affect the earlier Samsung phonmes with ICS, but not the newer ones.
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 31952
Wohnort: Tirol

BeitragVerfasst am: Fr Feb 22, 2013 00:36 Antworten mit ZitatNach oben

Can you reproduce the issue (to check if a change would help) ?

_________________
Ich bitte um Verständnis daß ich aufgrund des hohen Aufkommens im Forum und meines zeitlichen Rahmens nichtmehr jeden Thread im Forum persönlich lesen bzw. beantworten kann.

Bitte benutzt auch die Forum-Suche bzw. die FAQ
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
petersv



Anmeldedatum: 16.01.2013
Beiträge: 4

BeitragVerfasst am: Fr Feb 22, 2013 07:42 Antworten mit ZitatNach oben

Absolutely, no problem.
Benutzer-Profile anzeigenPrivate Nachricht senden
Beiträge der letzten Zeit anzeigen:      
Neues Thema eröffnenNeue Antwort erstellen


 Gehe zu:   



Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme :: Alle Zeiten sind GMT + 1 Stunde
Deutsche Übersetzung von phpBB.de