Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
GoodDayToDie
Old
(Last edited by GoodDayToDie; 10th November 2011 at 10:00 AM.) Reason: More variants and HTC info update
#1  
Recognized Developer - OP
Thanks Meter 1362
Posts: 3,556
Join Date: Jan 2011
Location: Seattle
Default [XAP] [Source] [Mango] MultiTaskToggle 1.1.1

Hi hackers,

Threw together something fun for you: a one-click (don't sue me, Bezos) app for enabling or disabling multitasking (no-dehydrate) on Mango. Fast app switching + full multitasking = awesome! Disabling multitasking when you need to save battery = convenient!

Credit to Jaxbot for working out the no-dehydration registry change. That's all this app is, just a convenient way to toggle that registry value.
I'm going to try to add support for more devices (Samsung Focus S and HTC phones that have lost the ability to use COMRegRW.dll).

UPDATE 1.1.1: Case sentitivity recognizing SAMSUNG now fixed, Samsung and LG confirmed!
UPDATE 1.1: Better Samsung support, possible LG support.

Features:
Secondary tile with deep linking! Shows current multitask state and toggles it when tapped.
Supports HTC, LG, Samsung phones.
HTC phones need to not have the latest HTC updates, as those break the Registry driver I used.
The latest DFT ROM works, and others that support TouchXplorer probably do too.
I'm working on a way to make it work with official ROMs as well - you can help out here: http://forum.xda-developers.com/show....php?t=1335862
Works on Mango! Uses no homebrew DLLs.

Limitations:
No Dell/Asus/Toshiba/Nokia/etc. support yet (find me a registry function and I'll add them, though).
Doesn't work pre-Mango; it's a 7.1 app (could be downgraded pretty easily).
Requires interop-unlock.

Instructions:
Unpack ZIP file and find the XAP in MultiTaskToggle\Bin\Debug.
Install app on an interop-unlocked Mango phone.
Run app and ensure it loads the current value.
[Optional] Select the value you want; it will set immediately.
[Optional] Tap "Live Tile" button to create a tap-to-toggle secondary live tile.

This app is a simple wrapper for the OEM registry edit DLLs to make use of Jaxbot's hack. I wrote it largely just for familiarity with mango homebrew. The source is a bit of a mess right now - I took an existing homebrew library and beat it savagely until it worked on Mango, but didn't really put the pieces away neatly afterward - but it's simple enough I expect somebody else can use it for good things. Personally, I plan to make an app that allows easy general-purpose registry edits on Mango, though I still don't see any way to do registry browsing.

Thanks to XDA member MarysFetus for taking the time to do a visual overhaul of the app, with nice icons and such. It's much more artistic than my solid-color tiles with simple text! Grab the xap directly below. You can also visit the site: http://www.suicideclown.com
Thanks to XDA member singularity0821 for doing more visuals for the app, with a new (and flipping) live tile. I've included that XAP below as well.
Attached Files
File Type: zip MultiTaskToggle.zip - [Click for QR Code] (263.2 KB, 3932 views)
File Type: xap MultiTaskToggle.suicideclown.xap - [Click for QR Code] (65.6 KB, 1707 views)
File Type: xap MultiTaskToggle_flipping.xap - [Click for QR Code] (82.8 KB, 614 views)
The Following 17 Users Say Thank You to GoodDayToDie For This Useful Post: [ Click to Expand ]
 
parnunu
Old
(Last edited by parnunu; 4th September 2011 at 06:12 AM.)
#2  
Senior Member
Thanks Meter 10
Posts: 123
Join Date: Mar 2009
Downloading to test now.

Oh. wow nice tool.Fast toggle MultiTask no need to edit registry by using touchexplorer and connection setsetup
 
contable
Old
#3  
contable's Avatar
Senior Member
Thanks Meter 673
Posts: 1,318
Join Date: Oct 2009
Doesn´t run on OMNIA 7.

"System.Runtime.InteropServices.COMExeption (0x80070032)..."
 
KlausWidraw
Old
#4  
KlausWidraw's Avatar
Senior Member
Thanks Meter 78
Posts: 142
Join Date: Jul 2011
Location: Berlin

 
DONATE TO ME
Default Custom Skin

Great App,

but personally wanted to do an custom design, so I've changed color values in the MainPage.xaml file, but for some reason I am getting an error while building the xap.

Anyone knows how to fix that?



Error Code is in German.

@Moderators: delete if this necessary.
 
drkfngthdragnlrd
Old
(Last edited by drkfngthdragnlrd; 4th September 2011 at 10:51 AM.)
#5  
drkfngthdragnlrd's Avatar
Recognized Developer
Thanks Meter 260
Posts: 2,397
Join Date: Mar 2008
Location: Pacoima, CA

 
DONATE TO ME
Quote:
Originally Posted by MarysFetus View Post
Great App,

but personally wanted to do an custom design, so I've changed color values in the MainPage.xaml file, but for some reason I am getting an error while building the xap.

Anyone knows how to fix that?

Error Code is in German.
Error in English;

Code:
C:\Program Files (x86)\MSBuild\Microsoft\Silverlight for Phone\v4.0\Microsoft.Silverlight.Common.targets(249,9): error : Could not load file or assembly 'Microsoft.Phone.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
T-Mobile HTC 8X
ROM: Stock | HardSPL:Stock | Radio: Stock


 
go2xraj
Old
#6  
Member
Thanks Meter 6
Posts: 83
Join Date: Apr 2011
Thank u very much.....

It works great in my HTC Mozart....

regards
 
dxdy
Old
(Last edited by dxdy; 4th September 2011 at 12:00 PM.)
#7  
dxdy's Avatar
Senior Member
Thanks Meter 1366
Posts: 2,833
Join Date: Apr 2008

 
DONATE TO ME
work on HTC HD2 Mango 7720 (BTTF)

edit:
change between Dehydrating and Multitasking with Live Tile also working
 
fiinix
Old
#8  
fiinix's Avatar
Recognized Developer
Thanks Meter 218
Posts: 568
Join Date: Oct 2010
Location: Stockholm

 
DONATE TO ME
Quote:
Originally Posted by MarysFetus View Post
Great App,

but personally wanted to do an custom design, so I've changed color values in the MainPage.xaml file, but for some reason I am getting an error while building the xap.

Anyone knows how to fix that?



Error Code is in German.

@Moderators: delete if this necessary.
Read: http://thounsell.co.uk/2010/11/avoid...o-the-wp7-sdk/
Samsung Omnia 7
- ATO MAGLDR v2
Windows Phone 7

The hottest geek girl in the world SassiBoB, SassyBoB, Sassy BoB, sassibob
May the Thanks's button be with me at all time Luke Skywalker
The Following User Says Thank You to fiinix For This Useful Post: [ Click to Expand ]
 
drkfngthdragnlrd
Old
#9  
drkfngthdragnlrd's Avatar
Recognized Developer
Thanks Meter 260
Posts: 2,397
Join Date: Mar 2008
Location: Pacoima, CA

 
DONATE TO ME
Quote:
Originally Posted by fiinix View Post
Make sure to read the comments about using Visual Studio Command Prompt. I had to do this after copying in the dll & editing the filelist XML.
T-Mobile HTC 8X
ROM: Stock | HardSPL:Stock | Radio: Stock


The Following User Says Thank You to drkfngthdragnlrd For This Useful Post: [ Click to Expand ]
 
GoodDayToDie
Old
#10  
Recognized Developer - OP
Thanks Meter 1362
Posts: 3,556
Join Date: Jan 2011
Location: Seattle
Yeah, I had to get around the Strong Name Validation too, before it would compile. People have said it shouldn't be necessary but I ran into it all the time.

Thanks for testing, folks! Let me know if you find any bugs or have feature requests.

 
Post Reply+
Tags
htc, mango, multitask, source
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...