BlackBerryForums.com : Your Number One BlackBerry Community  
   

»Sponsored Links



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
donricouga Offline
Thumbs Must Hurt
 
Posts: 58
Join Date: Jul 2006
Location: Atlanta
Model: 8703e
Carrier: Sprint
Default 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.
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1