Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,261 Members 51,370 Now Online
XDA Developers Android and Mobile Development Forum

[APP] xdaShutdown v1.01 [20 AUG 09] - A Skinnable Shutdown App - All Resolutions

Tip us?
 
DaveShaw
Old
(Last edited by DaveShaw; 31st May 2010 at 11:06 PM.) Reason: changed spelling
#1  
DaveShaw's Avatar
Retired Senior Moderator + Wiki Bureaucrat - OP
Thanks Meter 358
Posts: 8,708
Join Date: Dec 2007
Location: Huddersfield
Default [APP] xdaShutdown v1.01 [20 AUG 09] - A Skinnable Shutdown App - All Resolutions


Info:
A fully skinnable (see post #2) shutdown application that asofiker asked me to come up with a long time ago and I've finally got it finished. It's written in Native Win32 C++, so the load speed is PDQ.

My skinning skills are rubbish so any one interested in making this look nice, please post and I'll add your graphics.


Screens (WVGA theme on my TP2):


Features:
  • Shutdown actually works.*
  • Fully skinnable, will work in any resolution.
  • Full screen mode.
  • Sleep / Light's out modes.
  • Command Line (see "Usage").
  • Map to Long press.
*Should work on HTC devices since the Kaiser, I'm open to try and add support to non HTC devices. PM me if you can help.

Usage (Command line):
You can call xdaShutdown command line as follows:
Code:
xdaShutdown /restart [/warn] - Soft resets the device.
xdaShutdown /shutdown [/warn] - Power off the device.
xdaShutdown /sleep - Put the device in Sleep mode.
xdaShutdown /lightsout - Turn off the screen.

/warn - issues a warning before performing the action.
Change log:
Download full change log

1.01
-[BUG] Fixed command line bugs (would only shutdown)
-[TWK] Replaced Kernel IO Control with ExitWindowsEx(). This should ensure settings are saved upon restart / shutdown.
-[TWK] The Sleep / Light's out option simply overrides the action of the Sleep button to light's out - even if you have a seperate lights out button.
-[NEW] Ability to create a Long_press.lnk shortcut in \Windows\. Existing shortcut is backed up and restored if needed when removing the shortcut.
-[NEW] Various XML Changes, If you're new to skinning, just see post #2 and read up. If you're an existing skinner and want to see what's changed, read the full change log.

1.00
-Initial Release

TODO:
Known Issues:
  1. Actions in the XML are case sensitive.
  2. Remove 1px border around the BG.
  3. Shutdown Support on the following devices: Atom Life, Omnia (II?), Moto A3100 (WM 20780), Toshiba G900, Asus P320, Flame, KS20, Magician, Palm Treo Pro 850, Asus P527, Acer M900. (Anyone who knows how to fully power off these devices, let me know).

Thanks
-Chourdakis Michael for his XML Lib.
-asofiker for the QVGA graphics.
-Olipro, cmonex, l3v5y and no2chem for general coding help.
-fards for the long press work around (until I get it in the app).
-All the Skinners

Downloads (WWE):
I have uploaded 3 versions (all with crappy graphics) for QVGA, VGA and WGVA.
There's also a Exe only, for those that don't want to lose their skin .

Other Languages:
-ESN v1.01
-GER v1.01
.
Attached Files
File Type: cab xdaShutdown 1.01 - Exe.cab - [Click for QR Code] (82.7 KB, 3795 views)
File Type: cab xdaShutdown 1.01 - QVGA.cab - [Click for QR Code] (276.9 KB, 8203 views)
File Type: cab xdaShutdown 1.01 - VGA.cab - [Click for QR Code] (248.9 KB, 5910 views)
File Type: cab xdaShutdown 1.01 - WVGA.cab - [Click for QR Code] (429.8 KB, 21619 views)
--Retired.
The Following User Says Thank You to DaveShaw For This Useful Post: [ Click to Expand ]
 
DaveShaw
Old
(Last edited by DaveShaw; 20th August 2009 at 09:52 PM.)
#2  
DaveShaw's Avatar
Retired Senior Moderator + Wiki Bureaucrat - OP
Thanks Meter 358
Posts: 8,708
Join Date: Dec 2007
Location: Huddersfield
Default [APP] xdaShutdown v1.01 [20 AUG 09] - A Skinnable Shutdown App - All Resolutions

About:
If you can think of a (serious) better way of implementing skinning PM me (spare the thread) and I'm happy to discuss.

Images
Create your button images with a fuschia (255 R, 0 G, 255 B) background. This part of the image won't be rendered.

Place the "Up" and "Down" parts of the image in exactly half of the image. Left half is up, right half is down.

Sample images are in the CABs in Post #1.

Layout (Theme.xml)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xdaShutdownTheme>
<button>
    <name>sleep</name>
    <xPos>24</xPos>
    <yPos>4</yPos>
    <action>sleep</action>
  </button>
  <button>
    <name>restart</name>
    <xPos>24</xPos>
    <yPos>74</yPos>
    <action>restart</action>
  </button>
  <button>
    <name>shutdown</name>
    <xPos>24</xPos>
    <yPos>144</yPos>
    <action>shutdown</action>
  </button>
  <button>
    <name>cancel</name>
    <xPos>180</xPos>
    <yPos>214</yPos>
    <action>cancel</action>
  </button>
  <button>
    <name>lightsout</name>
    <xPos>24</xPos>
    <yPos>274</yPos>
    <action>lightsout</action>
  </button>
  <background>
    <color>FFFFFF</color>
  </background>
  <fullscreen>false</fullscreen>    
  <landscape>
    <button>
      <name>sleepL</name>
      <xPos>24</xPos>
      <yPos>4</yPos>
      <action>sleep</action>
    </button>
    <button>
      <name>restartL</name>
      <xPos>24</xPos>
      <yPos>74</yPos>
      <action>restart</action>
    </button>
    <button>
      <name>shutdownL</name>
      <xPos>24</xPos>
      <yPos>144</yPos>
      <action>shutdown</action>
    </button>
    <button>
      <name>cancelL</name>
      <xPos>180</xPos>
      <yPos>214</yPos>
      <action>cancel</action>
    </button>
    <button>
      <name>lightsoutL</name>
      <xPos>24</xPos>
      <yPos>274</yPos>
      <action>lightsout</action>
    </button>
    <background>
      <color>FF0000</color>
    </background>
    <fullscreen>false</fullscreen>
  </landscape>
</xdaShutdownTheme>
The button part should be obvious. The background part might be a tad trickier. If you want to use background.png as the background, set "useImage" to "background". If it's not specified, then you can specify a background colour in RRGGBB format in "color". If neither are there, it will be white.

Fullscreen, means that the top bar will be hidden.

I've attached the xsd for theme if any of you are XML geeks like me
Attached Files
File Type: zip xdaShutdownTheme.zip - [Click for QR Code] (994 Bytes, 3428 views)
--Retired.
 
DaveShaw
Old
(Last edited by DaveShaw; 7th September 2009 at 03:08 PM.)
#3  
DaveShaw's Avatar
Retired Senior Moderator + Wiki Bureaucrat - OP
Thanks Meter 358
Posts: 8,708
Join Date: Dec 2007
Location: Huddersfield
Default Skinning

If you make me some better skins, I'll post some previews here, but I have so much interest I've started to remove some, so have a look through the thread also .

Please post the the target resolution, the 5 (or 4) button images and the theme XML in a CAB to install into %programfiles%\xdaShutdown.

QVGA

Download - cris_rowlands


Download - cris_rowlands


Download - cris_rowlands


Download - cris_rowlands


Download - cris_rowlands (Left = Restart, Middle = Shut Down, Right = Sleep/light, Bottom = Cancel)


Download - cris_rowlands


Download - cris_rowlands


Download / Download - cris_rowlands


Download - Phonatic


Download - Phonatic


Download - gullum


Download - borealcool
--Retired.
 
DaveShaw
Old
(Last edited by DaveShaw; 24th August 2009 at 09:40 PM.) Reason: More themes
#4  
DaveShaw's Avatar
Retired Senior Moderator + Wiki Bureaucrat - OP
Thanks Meter 358
Posts: 8,708
Join Date: Dec 2007
Location: Huddersfield
Default Themes


Download / Download / Download - cris_rowlands


Download - Phonatic


Download - Phonatic


More Colours / Back grounds here - Phonatic


Download - chris10230


Download - chris10230


Download - Phonatic
Attached Thumbnails
Click image for larger version

Name:	ALL.jpg
Views:	84248
Size:	25.1 KB
ID:	213768  
--Retired.
 
DaveShaw
Old
(Last edited by DaveShaw; 8th September 2009 at 11:18 PM.)
#5  
DaveShaw's Avatar
Retired Senior Moderator + Wiki Bureaucrat - OP
Thanks Meter 358
Posts: 8,708
Join Date: Dec 2007
Location: Huddersfield
VGA

Download - gullum


Download (EN) - voyd
Download (FR) -voyd


Download - cris_rowlands


Download / Download / Download - louie1215 (ported)


Download - Peaster111

WVGA

Download / Download (with portrait and landscape) - peterbonge


Download (EN) - voyd
Download (FR) - voyd


Download (w/Landscape) - FireBird4


Download - Phonatic


Download - arturobandini

WQVGA

Download - borealcool


Download (EN) - julian76 (ported)


Download - ytsejam_



Download - taospirit
Attached Thumbnails
Click image for larger version

Name:	VGAs.jpg
Views:	78983
Size:	23.9 KB
ID:	217492  
 
Philux-X
Old
#6  
Philux-X's Avatar
Senior Member
Thanks Meter 18
Posts: 400
Join Date: Feb 2007
Location: Fort Leonard Wood
Thanks bro! Looks great! Will give it a go.
 
btonetbone
Old
#7  
Senior Member
Thanks Meter 34
Posts: 349
Join Date: May 2008
Awesome, thanks! This is definitely going to replace psShutXP for me. Shutdown actually works!

Great work.
Ivan
Ivan
Enjoy the show!
 
drmidnight
Old
#8  
drmidnight's Avatar
Member
Thanks Meter 2
Posts: 90
Join Date: May 2008
Just got a break at work so I decided to check out some xda and I saw this. I made three different skins that are nothing more than a mockup and I don't really have the time to make them into an actual skin, but you are welcome to the layered psd.



 
ai6908
Old
#9  
ai6908's Avatar
Senior Member
Thanks Meter 265
Posts: 3,603
Join Date: Nov 2006
Location: Land of Lincoln

 
DONATE TO ME
Great! I use it my ROM...thanks for this awesome tool...
Hit "THANKS" button if you like the above post!!
Moto Atrix HD ROM - Batakang
HTC Flyer (WiFi) ROM - Stock Honeycomb3.2 No Root
My UnderVolt Tweak for cfX
 
DaveShaw
Old
#10  
DaveShaw's Avatar
Retired Senior Moderator + Wiki Bureaucrat - OP
Thanks Meter 358
Posts: 8,708
Join Date: Dec 2007
Location: Huddersfield
Quote:
Originally Posted by drmidnight View Post
Just got a break at work so I decided to check out some xda and I saw this. I made three different skins that are nothing more than a mockup and I don't really have the time to make them into an actual skin, but you are welcome to the layered psd.
Thanks, but I'm really bad at photo-shopping. That's why my graphics are sooo bad.

Dave
--Retired.

Tags
shutdown, skinnable
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Implement Split View in Your LG G2 KitKat Rom with Automated Installer

Some of you may have remembered a story on the Portal a few weeks back … more

Cast Your Device Screen the Way it Was Meant to be with Second Screen

Not too long ago here on the XDA Portal, we covered how Google had made … more

Samsung Gear Live Unboxed the XDA Way – XDA Developer TV

XDA Developer TV Producer AdamOutleris known for his XDA Unboxingseries where … more

Make Your Own DIY Capacitive Stylus

The XDA Portal is a place where we like to talkabout things that are interesting, fun, and sometimes … more