> Assuming the servlet runs in a separate thread, no. Not directly
> at least.
That's what I was afraid of ...
> You could launch the activity using the FLAG_ACTIVITY_SINGLE_TOP
> flag. Then when you call startActivity() again, a new instance
> won't be created, the intent will be delivered to onNewIntent().
> Alternatively, you could use a Handler to send messages to
> the GUI thread. The hard part may be how to get a GUI-thread
> Handler to your servlet container though. Assuming the whole
> app server is started from the GUI thread, you have to create
> a Handler (on the GUI thread) and find a way to stuff it in a
> globally accessible place (Application static field, etc.)
Yes I agree, not sure how I can get the Handler but I will look into
it. Not a bad idea at all! Thakns
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to firstname.lastname@example.org
To unsubscribe from this group, send email to
For more options, visit this group at