New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
zendrui
Old
#1  
zendrui's Avatar
Senior Member - OP
Thanks Meter 4
Posts: 1,957
Join Date: Apr 2003
Default What's done when the PPC turns off ?

Hi,

If you click on the on/off button, does the ppc really turn off ?
In fact I'd like to know how works the alarms ? Because you turn off the PPC and something (a system process ..?) must check the hour to wake up the ppc, launch the alarm ...
So is it possible to let an application running when the ppc is off ?
 
zendrui
Old
#2  
zendrui's Avatar
Senior Member - OP
Thanks Meter 4
Posts: 1,957
Join Date: Apr 2003
I answer myself

The solution for me is to use CeRunAppAtTime which wakes up the PPC with an application at the time set. Don't know if the standard alarm use this function but for my purpose it is perfect.

Love this site
 
mattevans
Old
#3  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jul 2003
Hmm, except that if you keep the GPRS connection up when in suspend mode, the CeRunAppAtTime runs the app, but does not turn on the display!

I have also tried raising a notification, and the display commands that media player uses to toggle the screen, but these don't work either.

Does anyone know how to get the display to come back on programatically when the device is suspended but the GPRS session is still connected?

Many thanks

Matt
 
belial
Old
#4  
Member
Thanks Meter 0
Posts: 42
Join Date: Apr 2003
Quote:
Originally Posted by zendrui
I answer myself

The solution for me is to use CeRunAppAtTime which wakes up the PPC with an application at the time set. Don't know if the standard alarm use this function but for my purpose it is perfect.

Love this site
doesn't seem to work anymore with 2003 though. Except when the device is connected to AC power.
 
zendrui
Old
#5  
zendrui's Avatar
Senior Member - OP
Thanks Meter 4
Posts: 1,957
Join Date: Apr 2003
Personnally I used CappRunAtTime to make my own alarm app to wake me up with mp3. And it works well. If the PPC is on it just launches the app, if the PPC is off it starts the PPC (screen on ...) then launch my app ...

Quote:
Originally Posted by mattevans
Does anyone know how to get the display to come back on programatically when the device is suspended but the GPRS session is still connected?
Matt
You mean that if you have your GPRS always on, you turn off the ppc et the CeappRunatTime does not come back on ?
Wow I'm waiting my SD card adaptater to install the new rom, mainly for the 'always GPRS on'.

A question for both of you: does the standard alarm work ? I mean does it turn your screen on..? Because I supposed that the standard alarms work with CEappRunatTime ?
 
mattevans
Old
#6  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jul 2003
Hi

Yes the alarms turn the screen back on when gprs is set to always on. And that was how I thought the system did it by triggering the calnot.exe and clocknot.exe apps using cerunappattime. Although I was triggering the app to run a second in advance, and since then we have changed that to 10 seconds that that seems to work ok, it now turns the screen back on even when the device is 'pretending' to be suspended when gprs is always on.

Just curious, why do you need an SD card adaptor for upgrading the rom? You can just use the usb cradle, of course you have to have a pc and all the software i suppose...

Matt
 
zendrui
Old
#7  
zendrui's Avatar
Senior Member - OP
Thanks Meter 4
Posts: 1,957
Join Date: Apr 2003
Quote:
Originally Posted by mattevans
we have changed that to 10 seconds that that seems to work ok
Matt
I did the same thing (sleep(2000)) in my application to be sure that all the system processes are well woke up before I start the mp3 functions. I'll keep in mind that woke up the ppc, when GPRS is always on, may take a little more time.

Quote:
Originally Posted by mattevans
Just curious, why do you need an SD card adaptor for upgrading the rom? You can just use the usb cradle, of course you have to have a pc and all the software i suppose...
Matt
I just wait the SD card adaptator to save my actual rom, which is a French Rom, before doing the upgrade. Just in case because I don't think Bouygues (from which I bought my XDA) will provide updated rom in french.
 
mattevans
Old
#8  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jul 2003
It seems that the cerunappattime doesn't like waiting for the time if you set it less that about 10 secs in the future, seems to just run the app straight away, and that didn't trigger the ce to wake up...

wierd, put it to 10 secs and it woke up fine. Don't think it has anything to do with powering up the system as it is mostly powered up anyway when gprs is always on.


Matt
 
zendrui
Old
#9  
zendrui's Avatar
Senior Member - OP
Thanks Meter 4
Posts: 1,957
Join Date: Apr 2003
well I always test it by launching an application one minute in the future so I never saw that case :wink:


XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more