Andy2
d2e663fa99
remove logging
2011-02-27 22:40:26 -08:00
Eric House
4d5aad61b4
Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch
...
Conflicts:
xwords4/android/XWords4/src/org/eehouse/android/xw4/RelayService.java
2011-02-26 20:02:29 -08:00
Andy2
6df2abecb6
don't use special launchModes for GamesList *but* do invoke it from
...
DispatchNotify so that an existing instance will be reused rather than
a new on created on top of the stack.
2011-02-26 19:47:33 -08:00
Andy2
9cc7cd0dc8
add logging of activity lifecycle methods -- and override a couple just
...
to do the logging before calling super(). These should go once I've
got the lifecycle stuff working.
2011-02-26 19:46:29 -08:00
Andy2
ef074f2944
don't bother passing flags to DispatchNotify class.
2011-02-26 19:45:05 -08:00
Andy2
a0f5ef4e18
remove logging
2011-02-26 19:44:02 -08:00
Eric House
a68170de51
remove PendingIntent.FLAG_UPDATE_CURRENT; it's breaking things.
2011-02-26 12:10:24 -08:00
Andy2
5ba6579180
Add Discard button to dialog explaining that remote game's been
...
deleted. To do that: added interface to TransportProcs that a caller
can implement and to which it delegates the UI (error code reports).
BoardActivity implements that interface. To avoid a race condition
where the JNIThread would save the game after I'd deleted it I kill
the thread and wait for it to die before deleting the game and calling
finish().
2011-02-25 19:57:43 -08:00
Andy2
86274785dd
add newbie-info on turn-changed
2011-02-25 07:13:54 -08:00
Andy2
5e0f12e49d
add a confirmation dialog to "undo last", and remove it altogether
...
from networked games since as currently implemented it can quickly get
them permanently out-of-sync (and cause the jni code to assert.) Need
to debug this....
2011-02-25 06:54:38 -08:00
Andy2
0be59d1ba7
add showConfirmThen (which XWListActivity already has)
2011-02-25 06:53:36 -08:00
Andy2
d41487150b
add draw_boardBegin (fix broken compile)
2011-02-24 22:28:15 -08:00
Andy2
ce64f79cdd
add draw_boardBegin
2011-02-24 22:24:24 -08:00
Andy2
5afb7aadff
add dict_getTileValue
2011-02-24 22:23:57 -08:00
Andy2
40dcda2262
add flag that's supposed to help notification launch an open activity
2011-02-24 22:21:04 -08:00
Andy2
5291307c11
get rid of onRestart -- onStart is always called right after.
2011-02-24 22:20:10 -08:00
Andy2
8b5f4a84f2
tweak strings so relevant part visible.
2011-02-24 17:45:02 -08:00
Andy2
9809864afb
move connect-never option to the top where won't be scrolled off
...
screen initially
2011-02-24 17:44:43 -08:00
Andy2
66bc435f28
always save after receiving messages that may have changed state.
...
Previously did so only when in background, but that leaves a problem:
if device A sends messages to B and B ACKs them so that they're
deleted but exits without saving (for any reason) the game is
permanently horked. It's safer to save immediately.
2011-02-24 17:35:22 -08:00
Andy2
f382f17d20
make game_receiveMessage return even if server doesn't do anything
...
with it -- since caller will use the return value to decide whether to
save state.
2011-02-24 17:33:10 -08:00
Andy2
f0d90f0576
get rid of cute auto-array-creation. No behavior change; maybe no
...
change in generated code.
2011-02-24 07:39:35 -08:00
Andy2
9818a29f86
Use bitvector (an int) instead of an enum for flags noting what
...
arrived in the background. When notification that game's over arrives,
add it to the flags, then on game open show the game over dialog (in
addition to raising chat activity and possibly showing recent move.)
2011-02-24 07:09:41 -08:00
Andy2
7910aed896
XW[List]Activity now call removeDialog() every time a dialog is
...
dismissed so that they now all go through onCreateDialog() every time.
This allows to shrink or eliminate onPrepareDialog(). The hope is
that it will fix the occasional crash where restoreManagedDialogs
invokes onPrepareDialog() and some ivar I need isn't set because the
class was just reloaded.
2011-02-24 06:25:18 -08:00
Andy2
1529319a60
add vibrate permission; get RelayReceiver notified on boot so can set
...
initial timer.
2011-02-23 07:39:14 -08:00
Eric House
83cb8550dc
set the right field for sounds and notifications (helps to RTFM, but still not tested on device)
2011-02-23 06:00:27 -08:00
Eric House
29b05b83ec
Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch
2011-02-22 19:56:40 -08:00
Eric House
ab71ac8847
add game name to chat activity title
2011-02-22 19:55:57 -08:00
Andy2
aaffb749cd
move network prefs into its own category; add prefs checkboxes there
...
and getters controlling whether vibrate and sound are used as part of
notifications.
2011-02-22 18:59:56 -08:00
Andy2
151df44c96
get rid of m_invalPath. It seems to be the onContentChanged() on
...
focus grabs that was needed.
2011-02-22 18:30:37 -08:00
Andy2
dbb69bfff5
add in flags to get vibration and sound with notifications. (Untested
...
on device.) Will want to add prefs to disable these.
2011-02-22 18:29:53 -08:00
Andy2
bf567a131a
fix crash (according to stack crawl from device)
2011-02-22 18:09:20 -08:00
Andy2
697fc7d5ca
get rid of some logging
2011-02-22 06:54:03 -08:00
Andy2
030d2e76a7
add interface with method that's called whenever a DB record is saved.
...
GamesList implements that interface and invalidates the list item
corresponding so it'll get redrawn with updated info. Should allow to
replace m_invalPath but doesn't...
2011-02-22 06:48:20 -08:00
Andy2
f75318e9d0
rename method and add variant then remove duplicated code. No behavior change.
2011-02-21 19:47:00 -08:00
Andy2
a4e995742f
bring back RelayService, which RelayReceiver now delegates to for the
...
work of pinging relay on timer. That work, which can cause receiver
to exceed its timeout if there are e.g. problems resolving hostnames,
must be done in a thread and Receivers aren't supposed to have
threads. Seems to work as well as it did before and also fixes
force-restart bugs when the network is slow/unavailable.
2011-02-21 18:12:15 -08:00
Andy2
318b820ea7
tweak newbie info for chat
2011-02-21 18:09:12 -08:00
Andy2
07fd2f6bb8
add title to chat activity
2011-02-21 06:51:47 -08:00
Andy2
21d46957be
comment out some logging and the annoying toast-on-relay-check
2011-02-21 06:50:54 -08:00
Andy2
353832a7ca
Look at opening game immediately when relaunched via onNewIntent() as
...
well as via onCreate().
2011-02-19 21:20:56 -08:00
Andy2
5ede3b19f0
up constants for beta 22
2011-02-19 08:41:14 -08:00
Andy2
2150d8b4a4
be a bit less pessimistic
2011-02-18 22:53:13 -08:00
Eric House
5d25faa780
update changes log
2011-02-18 22:51:09 -08:00
Eric House
1e3f094289
up constants for b21
2011-02-18 22:50:37 -08:00
Andy2
3fb7c48172
turn off tile selection for linux (perhaps temporarily)
2011-02-18 22:31:28 -08:00
Andy2
15f40f01af
fix to compile with new gdk that's on ubuntu 10.10. Need to fix the
...
APIs eventually.....
2011-02-18 22:28:32 -08:00
Andy2
5460941ba8
cleanup
2011-02-18 22:23:06 -08:00
Andy2
9fbce6f942
remove old comment that wasn't supposed to get checked in.
2011-02-18 22:18:28 -08:00
Eric House
8fe195e91c
Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch
2011-02-18 22:15:03 -08:00
Eric House
020c2b6982
fix warnings by removing unused strings
2011-02-18 22:13:24 -08:00
Andy2
27bc89b684
when launched after chat messages have been received, launch the chat
...
activity. This requires an enum be stored in the DB instead of a
boolean.
2011-02-18 18:45:26 -08:00