Timers in Sleep Mode - General Questions and Answers

I have a windows mobile programming question:
I'm trying to write an application that will turn the phone to vibrate during a specific time of the day (when I'm at work). The problem I have is that when the phone goes to sleep my app apparently goes to sleep also. So my timer doesn't keep ticking to check if it is time to go to vibrate. Is there a way to keep my application running while the phone is in sleep mode so that the timer tick event is still called?
I would really appreciate any help, this is my first windows mobile app and don't know the intricacies of coding for windows mobile.

You may try the Unattended Mode...
http://blogs.msdn.com/windowsmobile/archive/2004/11/29/271991.aspx

like this?
http://forum.xda-developers.com/showthread.php?t=472878
imho, it's better to use the notification queue than have an application run in the background.

oldsap said:
like this?
http://forum.xda-developers.com/showthread.php?t=472878
imho, it's better to use the notification queue than have an application run in the background.
Click to expand...
Click to collapse
That's pretty much exactly what I'm doing. Though mine has a more graphical UI and is more touch friendly. I've finished everything except that when the phone falls asleep my timer event is not called to change the volume setting.
A_C said:
You may try the Unattended Mode...
http://blogs.msdn.com/windowsmobile/...29/271991.aspx
Click to expand...
Click to collapse
I'm a little confused by that article. Do I catch the event that the phone is falling asleep and then set it to unattended mode? Or is it that I would set it to unattended mode, and whenever the phone is supposed to fall asleep instead it goes to unattended mode?

Related

[REQ] Auto Turn on/off on Alarm

Hello,
sorry for my English, but I want to know if anyone knows a program that makes the phone alarm on my HD2 even when turned off.
Alternatively there is a program to turn the phone at a certain time?
thanks
due to hardware limitation, once you turned the phone completed off, there is absolutely no method to wake it up on alarms, it is similar to unplug the power of your computer, then no programs will be able to operate
ok, thank you csabill.
Hi
I'm looking at this app G-Alarm from ageye.de don't know if is what you need it turns the mobile into flight mode during the night and after the alarm goes off it changes the profile back, at least that's what it says, might try it later.
Phil
sapper1955 said:
Hi
I'm looking at this app G-Alarm from ageye.de don't know if is what you need it turns the mobile into flight mode during the night and after the alarm goes off it changes the profile back, at least that's what it says, might try it later.
Phil
Click to expand...
Click to collapse
This works i have it. It only turns off the transmitter which saves some power but the phone isnt off. Its also handy to stop being disturbed by your phone going off. You just have to remember to engage flight mode when you go to bed.

Automatic phone turn on

Hi to all, is there a way to switch on the HD2 at a desidered time?
I mean: from the phone totally switched off is there some software or mod that makes it auto-turning on?
So battery life could be extended instead of keeping it turned on during the night only for make the alarm clock ring...
On my nokia it was possible make it to turn on automatically and make the alarm ring, I think it's strange that this cannot be done on the HD2...
Thanks for your answers and sorry for my english, I hope you understood anyway
bye
Try CT Scheduler. However, if anyone else here has any idea about other programs that can do this, let me know.
I'm looking for something that does something like this:
1. Turn on phone every 15 minutes
2. Leave it on for 2 minutes (so that calls/text messages can arrive)
3. Turn off the phone
Repeat.
Try G-Alarm
Not to sure if it have the wake up function.
SKSchema is simply the best.
You can schedule what you want on your PDA and it runs great on HD2.
Mtk87 said:
Hi to all, is there a way to switch on the HD2 at a desidered time?
I mean: from the phone totally switched off is there some software or mod that makes it auto-turning on?
So battery life could be extended instead of keeping it turned on during the night only for make the alarm clock ring...
On my nokia it was possible make it to turn on automatically and make the alarm ring, I think it's strange that this cannot be done on the HD2...
Thanks for your answers and sorry for my english, I hope you understood anyway
bye
Click to expand...
Click to collapse
I think this is technicaly not possible because when the phone is off it is not possible to run software.
If you desire it to consume the lowest possible amout of power you may put the phone into flight mode and ensure no background apps are still running.
Some software such as Galarm will turn the phone into flight mode over night and dissable flight mode in the morning with the alarm.
I use phonealarm,
at night I set my phone to automatically switch to flight mode, so that I receive no calls, messages etc, and it uses virtually no battery power, but the alarm still goes off in the morning, and my phone automatically switches back on

[GUIDE] Tasker

So as some of you may know there is an app for android called Tasker and it is by far the most powerful app out to date.
"Tasker is an application for Android which performs Tasks (sets of Actions) based on Contexts (application, time, date, location, event, gesture) in user-defined Profiles, or in clickable or timer home screen widgets.
This simple concept profoundly extends your control of your Android device and it's capabilities, without the need for 'root' or a special home screen"
As powerful and amazing as this app is, it's pretty hard to use unless your very tech savvy and I have been searching the Net for some how-to guides but their doesn't seem to be much out there. So I wanted to create this thread and have people post their own little tips/mods that they have set-up with Tasker so that newbies such as my-self can have a place to go if they need help getting Tasker to perform certain functions.
I just download the app last night and haven't had much time to mess with it yet, but once I get the hang of it I will start posting what I'm doing.
Anybody that uses Tasker please feel free to add on to the thread and lets make this the ultimate "How-to" guide for people trying to unlock the full potential of this amazing app.
How long did it take you to develop this app?
Sent from my PC36100 using XDA App
firemedic1343 said:
How long did it take you to develop this app?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
@OP, one that I made that I find useful scans the SD card for new media whenever it's mounted.
PROFILE:
Event - Card Mounted (Priority: Normal, Card Title: <blank>, Frequency: 1)
Task - Media -> Scan Card
Task - Alert -> Flash (Text: Scanning for new media..., Long: <unchecked>, If: <unchecked>)
This one turns off the lockscreen when using Music or Pandora (you have to make two separate profiles!)
PROFILE:
Application - Music/Pandora
Task - Display -> Keyguard (Set: Off, If: <unchecked>)
I also spent a lot of time developing a task that would turn airplane mode on for 45 minutes, turn it off for 15 minutes, then turn it back on and repeat until stopped. Everything works except Tasker stops all timers when the phone sleeps, so unless I want to put a partial wake-lock on it (which would defeat the whole battery-saving purpose of the profile in the first place), it doesn't work
Gregalous said:
@OP, one that I made that I find useful scans the SD card for new media whenever it's mounted.
PROFILE:
Event - Card Mounted (Priority: Normal, Card Title: <blank>, Frequency: 1)
Task - Media -> Scan Card
Task - Alert -> Flash (Text: Scanning for new media..., Long: <unchecked>, If: <unchecked>)
This one turns off the lockscreen when using Music or Pandora (you have to make two separate profiles!)
PROFILE:
Application - Music/Pandora
Task - Display -> Keyguard (Set: Off, If: <unchecked>)
I also spent a lot of time developing a task that would turn airplane mode on for 45 minutes, turn it off for 15 minutes, then turn it back on and repeat until stopped. Everything works except Tasker stops all timers when the phone sleeps, so unless I want to put a partial wake-lock on it (which would defeat the whole battery-saving purpose of the profile in the first place), it doesn't work
Click to expand...
Click to collapse
Both setups seem very useful, ima check them out. Thanks for the input!
About the one you can't get to work. I'm pretty sure I actually saw something similar to it the other day on another website, not 100% sure though. I think it was a profile that allowed you to basically turn off all of you're data and have it come back on for a short period of time to gather texts and stuff...
Ima going to look for it for you to see if i can find it...
In the mean time I found a few useful profiles here http://lifehacker.com/5606284/three-handy-tasker-profiles-from-our-readers
I would post them but theres actually quite a bit if you look in the comments and the post itself.
Once I think of something "original" i'll post it
You also might want to check the official Tasker pages. There is also a Wiki with step-throughs (link on left side of main page).
http://tasker.dinglisch.net/
This is the only app I have been able to find that will let you remotely turn the GPS on. IMO that alone was worth the money, now I don't have to waste time writing an app for it.
I've been working on something to activate the GPS and send the phone's location, available wifi networks, etc, over a text message. Haven't figure out how to make it update the GPS location or turn on 3G yet though. Anyone know anything about android bridge scripts and if they would be able to do this?
Vegasden said:
You also might want to check the official Tasker pages. There is also a Wiki with step-throughs (link on left side of main page).
http://tasker.dinglisch.net/
Click to expand...
Click to collapse
Wow. thanks a lot for the link. i have been looking for some sort of wiki or help for tasker for a while now but apparently I wasn't looking in rite places.
Thanks again.
Also, Mobile Defense, if installed in system apps allows you to remotely turn on gps and track your phone, however, they have temporarily closed down the beta. I've always had it on my android phones and it's pretty amazing. Much better than lookout for tracking your device.
tasker is a great app. i use it on a dialy basis. save so much battery life
SiL3nTKiLL said:
tasker is a great app. i use it on a dialy basis. save so much battery life
Click to expand...
Click to collapse
What works for you? Some example scripts please please. thanks.
Here is more info on tasker setup.
I tried some of these and they worked great.
http://lifehacker.com/5601133/push-...d-to-awesome-heights-with-these-tasker-setups
http://lifehacker.com/5599116/how-to-turn-your-android-phone-into-a-fully+automated-superphone
maps to start gps and gps logger
hi everyone,
i'd like to start maps, and have:
- Gps turned on
and
-an app called GpsLogger to start.
The problem i get is that, once Gps is turned on and GpsLogger is opened, if i get back to Maps by long-pressing the home button the whole automation starts again, leading me to GpsLogger again..
Could anyone help please?
Thanks!
I downloaded Tasker the other day to accomplish one thing only. I wanted my wife to be able to get through to me whenever she called me. I work shift work so my phone is set to Silent at odd times when I am resting, so the various dings and rings don't interrupt my sleep. Fearful of her not being able to get a hold of me in an emergency, I set this up:
Profile: Priority Call (named by me)
Context: Incoming Call - Very simply, I used the magnifying glass to select her contact from my phone, and it input her name in the box.
Task: Silent Mode - Mode set to OFF
This profile checks all incoming calls and then turns Silent Mode OFF and allows the call to ring through. When the call is done, the phone returns to Silent Mode. NOTE: I also had to set up a separate task to turn the phone to silent in the first place. For some reason, Tasker would not recognize the phone as being in "Silent Mode" if I used the volume down button to put it in silent mode. So I just added a shortcut to the Tasker task of putting the phone to silent on my homescreen. Now when I go to bed, I hit the shortcut and I am able to be undisturbed until I wake again, unless my wife calls. I could see this being very useful for people with teenagers that are out or babysitters with children.
This task can also be useful if you sleep at defined hours, because you can set the phone to automatically turn to silent at X hour, and turn silent mode off at X hour. Just some ideas.
I am now searching for ways to completely automate the phone by making it turn on my GPS and Bluetooth when I am away from home, as well as turn these off and turn my wifi on when I am at home. Several attempts with no knowledge of this app have been unsuccessful so far. More to follow.
Robert
OnDutyTactical said:
I downloaded Tasker the other day to accomplish one thing only. I wanted my wife to be able to get through to me whenever she called me. I work shift work so my phone is set to Silent at odd times when I am resting, so the various dings and rings don't interrupt my sleep. Fearful of her not being able to get a hold of me in an emergency, I set this up:
Profile: Priority Call (named by me)
Context: Incoming Call - Very simply, I used the magnifying glass to select her contact from my phone, and it input her name in the box.
Task: Silent Mode - Mode set to OFF
This profile checks all incoming calls and then turns Silent Mode OFF and allows the call to ring through. When the call is done, the phone returns to Silent Mode. NOTE: I also had to set up a separate task to turn the phone to silent in the first place. For some reason, Tasker would not recognize the phone as being in "Silent Mode" if I used the volume down button to put it in silent mode. So I just added a shortcut to the Tasker task of putting the phone to silent on my homescreen. Now when I go to bed, I hit the shortcut and I am able to be undisturbed until I wake again, unless my wife calls. I could see this being very useful for people with teenagers that are out or babysitters with children.
This task can also be useful if you sleep at defined hours, because you can set the phone to automatically turn to silent at X hour, and turn silent mode off at X hour. Just some ideas.
I am now searching for ways to completely automate the phone by making it turn on my GPS and Bluetooth when I am away from home, as well as turn these off and turn my wifi on when I am at home. Several attempts with no knowledge of this app have been unsuccessful so far. More to follow.
Robert
Click to expand...
Click to collapse
Here you go...
These two pages on the Tasker Wiki will show you how to do a lot of what you want, and even find stuff you didn't know you needed.
http://tasker.wikidot.com/profile-index
http://tasker.wikidot.com/step-throughs

app to mute notifications between certain hrs?

Sorry if this has already been asked but is there a way to disable or mute notifications between certain times? Or at least email? This way the phone doesnt go off when I am asleep.
I use Sound Manager. Gives you the option to set the volume levels for media, system, notifications, etc and to set schedules for any of these. I use it to set my notification volume down low after 2:00am and to come back up to high volume around 8:00am and so far has worked just fine.
Tasker works great for this
Sent from my SAMSUNG-SGH-I897 using XDA App
Tasker probably can do that but its a ready complicated learning curve imo
Tasker rocks..definitely worth it...
I have the same thing..here is how to set it up in Tasker...
From 23:00 Til 07:00
Silent Mode On
That's it...
I also have it setup for an exception that if one of two people call me from work then it overrides and rings...
I have done a ton of stuff with Tasker -- like turning phone to vibrate during meetings, turning on gps automatically when I run certain programs (and then turn it off again when I close them), Play a sound when the plug becomes disconnected while charging, change the screen turnoff time when phone is charging, etc..
If you can't tell I love it.
Another plug for Tasker. It is awesome. The MacGyver part of my signature is brought to you in part by Tasker. And the letter A, for Awesome.
If Tasker seems hard to get into, check out their site for info: http://tasker.dinglisch.net/
A really nice use I have for it is automatically adjusting my screen brightness when plugged/unplugged.
fldude99 said:
Tasker probably can do that but its a ready complicated learning curve imo
Click to expand...
Click to collapse
Tasker does have a bit of a learning curve and if it's just simply turning off notifications, there are probably simpler solutions. But I love Tasker to bits. I have it set so between my usual bedtime hours, the phone goes silent, Screen Filter activates and dims it way down and Orientation turns off so I can lay down and read without it turning into landscape. I seem to always be finding new things to add and tinker.
Also recently added a function where the screen timeout goes away when Maps is activated. Got tired of losing the lock because it takes so darn long to get it back!
I use Volume Toggle - it is free (ad supported) and it has a bunch of different profiles you can customize.
It has a companion program "Volume Timer" (also free) that lets you set days and times for each profile.
I used to use Sound Manager but it decided to stop working, even after re-installing it still decided to quit after using it awhile.
I now use AudioGuru, it works great for scheduling volume settings for anything on your phone (System, Alarm, Ringer, Notifications, etc). Very easy to use and hasn't failed me yet. Recommended.
I use Silent Time Lite. It is free from the App Store and is very simple to use.
Sweet Dreams is available on the market and works great. Easy to use.
Thanks all, Tasker looks like it rocks. I will get it loaded. I like the "if bluetooth connected then read outloud the text messages", this way whenever I am in my car, it will read the tm! thats sweet.

[Q] New app to switch on/off automatically your phone

Hi all.
I would like to know if there is an app to switch on/off your windows phone automatically. I miss it when i changed from Blackberry to WP. For example i often forget to switch off my phone at night so this app would be very useful for me.
Thanks
ilboy said:
Hi all.
I would like to know if there is an app to switch on/off your windows phone automatically. I miss it when i changed from Blackberry to WP. For example i often forget to switch off my phone at night so this app would be very useful for me.
Thanks
Click to expand...
Click to collapse
I guess it is not a problem to write the aplication witch is able to turn of your phone. But how the hell could aplication turn ON the phone back, if it is tourtned off. For example try to turn on your PC with some kind of application. I guess you get the point.
Of course i get it, even if i'm not a developer. It would be great to have just an auto-switching off app. However, don't know how, blackberry has got it.
I would be really pleased if someone wrote this app to switch off the phone.
thanks again
I actually don't think blackberries turn off completely until the battery is either completely dead or removed. I know when a blackberry is "off" it still has the ability to turn back on when an alarm is going off so I would assume that it just goes into a low power standby state. However, when you turn off Windows Phone, it's off.
This should be posted @ [email protected] section.
I didn't do that because i must write 10 post before writing in that section
Actually, my PC will turn on at a given time, but I don't believe these phones can do the same. Also, if it does turn off at a certain time, you would not be able to have it plugged into a charger. When WP is plugged in, it automatically turns on. I believe that's a hardware design.
Reboot App Perhaps???
I DONT KNOW ABOUT A SHUT DOWN APP BUT HERE IS A REBOOT... PRE-MANGO
If you have pre-Mango (pre-7712+) you can use the attached .xap, its an app that was developed by someone here at the forums... I changed the icon for the start screen but that is all...
For shutdown, just hold the pwr button at this time... sorry... jejeje
I think what he's looking for (as I am) is a version of Phone Alarm or Pocket Phone Zen. They automatically turn things like WIFI, BT, Phone, etc. on or off at preset times. PA can also do that when plugged into a charger so BT will turn on when the phone's in the car holder for hands free. I haven't been able find anything in the Marketplace.
For restart phone on Mango try that app: http://forum.xda-developers.com/showthread.php?t=1333740
I use for shut off/on power button.
In Blackberry when you press the power button off it does not get really turned off. Its in sleep mode which actually just closes the user state but the kernel keeps ticking and thats the reason any app in background hooked to kernel can turn it on which is actually waking it up from sleep.
Moreover in sleep mode everything used to get shut off i.e call it airplane mode. So if somebody can make a WP app which can just turn on and turn off the airplane mode, it should work for you.
Have a look at Phone Alarm for WM 6.x It is able to do so much more. Things I would like to see in an app for WP7 are:
scheduled on/off of WIFI, BT, phone, GPS, data connection.
scheduled sync of email at longer intervals like every 6 hours (WP7 max is 2 -not everyone has a data flatrate.)
Scheduled and location based volume adjustment. (quiet at home, loud in the car, etc.)
BT, GPS auto-on if charging ("Car" profile if charging, see next point)
Profiles that can be changed with one click. (for example "Meeting" profile turns off sound, reduces display brightness, turns off WIFI, turns on BT etc.)
doesn't have to be cost free but does need to be bug free
Cheers

Categories

Resources