diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTService.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTService.java index caaa075a5..068f04999 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTService.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTService.java @@ -553,6 +553,12 @@ public class BTService extends XWJIService { } catch ( IOException ioe ) { m_serverSocket = null; logIOE( ioe ); + } catch ( SecurityException ex ) { + // Got this with a message saying not allowed to call + // listenUsingRfcommWithServiceRecord() in background (on + // Android 9) + m_serverSocket = null; + Log.ex( TAG, ex ); } int nBadCount = 0;