Disabling the Auto-off - Windows Mobile Software Development

I am using the SystemIdleTimerReset() function to dissable the Auto-off on my XDA. Which is entirelly ignored by the XDA which still switches off.
Has any member has experience with this, and can offer a working solution?
Cheers, Ben

I have used :-
keybd_event( 32, 1, KEYEVENTF_SILENT, 1);
to keep the unit alive while doing not user interactive stuff, I used a timer to do it every 30 seconds.

Related

Anyone Using Tasker?

Anyone here using it? what is this app for? is it worth buying? does it give u battery life? im really interested but i cant find no videos on it on youtube. please share your thoughts.
It is worth every penny. The best app for android IMO. It is not very easy to master it, but even the basic stuff has made a vast difference too the behavior of my phone.
For example, I have extended my battery life to 38 hours simply by having it automatically go into airplane mode between midnight and 6am.
It will turn off wifi, back screen brightness down, change screen timeout to 10 seconds and give me a notification popup and sound when my battery drops below 15%.
It will turn on gps when Wavesecure is activated, something Wavesecure can't do by itself.
It will turn my ringer off when I get within 200m of the two cinemas I go to.
It turns wifi on when I get home, and off when I leave. Same for work.
It loads my music app when I plug my headphones in.
Tasker can make widgets! I have one set up to (with one press from my home screen) turn up screen brightness, turn on gps, turn up speaker volume to max, wait 2 seconds, then launch google navigation. It will then turn everything back when I exit out of navigation.
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
I would say try out the free 1 week trial. There is even a wiki and web site with extensive instructions and examples uploaded by other users. You can also import profiles as well as create your own. The really handy ones I have exported to my sd card, and e-mailed them to a friend when he bought Tasker. Not sure I helped him though as there is a steep learning curve for this app, and it is worth being patient with it to learn its ways for yourself.
I think it is worth much much more than the asking price.
Sent from my HTC Desire using XDA App
wow sounds sooo nice . i already bought full version yesterday but havnt even opened the app once . well i did open it once it seems hard to understand lol . so for all this task does the gps need to be on? or not? and can u turn off 3g?
You can turn off APN, but don't think that works well in the UK. Sorry, my knowledge of 3g is limited.
Basically, you can have tasker turn on and off nearly any feature of your phone that your want. There are two sides to tasker. The "Profile" and the "Task".
I have found it is best to first set up the "task". Say you want to save battery power at night. Select the task button and select "new". Call it "power save" or something. Select the + symbol and select "Net". In this menu, pick "Airplane mode" and select to ' on'. Then hit ok, then save.
Now to create the 'Profile' where you define the contexts that will activate the "power save" task you just created.
Select 'new' then select the 'time' context. Enter the time you would like to have your phone go into airplane mode. After hitting 'ok' it will take you to the profile page where you set up what now happens between the times you just specified. From the drop-down at the to of the page, select the "power save" task you created earlier. Hit 'ok'.
Done. Your Tasker will now shut off all your radios between the times you entered.
Sent from my HTC Desire using XDA App
Worth every penny. I use it to:
- turn on GPS for programs that need it (turns back of when editing the program)
- turn notifications off when starting desk clock
- change volume when connecting head phones
There are endless possibilities, try it and then buy it.
i've bought it for little things but want it to be able to handle 3g data which it doesn't
i,e turn on wifi, if no conn after 10 secs, turn on 3g, auto sync for a min, then turn data off.
works fine and dandy with wifi, but not 3g.
tommo123 said:
i've bought it for little things but want it to be able to handle 3g data which it doesn't
i,e turn on wifi, if no conn after 10 secs, turn on 3g, auto sync for a min, then turn data off.
works fine and dandy with wifi, but not 3g.
Click to expand...
Click to collapse
You need APNDroid to disable 3G.
tasker really is worth every penny!
Wort every cent. Must have
I used to check periodically (every 3 minut) if my car Bluetooth near. If yes connect and and hold on the connection. If disconnect wait 15 minutes and seek again... save really battery... fantastic...
Sent from my HTC Desire using Tapatalk
Tyderion said:
You need APNDroid to disable 3G.
tasker really is worth every penny!
Click to expand...
Click to collapse
it still doesn't work. it turns apndroid on, but 3g flashes up then dissapears.
wnp_79 said:
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
Click to expand...
Click to collapse
Now that i like. This app sounds amazing.
Thanks for bringing it to my attention.
wnp_79 said:
It is worth every penny. The best app for android IMO. It is not very easy to master it, but even the basic stuff has made a vast difference too the behavior of my phone.
For example, I have extended my battery life to 38 hours simply by having it automatically go into airplane mode between midnight and 6am.
It will turn off wifi, back screen brightness down, change screen timeout to 10 seconds and give me a notification popup and sound when my battery drops below 15%.
It will turn on gps when Wavesecure is activated, something Wavesecure can't do by itself.
It will turn my ringer off when I get within 200m of the two cinemas I go to.
It turns wifi on when I get home, and off when I leave. Same for work.
It loads my music app when I plug my headphones in.
Tasker can make widgets! I have one set up to (with one press from my home screen) turn up screen brightness, turn on gps, turn up speaker volume to max, wait 2 seconds, then launch google navigation. It will then turn everything back when I exit out of navigation.
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
I would say try out the free 1 week trial. There is even a wiki and web site with extensive instructions and examples uploaded by other users. You can also import profiles as well as create your own. The really handy ones I have exported to my sd card, and e-mailed them to a friend when he bought Tasker. Not sure I helped him though as there is a steep learning curve for this app, and it is worth being patient with it to learn its ways for yourself.
I think it is worth much much more than the asking price.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Wow sounds like you have a good understanding and has some good stuff. I don't know if you can, but I posted a page where maybe people can leave profiles for those of us who are a bit more chronologically challenged.
This is the greatest
I use tasker for everything. I am very forgetful so I have it pop up astrid tasks when I leave the house or work. The quiet mode works well for work and there is even a way to auto check in to foursquare.
Worth every penny, it makes your phone 10 times better and is a must have app.
I have profiles that do the following:
-During work hours and within range of the office set Vibrate, turn off wi-fi.
-When within range of home turn on Wi-Fi
-If at home after certain time in evening go silent
-When leaving car (detected by bluetooth connection to stereo), store time and location. Have icon on desktop to retrieve info and show on map to find car.
-When on call (by checking diary) if a colleague calls always ring regardless of silent.
-Say caller/texter name
-Send magic packet to wifes phone to report location and show on map (handy when shopping)
Plus many other scripts....
I find that this program has a pretty high learning curve...
Is there a wiki I can read up or a way to import other people's profiles?
YoYoost said:
I find that this program has a pretty high learning curve...
Is there a wiki I can read up or a way to import other people's profiles?
Click to expand...
Click to collapse
http://tasker.dinglisch.net/
Using "Cell Near" instead of GPS
I was using Tasker to turn WIFI on and off based on GPS locations. However, I found an alternate method that does not use GPS calls (and waste battery use). Instead, I am now using "Cell Near" to find the cell tower near home and turn WIFI off when I am not within distance of it.
I have posting walkthroughs of all of the most useful profiles I have collected. Check it out at http://dbilliter.blogspot.com
Tasker rules my phone... With all the taks i made.... Love the app!!!
You can do almost everything if you know how to use it... Little variable programming and your phone will get his own life haha...
GREAT APP
the_ahmadzais said:
Anyone here using it? what is this app for? is it worth buying? does it give u battery life? im really interested but i cant find no videos on it on youtube. please share your thoughts.
Click to expand...
Click to collapse
If you're interested I've put together this thread http://forum.xda-developers.com/showthread.php?t=1018245 on how to use the CPU Profiles - I hope it's good enough to replace SetCPU!?
Let me know what you think.
problem with deleting profiles
i am also new to tasker. made a simple sms schedular, which worked fine, but when i deleted all the profiles, contexts and tasks...somehow sms is still going on scheduled time... tried to clear data, force stop it, but still sending sms.
any suggestion.
thanks

[Q] Tasker stops executing tasks after a certain period

Hey everyone,
For some reason I'm having problem with using Tasker on my Huawei Ascend P6 running Android 4.2.2.
I had set up a simple profile that would enable wifi, enable data, turn on auto sync, .. every X minutes. After trying this out it became clear that after a certain period Tasker would simply stop running this profile.
For testing purposes I have:
Double checked that there are no task killers installed
Created a profile of type "Time" that will Vibrate for 1 second from 07:00 every 2m Till 22:30
Enabled the "log to sdcard" functionality
After monitoring the log I have seen that there are no error but Tasker simply stops running the tasks after a certain period.
PS: I must say that I'm having the same issue with all other battery saving applications too (Juice Defender, GreenPower, Deep Sleep Battery Saver). They work perfectly until after a certain time they stop firing their events to enable the connection in the background.
Any help would be really appreciated. How can I trace this problem?
you are using trial or you bought taker?
Ankush menat said:
you are using trial or you bought taker?
Click to expand...
Click to collapse
I bought Tasker.
I have same problem!
Whookid said:
Hey everyone,
For some reason I'm having problem with using Tasker on my Huawei Ascend P6 running Android 4.2.2.
I had set up a simple profile that would enable wifi, enable data, turn on auto sync, .. every X minutes. After trying this out it became clear that after a certain period Tasker would simply stop running this profile.
For testing purposes I have:
Double checked that there are no task killers installed
Created a profile of type "Time" that will Vibrate for 1 second from 07:00 every 2m Till 22:30
Enabled the "log to sdcard" functionality
After monitoring the log I have seen that there are no error but Tasker simply stops running the tasks after a certain period.
PS: I must say that I'm having the same issue with all other battery saving applications too (Juice Defender, GreenPower, Deep Sleep Battery Saver). They work perfectly until after a certain time they stop firing their events to enable the connection in the background.
Any help would be really appreciated. How can I trace this problem?
Click to expand...
Click to collapse
Have you find a solution?
Thanks

[TASKER] HTC ONE Tasker Profiles

Hello everyone!
So I know there are a few Tasker threads out there that have profiles and how-tos but I wanted to start one here for people who maybe have some Tasker Profiles that may be of particular use for our phones.
I am just picking this app up so I really have little idea what I'm doing but so far i have:
- When display off - wait 10 minutes then turn off WiFi, Data, and Auto Sync (Poff)
- When display on - wait 2 seconds and turn WiFi, Data, and Auto Sync on (Pon)
- Periodic Data Check - From 7am to 11pm every 30 minutes while the display state is off, run task 'Pon', wait 3 minutes, then run task 'Poff' (Pperiodic)
- Run music - When headphones are plugged in, start my music app of choice (Headset)
These are VERY simple and VERY simply configured. I've seen some really crazy Tasks where it checks the network usage and if it's below 15 kbs.... Yeah that's too cray for me and honestly I don't care if Weather is updating when my screen is off.
I was inspired to do this because I switched from Sense to AOSP and now I don't have the PowerSaver functionality that Sense has. I feel this is a good (configurable) alternative!
Let me know if you want the specifics about these profiles and I'll gladly share them and of course feel free to share your own!
Closed per OP request

WiFi Long time to connect - workaround

My Nexus 5X takes around 22 seconds from enabling wifi to achieve a connection.
I think this is excessive, especially when my last Samsung phone only took 4 seconds.
I use Leandroid to control wifi switching, so have to wait until I can check for emails or browse the net. At times this can be very frustrating.
The issue was present running stock and my current custom ROM, latest Pure Nexus.
So it looks like the problem resides in the Google OS.
Does anybody else have this issue?
If so, you may be interested in a workaround that reduces the 22 seconds to around 4 seconds.
It involves opening wifi in settings and is best accomplished using an automation app. I use macrodroid with the following macro
T - Screen unlocked
A - Enable wifi, Launch Shortcut Settings shortcut, Wait Before Next Action 1 sec, Press Back Button
C - Wifi Disabled AND 06:00 - 23:00
The macro opens the wifi setting screen for 1 second before it is closed followed a few seconds later with wifi connected. The macro constraints ensure the macro is only run after Leandroid has switched off wifi and only during the daytime, but you can have different constraints.
I would prefer the issue is resolved by Google but for now can live with this workaround.
Nobody having the same issue!
Suggests this might be a fault with my phone rather than a software problem.
Please let me know your wifi connect times with the ROM you are using.
Thank you
I have the same problem however I don't care about it as much as you do. Unrooted nexus 5x user here. Sometimes it doesn't connect at all if I don't expand the WiFi in quick settings.
dhj49er said:
My Nexus 5X takes around 22 seconds from enabling wifi to achieve a connection.
I think this is excessive, especially when my last Samsung phone only took 4 seconds.
I use Leandroid to control wifi switching, so have to wait until I can check for emails or browse the net. At times this can be very frustrating.
The issue was present running stock and my current custom ROM, latest Pure Nexus.
So it looks like the problem resides in the Google OS.
Does anybody else have this issue?
If so, you may be interested in a workaround that reduces the 22 seconds to around 4 seconds.
It involves opening wifi in settings and is best accomplished using an automation app. I use macrodroid with the following macro
T - Screen unlocked
A - Enable wifi, Launch Shortcut Settings shortcut, Wait Before Next Action 1 sec, Press Back Button
C - Wifi Disabled AND 06:00 - 23:00
The macro opens the wifi setting screen for 1 second before it is closed followed a few seconds later with wifi connected. The macro constraints ensure the macro is only run after Leandroid has switched off wifi and only during the daytime, but you can have different constraints.
I would prefer the issue is resolved by Google but for now can live with this workaround.
Click to expand...
Click to collapse
I have this issue with my original and replacement 5X. No idea why it takes so long. I hope a mini bug fix will help it out when the new unicode update comes to us in the form of next weeks update.
balekoglu said:
I have the same problem however I don't care about it as much as you do. Unrooted nexus 5x user here. Sometimes it doesn't connect at all if I don't expand the WiFi in quick settings.
Click to expand...
Click to collapse
My stock 5X takes roughly 12 seconds to connect to Wi-Fi, so I started doing this. Expanding the Wi-Fi in QS drops the Wi-Fi connect lag to 4 seconds or less for me. Much better experience, yet still an annoyance that I have to do this.
Edit: To clarify, tapping Wi-Fi in Quick Settings causes a severe lag of 12 to 20 seconds before it connects to my home Wi-Fi. Expanding Wi-Fi in QS cuts that time to just 4 seconds which is normal for my other devices.
Sent from my Nexus 5X using Tapatalk

Is it possible to change automatic sleep times?

Hi,
Subject says out al really... Mr wife has a garmin watch and the accompanying app allows you to tweak the automatically detected sleep times (start and end).
I cannot find this for S Health so as a result my sleep times are 'corrupted' by me being apparently tranquile... I'd very much like to correct these times. Is that at all possible?
Frank

Categories

Resources