Whenever I turn off then on my device while running my PocketHAL based game it freezes the device on a completely black screen. Just did a search, and couldn't find anyone else who has reported this so maybe it's just the way I'm using PocketHAL. I have tested on an iPaq 1910 and 1940.
I just had a quick look and it seems you can detect power on by having a dummy serial connection open (which wastes battery), or by using a notification thing that relaunches your app on restart (which you could then send a message to the actual running app). I was thinking that perhaps if you could detect power on then you could re-initialise etc.
I just had a quick look and it seems you can detect power on by having a dummy serial connection open (which wastes battery), or by using a notification thing that relaunches your app on restart (which you could then send a message to the actual running app). I was thinking that perhaps if you could detect power on then you could re-initialise etc.