I would like to achieve the above. Using the standard phone settings, I can manage to keep the phone awake while the power is on and sleep when its off, however, the screen dims after a while. Using Power Wake State I can keep it bright, but then it runs on the battery when the external power is off, something I dont want (its an in-car application)
I guess one could use the PhoneEvents to detect power change, in this case I would be glad if soneone can help with a sample code for the service module. Alternatively, is there a method to prevent the phone from going to sleep with a timer loop and doevents?
Thanks for help, Georg