[REQ] Dynamic Service/Application config based on power state - Windows Mobile Software Development

I was wondering whether it's possible to change the Windows Mobile (registry/file) configuration, dependent on the power available to the device?
Ideally, I'm looking for something that for example will allow:
-When power level >90%, check Email every 5 minutes
-when power level between 60% and 90%, check Email every hour
-when power level between 40% and 60%, check Email every 6 hours
The idea is, that when hooking up the mobile to the PC (or charger), it'll first charge to 100%, after which it will automatically check Email every 5 minutes.
The power values are just an example, it'd be cool if the application were customizable and would not just pertain to the Email send/receive schedule. For instance, Messenger applications could be closed automatically whenever the power is low.
Windows Mobile already features turning the screen on/off after a while, dependant on whether the phone is on an external power source. It'd be cool if these 'profiles' could be expanded to more beyond the display/backlight setting.

That would be possible, will look in to it later.
Having configuration may make it more difficult to do...

Would there happen to be some developments on this, by anyone?

Related

easy terminate data connection

my data connection won't automatically disconnect, even if i change the setting in tweak HD, or change it directly in teh registry (the GPRS_bye thing).
i thought this was draining my battery (i was lucky to get 15 hours), as it was pretty much connected all the time ( i have it set to chekc email every 2 hours on 5 different accounts)
it was pretty annoying that i was charging the phone overnight, and it wasn't even lasting until the next evening.
but by mistake i have discovered something (could even be in the user manual, i dont know?) and i have found it very useful so i though i would let you know!
if you are just on the home tab, just press the hang up key, and it will disconnect the data! so now whenever i check the time/read a text message/pretty mcuh every time i look at my phone, i press the hang up button when i've finished.
now my battery easily lasts 2 days (normally dies half way through the third day if i'm stupid enough to leave it long enough) - so i am much happier with the phone as a whole.
i also wondered if its possible to turn off data completely overnight?
e.g. is there a task scheduler, so i can schedule the nodata program to run say from 00:00 to 07:00?
Thanks
The above 'finding' is the function of 'End Key'. You can find and configure in 'Settings'.
As for disabling overnight your data connection you could try 'Outlook email Scheduler'
"h..p://forum.xda-developers.com/showthread.php?t=438970&highlight=gmail" and have it manually synching an night time.
brillinat works great! i used this key to lock HD but stop all connections is much better choice.
You can leave the "hold button" feature as lock phone and it will still work to turn off the connections of your mobile internet.
For mine, 'single press' shuts down the HSDPA connection, 'hold' locks the phone.
How did you set it so you have only to press the button instead of holding it down to terminate the connection?
Is there any way to switch off the data connection altogether, orange wanna charge me a small fortune to connect. i've already got them to disconnect it but the phone still makes an attempt to connect for weather email etc. is there any way to force it to use the wireless connection only??
You don't need to change anything....well, I didn't. Pressing just once will turn my orange internet (HSPDA) off.
Is there any way to switch off the data connection altogether, orange wanna charge me a small fortune to connect. i've already got them to disconnect it but the phone still makes an attempt to connect for weather email etc. is there any way to force it to use the wireless connection only??
The HD Tweak program (Availabe on these forums) has an option to set up which connections you want to disable. You can perminantly turn off Orange interent from there.
superb!!!
will look later.
cheers
binarysi

Improve Your Battery Life

Hi everyone,
just came across this interesting Wiki guide. It explains how to make a cell phone battery last longer between charges, and how to prolong the overall life of the battery. To many of you, it will already be common knowledge, but there are still alot of interesting pointers mentioned.
For example, it states that lithium-ion batteries should be charged for about 5-6 hours and we should ignore the phone telling you that the battery is full... it states that this is normal but is not accurate if the battery is not initialized. It goes on to say that we should NOT fully discharge a lithium-ion battery, because unlike Ni-Cd batteries, a lithium-ion batteries life is shortened every time you fully discharge them. Instead, charge them when the battery meter shows one bar left. Lithium-ion batteries, like most rechargeable batteries have a set amount of chargers in them.
Please share your findings, opinions, and any further tests you have carried out to improve battery performance for your Desire.
Thanks.
Battery Saving Tips:
There are loads of "tweaks" you can make to imporve battery life span:
1. Lower screen brightness. Go to Settings -> Sound & display -> Brightness. Slide the brightness switch to the left to lower it or check the "Automatic brightness" box to let the phone use its sensors to adjust the screen according to the ambient light. You can also find dedicated screen brightness widgets in Android Market.
2. Turn off 3G, WiFi, GPS, and Bluetooth when you don't need them. The easiest way to manage these wireless radios is to use the Settings widget preinstalled on your phone. Tap the + button on your home screen -> Widget -> Settings. Once your chosen widgets are on any of your home screens, a simple tap turns each one on/off. You can also use "Power Control" widget found in home screen -> Widget -> Power Control. There are other widgets that do this in Android Market (e.g. SwitchPro), but these are already preinstalled and they're a nice-looking set.
3. Disable WiFi and 3G network notifications. Go to Settings -> Wireless & networks -> Wi-Fi settings. Uncheck the Network notification box so your phone isn't constantly scanning and looking for open networks to tell you about. For 3G, go to Settings -> Wireless & networks -> Mobile Networks.
4. Disable "always on" mobile data. This is one of the biggest battery savers. Go to Settings -> Wireless & networks -> Mobile networks. Tap "Enable always-on mobile data" to uncheck the box. I haven't found a negative consequence of disabling this feature, as Gmail and other apps/functions still work perfectly.
5. Turn off background data. If you're not using Google services, go to Settings -> Accounts & sync and uncheck the Background data box so that applications cannot sync, send, and receive data whenever they want to.
6. Lower the screen timeout interval. The phone's screen can be set to automatically turn off when you don't interact with it for a predetermined amount of time: 15 seconds, 30 seconds, 1 minute, 2 minutes, 10 minutes, or never. Depending on what you're doing, a too-short interval can become annoying (especially if you didn't disable your lock screen), so choose wisely.
7. Manually turn off the screen when not in use. Since the screen timeout function ensures that the phone's screen will turn off (unless you have it set to "never turn off"), it can be tempting to put the phone down when you're done using it and just let the screen turn off by itself. Instead, give the power button at the top of the phone a quick push to turn it off manually.
8. Turn off auto-sync. Go to Settings -> Accounts & sync -> Auto-sync.
9. Change auto-sync frequency (Weather, News, Stocks, Twitter, etc). If you don't want to turn off auto-sync, you can adjust how frequently data is retrieved/updated. The settings vary depending on the app (and some don't offer the setting at all), but it's generally found in the same place: Settings -> Accounts & sync. Select an account from the list and then tap "Account settings" to change the sync frequency.
10. Disable wireless network location services when not needed. Go to Settings -> Location -> Use wireless networks. Note that this (or one of the other options) needs to be enabled if you want to see and/or use your location in apps like Maps.
11. Turn off window animations. To turn it off, go to Settings -> Sound & display -> Animation -> No animations.
12. Don't use a live wallpaper. Use a static wallpaper instead.
13. Use a dark wallpaper. Some say that dark wallpapers are more energy efficient than light wallpapers. Others say it doesn't make any difference. Either way, there's no harm in using a dark wallpaper so you may as well do it.
14. Change WiFi sleep policy. This may sound counter-intuitive, but leaving WiFi on when the phone isn't being used and the screen is off is actually better than letting it sleep. When WiFi sleeps, 3G wakes up to sync, get email, and retrieve other data. 3G will eat up more battery than WiFi, so go to Settings -> Wireless & networks -> Wi-Fi Settings. Press the Menu button and tap Advanced, then Wi-Fi sleep policy. Choose "Never" from the pop-up menu.
15. Monitor your running services (or consider using a task killer). Just because Android 2.1 is supposed to an intelligent operating system that will manage your running apps for you doesn't mean it will always do things the way you want them to be done.
You can take matters into your own hands by going to Settings -> Applications -> Running services, where you can view what your phone is doing and manually stop certain activities. You can also download a third-party task killer from Android Market and kill selected apps to free up some resources and potentially save some power. Task killers are a polarizing topic in the Android community, so tread lightly when looking for recommendations or asking for help with them.
16. Choose your home screen widgets carefully. Widgets that need access to the internet to update information (e.g., Facebook, Twitter, Engadget, Slacker Radio, Weather, Stocks, News, Mail) can suck up a lot of juice if not managed well, so choose them carefully and set their sync/update frequencies to a reasonable interval.
17. Disable notification lights. This may not be practical if you're someone who really needs/wants to know when something happens on your phone when you're not looking, but for everyone else, feel free to turn off those notifications. Go to Settings -> Sound & display -> Notification flash and uncheck all the boxes.
18. Turn off phone vibration. If the ringer is on, why do you need the phone to vibrate? You're already in a loud environment that drowns out the ring; answering the call won't quiet your surroundings so you can hear what the person at the end of the line is saying.
And if your phone is set to silent, then an incoming call should be silent. Yes, the buzzing vibration may not be disruptive as your ringtone, but people still hear it.
So go to Settings -> Sound & display -> Phone vibrate and turn it off.
19. Turn off audible touch tones. In Settings -> Sound & display, uncheck Audible selection and turn off Audible touch tones.
20. Turn off haptic feedback. Once you get the hang of typing on the phone's on-screen keyboard, you can turn off the haptic feedback that was turned on by default. Go to Settings -> Language & keyboard -> Touch Input -> Text input -> Vibrate when typing.
You can disable haptics in other areas of the system by going to Settings -> Sound & display -> Haptic feedback.
I just plug mine into the USB of my computer (which is on most of the time) when I'm at home. Apart from that I use my phone how I want to. If battery life becomes unbearable I'll get a spare battery.
Not too sure about the 5h charge. It doesn't make sense. First once the battery is full, its full. It depends on how this is measured, but usually when max voltage has been reached, the 100% is shown.
The charger of the Desire is 1A, while the battery is 1.4A. If its actually charging at 1A, a -completely- empty battery is fully charged after around 1.5 hours. Even if it were charging at a lousy 0.5A, battery should be fully charged after 3 hours.
So no idea where that figure comes from (perhaps very very low amp charging on other cellphones ).
And most important tips are indeed no full discharge, and (kinda hard to do) keeping the battery cool. Most important factors on battery life.
Removing Nimbuzz upped by Battery life by about 300%, not worrying about it any more now.
I read some article said the lithium-ion battery is based on the time of your recharging. That means the the total one full recharge is under counting. Say you used your battery from 100% to 50% and recharge it to 100% for the first day. two days later your battery goes to 50% again and you rechage it to 100% again. That is the total one full recharge. each lithium-ion battery can go over 2000 full recharging(I am not so sure it is the number). so it is nothing to do with the time you charging your battery.
badgerz said:
Removing Nimbuzz upped by Battery life by about 300%, not worrying about it any more now.
Click to expand...
Click to collapse
what is nimbuz?
Raminder1992 said:
what is nimbuz?
Click to expand...
Click to collapse
Looking on the market, it is an IM/Skype combo thing... I reckon his battery life improved vastly as he set it to constantly stay signed in/syncing every 15 minutes which will completely kill any battery performance...

[Q] How do I make my screen NOT auto-dim when plugged into AC

I have the setting checked to keep screen on while on AC, but it still auto dims to about 10% after 30 seconds or so. I want to stop it from doing this and just keep the screen at 90% all the time. Auto-brightness is already off, and that didn't change anything.
I'm trying to setup a tasker profile to turn the brightness to 90% during the day when in the car. Everything works fine, I can see the screen get brighter, BUT it still dims after 30 seconds and I can't see the display when it's bright out unless I touch the screen, then it comes back to full brightness again.
Help please?
settings - display - screen timeout - never turn off
bigmoogle said:
settings - display - screen timeout - never turn off
Click to expand...
Click to collapse
I don't have that option. Only goes to 30 min. I'm running CM6.
bigmoogle said:
settings - display - screen timeout - never turn off
Click to expand...
Click to collapse
But the screen still dims to about 10% (even with Sense and even while plugged in).
Maxy6 said:
But the screen still dims to about 10% (even with Sense and even while plugged in).
Click to expand...
Click to collapse
Exactly.
I've temporarily resolved this by having tasker open car home, then opening pandora.
When car home is running, it won't dim the screen.
Now I have to figure out how to make it do this without car home open.
bump
Did anyone ever find a solution?
Settings > Applications > Development > Stay Awake (Screen will never sleep while charging)
This is true but the screen still dims.
Still searching for an answer.
I had the same problem. After some searching I found this over on android forums and it's working like a champ for me. Hope this helps! (I don't think there's any system setting that will change this, unfortunately)
Download the app "Setting Profiles Lite". Lite is free and only lets you create 1 rule at a time, but multiple profiles (Actions you want it to do when the rule is happening)
1. Create a profile that simply changes the screen time out to "Screen Never Times out" Save it as whatever name you want.
2. Create a rule. Under conditions add a condition for Battery that when "plugged into any charger", hit OK. Now add an action to Activate Profile, and choose the profile you made above.
Bam! When plugged into the charger, the screen timeout goes to never, and the screen stays bright, unplug it and time out goes back to whatever you had it set at!
I have been using this for about 10 min now so I'm a rookie but it seems to be working! Make sure if you screw around in it that you don't accidentally disable the rule (I did that because I tried to make another and the Lite won't let you make 2 rules, and it disabled the first one. Just had to long press to enable it again)
spalding1028 said:
I had the same problem. After some searching I found this over on android forums and it's working like a champ for me. Hope this helps! (I don't think there's any system setting that will change this, unfortunately)
Download the app "Setting Profiles Lite". Lite is free and only lets you create 1 rule at a time, but multiple profiles (Actions you want it to do when the rule is happening)
1. Create a profile that simply changes the screen time out to "Screen Never Times out" Save it as whatever name you want.
2. Create a rule. Under conditions add a condition for Battery that when "plugged into any charger", hit OK. Now add an action to Activate Profile, and choose the profile you made above.
Bam! When plugged into the charger, the screen timeout goes to never, and the screen stays bright, unplug it and time out goes back to whatever you had it set at!
I have been using this for about 10 min now so I'm a rookie but it seems to be working! Make sure if you screw around in it that you don't accidentally disable the rule (I did that because I tried to make another and the Lite won't let you make 2 rules, and it disabled the first one. Just had to long press to enable it again)
Click to expand...
Click to collapse
Nice find Going to try it now....
SOLVED
spalding1028 said:
I had the same problem. After some searching I found this over on android forums and it's working like a champ for me. Hope this helps! (I don't think there's any system setting that will change this, unfortunately)
Download the app "Setting Profiles Lite". Lite is free and only lets you create 1 rule at a time, but multiple profiles (Actions you want it to do when the rule is happening)
1. Create a profile that simply changes the screen time out to "Screen Never Times out" Save it as whatever name you want.
2. Create a rule. Under conditions add a condition for Battery that when "plugged into any charger", hit OK. Now add an action to Activate Profile, and choose the profile you made above.
Bam! When plugged into the charger, the screen timeout goes to never, and the screen stays bright, unplug it and time out goes back to whatever you had it set at!
I have been using this for about 10 min now so I'm a rookie but it seems to be working! Make sure if you screw around in it that you don't accidentally disable the rule (I did that because I tried to make another and the Lite won't let you make 2 rules, and it disabled the first one. Just had to long press to enable it again)
Click to expand...
Click to collapse
Works great! Thank you for coming up with a fix!
spalding1028 said:
I had the same problem. After some searching I found this over on android forums and it's working like a champ for me. Hope this helps! (I don't think there's any system setting that will change this, unfortunately)
Download the app "Setting Profiles Lite". Lite is free and only lets you create 1 rule at a time, but multiple profiles (Actions you want it to do when the rule is happening)
1. Create a profile that simply changes the screen time out to "Screen Never Times out" Save it as whatever name you want.
2. Create a rule. Under conditions add a condition for Battery that when "plugged into any charger", hit OK. Now add an action to Activate Profile, and choose the profile you made above.
Bam! When plugged into the charger, the screen timeout goes to never, and the screen stays bright, unplug it and time out goes back to whatever you had it set at!
I have been using this for about 10 min now so I'm a rookie but it seems to be working! Make sure if you screw around in it that you don't accidentally disable the rule (I did that because I tried to make another and the Lite won't let you make 2 rules, and it disabled the first one. Just had to long press to enable it again)
Click to expand...
Click to collapse
THANK YOU!
From time to time I've searched for a solution to this annoying problem, but came up dry. For months I've been using the built-in Power Control widget to manually toggle between Auto-bright when on battery, and Full-bright when on the charger, but NEVER AGAIN
I mean, if your phone's on the charger, why wouldn't you want to take advantage of the plentiful juice pouring out of the charger to power the screen? (Maybe, and I don't know if this is true, but maybe the battery will charge slightly slower with the display sucking a bit more of the available 0.5 max amps over USB.)
IMO, this problem is really worthy of being solved by a standalone app, apart from the more general Settings Profile Lite (but now that it's solved... I don't feel the urge to code it anymore.)
ChargeBright app
FWIW, I did finally end up writing my own app to solve this problem. Check out the ChargeBright app @ market.android.com if interested.
Settings Profile Lite was overkill since I only needed to tweak one setting: display brightness when charging. ChargeBright saves resources and is better tailored to the specific task in any case.
spalding1028 said:
I had the same problem. After some searching I found this over on android forums and it's working like a champ for me. Hope this helps! (I don't think there's any system setting that will change this, unfortunately)
Download the app "Setting Profiles Lite". Lite is free and only lets you create 1 rule at a time, but multiple profiles (Actions you want it to do when the rule is happening)
1. Create a profile that simply changes the screen time out to "Screen Never Times out" Save it as whatever name you want.
2. Create a rule. Under conditions add a condition for Battery that when "plugged into any charger", hit OK. Now add an action to Activate Profile, and choose the profile you made above.
Bam! When plugged into the charger, the screen timeout goes to never, and the screen stays bright, unplug it and time out goes back to whatever you had it set at!
I have been using this for about 10 min now so I'm a rookie but it seems to be working! Make sure if you screw around in it that you don't accidentally disable the rule (I did that because I tried to make another and the Lite won't let you make 2 rules, and it disabled the first one. Just had to long press to enable it again)
Click to expand...
Click to collapse
Worked like a charm! Thanks!
spalding1028 said:
I had the same problem. After some searching I found this over on android forums and it's working like a champ for me. Hope this helps! (I don't think there's any system setting that will change this, unfortunately)
Download the app "Setting Profiles Lite". Lite is free and only lets you create 1 rule at a time, but multiple profiles (Actions you want it to do when the rule is happening)
1. Create a profile that simply changes the screen time out to "Screen Never Times out" Save it as whatever name you want.
2. Create a rule. Under conditions add a condition for Battery that when "plugged into any charger", hit OK. Now add an action to Activate Profile, and choose the profile you made above.
Bam! When plugged into the charger, the screen timeout goes to never, and the screen stays bright, unplug it and time out goes back to whatever you had it set at!
I have been using this for about 10 min now so I'm a rookie but it seems to be working! Make sure if you screw around in it that you don't accidentally disable the rule (I did that because I tried to make another and the Lite won't let you make 2 rules, and it disabled the first one. Just had to long press to enable it again)
Click to expand...
Click to collapse
2 years later and this still works like a charm. THANKS.

Feedback for Microsoft?

I've looked all over Microsoft's WM7 sites and I haven't seen any place to give feedback on the phone. So far I really like it and coming from a quite happy 3 year iPhone user, I think that says a lot. I tried wireless sync last night, that's really cool.
I know an update is coming, I know it's going to be a work in progress, but where can we give some legit feedback? I know I have a good few suggestions and feature requests but haven't seen anywhere to do so.
Any ideas? Plus what features/changes would you like to see?
Obvious ones are custom ringtones, copy paste, etc. but I'd like:
1. set time before the passcode lockout goes into effect instead of every stinkin time
2. when a call comes in, not having to slide up AND press accept call
3. a reoccurring message notification if you missed a text
4. option to keep battery and signal level displayed at all times
5. a way to get back to messages while in a message (back goes to wherever you were before, not necessarily directly to messages)
6. A flashlight app that uses the LED would be nice
HTC has a flashlight that uses the LED, except on the one device they have with a xenon.
I'd suggest a car mode or docked mode for Zune, leave the screen powered on, unless I turn it off when connected to power and listening to music. If unplugged or paused, turn screen off according to settings in power management, (also if the proxmity sensor is tripped for more than 15 sec, assume I put the device in my pocket or flipped it over [while plugged in]).
Post bugs here:
http://social.answers.microsoft.com/Forums/en-US/windowsphone7/threads
Also let me know if you get this bug:
http://www.youtube.com/watch?v=0eCY0QckCj4

[Q] WP7 – night mode, or quiet time etc?

Like I suspect most people, I don’t need my emails downloading while I sleep (or any other data transfer for that matter).
There doesn’t appear to be a ‘night mode’, or whatever you want to call it.
So in the interests of saving the battery, what do people do?
There are three options:
1. Turn off mobile
2. Turn on flight mode
3. Turn off cellular
'Tron said:
Like I suspect most people, I don’t need my emails downloading while I sleep (or any other data transfer for that matter).
There doesn’t appear to be a ‘night mode’, or whatever you want to call it.
So in the interests of saving the battery, what do people do?
There are three options:
1. Turn off mobile
2. Turn on flight mode
3. Turn off cellular
Click to expand...
Click to collapse
I leave mine as is, but if I could get into a routine, I would practice the habit of tapping airplane mode.
I let it roll - if I need to be contacted in the middle of the night my phone needs to work (so airplane mode isn't an option). However, what I would like are notification profiles (which I would assume are similar to network profiles in principle, if not in function). I'd like the phone to automatically go into vibrate during a meeting, stop vibration/sound notification for e-mails at 'night,' and change the volume during 'game.'
GProfile
I used to use GProfile when I was using my Fuze with WM 6.5.X and it was great. Still waiting for something like this for WP7.
I suppose the fourth option is to put it on charge? That's what I do but, yeah alright, that doesn't conserve the battery.
The ideal situation would be to allow us to custom define our own profiles and to also differentiate between system (ringtone/notifications) and application (music/games) sound.
Unfortunately, my job dictates that I be on call 24-hrs a day if any of my staff/system crashes need me. So I have to actually turn up the ringer to full every night to assure it wakes me up... ugh...
(no, not in IT)

Categories

Resources