fitscales icon indicating copy to clipboard operation
fitscales copied to clipboard

Problem connecting on Android 4.2

Open conoro opened this issue 11 years ago • 2 comments

Love the idea of this App!

It currently won't install on an SGS4 as it is Android 4.2. But I grabbed the sources and rebuilt for 4.2. That installed fine and the app can see the Wii Fit when I press the sync button. But it never succeeds in connecting. It just flicks back and forward between Scanning and Connecting.

I don't know enough about Android to debug but I thought a log might be able to help you?

If you need me to try anything else to get it working on the S4, I'd be happy to do it.

Thanks!

05-02 15:50:11.818: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:11.818: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:11.818: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42249e38, channel: 17, state: INIT
05-02 15:50:11.828: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@4225a9d0, channel: 19, state: INIT
05-02 15:50:12.229: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:12.229: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42256e78, channel: 19, state: INIT
05-02 15:50:12.249: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:12.249: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@4235bc20, channel: 17, state: INIT
05-02 15:50:12.559: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:12.559: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:12.559: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@4229ee78, channel: 19, state: INIT
05-02 15:50:12.559: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422f9668, channel: 17, state: INIT
05-02 15:50:12.859: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:12.859: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42248738, channel: 19, state: INIT
05-02 15:50:12.869: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:12.869: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422489c8, channel: 17, state: INIT
05-02 15:50:13.300: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:13.310: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@4225f2f8, channel: 19, state: INIT
05-02 15:50:13.310: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:13.320: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422bab30, channel: 17, state: INIT
05-02 15:50:13.650: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:13.660: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42360728, channel: 17, state: INIT
05-02 15:50:13.680: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:13.680: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@423609b8, channel: 19, state: INIT
05-02 15:50:13.930: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:13.940: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:13.940: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422896d8, channel: 17, state: INIT
05-02 15:50:13.940: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42289328, channel: 19, state: INIT
05-02 15:50:14.471: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:14.471: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:14.471: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42347b10, channel: 19, state: INIT
05-02 15:50:14.471: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422f08e8, channel: 17, state: INIT
05-02 15:50:14.941: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:14.941: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:14.951: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422378d0, channel: 19, state: INIT
05-02 15:50:14.951: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42237aa0, channel: 17, state: INIT
05-02 15:50:15.332: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:15.332: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:15.332: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422cd758, channel: 17, state: INIT
05-02 15:50:15.342: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422cd4c8, channel: 19, state: INIT
05-02 15:50:16.032: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:16.032: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422e3c50, channel: 17, state: INIT
05-02 15:50:16.052: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:16.063: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422e4560, channel: 19, state: INIT
05-02 15:50:16.363: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:16.373: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@4229d010, channel: 17, state: INIT
05-02 15:50:16.373: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:16.373: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@4229cef8, channel: 19, state: INIT
05-02 15:50:16.763: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:16.773: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42238c88, channel: 19, state: INIT
05-02 15:50:16.773: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:16.783: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422390f8, channel: 17, state: INIT
05-02 15:50:17.154: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:17.154: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@4223c940, channel: 19, state: INIT
05-02 15:50:17.164: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:17.164: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@422fd028, channel: 17, state: INIT
05-02 15:50:17.714: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:17.724: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42300e80, channel: 17, state: INIT
05-02 15:50:17.734: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:17.734: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@423006e8, channel: 19, state: INIT
05-02 15:50:18.044: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:18.044: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:18.054: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42311630, channel: 19, state: INIT
05-02 15:50:18.054: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42311490, channel: 17, state: INIT
05-02 15:50:18.355: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:18.365: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:18.365: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42315058, channel: 19, state: INIT
05-02 15:50:18.365: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@423222e0, channel: 17, state: INIT
05-02 15:50:18.965: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:18.965: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42325f90, channel: 19, state: INIT
05-02 15:50:19.015: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:19.015: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@423268c0, channel: 17, state: INIT
05-02 15:50:19.366: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:19.376: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:19.376: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42336e28, channel: 17, state: INIT
05-02 15:50:19.386: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@42337760, channel: 19, state: INIT
05-02 15:50:19.666: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:19.666: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431e3fb8, channel: 17, state: INIT
05-02 15:50:19.676: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:19.676: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431e4348, channel: 19, state: INIT
05-02 15:50:22.559: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:22.569: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431e7da0, channel: 19, state: INIT
05-02 15:50:22.569: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:22.599: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431e8030, channel: 17, state: INIT
05-02 15:50:24.250: I/dalvikvm(22613): threadid=3: reacting to signal 3
05-02 15:50:24.281: I/dalvikvm(22613): Wrote stack traces to '/data/anr/traces.txt'
05-02 15:50:24.761: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:24.771: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431ee288, channel: 19, state: INIT
05-02 15:50:24.781: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:24.781: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431eefd0, channel: 17, state: INIT
05-02 15:50:25.111: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:25.111: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431f2080, channel: 19, state: INIT
05-02 15:50:25.111: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:25.111: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431f22a8, channel: 17, state: INIT
05-02 15:50:25.812: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:25.822: W/BluetoothAdapter(22613): getBluetoothService() called with no BluetoothManagerCallback
05-02 15:50:25.842: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431f7278, channel: 17, state: INIT
05-02 15:50:25.862: D/BluetoothSocket(22613): close() in, this: android.bluetooth.BluetoothSocket@431f5da8, channel: 19, state: INIT
05-02 15:50:26.102: W/IInputConnectionWrapper(22613): setComposingText on inactive InputConnection

conoro avatar May 02 '13 15:05 conoro

Unfortunately Google replaced the bluetooth code in Android 4.2 and the newer code doesn't implement l2cap connections which are needed to communicate with Wii controllers. So for the moment I'm unable to create an Android 4.2 compatible version. Hopefully this will change in a future android version.

paulburton avatar Jun 06 '13 20:06 paulburton

Yeah, I hope so too. I get the same behavior. I used this program every day on this device (GT-p7500) on Android 3.0 but I just installed Cyanogenmod 10 (which is supposedly similar to android 4.2) and got the same behavior. If I press the red sync button, it flashes between connecting and scanning. Hopefully there is, or will be, some hack to Cyanogenmod that re-enables these l2cap programs (if security concerns permit, of course).

Paul, thank you so much for creating this great program. Would you please update this issue if this situation ever changes?

snan avatar Feb 11 '14 09:02 snan