xwords/xwords4/android/jni
Eric House af37fb45f7 Rewrite BT comms to not use a Service
It's simpler this way, and I'm tired of stuff not happening because the
OS chooses not to schedule e.g. an invitation send for minutes. Goal's
to be running BluetoothServerSocket.accept() as much as possible when
there are active BT games in play OR when the game's in the foreground.
If that's happening, sent invitations and moves will be received when
users expect. When there's no traffic and app isn't being brought to
foreground, backoff will ensure I don't try to run accept() too often.

FWIW, BTLE seems to offer a better way to do this (to have an app be
responsive to incoming invitations when it hasn't run in the foreground
in a while), but it requires users to accept FINE_LOCATION
permission. I'm hoping I can make this work to avoid asking for that
permission.
2020-10-21 21:10:09 -07:00
..
.gitignore forgot a file 2017-01-18 07:28:19 -08:00
anddict.c no-code-change cleanup: star next to type not name 2020-09-13 14:34:47 -07:00
anddict.h no-code-change cleanup: star next to type not name 2020-09-13 14:34:47 -07:00
andglobals.h turn off thread->env mapping for DEBUG too (for now) 2020-04-29 10:31:37 -07:00
Android.mk Rewrite BT comms to not use a Service 2020-10-21 21:10:09 -07:00
andutils.c no-code-change cleanup: star next to type not name 2020-09-13 14:34:47 -07:00
andutils.h no-code-change cleanup: star next to type not name 2020-09-13 14:34:47 -07:00
drawwrapper.c use new makeObject to improve API 2020-08-17 10:49:12 -07:00
drawwrapper.h retain thread->env mapping in DEBUG builds only 2020-04-26 13:39:21 -07:00
jniutlswrapper.c retain thread->env mapping in DEBUG builds only 2020-04-26 13:39:21 -07:00
jniutlswrapper.h retain thread->env mapping in DEBUG builds only 2020-04-26 13:39:21 -07:00
LocalizedStrIncludes.h show pending name in scoreboard 2020-04-10 07:12:56 -07:00
paths.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
utils.c more script fixes; move jni code 2017-01-18 07:27:23 -08:00
utilwrapper.c use semaphore to protect known players data 2020-09-30 17:21:18 -07:00
utilwrapper.h retain thread->env mapping in DEBUG builds only 2020-04-26 13:39:21 -07:00
xportwrapper.c add mqtt as a new transport 2020-05-20 13:58:53 -07:00
xportwrapper.h retain thread->env mapping in DEBUG builds only 2020-04-26 13:39:21 -07:00
xptypes.h pass env into dict-related methods 2020-04-26 13:39:16 -07:00
xwjni.c list known player in invite info where known 2020-09-30 10:10:43 -07:00