Eric House
2cdd50b5fd
use TAG format that doesn't break logcat filtering
2018-12-07 11:03:08 -08:00
Eric House
b58e121246
include flavor in logged TAG
...
Tired of not being to tell variants' logs apart.
2018-12-07 10:32:59 -08:00
Eric House
a86250ca36
don't drop potential duplicate invitations after 5 seconds
...
Other code will take care of duplicates. This was meant to avoid a race
condition, for which 5 seconds is enough. Blocking forever complicates
testing.
2018-12-06 19:12:32 -08:00
Eric House
c172a0aa0c
fix NPE (race condition around deletion?)
...
Check for null. Not sure how I got it there, but there's little harm in
failing silently.
2018-12-06 06:23:40 -08:00
Eric House
fdf27e901a
don't try to connect to non-phones
...
When a device is paired but not a phone (or computer, which is how
tablets identify), don't bother trying to scan it.
2018-12-05 20:36:25 -08:00
Eric House
ba95432e44
fix crash by not creating Handler until on UI thread
...
Receiver is created and installed by a non-UI thread sometimes so can't
create the Handler there. onReceive() is called on an ok thread however
so create it there on demand. Fixes crash that showed when receiving
relay messages in background.
2018-12-05 20:17:13 -08:00
Eric House
390370c07a
launch service from ACTION_ACL_CONNECTED
...
Fire up the receiver thread, and start the service, on receipt of this
ACTION (if they're not already running.) On start, the service takes
over the thread and begins dispatching messages. Works to launch the app
when it's not running and in most cases, though messages received before
the service launches are currently dropped, things seem to work.
2018-12-05 20:14:57 -08:00
Eric House
83d0914145
fix NPE
...
It happened when too many timers were firing, but I think this code's
better anyway.
2018-12-04 19:59:42 -08:00
Eric House
95cd6d084d
kill foreground service on a timer
...
reset timer on receiving meaningful data and on moving app to
background. If it fires and we're in background, kill the service.
(There's currently no way to restart it except bringing the app into the
foreground. Fixing that's coming.)
2018-12-04 19:58:19 -08:00
Eric House
d87b81f6d7
make listener thread static
...
remove relationship with BTService so it can be created independently.
2018-12-04 17:13:35 -08:00
Eric House
546e5416dc
remove option of disabling foreground service
...
Since it's not going to be running all the time any more.
2018-12-04 06:37:44 -08:00
Eric House
9537100399
btinvite dlg shows results of scan not all paired devs
...
Moving toward a better BT invite experience: use BTService to scan for
ourselves on all paired devices, and only allow selecting from among
those on which we're running (and so likely to respond to an
invitation.)
2018-12-04 06:17:47 -08:00
Eric House
4540f9c077
change foreground-service notification text
2018-12-04 05:18:29 -08:00
Eric House
ff51dd7830
remove assert
...
Constructor is called from JNI code and so not on the UI thread.
2018-12-04 05:10:05 -08:00
Eric House
683bb38402
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-03 08:26:47 -08:00
ssantos
73ac713b89
Translated using Weblate (Portuguese)
...
Currently translated at 52.7% (395 of 750 strings)
2018-12-01 21:08:47 +01:00
Eric House
af7b9fcba0
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-11-29 18:02:06 -08:00
Eric House
3fe1289a8d
include new permission to install third-party apks
...
Fixed upgrade of Dbg variant not working on Oreo.
2018-11-29 17:07:14 -08:00
Eric House
813669fafb
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-11-29 12:55:35 -08:00
Eric House
0a0107dd7f
fix to contact relay in foreground on Oreo+
...
Background still needs a lot of work.
2018-11-29 09:35:08 -08:00
Eric House
b23b837009
fix path name string causing JNI crash on emulator
...
And catch NPE that also seems to be emulator-only
2018-11-29 09:34:07 -08:00
Eric House
9eec5c37ef
fix path name string causing JNI crash on emulator
2018-11-29 09:30:14 -08:00
Eric House
91828cb851
add more google()
...
still trying to fix travis builds
2018-11-28 21:21:48 -08:00
Eric House
b2bf3a6e80
move google() above maven (to fix travis?)
2018-11-28 20:38:43 -08:00
Eric House
3f7d36e214
trying to fix travis build
2018-11-28 20:14:49 -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
ssantos
f8c79efc60
Translated using Weblate (German)
...
Currently translated at 99.7% (748 of 750 strings)
2018-11-27 23:07:31 +01:00
Eric House
843c95e7ae
new icon for omnipresent BTService notification
2018-11-27 11:27:18 -08:00
Eric House
988ac55eaa
tweak apk-cmp script
2018-11-27 10:06:38 -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
ssantos
9a80bacf66
Translated using Weblate (Portuguese)
...
Currently translated at 52.1% (391 of 750 strings)
2018-11-19 08:07:10 +01:00
Israa Zamzami
3eba8312d4
Translated using Weblate (Arabic)
...
Currently translated at 12.0% (90 of 750 strings)
2018-11-14 20:07:08 +01:00
Israa Zamzami
1b6139721d
Added translation using Weblate (Arabic)
2018-11-13 19:05:27 +01:00
WaldiS
b49e1289db
Translated using Weblate (Polish)
...
Currently translated at 1.2% (9 of 750 strings)
2018-10-27 20:38:05 +02:00
WaldiS
cb97fc5796
Translated using Weblate (Polish)
...
Currently translated at 0.9% (7 of 750 strings)
2018-10-21 21:35:02 +02:00
Allan Nordhøy
68a705a0a3
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 86.0% (645 of 750 strings)
2018-10-03 11:32:31 +02:00
Allan Nordhøy
1a89b2eee1
Translated using Weblate (German)
...
Currently translated at 99.0% (743 of 750 strings)
2018-10-03 10:28:13 +02:00
Allan Nordhøy
9ed3239fe2
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 81.6% (612 of 750 strings)
2018-10-02 09:31:31 +02:00
Allan Nordhøy
d6468499a3
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 77.3% (580 of 750 strings)
2018-09-30 10:31:48 +02:00
Allan Nordhøy
5bf337dcde
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 57.4% (431 of 750 strings)
2018-09-25 06:33:14 +02: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