Set Up Your MediaTek Device with Comprehensive Beginner’s Guide

As can be seen with the use of MediaTek chips in Android One devices … more

Sony Updates AOSP Sources to Android 5.0.1

Just a few days ago, Sony did an utterly fantastic job by pushing out numerous device trees for … more

Stop Your Screen From Turning Off with KeepItOn

We all know the feeling of reading a news article orrather longdocument, when our screen … more

The XDA LG QPair Developer Challenge Voting Has Begun!

It seems like it was just yesterday that weannounced that we had paired up with LGto … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP] Slide2Shutdown v1.1 [31/08/2009] (Now supports all resolutions!)

OP Cythrelo

30th August 2009, 06:28 PM   |  #1  
OP Member
Flag Montreal, QC
Thanks Meter: 1
 
48 posts
Join Date:Joined: Oct 2008
More
Along similar lines to S2U2, I've decided to make Slide2Shutdown! There's nothing special to configure, just install it and go. All resolutions should work fine (make sure you download QVGA for QVGA or WQVGA devices), but I only have the ability to test it on a VGA device so I can't guarantee how well it works in other resolutions. It also supports both portrait and landscape seamlessly.



There are four CABs available to install. They require version 3.5 of the .NET Compact Framework, the program won't run without it.
Slide2ShutdownSetup_v1.1.CAB just installs the application without mapping it to the power key. QVGA/WQVGA version.
Slide2ShutdownPowerKeySetup_v1.1.CAB installs the application, and maps it to the power key so that it will automatically launch when you hold down the power key. QVGA/WQVGA version.

There's no elaborate skinning method built-in, but the graphics are all stored in the \gfx\ folder and you can change them at will. Just replace the BMP files with your own files of the same dimensions.

Multiple language support is now available. You will find the available languages in the \lang\ folder. To enable your chosen language, open the txt file and change the first line to say "1" instead of "0".
Languages available:It should be pretty straightforward to create your own languages. Create a file called "lang.yourlanguage.txt". Make the first line 0. The second, third and fourth lines should be "slide to shutdown", "restart" and "sleep" respectively, and the last line should be the text for the cancel button. Please post your language file if you translate it, and I'll add it to the next version!

Changelog:
v1.1, 31/08/2009:
  • FIXED: HTC devices should shutdown properly now. HUGE thank you to DaveShaw for helping me with this. I don't think Omnia devices will though. Please send me a PM if you know how to rectify this.
  • ADDED: Support for multiple languages. French and German (thanks basthet!) included. See above for information on enabling this.
v1.0, 30/08/2009:
  • Initial release
  • BUG: Shutdown slider doesn't currently work well on many HTC phones (it only suspends), I'm looking into a fix.
Attached Thumbnails
Click image for larger version

Name:	Slide2Shutdown.jpg
Views:	53156
Size:	18.8 KB
ID:	222225  
Attached Files
File Type: cab Slide2ShutdownSetup_v1.1.CAB - [Click for QR Code] (754.4 KB, 9389 views)
File Type: cab Slide2ShutdownSetup_QVGAv1.1.CAB - [Click for QR Code] (754.4 KB, 5531 views)
File Type: cab Slide2ShutdownPowerKeySetup_v1.1.CAB - [Click for QR Code] (755.1 KB, 13080 views)
File Type: cab Slide2ShutdownPowerKeySetup_QVGAv1.1.CAB - [Click for QR Code] (755.1 KB, 6202 views)
Last edited by Cythrelo; 2nd September 2009 at 09:04 PM.
The Following User Says Thank You to Cythrelo For This Useful Post: [ View ]
30th August 2009, 06:35 PM   |  #2  
Senior Member
Flag East
Thanks Meter: 0
 
144 posts
Join Date:Joined: Apr 2008
More
Thanks for your great work!

I will report it, if it has bug.
30th August 2009, 06:38 PM   |  #3  
Zepiii's Avatar
Retired Forum Moderator
Flag www.generation-mobiles.net
Thanks Meter: 14
 
1,069 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Great idea
30th August 2009, 06:46 PM   |  #4  
Lycox's Avatar
Senior Member
Thanks Meter: 25
 
713 posts
Join Date:Joined: Oct 2005
More
Great. Thanks a lot
30th August 2009, 06:47 PM   |  #5  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Jan 2009
QVGA/WQVGA would be nice.
I'd like to have this mapped to my power key on my Omnia...
cheers.
30th August 2009, 06:53 PM   |  #6  
Senior Member
Thanks Meter: 3
 
742 posts
Join Date:Joined: Nov 2007
Quote:
Originally Posted by Cythrelo

Along similar lines to S2U2, I've decided to make Slide2Shutdown! There's nothing special to configure, just install it and go. At the moment, it's VGA-only but if there's enough demand, I'll make a QVGA version as well! I haven't tested it in WVGA, but I don't see why it wouldn't work just fine. It also supports both portrait and landscape seamlessly.



There are two CABs available to install. They require version 3.5 of the .NET Compact Framework, the program won't run without it.
Slide2ShutdownSetup.CAB just installs the application without mapping it to the power key.
Slide2ShutdownPowerKeySetup.CAB installs the application, and maps it to the power key so that it will automatically launch when you hold down the power key.

There's no elaborate skinning method built-in, but if the graphics are all stored in the \gfx\ folder and you can change them at will. Just replace the BMP files with your own files of the same dimensions.

Changelog v1.0, 30/08/2009:

  • Initial release
  • BUG: Shutdown slider doesn't currently work well on many HTC phones (it only suspends), I'm looking into a fix.



Very, very cool.
Thanks,

dwizzy130
30th August 2009, 07:08 PM   |  #7  
blazingwolf's Avatar
Senior Member
Thanks Meter: 402
 
2,100 posts
Join Date:Joined: Nov 2006
Donate to Me
More
WQVGA would be awesome.
30th August 2009, 07:58 PM   |  #8  
svprm's Avatar
Senior Member
Flag Coimbatore
Thanks Meter: 377
 
1,303 posts
Join Date:Joined: Dec 2007
Donate to Me
More
Nice Idea.
Wating for QVGA.

Suggestion:
1.At top:Center text:"Slide2Shut".
2.Move the three slide to centre.
3.Add some background.
4.Full Screen.
30th August 2009, 08:05 PM   |  #9  
jolas's Avatar
Senior Member
Flag Athens
Thanks Meter: 290
 
1,897 posts
Join Date:Joined: Feb 2006
More
Very useful application!

It works well in Touch HD, except the bug you already mentioned.


I would like to ask you to add 'slide to screen off'.


Thank you!
30th August 2009, 08:14 PM   |  #10  
OP Member
Flag Montreal, QC
Thanks Meter: 1
 
48 posts
Join Date:Joined: Oct 2008
More
Good news! It turns out that it was easier to add QVGA and WQVGA support than I thought it would be. I just added QVGA cabs to the first post, let me know if you have any problems since I can only test on emulators and not real devices.

Post Reply Subscribe to Thread

Tags
iphone, power, shutdown, slide, slider
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes