[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-26 Thread Blikkies Botha
Dianne, I have noticed you dispatch useful information on several occasions that is either not obvious or not included in the documentation. Is it not possible for you to update the online docs as you post messages? Screen_on/off not working via the manifest also caused me much aggravation.

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread ArtJin
Hello everybody. Carter, did you find out what was the problem? I am having exact same issue. the receivers are installed with no problems, however they do not receive SCREEN_ON or SCREEN_OFF broadcasts for some reason, unless I do everything programatically. Here is the receiver snippet from my

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread Dianne Hackborn
These are currently only delivered to receivers actively registered with registerReceiver(). On a side note... why are you running your receivers in a separate process?? On Tue, Jan 6, 2009 at 1:57 PM, ArtJin ajin...@gmail.com wrote: Hello everybody. Carter, did you find out what was the

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread ArtJin
Got it thanks. To answer your question let me describe what I am trying to do. I have an AlarmManager that runs a service, which connects to web server and gets some data. Everything works fine, but battery drains quickly since AlarmManager stops running only when CPU stops. So I wanted to

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread Dianne Hackborn
My question was actually about why you are using multiple processes for your receiver components. Nothing in what you describe indicates that you need that. Keep in mind that each process currently requires about 2MB of overhead, and slows down your app if it needs to be launched. On Tue, Jan

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread ArtJin
I just changed my service class to run the thread loop with handler, instead of creating a scheduled alarm. This way my app is able to react on screen changes, since SCREEN_ON/ OFF broadcasts are available only when actively registered. Lots of learning today :-) Thanks a bunch for your help. On

[android-developers] Re: Screen on/off Intents Can't Be Declared in AndroidManifest?

2009-01-06 Thread ArtJin
Oh, I did not understand the question, apologies. Good point! I fixed that, so everything is handled by a single process that receives both on and off broadcasts. Thanks. On Jan 6, 6:01 pm, ArtJin ajin...@gmail.com wrote: I just changed my service class to run the thread loop with handler,