Hey Yves,
maybe you can hook and listen on PlaceChangeEvent. That event actually
calls onStop(). So if that event is fired than you can execute your RPC
call.

Best,
Milan

On Tue, Mar 5, 2013 at 8:10 PM, yves <yves.ko...@gmail.com> wrote:

> 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 a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/qQ3s-u6XEBs/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, 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.
>
>
>

-- 
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