Hi guys,
i’m using mobione 2.1 preview and tried to use the eventsource interface from html5 in my application for android and as a web application. But in both applications it didn’t work.
The emulator doesn’t know EventSource, so all the tests have to be at the device (Samsung S2) directly. At the device i can’t debug helpfully.
First I try to initialize the ES component in the phoneui.documentReadyHandler but I got a black screen, without seeing my formular or websurface. The next step was to load it in a seperat function and call it with a delay of two seconds with “setTimeout”: now I can see the surface but after that nothing happend. If I place an alert box before and another one behind the
esObj = new EventSource('...');
statement, the first alertbox appear, the second was never seen.
What I want to know is: how can I use the eventsource interface in mobione. It seems like that it isn’t async (so I never see the results, because the connection will never terminated). Must I use a backgroundworker? or is there no support for EventSource, yet? Does anybody know a solution?
Thank you so far.
Best regards
Kasalop