sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Broadcasts #498

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Broadcasts

I don't know Android. If Android broadcasts system information such as "I am 
powering off now", and if SL4A is able to receive these broadcasts, and if SL4A 
is able to communicate these broadcasts to the scripting interface, and if the 
communication can be accomplished quickly enough for the script to use them, 
then please do.

EXAMPLE
I have a script running in the background with three baby threads: SMTP, POP3, 
and NNTP clients. These babies have important thoughts in their memories and 
these thoughts -- also the babies themselves -- would be forever lost if their 
life support was suddenly stopped by the system. Since the script runs in the 
background I never remember to shut it down before I power off the system, but 
papa thread could put the babies safely to sleep if he knew it were necessary. 
So my desire is that papa be sent some kind of warning that his babies are in 
danger so that he can at least save their memories.

How about it -- can we help papa save his babies?

Other system broadcasts would also be useful.

Frank

Original issue reported on code.google.com by frank.we...@gmail.com on 2 Jan 2011 at 11:13

GoogleCodeExporter commented 9 years ago
eventRegisterForBroadcast is available, and should do what you ask.

Original comment by rjmatthews62 on 20 Aug 2011 at 11:41

GoogleCodeExporter commented 9 years ago

Original comment by rjmatthews62 on 20 Aug 2011 at 11:42