|
BackGround Listener App not receiving data -
08-02-2006, 12:16 PM
I have used the code from the HttpPushDemo to create an invisible background listening application that loads on startup of device. I got the HttpPushDemo to work but when i take the listener thread code from HttpPushDemo and simply use it in a background thread(NOT GUI ), it will not receive the push messages. Is it something to do with the fact that the HttpPushDemo has a UI (Explicity running on the screen) wrapping the listening thread and Mine does not ?
It gets stuck on the acceptAndOpen() method from StreamConnectionNotifier
public final class MyListeningClass extends Application
{
private class BackGroundApp extends Thread
{
//Does a blocking call to listen for incoming pushes
//which is identical to the HttpPushDemo code
}
}
Last edited by donricouga : 08-02-2006 at 02:35 PM.
|