Eric House
b967c39c20
up strings for release
2015-03-04 06:56:12 -08:00
Eric House
e9ccf5a305
fix crash copying game (by replacing assertion with a stricter one)
2015-03-04 06:49:52 -08:00
Eric House
4ab846ee60
remove assertion that fired on creation of every standalone game
2015-03-04 06:35:53 -08:00
Eric House
736e5f1ea0
prevent keyboard from coming up on launch of game config activity;
...
instead wait until room name is tapped. (I did this in two places
though one might have been enough. On some devices anyway that
AndroidManifest change is needed to close a keyboard if it's open
prior to opening the activity.)
2015-03-04 06:17:18 -08:00
Eric House
1e051e835c
Merge remote-tracking branch 'sf/android_branch' into android_multi2
2015-03-03 21:23:30 -08:00
Eric House
7e7305c1be
I want to be able to switch dev machines without having to uninstall
...
the latest debug build from my phones, and that requires using the
same debug.keystore everywhere. So check one in, and add a script that
symlinks to it from the machine's global location if necessary.
2015-03-03 21:19:07 -08:00
Eric House
2371111edf
add warning to rename game alert that the name won't sync, but only
...
for networked games in progress.
2015-03-03 07:55:43 -08:00
Eric House
4e7dbbfa30
update build/install instructions
2015-03-03 07:14:03 -08:00
Eric House
22dada5a1a
update build/install instructions
2015-03-03 07:12:44 -08:00
Eric House
e3b5848d5d
don't post notification if there's no explanation to be offered. I've
...
been seeing ghost notifications where there should be none; this will
fix that, but I need to observe that it doesn't remove notifications
that are needed.
2015-03-03 07:05:20 -08:00
Eric House
4cd75abaa9
Don't unbundle an invalid NLI: use a static factory method rather than
...
a constructor since the factory is allowed to fail.
2015-03-03 07:03:42 -08:00
Eric House
797cb23de2
rewrite to track by BT address rather than position since the latter
...
can change. Fixes occasional assertion failure.
2015-03-02 19:09:56 -08:00
Eric House
2b2b9982d0
remove unused method
2015-03-02 19:07:24 -08:00
Eric House
863d83bf44
reorder prefs
2015-03-02 07:11:34 -08:00
Eric House
61649aab2d
when game opens and SMS is off, offer to turn it not rather than just
...
to open the Android settings app (as done in game config already)
2015-03-02 06:45:46 -08:00
Eric House
0233ad6b79
turn off rematch
2015-03-02 06:41:11 -08:00
Eric House
a003cf686f
offer to rematch via relay too, but leave the server communication
...
part stubbed out. I'm disabling rematch for now because there are
several issues to be worked out, chief among them how to handle
simultaneous receipt of identical invitations (via different
channels.)
2015-03-02 06:28:42 -08:00
Eric House
cdf7a88302
change method signature to be more clear what it's doing
2015-03-02 06:22:57 -08:00
Eric House
6964458c84
fix string
2015-03-02 06:20:17 -08:00
Eric House
e03be955a6
make ivar private
2015-03-02 06:19:47 -08:00
Eric House
25beb1b8d4
cleanup: remove unnecessary Context params
2015-02-28 19:36:07 -08:00
Eric House
13b3905458
fix so emailed invitations from current shipping version can be
...
received. I think NFC works too. Bluetooth doesn't, and isn't worth
the time to fix since users get a very clear "upgrade already"
message.
2015-02-26 21:39:21 -08:00
Eric House
3e27721ca4
cleanup
2015-02-26 21:35:45 -08:00
Eric House
6e7c1cb73f
include set of addresses in rematch so that even though invite by
...
relay doesn't work yet games can communicate that way.
2015-02-26 06:54:56 -08:00
Eric House
3cccb0cb11
move (effective) [de]serialization logic into class
2015-02-26 06:18:19 -08:00
Eric House
ed212801c8
first pass at enabling Rematch, which seems to work for SMS and
...
Bluetooth. Relay will take a bit more work, and there are rough edges
still.
2015-02-26 06:01:17 -08:00
Eric House
8538b1b293
remove assert. Not sure why I wanted it before.
2015-02-26 06:00:03 -08:00
Eric House
a3a88463a5
get and put new game summary extras in DB
2015-02-26 05:56:46 -08:00
Eric House
add93c83de
add methods for getting and putting strings as part of summary and
...
testing if any of them constitute rematch info
2015-02-26 05:56:08 -08:00
Eric House
187e55e4ad
add column for arbitrary & extensible data in GameSummary
2015-02-26 05:52:40 -08:00
Eric House
e2f3963667
wrap static Boolean to avoid NPE when uninitialized
2015-02-25 07:35:14 -08:00
Eric House
da3452f3fa
Merge remote-tracking branch 'sf/android_branch' into android_multi2
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2015-02-24 06:46:16 -08:00
Eric House
e9cab298d9
makefile for new Czech wordlist
2015-02-24 06:45:32 -08:00
Eric House
7229d110a0
go ahead an up the beta version number too
2015-02-23 21:51:25 -08:00
Eric House
64cf060c4e
up version code and add to changelist
2015-02-23 21:35:42 -08:00
Eric House
4d0a825e43
fix NPE downloading .xwd files
2015-02-23 21:16:53 -08:00
Eric House
f2f5fb22e6
use new comms header to transmit isServer bit
2015-02-23 18:28:31 -08:00
Eric House
dc1f08a7ac
up protocol number so old clients know to upgrade
2015-02-23 18:25:34 -08:00
Eric House
24de5cc486
change order, showing newest first
2015-02-23 18:24:01 -08:00
Eric House
eca87d3755
don't crash on null set
2015-02-23 18:19:16 -08:00
Eric House
d4515c4930
Merge remote-tracking branch 'sf/android_branch' into android_multi2
...
Conflicts:
xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java
2015-02-23 08:02:56 -08:00
Eric House
0cb549abcc
add another change summary item
2015-02-23 07:11:43 -08:00
Eric House
f9ddca8316
tweak explanation
2015-02-23 07:03:25 -08:00
Eric House
825577a762
manually bring in db71c4e4e2
: force
...
resend_all() when opening game
2015-02-21 17:37:10 -08:00
Eric House
958ca38002
don't log normal case as error
2015-02-20 07:53:24 -08:00
Eric House
6fe0940187
don't log normal case as error
2015-02-20 07:52:19 -08:00
Eric House
6d8f13df9e
Merge remote-tracking branch 'sf/android_branch' into android_multi2
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2015-02-19 06:45:11 -08:00
Eric House
59bf77c871
fix occasional assert by increasing buffer size
2015-02-19 06:39:32 -08:00
Eric House
5940a7e860
Merge remote-tracking branch 'sf/android_branch' into android_multi2
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2015-02-18 19:56:48 -08:00
Eric House
9fd5e71e3d
up client version so we can tell when adoption's getting close to complete
2015-02-18 19:55:40 -08:00
Eric House
86d8a46da2
Merge branch 'android_branch' into android_multi2
...
Conflicts:
xwords4/common/comms.c
2015-02-18 19:40:36 -08:00
Eric House
b89395ffb9
up strings for new release
2015-02-18 19:24:17 -08:00
Eric House
b23c4d0a73
change comms header format to add a version and flags, marking with an
...
almost unique 16-bit quantity. 1 in 2^16 new games will fail because
its connID will match, but that's ok in part because it can only
happen during the time between when this is released and follow-on
version that assumes all older versions are gone.
2015-02-18 19:19:36 -08:00
Eric House
3dd16b5883
alert on receiving phone when SMS sender is using older/incompatible protocol.
2015-02-18 06:49:43 -08:00
Eric House
159a1a8dd2
use TAGFMT stuff for comms_resendAll()
2015-02-17 20:45:39 -08:00
Eric House
7e8c30f2ab
add preference controlling whether radio-free short-circuiting is used
...
for SMS sends when sending and receiving number are the
same. Short-circuiting is faster and tests 99% of the code without
triggering Android's annoying OS-level too-many-sms-sends alerts, but
sometimes you need to test the radio too.
2015-02-17 20:16:44 -08:00
Eric House
1592ac3ede
cleanup -- no meaningful code change
2015-02-17 19:49:32 -08:00
Eric House
db71c4e4e2
force resend_all() when opening game. This unsticks some new games
...
that for some reason connected to having several ways of sending some
of which aren't working wind up running a backoff timer by the time
they want to connect. This fixes the cases I'm seeing. I don't know if
it's at the price of generating too much traffic, but at least it's
limited to when the user actually opens the game.
2015-02-17 19:46:54 -08:00
Eric House
1a87812f2b
don't check for updates on DEBUG builds as the server doesn't handle
...
that case (yet)
2015-02-17 06:59:40 -08:00
Eric House
749b9a5c19
changes in generated IDs: apparently different dev machines generate
...
different IDs, perhaps because they're running different SDK versions.
2015-02-17 06:52:36 -08:00
Eric House
d97dd6aff1
if fake-radio pref has changed to make something (SMS) unsupported,
...
try to recover from that (otherwise impossible) change in phone
capability by checking when fetching pref if it's all still possible.
2015-02-17 06:52:00 -08:00
Eric House
4d9465a3e2
fix crash on initial install, when pref won't be set yet
2015-02-17 06:49:34 -08:00
Eric House
eb1ad5cdc3
use fake radio preference in setting phone info, and rely on that for
...
isgsm test
2015-02-17 06:15:34 -08:00
Eric House
55714d81bf
remove unused method
2015-02-14 22:42:26 -08:00
Eric House
385220cf92
add debug preference, unused so far, for faking the type of radio I
...
have. Goal's to debug non-GSM devices correctly hiding all references
to play-via-SMS.
2015-02-13 18:52:13 -08:00
Eric House
98fe7eb343
if BT's off, offer to turn it on programatically rather than telling
...
user to do it himself
2015-02-13 18:38:24 -08:00
Eric House
49024ae070
offer to turn SMS on when setting the global pref too
2015-02-13 18:16:30 -08:00
Eric House
9399ddd0ab
add a bit of space to the custom view
2015-02-12 21:12:28 -08:00
Eric House
6cfedf7fb5
fix button being missing at the wrong time
2015-02-12 19:24:32 -08:00
Eric House
270f2922b1
include game name in invitation
2015-02-12 07:48:15 -08:00
Eric House
f4a691da6b
add name, mostly as a way of passing it around in the java world since
...
the C version doesn't know about it.
2015-02-12 07:44:37 -08:00
Eric House
1a94bab9e8
add naming of game to game creation, including adding custom view to alert
2015-02-12 07:41:28 -08:00
Eric House
e5957866b4
cleanup by adding an import -- no code change
2015-02-12 07:38:17 -08:00
Eric House
2142c752bf
factor confirm-unlimited-SMS stuff out into utility dialog so I can
...
turn on SMS from outside preferences -- which is a much better
experience than sending somebody into the prefs labyrinth
2015-02-11 07:51:19 -08:00
Eric House
615ec72ea7
fix channelNo equality test so it doesn't break relay games, which
...
connect a bit differently.
2015-02-10 07:26:23 -08:00
Eric House
72a1d8b7d4
clear any server bits that happen to have been set in older games.
2015-02-10 07:05:34 -08:00
Eric House
cf4431402b
additional check for misdelivered messages that fixes
...
three-participant SMS games on a single device: if message arrived on
a different channel from what its header says it was meant for, drop
it.
2015-02-10 06:55:08 -08:00
Eric House
ad6be1bb7e
add debug-only "tag" to open games so logging can more easily track
...
what's going on when multiple participants in a single game are on the
same device. But for a couple of strings passed into the jni the
changes are only in DEBUG code.
2015-02-09 19:15:43 -08:00
Eric House
a34f4e4954
don't save unset channelSeed
2015-02-09 07:28:11 -08:00
Eric House
bdc298b222
remove logging
2015-02-09 07:27:18 -08:00
Eric House
9e403ac6b2
add assert around the new bit that's -- bitten -- me once already
2015-02-09 06:46:34 -08:00
Eric House
5a28f8dedf
fix recent message header hack to not break addressing of messages
2015-02-08 18:42:38 -08:00
Eric House
534bb37224
only show every 5th toast
2015-02-08 18:36:55 -08:00
Eric House
aa77413116
remove logging
2015-02-08 18:35:34 -08:00
Eric House
88dd25fb21
fix channel comparison so messages actually get deleted after they're
...
ack'd.
2015-02-08 13:39:35 -08:00
Eric House
acf5a01374
Fix assertion failure: comms_msgProcessed() must be called whenever
...
comms_checkIncomingStream() is
2015-02-08 11:29:27 -08:00
Eric House
0620bc0443
remove extra carriage return
2015-02-08 11:03:55 -08:00
Eric House
9ab0113e85
tweak debug toast strings
2015-02-08 10:48:17 -08:00
Eric House
994bd4fc5c
format status time to seconds rather than minutes
2015-02-08 10:48:05 -08:00
Eric House
fb011624bb
add another assertion meant to find threading problems, and fix assert
...
firing because flag was set too late and sometimes bypassed.
2015-02-08 10:37:54 -08:00
Eric House
b7dfc169bf
add commented-out mutex protecting comms. I don't think I need it, but
...
this makes it easier to put back if comms->processingMsg assertions
start failing.
2015-02-08 10:37:06 -08:00
Eric House
9a0da56158
fix NPE: onActivityResult gets called before onResume, so reload game
...
there instead.
2015-02-08 10:35:52 -08:00
Eric House
7e634ecc64
hijack a bit from channelNo to indicate whether message sender is
...
server or guest so that sender can tell when it receives a message
from itself (and reject it.) This fixes a lot of confusion in testing
where both participants in a networked game are on the same device,
but might also work around e.g. relay bugs.
2015-02-08 09:58:34 -08:00
Eric House
c6b42c539c
add assert to ensure there are no thread issues: mutex may be required
...
if the assert winds up getting hit.
2015-02-08 07:51:08 -08:00
Eric House
01c4fa620e
when nbs send is to my own phone number, just put the packet in the
...
incoming queue. T-mobile will deliver the message, but it's much
faster this way and while I'm still sending too many messages avoids
triggering the undismissable "this app is sending too many SMS
messages" Android warning alert.
2015-02-07 22:37:06 -08:00
Eric House
fa856e1db0
don't send sms messages in queue if sms support has been turned off
2015-02-07 13:37:14 -08:00
Eric House
17307f910b
fix problem with misdelivered message forever locking out future
...
messages: when comms thinks a message is an init but server drops it,
give comms that info so it can remove it and give the next one a
chance.
2015-02-07 13:24:09 -08:00
Eric House
f039ee8338
reject message for client that arrives for server rather than asserting
2015-02-07 13:20:47 -08:00
Eric House
2202639606
feed messages by rowid, not gameID, in case a device has more than one
...
participant. This is toward fixing SMS same-device games (useful for
testing only, but VERY useful for that.)
2015-02-07 13:11:52 -08:00
Eric House
b12cf55a83
remove unused variable
2015-02-07 12:56:03 -08:00
Eric House
cf3c219b69
fix non-DEBUG compile
2015-02-07 12:54:46 -08:00
Eric House
e4b0cd89c2
In invite means choice dialog, OK button is enabled until a choice is
...
made. Required piping prepareDialog() into DlgDelegate.
2015-02-06 08:02:04 -08:00
Eric House
1b9341bef3
change ivar name -- no code change
2015-02-06 07:58:48 -08:00
Eric House
63ef10ebb1
remove or change logging
2015-02-06 06:11:04 -08:00
Eric House
1b8389c6b1
hide Reconnect button except on debug builds; it doesn't seem to be
...
doing anything, and I'm not sure how to communicate that it's
relay-only.
2015-02-06 06:10:12 -08:00
Eric House
4ddf11387f
make send-nfc-to-self available through a debug-only preference rather
...
than only on DEBUG builds.
2015-02-05 06:56:04 -08:00
Eric House
c2a87c187d
as a DEBUG-only feature, enable "send" of NFC to self to better
...
duplicate on a single device how real devices are meant to be
inviting.
2015-02-04 22:15:20 -08:00
Eric House
019d9987c7
fix bug where email didn't get launched when the only choice
2015-02-04 21:50:23 -08:00
Eric House
2c7469f228
emphasize button by centering it rather than making it green, since
...
color replacing a drawable looks like crap and the ways of doing it
right are too complicated and may not look good on all devices/OS
versions.
2015-02-04 07:21:17 -08:00
Eric House
cb40600293
cleanup -- no code changes
2015-02-04 07:07:23 -08:00
Eric House
11c8c01c7b
remove dead code
2015-02-04 06:59:15 -08:00
Eric House
3b41752382
show no conn options as a localizable, non-empty string rather than
...
empty string
2015-02-03 22:23:11 -08:00
Eric House
e0a337ff4c
deal with case where user removes existing game's ability to connect:
...
refuse to save until something's put back
2015-02-03 22:11:13 -08:00
Eric House
c55bba5aab
for game config replace onKeyDown() with onBackPressed() since only
...
one key was handled.
2015-02-03 21:49:33 -08:00
Eric House
5e6bb507b7
shift responsibility for deleting new game when config activity is
...
cancelled from games list to config activity. Fixes race condition
that on emulator, and less often on device, left a game highlighted
after config was cancelled that should have been deleted.
2015-02-03 21:43:28 -08:00
Eric House
35525d62a4
give newgame alert an icon to remind folks what's up.
2015-02-03 19:16:37 -08:00
Eric House
46c361028e
move config of ConnViaViewLayout to prepareDialog() so checkboxes get
...
reset each time, fixing problem of checks sticking across invocations.
2015-02-03 07:45:12 -08:00
Eric House
70545eb3f2
more fixing assuming a connection-means-less game is solo
2015-02-01 22:54:15 -08:00
Eric House
e383d9c7ad
show the multi-game icon for multi-games even if they have no conn
...
options set.
2015-02-01 22:31:03 -08:00
Eric House
8abe7720c8
don't allow saving/playing a multi-divice game that doesn't have at
...
least one way of connecting. Instead, give a choice between discarding
it and editing, and if the latter choice it taken open the alert for
picking ways to connect. Requires a new version of showConfirmThen()
that lets the negative button be other than "Cancel".
2015-02-01 22:15:06 -08:00
Eric House
02da56ce9c
add populate() that can be called to add defaults when new type is added
2015-02-01 19:55:06 -08:00
Eric House
4bd15c072b
add isFinishing() to base class
2015-02-01 19:51:32 -08:00
Eric House
46c4cc0669
warn when user disables all communication options in prefs
2015-01-31 23:17:13 -08:00
Eric House
5d58c09120
remove must-invite alert when game connects
2015-01-28 06:17:27 -08:00
Eric House
0972e07b4e
give download button a green background for greater visibility
2015-01-27 21:42:42 -08:00
Eric House
a4842bdaab
just hide the "hide title" pref on devices where it's a no-op --
...
rather than explain to a user why his action is being ignored
2015-01-27 21:40:22 -08:00
Eric House
1b6f0de8e6
inset checkbox for better visibility
2015-01-27 08:24:06 -08:00
Eric House
fb13c949e8
re-enable ActionPairs stuff now that an additional button works/fits.
2015-01-27 08:14:06 -08:00
Eric House
5cece9f3cc
Merge remote-tracking branch 'sf/android_branch' into android_multi2
...
Conflicts:
xwords4/android/XWords4/archive/R.java
xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java
2015-01-27 07:53:42 -08:00
Eric House
828b620c44
make "do not show again" a checkbox instead of a button -- requires a
...
trivial custom view.
2015-01-27 07:46:18 -08:00
Eric House
41a2655248
move newbie hint about hiding newgame buttons to the buttons
...
themselves, and disable third button because it isn't shown on the
devices I'm testing on. Not sure why. Tweak text to make sense in that
context.
2015-01-27 07:11:49 -08:00
Eric House
8044fb0fc7
exit board when invite alert cancelled
2015-01-26 07:25:46 -08:00
Eric House
5f5e35e885
hide (the right way) play-via-sms preference on non-gsm phones
2015-01-26 07:06:43 -08:00
Eric House
74ce8116ea
don't allow to enable SMS or BT if the feature's off on the phone, and
...
warn via an alert (varies by whether in prefs or game config) in that case.
2015-01-25 17:40:23 -08:00
Eric House
2c5cf9da39
move conn-via set manipulation into a custom view prefs and game
...
config can both use.
2015-01-25 16:14:34 -08:00
Eric House
c506805235
show SMS and BT as connect-via options only when available on the
...
device -- which for SMS means it's a GSM phone.
2015-01-25 15:18:20 -08:00
Eric House
b3f1b6ae3e
hide SMS as invite option (for now)
2015-01-25 15:17:49 -08:00
Eric House
b851427fd9
tweak string
2015-01-25 15:17:28 -08:00
Eric House
2710ef7243
turn off invite via SMS (for now)
2015-01-25 14:00:03 -08:00
Eric House
f983e477a2
remove all code for sending and receiving non-data SMS. The plan is
...
that SMS will only be supported for GSM phones from here out (unless
Google figure out how to make the Data SMS APIs work on CDMA devices.)
2015-01-25 13:56:33 -08:00
Eric House
1ec5df0914
fix so button is correctly enabled from the start
2015-01-24 21:55:44 -08:00
Eric House
9806b01d6b
get rid of send-invitation menuitem, since it's never there unless
...
there's a dialog in front of the board forcing you to send an
invitation.
2015-01-24 16:32:11 -08:00
Eric House
b8ff064819
turn another set of constants into an enum: no code change
2015-01-24 16:20:13 -08:00
Eric House
bd55ed025e
fix handling bt invitations when the wordlist specified is missing
2015-01-24 15:59:36 -08:00
Eric House
9031885eb0
fix duplicate NFC invites being accepted (but not working to create
...
usable games) by fixing broken query used by getMostRecentCreate()
2015-01-24 14:59:15 -08:00
Eric House
56e61061be
add alert explaining "just tap" when user picks nfc for sending invite
2015-01-24 14:29:49 -08:00
Eric House
dd6aa95068
force invite alert to stay up as long as a host has players missing.
2015-01-24 14:18:30 -08:00
Eric House
445d44e773
import child class to cut a few characters from file -- no code change
2015-01-24 13:48:03 -08:00
Eric House
da374db1bc
fix progress alert thinging being left after BT invites accepted in
...
case where more than one device being invited. Really should
incorporate progress into the dialog showing missing players, but this
is better than before.
2015-01-24 13:22:51 -08:00
Eric House
f87dd30bd6
don't create new using-defaults game is if from a received invitation
2015-01-24 13:07:52 -08:00
Eric House
17f4e35bf4
tweak wording
2015-01-24 12:57:42 -08:00
Eric House
b2781afeb3
offer to hide newgame buttons via augmented showNotAgainDlgThen shown
...
when player has five or more games in list.
2015-01-24 12:47:22 -08:00
Eric House
3a1e091852
fix crash on receiving end: inviteID is optional
2015-01-24 11:26:48 -08:00
Eric House
95f761d664
cleanup for better logging, including replacing constants with an enum
2015-01-24 11:01:50 -08:00
Eric House
027cd319e6
Merge branch 'android_branch' into android_multi2
...
Conflicts:
xwords4/android/XWords4/archive/R.java
2015-01-24 10:10:10 -08:00
Eric House
7b2a6fddf8
add an assert toward figuring out google-reported assert
2015-01-24 09:48:11 -08:00
Eric House
6da910ea07
merge with remote head
2015-01-24 09:38:05 -08:00
Eric House
44624b20d9
up strings and changes list for release
2015-01-24 08:59:44 -08:00
Eric House
9b0eba8be6
up copyright for the new year
2015-01-24 08:54:06 -08:00
Eric House
f48d79d4c8
provide default default language name (and rename string constant
...
being used that way now too)
Conflicts:
xwords4/android/XWords4/archive/R.java
2015-01-23 08:35:04 -08:00
Eric House
e0c9d626ae
rename script
2015-01-23 08:30:19 -08:00
Eric House
178156b7d7
Add UI to invite via SMS more than one player per device (if the
...
"Advanced" option is enabled).
2015-01-23 08:19:20 -08:00
Eric House
bfd6b2162d
swap two config positions
2015-01-22 07:39:07 -08:00
Eric House
aec70782f4
tweaks to get game initialization working, including not looking on
...
startup for incoming text messages if on KITKAT or above.
2015-01-22 07:37:06 -08:00
Eric House
c3482925b4
Send NLI data for invitation instead of field-by-field. Try to prevent
...
duplicate phone number entries when the same number is formatted
differently.
2015-01-20 07:57:08 -08:00
Eric House
4b345ff28e
new methods to store and retrieve byte arrays
2015-01-20 07:52:49 -08:00
Eric House
f8e530da9b
Snapshot toward making SMS work again: invites now work via
...
user-visible SMS, providing a URL same as email that launches the app
with a new game. Game works sending via NBS (data SMS) when both
devices are on GSM (T-mobile, anyway.) Plan is to use os version and
gsm info included in invite to warn user when the game can't
communicate, but that test isn't done yet. Also removed debug pref
allowing to force send by NBS.
2015-01-18 10:49:15 -08:00
Eric House
f05d8c774e
include class name in log
2015-01-17 22:11:20 -08:00
Eric House
71839b1e85
add READ_PHONE_STATE permission so I can send my phone number in invitatiosn
2015-01-17 22:00:43 -08:00
Eric House
182b651d21
remove unused import
2015-01-17 14:54:37 -08:00
Eric House
1da2ba7220
move commas -- no code change
2015-01-17 08:52:24 -08:00
Eric House
5f657bdfc4
add new change-connect-via button to set disabled when game in play
2015-01-17 08:13:54 -08:00
Eric House
e5ac525087
provide default default language name (and rename string constant
...
being used that way now too)
2015-01-16 21:28:59 -08:00
Eric House
004cd350fc
fix uri encoding/decoding so that invite-by-email works
2015-01-16 21:07:55 -08:00
Eric House
31b524e6c0
include forceChannel in emailed invitations
2015-01-15 07:03:35 -08:00
Eric House
306c9ef4b6
hide relay-related stuff when relay communication not enabled; remove
...
sms status stuff altogether.
2015-01-13 21:59:54 -08:00
Eric House
d035396371
string tweak
2015-01-13 21:51:36 -08:00
Eric House
d1c300d752
string tweak
2015-01-13 21:51:27 -08:00
Eric House
af7335c729
refactor
2015-01-13 21:38:27 -08:00
Eric House
7e28d2004b
add button to game config activity for changing the connection types to be used in that game
2015-01-13 21:27:51 -08:00
Eric House
2073098a5e
fix crash: adding wrong item to list
2015-01-13 19:53:02 -08:00
Eric House
1139b1d5d1
put some space before all but the first heading
2015-01-13 19:42:19 -08:00
Eric House
ea62b90f61
show conn status based on most recently successful connType
2015-01-12 08:00:20 -08:00
Eric House
fc9c262796
catch exception whose cause I'm not sure of but that make it
...
impossible to launch the app when a game gets into a certain
state. Probably need to catch exceptions at a top level of game
listing process and offer to discard those in which non-recoverable
exceptions occur. Later...
2015-01-12 07:27:24 -08:00
Eric House
5c00e31d95
BT sends fail all the time, e.g. when BT isn't enabled on
...
remote. Until I figure out how to not try BT after some point, don't
log exceptions.
2015-01-12 07:24:39 -08:00
Eric House
951f5462b3
remove assert. Can't always get forceChannel right on creation, and
...
it's mean to be advisory.
2015-01-12 07:23:50 -08:00
Eric House
a49e732371
remove logging
2015-01-12 06:26:03 -08:00
Eric House
2fa0ea3375
fix new game alert titles to differ depending on type being created
2015-01-12 06:25:28 -08:00
Eric House
70e4d06e73
don't crash when ctrl-d hit in console
2015-01-07 07:23:40 -08:00
Eric House
861aeeb53a
don't crash when ctrl-d hit in console
2015-01-07 07:22:45 -08:00
Eric House
0caf30c4e7
fix forceChannel for NFC invite
2015-01-07 06:53:36 -08:00
Eric House
688b3944bb
fixes to invite: don't allow non-servers to invite; have common code
...
inform of number of missing even when it hasn't dropped to 0 (so
second invite can be sent for 3+ device games); take down older alerts
before posting new (again since number of missing may have changed)
2015-01-05 07:43:45 -08:00
Eric House
50f29383f5
tweak invite message to not require all invitations to be sent at once
2015-01-05 07:41:31 -08:00
Eric House
e394bf01e8
add assertion
2015-01-05 07:40:01 -08:00
Eric House
6da1b54636
add preference controlling whether more than on player is invited per
...
remote device
2015-01-05 06:32:16 -08:00
Eric House
05aaffb933
cleanup
2015-01-05 06:31:46 -08:00
Eric House
af6f01fd9c
tweak drawing and size of status icon background
2015-01-03 22:18:30 -08:00
Eric House
f39b5e8e82
separate heads in new game icon too
2015-01-03 17:22:57 -08:00
Eric House
327b20a9fe
add white space between the heads
2015-01-03 17:20:31 -08:00
Eric House
ddd1efd8dd
modify new game actionbar icons to derive from game status icons
2015-01-03 16:44:13 -08:00
Eric House
641d83ab48
use new game type icons
2015-01-03 15:17:12 -08:00
Eric House
d1d6a2669b
snapshots of icons
2015-01-03 14:57:19 -08:00
Eric House
6f64ff062e
one shot at new one-device game icon
2015-01-03 10:33:32 -08:00
Eric House
4701fe2b90
pass in number of devices already connected so forceChannel can be set
...
more correctly; put up alert when device rejects an invitation as a
duplicate.
2015-01-03 09:50:07 -08:00
Eric House
9e67106adc
fix crash by always initializing
2015-01-03 09:49:10 -08:00
Eric House
a7cc96c697
add ability to invite more than one player per device. This is mostly
...
for testing and needs to be hidden by an "advanced" pref so folks
don't stumble onto it. Works for BT (SMS will crash), but needs
cleaning up.
2014-12-31 06:54:31 -08:00
Eric House
d46c7a39f1
pass forceChannel as part of invitation
2014-12-30 07:25:26 -08:00
Eric House
28bfa3c904
make forceChannel part of CurGameInfo rather than comms, since Android
...
needs to save it there on receipt of an invitation (doesn't create
full game with comms until later.) Passes discon2 tests and seems to
work on a single Android device. (Haven't tested inviting on Android
yet.)
2014-12-29 07:39:28 -08:00
Eric House
e8bb624b0b
add preference checkbox for hiding newgame buttons (which are
...
duplicated by menu items)
2014-12-29 07:02:56 -08:00
Eric House
3209fc1b74
log sqlite error codes as strings in attempt to track down the
...
occasional assertions failure.
2014-12-28 21:40:31 -08:00
Eric House
3b7afa4557
pass --server if not setting forceChannel
2014-12-28 21:39:11 -08:00
Eric House
897c4d5786
add param to force a client to connect to host requesting a particular
...
channel. Works well enough that relay test script works. Not yet
integrated for let alone tested on Android.
2014-12-21 17:40:00 -08:00
Eric House
d81f022c78
Merge branch 'android_branch' into android_multi2
...
Conflicts:
xwords4/linux/scripts/discon_ok2.sh
2014-12-15 16:48:10 -08:00
Eric House
4123de3560
merge android branch heads
2014-12-15 16:44:32 -08:00
Eric House
30d2c84dcc
so tests can continue, comment out an assertion that indicates a relay
...
bug that neverless doesn't prevent games from running to completion.
2014-12-15 16:43:24 -08:00
Eric House
26b01acf23
fix crash on duplicate connect packet: drop it, but keep the
...
connection alive if the duplicated packet set up addressing correctly.
2014-12-15 16:42:34 -08:00
Eric House
eb5ae9edd3
declare as little-a array so key will be listed in numeric order
2014-12-15 16:41:15 -08:00
Eric House
45ef4fcb65
add --dup-packets calling through to linux client
2014-12-15 16:14:59 -08:00
Eric House
92fd048eef
signature change: return void instead of always returning true
2014-12-15 15:33:12 -08:00
Eric House
4835afbe4a
simplify and print in order
2014-12-15 15:29:37 -08:00
Eric House
7560156351
summarize the number of tiles left every 20 passes to give better view
...
into games' progress
2014-12-15 15:11:29 -08:00
Eric House
1eb7d01be5
add option to turn on duplicate packets -- which fires an assert on
...
the relay instantly.
2014-12-11 20:23:51 -08:00
Eric House
ddc9f7994c
Merge remote-tracking branch 'sf/android_branch' into android_multi2
...
Conflicts:
xwords4/relay/crefmgr.h
2014-12-11 06:22:17 -08:00
Eric House
bf53481aad
log unexpected condition rather than asserting
2014-12-11 06:18:30 -08:00
Eric House
16c4e74e04
ignore client index of 0, since it means the device needs a slot
...
assigned.
2014-12-10 08:04:56 -08:00
Eric House
2e9c033a29
If client provides its index, honor that when placing it in game. This
...
allows a game where indices have already been established over some
transport other than relay to start using the relay mid-game.
2014-12-10 08:03:39 -08:00
Eric House
39b0d40e41
add local variable to prevent some dereferencing
2014-12-10 08:02:20 -08:00
Eric House
f0cf77d7d6
fix overwriting of addresses that happened for most (relay-only) games
...
run by my test script: match records based on channel number only.
This has yet to be tested on multi-addressing Android builds.
2014-12-10 07:54:50 -08:00
Eric House
00d19eada6
log a few more message checksums
2014-12-10 07:48:51 -08:00
Eric House
68441c60f6
add local variable to prevent some dereferencing
2014-12-10 07:48:38 -08:00
Eric House
9ff7cd1ff9
comment out dead code so I stop trying to debug it
2014-12-10 07:47:36 -08:00
Eric House
e961756f12
give up on hard-coding size of thread->env map: expand it as needed.
2014-12-08 20:43:24 -08:00
Eric House
97092e361c
update grepped string to match changes in logging
2014-12-08 06:23:18 -08:00
Eric House
c70fcf64a7
ignore client index of 0, since it means the device needs a slot
...
assigned.
2014-12-08 06:22:30 -08:00
Eric House
f84f9aa85f
include timestamp of switch to UDP -- in case it needs to be
...
correlated with logs
2014-12-08 06:20:47 -08:00
Eric House
a80293ba82
include timestamp in "new day" post-crash line
2014-12-05 06:39:10 -08:00
Eric House
b8660470f7
include timestamp in "new day" post-crash line
2014-12-05 06:35:31 -08:00
Eric House
5935681b82
in getDestID, deal with possibility game was consumated via a
...
non-relay channel, and allow client to use HOST_ID_SERVER.
2014-12-05 06:19:02 -08:00
Eric House
9ba9d258f3
If client provides its index, honor that when placing it in game. This
...
allows a game where indices have already been established over some
transport other than relay to start using the relay mid-game.
2014-12-04 06:03:42 -08:00
Eric House
a6f9f6608a
drop relay connect meta-messages (as well as game messages) when relay
...
send is disabled.
2014-12-02 06:52:48 -08:00
Eric House
b2b60d6c48
add commandline params that disable comms types on game creation so
...
relay not connecting initally can be tested.
2014-12-02 06:49:35 -08:00
Eric House
c8e55a85a3
use a constant; log a bit more for now
2014-12-02 06:08:58 -08:00
Eric House
a1b967033f
summarize role based on relay if in use, bt or sms otherwise
2014-12-02 06:08:18 -08:00
Eric House
73851b285e
fix a couple of NPEs
2014-12-01 07:01:10 -08:00
Eric House
fe76cfa1a1
remove logging
2014-11-26 07:21:27 -08:00
Eric House
9bdf9b2f5e
pass conType into java world from jni send proc, eliminating loops
...
e.g. sending relay setup traffic over BT.
2014-11-26 07:18:29 -08:00
Eric House
eac026a1a1
remove unused string
2014-11-25 07:18:16 -08:00
Eric House
0250f42b36
remove dead invite code
2014-11-25 07:17:52 -08:00
Eric House
8974407a67
setTitle: it's either networked or not
2014-11-25 07:17:03 -08:00
Eric House
2df8c68e60
remove commented-out logging
2014-11-25 07:16:43 -08:00