wood burning stoves*
The moose likes Android and the fly likes Does Android support push registry? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "Does Android support push registry?" Watch "Does Android support push registry?" New topic
Author

Does Android support push registry?

Yifei Huang
Greenhorn

Joined: Apr 06, 2009
Posts: 3
Hi guys!

Does Android support push registry?
Mark L. Murphy
Author
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
What is a "push registry"?


Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development http://commonsware.com/Android/
Yifei Huang
Greenhorn

Joined: Apr 06, 2009
Posts: 3
like push registry in J2ME which enables apps to set themselves up to be launched automatically, without user initiation. Activations could be inbound connections like: message-based (such as SMS), stream-based (such as TCP socket) or packet-based (such as datagrams).
Mark L. Murphy
Author
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
They are called broadcast Intents in Android. Your application registers a BroadcastReceiver, either in the manifest XML or in Java, and will get control when the events occur.
Yifei Huang
Greenhorn

Joined: Apr 06, 2009
Posts: 3
Thanks a lot!
btw: do they buffer incoming data?
Mark L. Murphy
Author
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
It's more that they are system events, not network events. So, you can wake up on an SMS, or a low-battery condition, or getting near some GPS-based location. Networking, however, is not handled this way -- more like JavaSE than JavaME.
 
GeeCON Prague 2014
 
subject: Does Android support push registry?