Hi,

Finally I didn't succeed to make an RPC call from the overridden 
AbstractActivity.onStop().
Actually the GWT doc says about onStop() : "Called when the Activity's 
widget has been removed from view".
I guess that all the RPC mechanisms is already destroyed because the server 
never get called.

@Milan : I can't make the call during mayStop because I don't know at that 
moment whether the user will choose to close or not the activity. The RPC 
call must be executed only when the activity is effectively stopped.

The only ugly workaround I found is a kind of watchdog between the client 
and the server so that the client periodically tells to the server "I am 
still here".


If someone succeeded to make an RPC call during onStop(), I would 
appreciate the feedback :-)

Yves

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to