Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,834 Members 46,487 Now Online
XDA Developers Android and Mobile Development Forum

[APP] TGShutdown - Shutdown timer for WM

Tip us?
 
technographics
Old
(Last edited by technographics; 6th November 2010 at 06:13 PM.) Reason: Update to version 1.1
#1  
technographics's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Sep 2010
Location: Valencia, Spain
Default [APP] TGShutdown - Shutdown timer for WM

Hello everyone!

I like to fall asleep while hearing my favourite radio program on saturday nights (one of those about terror stories and paranormal stuff ), but usually I go very late to bed, so the program has finished already

So someday I decided begin to use podcasts, this way I can download the last broadcast and hear it. No problem with other phones but... when I tried this with my new HD2 and seen the battery consumption the next day...

At least in my case, battery consumption was terrible even in flight mode and with the podcast has finished and player has stopped, so I decided to find "something" to power off my phone when I fall asleep

I've been looking for a simple application that starts a countdown and finally shutdowns the device (similar to many others for PC), but only found big apps with complete scheduling for lot of things that I don't need (turn off and on phone, WIFI, 3G... but with a specific date and time in the calendar without possibility to set a timer to begin "right now"), or apps that do a simple shutdown but without previous timer. Doing my search I noticed that many people was looking for this same application.

Finally I decided to do it myself, and here is the result, a tiny application that does what I need. I've only tested in my HTC HD2, but it's supposed to work in all WM6.5 devices with framework3.5 installed.

Simply, set a countdown in minutes and press the START/STOP button. You can freeze the countdown at any time using this same button. Once the countdown has started, you can open other applications in your phone (MP3 player, podcast...). Notice that you have to do this without closing the TGShutdown application. If you try to close TGShutdown, a message will warn you that, if you close TGShutdown, countdown will be aborted. Turn off the screen, get into the bed and enjoy your music... when the countdown reaches zero, the device will shutdown. Sweet dreams!

Any suggestions or requests will be welcome.

Regards! (and sorry about my english )


UPDATED to version 1.1

* Fixed some issues
Attached Thumbnails
Click image for larger version

Name:	TGShutdown11.jpg
Views:	562
Size:	17.7 KB
ID:	435337  
Attached Files
File Type: cab TGShutdown11.CAB - [Click for QR Code] (77.9 KB, 1941 views)
 
zinconnu
Old
(Last edited by zinconnu; 21st December 2011 at 09:43 AM.)
#2  
zinconnu's Avatar
Senior Member
Thanks Meter 15
Posts: 324
Join Date: Jun 2008
Psshutxp already do this, no?
Projects / experiments - Webservices | HTML5 Canvas QR Code Generator
HTC Desire - ParanoidAndroid 3.99-RC2 - AlphaRev 1.8 Stock HBOOT - 4eXT Recovery Touch v1.0.0.5 RC9
 
orb3000
Old
#3  
orb3000's Avatar
XDA Portal Team / Senior Moderator
Thanks Meter 3029
Posts: 22,276
Join Date: Feb 2007
Location: T r a v e l i n g Likes: HTC & XDA Dislikes: apples...

 
DONATE TO ME
Thanks for sharing!
orb


HTC One M8 - HTC Butterfly S - HTC Universal

XDA is about developing and is for developers. Any user that recognizes that will gain the most benefit from this site


 
This is and always will be a site for developers, pure and simple. Without them we are nothing, without them there would be no reason for XDA Developers to exist; we should never ever forget that. Without them this place would not be called XDA-Developers but something else, e.g Mobile Phone User Support Services For Ungrateful Nerds.

Previous devices: HTC: Treo 650 - Excalibur - Diamond - Diamond 2 - Maple - HD2 - Rhodium - Desire Z - Desire HD - Vivid - Sensation - One V - One X - Titan II - One X+ - DNA - Butterfly
 
technographics
Old
#4  
technographics's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Sep 2010
Location: Valencia, Spain
Oh! I didn't knew about it At least, doing my own application made me to find the one I was looking for

I will compare battery consumption of both and I will use the most efficient

Thanks a lot!
 
orb3000
Old
#5  
orb3000's Avatar
XDA Portal Team / Senior Moderator
Thanks Meter 3029
Posts: 22,276
Join Date: Feb 2007
Location: T r a v e l i n g Likes: HTC & XDA Dislikes: apples...

 
DONATE TO ME
Please let us know your results here

Gracias,
orb


HTC One M8 - HTC Butterfly S - HTC Universal

XDA is about developing and is for developers. Any user that recognizes that will gain the most benefit from this site


 
This is and always will be a site for developers, pure and simple. Without them we are nothing, without them there would be no reason for XDA Developers to exist; we should never ever forget that. Without them this place would not be called XDA-Developers but something else, e.g Mobile Phone User Support Services For Ungrateful Nerds.

Previous devices: HTC: Treo 650 - Excalibur - Diamond - Diamond 2 - Maple - HD2 - Rhodium - Desire Z - Desire HD - Vivid - Sensation - One V - One X - Titan II - One X+ - DNA - Butterfly
 
Picolog
Old
#6  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Nov 2009
Thanks , it is a nice application.
Please could you implement a function in order to turn on the device based on time a date as per shutdown?
Thank you
 
encounter
Old
#7  
Member
Thanks Meter 1
Posts: 53
Join Date: Apr 2007
Location: Potenza,Italy
Rom LEON-BK v2.0 RADIO ROM v2.15
I do not ... there is no calendar page with a white rectangle in which to place the minutes ... further down, start / stop ... but it works. ... I tried setting a minute .... and he died

a me non c’é nessun calendario…pagina bianca con un rettangolino in cui inserire i minuti…più in basso, start/stop…però funziona….ho provato impostando un minuto….e si é spento
 
technographics
Old
#8  
technographics's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 16
Join Date: Sep 2010
Location: Valencia, Spain
Hello everyone!

I've just uploaded a new build of my application after some friend told me about some issues.

After doing a small test in order to compare the battery consumption for Psshutxp and TGShutdown, these are the results:

Tested in HTC HD2, flight mode, for 15 minutes each app, with Psshutxp or TGShutdown running alone (I mean, no other running application like MP3 playing or podcasts).

*** TGSHUTDOWN, consumed more than 0% but less than 1% (from 75% to 75%)
*** PSSHUTXP, consumed more than 2% but less than 3% (from 75% to 72%)

Obviously, visually, I like PSSHUTXP much more (mine it's only a textbox and a button), but the choice depends on the user priorities and needs. PSHUTXP has a beautiful look, mine has a very simple one in a flat window. But it seems, at least in an HTC HD2 and in a test of 15 minutes, than PSSHUTXP consumes more power.

I addition, I must say that psshutxp doesn't works for me I do not know if anybody has noticed the same problem: if your device enters in standby mode (in HTC HD2 is usually 3 minutes after you power off the screen but it depends on your personal configuration), psshutxp freezes the countdown and shutdown is never reached. For example, if media player it's continuosly playing, the device never enters in stand by mode so psshutxp works fine, but if you have a podcast or any song or stream with a specific lenght, once player stops, device will enter standby mode after 3 minutes and if psshutxp hasn't reached the final countdown, shutdown will never work. It's only a problem of me or it happens the same for everyone?

I will try to do a better and more realistic test next time (running applications for an hour and with MP3 player running).

In response to encounter and other users, I too have seen an image of a calendar when showing my application in some sites, but that's not an actual image of my app, so I have attached an image of TGShutdown togheter with the CAB in this same post.

I'm not thinking about adding any calendar to my app and no 'power on' function, as this app was designed only for a simple purpose: power off the device in order to save battery when we usually go to bed and like to hear some music/podcast/radio before sleep so, the simple the application is, the much less battery will eat.

Thanks a lot everyone, for all your interest!

Sergio.
 
hidnface
Old
#9  
hidnface's Avatar
Senior Member
Thanks Meter 0
Posts: 219
Join Date: Oct 2008
Nice app.

What if I want TGShutdown to start automatically everyday at a given period of time, let's say everyday at 11.00p.m?

Is this possible?

You understand that I wish your app to automatically turnoff my HD2 everyday without manually starting the timer

Thanks

My HD2 is locked by


NOW: HTC HD2 powered by Artemis ROM v40 - from sternas.

BEFORE: Siemens C65 > Samsung D500 > Imate Jama > Nokia N93 > Nokia N80 > XDA Atom Life > Samsung i780
.
 
Rimmel59
Old
#10  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jan 2011
I use TGShutdown launched by a SK ScheMa script. It works fine on my HTC Touch2!!

Thread Tools
Display Modes


XDA PORTAL POSTS

Slate Calendar Helps You Organize Your Life

Without calendars in some form or another, most of our lives would be utter chaos. Unless you are … more

Shane Francis to Talk Android, Robotics, and Vision at XDA:DevCon 2014

Our international xda:devcon 14in Manchester, UK on the weekend of … more

LG G Watch Tool is a Toolkit all Owners Need

The LG G Watch is one of the first two devices hitting the market rocking the highly anticipated … more

Benchmark Your CPU Performance with Mini CPU Integer Script

When it comes to device testing, there are two types of people on XDA. The first … more