Eric House
ee1df7eeb7
replace DeleteLocalRef calls with version that checks for NULL
2012-09-15 15:57:38 -07:00
Eric House
1f4f6a06a8
Merge branch 'android_branch' into android_bt
...
Conflicts:
xwords4/android/XWords4/jni/xwjni.c
2012-02-15 18:18:26 -08:00
Eric House
8590aae9b2
fix emacs compile-commands
2012-02-15 18:07:19 -08:00
Eric House
88ad6d81ef
Merge branch 'android_branch' into android_bt
...
Conflicts:
xwords4/android/XWords4/jni/xportwrapper.c
xwords4/android/XWords4/jni/xwjni.c
2012-02-13 22:38:17 -08:00
Eric House
82b232cf74
use a macro instead of lots of repetitions of the package path to make
...
it easier to modify.
2012-02-13 22:13:23 -08:00
Eric House
a2b5274b6c
on ICS CreateGlobalRef doesn't return the same value as is passed in.
...
So stop assuming it does! Fixes multiple crashes on ICS and need to
be ported to android_branch.
2012-02-05 19:12:09 -08:00
Eric House
8947ddca0b
on ICS CreateGlobalRef doesn't return the same value as is passed in.
...
So stop assuming it does! Fixes multiple crashes on ICS and need to
be ported to android_branch.
2012-02-05 19:11:38 -08:00
Eric House
0934f83106
add gameID to params passed to comms' sendproc, including passing
...
through to java layer.
2012-01-25 18:27:37 -08:00
Andy2
066cef0306
using new send-noconn proc is too expensive if it's only going to fail
...
(return false) so add new iface comms can call once to get flags to
tell it whether to use that proc. One implementation of
TransportProcs returns one flag; the other, the other.
2011-08-16 19:31:08 -07:00
Andy2
ea05c34d8f
add the alternative send proc to the java transportprocs interface,
...
and call through to it from the jni. Add another implemenation of the
interface and pass that when opening games in the background.
2011-08-10 21:06:05 -07:00
Andy2
e88af19e0a
toward the ability to send replies to messages received in background
...
without user having to open the game, which will e.g. allow a host to
assign tiles, or a robot to move, without the phone's owner noticing
there's a message. This is on a branch because it may never work.
2011-08-10 18:28:34 -07:00
Andy2
4c5c435fb5
add new parameter so client always gets notified on connection
...
including how many players are still missing.
2011-05-19 05:51:00 -07:00
Andy2
b115ce14ed
add devOrder (= hostID) to params passed on connect. Fix to pass new
...
param from jni; use object to pass params into UI thread since there
are now too many for handler.
2010-10-29 06:34:39 -07:00
Andy2
645a042481
add room name to callback used when device connects: fix jni to compile
2010-10-28 18:46:28 -07:00
eehouse
5806aa0aca
get rid of excess logging
2010-03-21 03:10:47 +00:00
eehouse
e73c6d1234
pass relayStatus an enum rather than an int
2010-03-08 06:15:37 +00:00
eehouse
cd0afbfae8
Create and pass enum into relayErrorProc
2010-02-17 14:37:53 +00:00
eehouse
885c9093fb
Put up Toast messages on connecting to relay.
2010-02-14 17:23:07 +00:00
eehouse
c6b28e9416
turned on -Wall and fixed errors/warnings it reported
2010-02-12 07:13:42 +00:00
eehouse
bd611bb6f4
implement dictChanged. And so that utf8 dicts could be opened without
...
their games being drawn (no BoardActivity around) break the two
android-only callbacks out of UtilCtxt and into a new JNIUtils
interface that then requires new handing in C.
2010-02-11 13:27:09 +00:00
eehouse
cd89ede3c5
Work (but don't call into java world) when initialized with a null
...
instance of CommsTransport.
2010-02-09 14:20:16 +00:00
eehouse
49402ed218
Get comms info (host name, etc.) from user and pass it through to the
...
send proc. Along the way, write jni code to instantiate a new object
including setting enums. *Now* I'm ready for networking....
2010-01-30 20:06:06 +00:00
eehouse
4b9fa4d42a
new "class" wraps TransportProcs
2010-01-30 14:33:28 +00:00