Eric House
ece125c5dc
change foreground-service notification text
2018-12-09 18:26:59 -08:00
Eric House
1e42156f4a
remove assert
...
Constructor is called from JNI code and so not on the UI thread.
2018-12-09 18:26:59 -08:00
Eric House
faeaa60f87
replace junit's assert with my own
...
And have it log before throwing. Should be easier to track down asserts
coming from jni callbacks this way than in the C code.
2018-12-09 18:26:59 -08:00
Eric House
eaae9ed1c1
Always call startForeground after startForegroundService
...
It's an error to e.g. stopSelf() without having called startForeground,
so do it even when about to exit.
2018-12-09 18:26:59 -08:00
Eric House
0a0bd54ec7
include new permission to install third-party apks
...
Fixed upgrade of Dbg variant not working on Oreo.
2018-12-09 18:26:59 -08:00
Eric House
8bd4613c2a
include X86 native library again
...
It's a pain to have to change code to run in Genymotion, and to have
upgrade not testable using Genymotion. Consider verting this change
before next release.
2018-12-09 18:26:59 -08:00
Eric House
50f448bb1f
fix to contact relay in foreground on Oreo+
...
Background still needs a lot of work.
2018-12-09 18:26:59 -08:00
Eric House
ff2192f659
fix path name string causing JNI crash on emulator
...
And catch NPE that also seems to be emulator-only
2018-12-09 18:26:59 -08:00
Eric House
b2bf3a6e80
move google() above maven (to fix travis?)
2018-11-28 20:38:43 -08:00
Eric House
ce3cb62f02
add reversed version of btservice notification icon
...
For the Dbg variant to match its normal notification icon.
2018-11-28 19:35:24 -08:00
Eric House
fc699caaa8
ensure channel id always setup before use
2018-11-28 19:27:32 -08:00
Eric House
7eb278033a
revert change setting notifiction priority low
2018-11-28 19:20:43 -08:00
Eric House
843c95e7ae
new icon for omnipresent BTService notification
2018-11-27 11:27:18 -08:00
Eric House
0dbc976561
Merge branch 'android_branch' into making-it-work-with-api26
2018-11-24 13:19:34 -08:00
Eric House
88fe2739c1
fix crashes (NPE and RelayService trying to run in background)
...
Still need to figure out what RelayService does. It needn't run for long
except where GCM isn't present.
2018-11-24 13:04:14 -08:00
Eric House
eb6831ea12
add bt-in-background preference
...
And clear it from a button in the alert that's posted when the
foreground service notification is selected.
2018-11-23 09:47:18 -08:00
Eric House
f8e15bd3a0
add explanation for foreground service notification
2018-11-23 08:21:52 -08:00
Eric House
2ba5982ddf
use foregroundService on devices that can handle it
...
And show the notification regardless. Tested only on pre-Oreo device so far.
2018-11-22 15:18:57 -08:00
Eric House
6177914213
add lifecycle lib (events only logged only so far)
2018-11-22 08:13:49 -08:00
Eric House
dfcac132c8
up strings for new translations-only release
2018-09-22 14:21:04 -07:00
Eric House
6bafbecd75
toward service working on Oreo
...
Did a bunch of stuff to inherit from JobIntentService and use enqueue(),
but doesn't work yet. OS is unable to bind, with this error:
09-21 17:20:51.678 3050 3050 W JobServiceContext: Time-out while trying to bind 2edee28 #u0a277/1111 org.eehouse.android.xw4dbg/org.eehouse.android.xw4.BTService, dropping.
2018-09-22 09:22:37 -07:00
Eric House
24440230ba
refactor so startService can change (no behavior change yet)
2018-09-21 15:21:04 -07:00
Eric House
45600a295a
use NotificationChannel to work on O and beyond with SDK 26
...
Notifications don't work on Oreo without this change, which includes a
new Support Library in order to get NotificationChannel and creates and
uses that as docs describe. Requires that MinSDK be raised from 8 to 14,
which may lock some users out. It *should* be possible not to do this in
the fdroid variant since their app store doesn't requires SDK 26, but
I'll look at that later.
2018-09-13 19:49:49 -07:00
Eric House
6f6c3238d4
Merge branch 'android_branch' into making-it-work-with-api26
2018-09-13 14:11:30 -07:00
Eric House
54f3e57f7f
Merge branch 'android_branch' into making-it-work-with-api26
2018-09-13 10:36:26 -07:00
Eric House
dfa308c1f5
pull timestamp out of DB as a long
...
for better formatting, eventually.
2018-08-07 09:01:17 -07:00
Eric House
02781c5113
use different (older) crashlytics (untested)
...
For some reason my laptop wouldn't build without this change. No idea
what happened to the newer version I was using or if the change
works (beyond compiling). Should be easy to find the change later if
it's a problem.
2018-08-07 08:57:14 -07:00
Eric House
d23307f0ef
up strings for new release
2018-08-02 06:28:09 -07:00
Eric House
3d7d1b8ffd
don't call tile picker more than once
...
Some devices, including my Moto, are apparently calling server_do() more
than most. When the game's supposed to be asking the user to pick tiles
that resulted in stacked TilePickAlerts. The stack of these
sending (taken together) too many picked tiles to the game made it
crash. So modify server to have only one pending tile-pick request going
at a time. Because the server can't know when the user dismisses the
alert in Android and so won't post again, respond to the dismissal by
closing the game. Reopening will put it in a state where the tile picker
can get called again.
2018-08-01 20:30:51 -07:00
Eric House
0cc7d21ecb
fix race-condition NPE by inspection
2018-08-01 08:08:36 -07:00
Eric House
6a58a08bca
remove redundant specifier
2018-08-01 07:50:34 -07:00
Eric House
f1c2eb79d4
remove x86 from jni; that chip's dead on Android
2018-08-01 07:37:33 -07:00
Eric House
803b4ff0f3
cleanup: load/initialize only when first needed
2018-07-30 08:00:00 -07:00
Eric House
bf06d4b4c2
fix not sending ACK_INVITE
...
Logic error meant it was never sent. Now always send on receipt of a
well-formed invitation, even if e.g. the recipient's missing a wordlist
and the game can't be started immediately.
2018-07-30 07:37:20 -07:00
Eric House
a23777bade
move byte[]<->NetLaunchInfo convert into the class
2018-07-27 07:44:02 -07:00
Eric House
2f10712379
revert to old invite data format
...
Had inadventently changed how NetLaunchInfo was transmitted, and crashed
on receiving from older builds. Fix to not crash, and then fix to send
and recieve in the old format.
2018-07-27 07:24:27 -07:00
Eric House
e637f49b95
include port and proto
...
Pretty sure couldn't have played against an older build without this.
2018-07-26 21:13:09 -07:00
Eric House
dfd4a3f6f6
put the api-26 changes back
...
lost in a rebase apparently
2018-07-26 19:16:50 -07:00
Eric House
9ddc6e4b89
Move transision of cmd and gameid and port (pending) into smsproto
...
common code, simplifying and unifying what the platform-specific code
has to do. Seems to work.
2018-07-26 07:50:16 -07:00
Eric House
a65498c132
add missing Overrides -- in one file
2018-07-26 07:24:23 -07:00
Eric House
70b22f7d11
revert to sdk-23
...
Too much breaks with the upgrade and I don't have time to deal.
2018-07-21 21:36:51 -07:00
Eric House
e1ba676a8e
Merge branch 'quick-bt-fix' into android_branch
2018-07-19 07:17:15 -07:00
Eric House
723e7d7953
update changes to include translations included
2018-07-19 06:57:21 -07:00
Eric House
a9701525b7
up version string for new release
2018-07-19 06:47:18 -07:00
Eric House
fcefa9ca97
dismiss the BT invite progress thing on success
...
Not sure how this broke in the reorg of XWService stuff, but let's be
agressive about dismissing that thing.
2018-07-19 06:33:05 -07:00
Eric House
4450a8d56c
fix NPE by inspection
...
I'm not sure how it happened -- race condition -- but it's harmless to
drop the action when it does.
2018-07-19 06:33:00 -07:00
Eric House
7cb00b6266
fix assertion: return a f*ing sink
...
Messed this up in February apparently.
2018-07-19 06:32:48 -07:00
Eric House
b0cf3a795c
fix NPE by inspection
...
fix crash reported by user. Looks like a race on the way out so check
for null first.
2018-07-19 06:32:36 -07:00
Eric House
d40b8b7cad
dismiss the BT invite progress thing on success
...
Not sure how this broke in the reorg of XWService stuff, but let's be
agressive about dismissing that thing.
2018-07-19 06:29:59 -07:00
Eric House
e1fec99860
fix NPE by inspection
...
I'm not sure how it happened -- race condition -- but it's harmless to
drop the action when it does.
2018-07-19 06:29:03 -07:00