Help me debug ArkSwitch :) - Windows Mobile Software Development

Hi all,
It seems that certain people (most notably multiple HD2 users) are having crashes and other issues with ArkSwitch. I have a Fuze (Touch Pro), and I'm not experiencing these issues. Therefore, it's virtually impossible for me to fix them.
I ask for your help finding and fixing these bugs, if you have any device that is not a Touch Pro. The source code is available at http://arkswitch.codeplex.com and I would really appreciate some help from any devs that have an HD2 or pretty much any device other than my own.
Let's use this thread to discuss code issues, and the "main" thread for everything else.
Thanks a lot!

Hi ark,
I'll take a look into it (I have an HD2, and sometimes it freezes for me also)
I've coding skills so no worries
See you later
PS. Nice app!

Cool, thanks!

Works fine on my HD
Only crashes when i try to include a image as a selector

hi Arktronic,
I have included ArkSwitch in my ROM v1.8, but have to remove it in next release.
Here are some problems found:
- I have to exclude it from CleanRAM otherwise CleanRAM will take the phone down.
- top taskbar (I'm using WM6.5.5) will be no longer accessible if ArkSwitch has been terminated by other apps (such as Task Manager 3.1, CleanRAM), or sometimes closed by itself.
However, I like the way ArkSwtich "take down" other apps, such as cprog.exe (Phone). It really removes cprog from the memory and free up some RAM without crashing the phone.
Is it possible to make ArkSwitch NOT to stay in RAM?
P/S: Sorry, I'm off topic. You want to discuss coding? Where can I get the code?

If you don't want ArkSwitch to stay in RAM, enable WM65 compatibility mode. Depending on what the user does then, it will either quit or minimize (but be friendly to the system if killed by CleanRAM or others).
Like I said in the first post, the source code is available here: http://arkswitch.codeplex.com/

Okay I did a debug session,
It seems to freeze here:
// Get the window text or else continue enumerating.
if (!GetWindowText(hwnd, WindowTextSb, 1024)) return 1;
in
static int EnumWindowsCallback(IntPtr hwnd, uint lParam)
In some cases the function GetWindowText doesn't return...
If I remove this call, it will load without any freeze

Interesting. Does that happen when there is another app that has frozen, or is it just random?
Maybe I forgot to lock that callback procedure in memory to prevent the GC from moving it around...

Arktronic said:
Interesting. Does that happen when there is another app that has frozen, or is it just random?
Maybe I forgot to lock that callback procedure in memory to prevent the GC from moving it around...
Click to expand...
Click to collapse
Seems that just some apps makes it freeze. I just noticed that an app written by me in c++ makes it freezing every time
If it is closed instead, arkswitch loads up normally.
I forgot:
It is not frozen. But it hosts a IE control in it if that could help.
btw I don't think is a GC problem...

I don't think an IE control would have such an effect. Is it a normal window, and does it have title text?

Arktronic said:
I don't think an IE control would have such an effect. Is it a normal window, and does it have title text?
Click to expand...
Click to collapse
I was searching a way to implement IE Control correctly due to netcf's scrolling bug with it. My exe is a modification of this one http://cid-e91b74403814953e.skydrive.live.com/self.aspx/BrowserWithGestures/BrowserWithGestures.zip which I'm using as support to my main app...

I'll look at that when I get a chance. Thanks again!

Arktronic said:
I'll look at that when I get a chance. Thanks again!
Click to expand...
Click to collapse
I'm going to look again on that piece of your code instead, maybe I will figure it out because it freezes.

I think i found the answer:
Internally, GetWindowText calls SendMessage(hWnd, WM_GETTEXT) to the window.
Since the thread calling GetWindowText (your thread) and the thread that
owns the window are different threads, the SendMessage
internally becomes a PostMessage, which sticks the message in the owning
thread's message queue and blocks until the message is processed by the
owner thread. You are now at the mercy of the owner thread to process that
message. If that thread isn't running a message pump, you're stuck.
Click to expand...
Click to collapse
you should use
SendMessageTimeout(hWnd, WM_GETTEXT, ..., 1000L,...). You'll be blocked for
1 second tops. You can of course send in a longer delay, but 1 second
should be sufficient.
Click to expand...
Click to collapse
Let's fix it
I'll post fixed source as soon as I end.

Wow, great find! I'll change it as soon as I can. This explains why other apps freezing causes ArkSwitch itself to freeze.
EDIT: Oh, if you're going to change it yourself, that works too

Fixed. It doesn't freeze anymore.
I'm doing some other checks, then I'll post corrected source code

w00t! You are awesome

Arktronic said:
w00t! You are awesome
Click to expand...
Click to collapse
I read on codeplex "Removed global memory status information retrieval as a test..."
Why you did so?
Where I need to touch to re enable it?
PS. Thanks, i just like to help

I did it as I was testing various things with Long Zheng to determine why ArkSwitch crashed on his HD2. We seemed to get somewhere with the removal of that, but then it started crashing again. I suggest you just go with change set 44738, as that has the latest stuff in it, except for the unnecessary removal of global memory info.

Arktronic said:
I did it as I was testing various things with Long Zheng to determine why ArkSwitch crashed on his HD2. We seemed to get somewhere with the removal of that, but then it started crashing again. I suggest you just go with change set 44738, as that has the latest stuff in it, except for the unnecessary removal of global memory info.
Click to expand...
Click to collapse
Ok.
Do you know how to detect sliding the finger on listview? I would add a process view which opens on sliding finger from right to left but there is not any mousedown/up event...

Related

[UTIL] BGSwitchPPC

Hi All,
This is my first ever smartphone app, but it's based on a full-fledged windows app of mine that I've been using for a few years now.
Basically, I like to change my desktop background alot, each time I log on in fact. So i wanted something similar for my phone. Also, I wanted a way of having an appropriately dimensioned image for when the keypad was open/closed.
So I've created this little app for my X1.
What it does is choose a random image from a preset directory (different directory for portrait/landscape images - to allow for correct dimensions - can be the same dir if you're not fussed) and sticks it in as your background image.
Current Features
Random Background Selection
Supports any resolution device
Different Image For Portrait/Landscape mode
Supports Different Directories To Select Portrait/Landscape Iamge From
Preview Backgrounds In The Config Util
Scheduling Support
New Background After Hard Reset Option
Current wishlist
Automatic image resizing/scaling etc
New Background After Suspend
current known bugs
Sometimes unable to delete original theme images - so this still needs to be done manually after each theme change (remove any stwater* files from Windows directory) Might have fixed this. Not sure, couldn't replicate the problem a second time, but there have been appropriate code changes.
In theory if you left the app open for long enough on the appropriate messagebox just before you exit, you could miss your Switch schedule and have to reset it. Highly unlikely anyone will come across this one though!
Hard Reset upodate seems buggy - but could just be my phone taking a while to load up!
Occasionally goes completely wrong on hard reset.
View attachment BGSwitchPPC.zip V0.4
Installation notes:
Copy it somewhere, anywhere, on your Xperia X1 (or other WinMo device)
Run the exe
Please download it and have a play. Any/All feedbacks, criticism and requests more than welcome.
hey graymi really like this app, works exactly how u said it would no problems here, cant wait for you to add scheduling and now i dont always have to switch themes
Sounds good, does it change the wall paper for all tabs?
it changes the phone wallpaper, i dont think it will change the manila wallpapers but i dont have a manila rom to test it on
illmurs said:
Sounds good, does it change the wall paper for all tabs?
Click to expand...
Click to collapse
tabs? Like the xperia button thing I never use? Thought you couldn't change the BG on most of those?
afaik, becuase of the way it works, it'll only change the wallpaper for the today screen. but it'll do it for both screen orientations. (Different if wanted)
good to see some people getting use of this though! Gives me drive to actually put the scheduling in!
pablo34 said:
cant wait for you to add scheduling
Click to expand...
Click to collapse
Scheduling has been added
I've edited top post with new version.
Thanks for the appreciation
scheduling works perfectly thanx for the great app
Glad you like it
hopefully i'll have a chance to work on some more features soon.
i have an idea, made you can find a way to create a way to have it switch wallpapers everytime the phone boots, thats would be a great feature
Consider it done
- Updated version available
that was fast, it works perfectly thank you once again
nothing like a bit of 2am VB hacking
I keep getting "An unexpected error has occurred in BGSwitchPPC.exe" error message.
Details:
Code:
BGSwitchPPC.exe
IndexOutOfRangeException
at BGSwitchPPC.frmMain.LoadImages()
at BGSwitchPPC.frmMain.frmMain_Load()
at System.Windows.Forms.Form.OnLoad()
at System.Windows.Forms.Form._SetVisibleNotify()
at System.Windows.Forms.Control.set_Visible()
at System.Windows.Forms.Form.ShowDialog()
at BGSwitchPPC.SharedSubs.main
interesting...
I think it's because you don't have any stwater images in your windows directory, maybe.
don't have the source code to hand right now, but I'll try and sort it out tomorrow if I get a chance.
This will be sorted!
Is it work on manila ? TF3d ?
woh, exactly what I was looking for :O thanks man, good work. Windows 7 wiie
xicloe said:
Is it work on manila ? TF3d ?
Click to expand...
Click to collapse
honestly, I don't know.
It works by changing the image files used by the today screen, so unless these apps pick up and use the today screen bg, I'd doubt it.
It might be in future I modify the app to do this, but as I use neither program, especially since the win 6.5 today screen, it won't be for a while.
-didn't get a chance to fix above error yesterday. Well, I did have a chance, but I also had the chance to finish Tales of Monkey Island...
Graymi said:
honestly, I don't know.
It works by changing the image files used by the today screen, so unless these apps pick up and use the today screen bg, I'd doubt it.
It might be in future I modify the app to do this, but as I use neither program, especially since the win 6.5 today screen, it won't be for a while.
-didn't get a chance to fix above error yesterday. Well, I did have a chance, but I also had the chance to finish Tales of Monkey Island...
Click to expand...
Click to collapse
heyhey! apparently, i have developed some kind of mod for tf3d to change wallpapers automatically or via touch!
feel free to take a look at it!
http://forum.xda-developers.com/showthread.php?t=541462
not working for me
when I run exe and press "Select Dir..." independent whether I choose Portrait or Landscape an exception is thrown:
unexpected error...
Details: ...DirectoryNotFoundException at ...InternalGetFileDirectoryNames/GetDirectories/RecurseNodes/frmDirPicker_Load/... and a few others
same when I "Pick" one (Portrait or Landscape) or try to "Switch", after "Switch" I even had to soft reset as every attempt to start the app immediately resulted in an error
could that be manila related? I'm on 2.5.19222911.0
Wow, that's quite an error!
I'll code in a catch to stop that happening, plus fix the other error above

Im a developer, I know some basics. Give me ideas.

As the title says, Im a developer but I dont know anything majorly complicated.
I want YOUR ideas for something to make.
Stuff I know:
Things to do with the file system - copy, paste, delete, create etc
Read/write/create text files
Simple or even more complex UIs (nothing too extreme though)
most of the basic stuff
Heres a video of stuff Ive done before:
http://www.youtube.com/watch?v=g3_5xBqf-eQ
If you have any idea for simple apps, please let me know and Ill tell you if I can make them or not
Thanks
Maybe a new app to replace and improve SmileySMS ( development is stopped, and on windows mobile we can't have smileys in sms without this buggy app).
I wish a prog for my HD2, very simple : Use Webradio (with url) as ringtone !
Hi Cris,
I am looking for an app that can do the following:
Disable the touchscreen.
Why?
It's annoying when you watch movies and accidentaly touch the screen (especially with core player).
The app would have to disable the touchscreen after a set time, so you have enough to start the movie (or other application).
A certain area of the screen would have to be defined as touchable, so that you can disable again. Maybe with a gesture? ie. swipe from bottom left hand corner to top right???
just an idea
idea
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
antdawg702 said:
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
Click to expand...
Click to collapse
you know what, im gonna look into this one.
I cant promise anything.
I cant say I have any idea how to do that.
but I can say that im gonna look into it ^_^
wm7
can you make a windosmobile7series for nontouchscreen windowsmobile.need help with it.its just navigaating threw it with the arrow keys
Hi Cris,
Can I suggest a application that can do 2 things which I can't find something similar to this (suggestion).
To create a application for both "Shopping List" + "Inventory".
Let me know if you interested, I can share the idea ..
Hope you can consider it .. thanks
antdawg702 said:
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
Click to expand...
Click to collapse
do you have a screenshot?
how about an application like e-mail and walk for the iphone..........so that wed be able to type and walk at the same time with the background being whats in front of us fed by our camera....
I would like a app that does the following:
All for the Sense music tab!
When NOT in a call:
Long press : Play / pause
Pressed twice : Next song
(If possible:
Pressed three times: previous song
pressed shot : call)
When you are being called:
short press: pickup / hangup
PLUS
The hardware buttons (buttons on the PHONE) MUST be disabled,
But ONLY when the headset is plugged in!
With no headset plugged in everything should be as normal!
Could some developer please make this?
Maybe you can use code from the following:
http://forum.xda-developers.com/showthread.php?t=502881
http://forum.xda-developers.com/showthread.php?t=556801
Great Greet Giblet
I've actually been pitching this one around but no luck yet ... A small GPS toggle cmd app. Here's an OSS project that may have usefull code.
What I would like it to have is:
1- Commands to toggle GPS on or off
2- Stay running and output number of connected satellites and connection status (position fixed/not fixed) as a reg name/value
3- Maybe other stuff (like coordinates, hour/date, update system time... but what I really want is the first point 1 and 2).
Why would I want such an app? To add a GPS connection manager to my today screen HS++ skin (also maybe make a script that will only launch my device navigation software when it has a position fix).
PS:
Other stuff I'd like to see are either other small cmd apps or small updates/fixes of some OSS apps like GSFinder+ or even emulators (small stuff like adding onscreen controls using existing sources, emulate mutli touch or improving controls by mixing the use of oncreen keys with hw ones or minor GUI standardization and fixes related with new devices screen resolution).
cris_rowlands said:
As the title says, Im a developer but I dont know anything majorly complicated.
I want YOUR ideas for something to make.
Stuff I know:
Things to do with the file system - copy, paste, delete, create etc
Read/write/create text files
Simple or even more complex UIs (nothing too extreme though)
most of the basic stuff
Heres a video of stuff Ive done before:
http://www.youtube.com/watch?v=g3_5xBqf-eQ
If you have any idea for simple apps, please let me know and Ill tell you if I can make them or not
Thanks
Click to expand...
Click to collapse
OK here is an idea for a simple but useful application please would you consider making this
http://forum.xda-developers.com/showpost.php?p=5711236&postcount=1
Slide2Action
Hi cris, How about a simple slide to do anything? Just a scrollable list of blank sliders that you can assign a function too, eg launch an app, blank screen, reset, close all, new message, WiFi, bluetooth etc. the list could be endless. Just a scrollable action screen with sliders instead of buttons. Transparency would be a bonus for a nice visual.
well folks, youve given me plenty of ideas.
A few of them ill try to work on, sadly many of your ideas are a little beyond me
Anyway, Ive got some stuff to be doing so I wont be checking out this thread anymore.
If any developers feel they want to take up any of these, please feel free ^_^
zinconnu said:
Maybe a new app to replace and improve SmileySMS ( development is stopped, and on windows mobile we can't have smileys in sms without this buggy app).
Click to expand...
Click to collapse
I was going to make this same suggestion. I hope somebody with the skills stumbles upon this and can continue the development for this.
cris_rowlands said:
well folks, youve given me plenty of ideas.
A few of them ill try to work on, sadly many of your ideas are a little beyond me
Anyway, Ive got some stuff to be doing so I wont be checking out this thread anymore.
If any developers feel they want to take up any of these, please feel free ^_^
Click to expand...
Click to collapse
Hi Cris,
if you can consider my suggestion to develop a "shopping List" + "Inventory" apps I think is not that difficult to develop. It almost similar to like any shopping list app & you be able to keep track of the inventory list maybe with photo or pic is good enough.
pls do consider this apps, as both iPhone & WinMo still do not have such app yet. If you do build up, you will be the 1st to come out with.
Lockscreen Slider
Please try to do a Lockscreen Slider for WM 6.5
http://forum.xda-developers.com/showthread.php?t=638230
Thanks
salo1 said:
Please try to do a Lockscreen Slider for WM 6.5
http://forum.xda-developers.com/showthread.php?t=638230
Thanks
Click to expand...
Click to collapse
yes let's steal some more apple patents!!! The idea is great! Few months ago I already asked this topic in the S2U thread but no response, probably my request got overseen or the guy is just too busy with other stuff.

AppFinder on Windows Phone 7

Check out my free app in the Marketplace: AppFinder
AppFinder is the fastest way to find apps by name bar none.
Start typing the name of an app or publisher, and the search results are shown instantly.
tap one of the results to go to the marketplace page for the app.
Check it out and let me know what you think
Been using it last couple days, its a big help! Thanks!!!
I'll check it out thanks!
Thank you - it's very fast like the marketplace search should be. Good for quick looking apps if you know the name.
Are there any improvements coming? Like the Top Downloads or anything else?
appfinder feedback
thanks for the feedback - I'm on it
Great app, thanks!
BTW I can't find HTC Hub...
I think you need an HTC device for that sorry buddy
zukŠ° said:
I think you need an HTC device for that sorry buddy
Click to expand...
Click to collapse
Yeah but some guys were able to find it...
AppFinder
Ok, v1.1 has been submitted to the app marketplace and is ready for testing - should show up in the marketplace as an update within a few days
ebadger said:
Ok, v1.1 has been submitted to the app marketplace and is ready for testing - should show up in the marketplace as an update within a few days
Click to expand...
Click to collapse
does this fix the crash where it closed and wouldn't reopen for me (even after soft reset)?
I had to uninstall, reinstall to get it working again.
I don't think so.
Although I think I know the cause. I will have to roll the fix into another update.
I think there is a small window where the downloaded data file can be corrupted if the writing to flash is interrupted. It will be simple to fix. For now, if you hit it, uninstall reinstall is the only option.
nice find. but did you know while in maketplace you can use the search button to find apps as well?
jimecm said:
nice find. but did you know while in maketplace you can use the search button to find apps as well?
Click to expand...
Click to collapse
Of course I do
AppFinder is all about making apps discoverable in the fastest way possible.
I think if you're not in the top 20 apps in the marketplace under any one of the categories, then as a developer you're invisible. AppFinder seeks to make it easier to find apps via search, and with the update, via browsing as well.
Update is in the hopper, still waiting for testing to complete...
jimecm said:
nice find. but did you know while in maketplace you can use the search button to find apps as well?
Click to expand...
Click to collapse
the annoying thing is that it searches music and video as well. i can't just search for apps alone
locales
Ok, so I just figured out I've only been indexing the en-US locale
I've updated the data to include
{ "en-US", "en-GB", "en-IE", "en-CA", "en-IN", "en-AU", "en-HK", "en-SG", "de-DE", "fr-FR", "fr-BE", "de-AT", "de-CH", "it-IT", "en-NZ", "es-ES", "es-MX" };
this change is effective immediately as it is a data update. Still waiting for the update to make it through the approval process. It seems that the holiday has slowed things down a bit
The update finally arrived
Nice new features and still very fast. But unfortunately, in my case, it wont load after the second app start (even at first start if I switch the section). I always have to deinstall/reinstall again once the app was started.
Maybe you can take a look? Feels like a caching problem or something like that. I'm using a Samsung Omnia 7 in germany - if that helps
Feature wishlist:
1. add a settings screen to edit:
a.) the number of list entries on one page (10, 20, 50) to keep the app fast enough
b.) the section on loading (and maybe you also can set this to no section just for fast look-up app search - I used the app for this before the update)
2. Maybe you can use the OS-typical "left-to-right-scrolling-loading-dots" instead of the big ones?
3. New logo if there is enough time
PrivateJoker said:
The update finally arrived
Nice new features and still very fast. But unfortunately, in my case, it wont load after the second app start (even at first start if I switch the section). I always have to deinstall/reinstall again once the app was started.
Maybe you can take a look? Feels like a caching problem or something like that. I'm using a Samsung Omnia 7 in germany - if that helps
Feature wishlist:
1. add a settings screen to edit:
a.) the number of list entries on one page (10, 20, 50) to keep the app fast enough
b.) the section on loading (and maybe you also can set this to no section just for fast look-up app search - I used the app for this before the update)
2. Maybe you can use the OS-typical "left-to-right-scrolling-loading-dots" instead of the big ones?
3. New logo if there is enough time
Click to expand...
Click to collapse
Private Joker,
Thanks for the feedback.
First - there was a bug that only impacted the German locale! I was trying to save bandwidth by truncating unnecessary leading zeros in the price and this caused an exception when the locale was set to German. I've updated the data to include the leading zeros and this fixes the problem for Germans. You will have to uninstall and reinstall though to get it to work. I am very sorry for the inconvenience, and I really appreciate you taking the time to give me your feedback even though the app was not working for you at all. I hope you will try again given that the data has been fixed.
Regarding your feedback -
I think you are right on the mark for #2 and #3
I don't understand 2b.
regarding 1a.
perf should not be impacted by the number of items that are shown -
Appfinder actually transfers the marketplace data to the device and indexes it locally. I do this because the network is really, really slow. Aside from having artists and albums mixed up with apps in the marketplace search results, I also was tired of waiting for results to load. Scrolling through the apps means waiting.
The delay at the beginning is caused by reading the marketplace data from flash and indexing it in RAM. Occasionally the loading dots will appear after launching (like the first time that you use it) because AppFinder has transfered a new data file and needs to parse it again. Instead of delaying every 10 or so apps in the list, there is one delay at the beginning (which is relatively small). Right now parsing the file takes about 4 seconds.
Perf could be greatly improve if I had access to memory mapped file APIs. Further compressing the data would help as well - The really slowest part is really reading from the flash. I can improve perf when a network update occurs by reading from the flash in the background before blocking - this would drop the update delay from ~4 seconds to ~1 second.
I could also not query as you're typing -- Waiting until the enter button has been pressed would reduce CPU load and any chunkiness - pressing search would just render the apps instantly.
Anyway, really appreciate your positive attitude and willingness to give feedback in light of what must be a frustrating experience. Please give it another try.
Thanks,
Eric

Resumable XAPs: All the details, plus a nice tool

Hello again
I figured out a quick little change in the WMAppManifest.xml file that allows you to make your XAPs resume, rather than restart, when clicked on from the start menu.
Here's a demonstration:
So here's how it works:
In every WMAppManifest.xml file, located inside the XAPs, there's a line called "DefaultTask". In the Visual Studio IDE, there's little you can do with this line, but if you edit it post-compiling, you can actually do a lot of things. In this case, adding the term ActivationPolicy="Resume" to your DefaultTask will make the application resume the task, rather than replace it (default action). Here's an example:
Original:
Code:
<DefaultTask Name="_default" NavigationPage="PivotPage.xaml" />
Resumable:
Code:
<DefaultTask Name="_default" NavigationPage="PivotPage.xaml" ActivationPolicy="Resume"/>
This follows the same rules as the back button resuming, for example, if my dehydration hack is enabled, the code will resume instantly, and otherwise, it will resume with the usual "resuming..." message. It'll make sense
Should be fairly easy for you guys to figure out, and hopefully we'll see some developers integrate this directly into their code
For the end users, though, I've created a simple tool that does this patch for them, then deploys. Info and download over on my website:
http://windowsphonehacker.com/resumablexap
I'd say more, but I'm in a bit of a hurry. Let me know what you guys think, if you have any questions, etc.
Your friend,
Jaxbot
Awesome. Imma try this in a bit with some .xap files I got stored somewhere... jejeje
Sent from my []D[][]V[][]D ARRIVE using Board Express
thanks for this app
really nice find
Cool hack thanks again
I have been experimenting with some xaps with this.
I found some quirky apps:
- Facebook (u already know)
- IMDB
- NU.nl
- Daily motion (does not play the video anymore)
All others I tested seem to work fine. I did not test any games.
Its probably bad coding or not storing the back history or something.
Thanks for the tool. It helps with productivity.
I btw notice more quirky behaviour with the dehydrate on (I could be mistaken)... how is your batterylife Jaxbot? Is it fine with normal use? Or do we have to be sure to close the apps etc?
Are the apps stored in ram temporarily?
Does it affect general performances if you have 4/5 apps in "soft sleep" ?
Sakem said:
Are the apps stored in ram temporarily?
Does it affect general performances if you have 4/5 apps in "soft sleep" ?
Click to expand...
Click to collapse
If you have my dehydration hack enabled, yes, they're in the RAM.
In my experience, no, the performance isn't really affected (there's a reason for that), and as an example, I've had Twitter open for the last few days and I've seen no negative impacts.
So its an updated version of this one:http://forum.xda-developers.com/showthread.php?t=999475
FPM
FlowerPotmen said:
So its an updated version of this one:http://forum.xda-developers.com/showthread.php?t=999475
FPM
Click to expand...
Click to collapse
Not really. That dehydration hack allowed applications to stay open in the background. This method allows applications to be resumed from that state, directly from the start menu.
Eg, the instant resuming allowed Twitter to be instantly resumed when the lock screen popped up, or when you dive into messages and then click Back.
This allows Twitter to be navigated from, and then returned to, say, a day later, and it will still be where you left it. Nifty, I thought.
Does this new hack improve IM+ functionality? Will the app still have to reconnect with this hack? If so is this related to the lack of sockets in NoDo?
blindpet said:
Does this new hack improve IM+ functionality? Will the app still have to reconnect with this hack? If so is this related to the lack of sockets in NoDo?
Click to expand...
Click to collapse
It has to reconnect yes. This is the way IM+ is coded. However the contacts will still be displayed on the screen so its less annoying for sure.
It will look the same as opening IM+ then exit by pressing windows button, than click back, the exact same effect... only now you will have the same if you press a live tile
Thanks for the quick reply, guess I'll have to wait for Mango for true messaging functionality despite all the hard work of devs.
blindpet said:
Thanks for the quick reply, guess I'll have to wait for Mango for true messaging functionality despite all the hard work of devs.
Click to expand...
Click to collapse
If you use native sockets, you can get around this, but it means you'll have to code your own IM client, which is no fun.
if do this to all of your xap and dehydration hack.
it look like u have real multitask.
parnunu said:
if do this to all of your xap and dehydration hack.
it look like u have real multitask.
Click to expand...
Click to collapse
Indeed yes... Unfortunately in some cases it screws up the order of the backbutton press and you will not be able to "escape" from apps or go back to the main Menu. IMDB, FB, some others as well will have to be recoded in order to work with this hack
posted on wmpu
awesome job jaxbot per usual! cheers!
domineus said:
posted on wmpu
awesome job jaxbot per usual! cheers!
Click to expand...
Click to collapse
Thanks for the post (saw it a second ago), but you need to update it:
This is for *current* Windows Phone builds, not Mango. Mango already has this feature built in.
Eg, if you have a developer unlocked device, you can use this on NoDo, pre-NoDo, RTM, etc. You don't need Mango.
Jaxbot said:
Thanks for the post (saw it a second ago), but you need to update it:
This is for *current* Windows Phone builds, not Mango. Mango already has this feature built in.
Eg, if you have a developer unlocked device, you can use this on NoDo, pre-NoDo, RTM, etc. You don't need Mango.
Click to expand...
Click to collapse
I said that in the article too
domineus said:
I said that in the article too
Click to expand...
Click to collapse
Yes, but this has nothing to do with Mango. In fact, it probably wouldn't even work on Mango.
Regardless, I do appreciate the mention
Jaxbot said:
Yes, but this has nothing to do with Mango. In fact, it probably wouldn't even work on Mango.
Regardless, I do appreciate the mention
Click to expand...
Click to collapse
and I'm sorry too
I've been trying to amend it and it won't amend
However I did note in the comment it works on all devices
I sincerely apologize for the mixup darn thing didn't save at all ><
wordpress fail sorry man
domineus said:
and I'm sorry too
I've been trying to amend it and it won't amend
However I did note in the comment it works on all devices
I sincerely apologize for the mixup darn thing didn't save at all ><
wordpress fail sorry man
Click to expand...
Click to collapse
No worries, I know the drill Just wanted to make sure you knew, wouldn't want trolls getting on ya
Good luck man, and again, thanks for the mention
~Jaxbot

I Pay you $150 USD if you..

First, let me explain my frustation:
I just cant deal the idea that MS screwed WP7 so badly when it comes about multitask. I cant have a decent chat with my friends in WhatsApp because when I leave the app and someone talk to me, I cant touch the Toast Notification because it will take about 5 seconds to reload the whole app. However, I could "just" hold back button and select the app with a choppy image in the card view to instant resume (which will take me 3~5 seconds too).
So, Microsoft hates multitask or what?
What I want: a hack, a registry edit that makes opening a Toast Notification or a Tile to resume the instance and bring me the app instantly.
If you can make this really works, I pay you $150 USD. And I mean it.
mikeeam said:
First, let me explain my frustation:
I just cant deal the idea that MS screwed WP7 so badly when it comes about multitask. I cant have a decent chat with my friends in WhatsApp because when I leave the app and someone talk to me, I cant touch the Toast Notification because it will take about 5 seconds to reload the whole app. However, I could "just" hold back button and select the app with a choppy image in the card view to instant resume (which will take me 3~5 seconds too).
So, Microsoft hates multitask or what?
What I want: a hack, a registry edit that makes opening a Toast Notification or a Tile to resume the instance and bring me the app instantly.
If you can make this really works, I pay you $150 USD. And I mean it.
Click to expand...
Click to collapse
Thanks. You can send it over to me via Paypal.
No seriously. If you are interop unlocked just disable Dehydration with any registry Editor! It sits over at HKLM\Software\Microsoft\TaskHost\DehydrateOnPause. If you set that to 0, its faster with switching
It dont work when you open the app using the notification or tiles.. just using back button too.
Microsoft hasn't done anything to multitasking, just wait for WhatsApp to release a mango update that can handle the multitasking. I don't know if you noticed, but WhatsApp is lacking a ton of features. The developers just wanted to push out a release, they will fix it eventually. You must be patient.
Diablosblizz said:
Microsoft hasn't done anything to multitasking, just wait for WhatsApp to release a mango update that can handle the multitasking. I don't know if you noticed, but WhatsApp is lacking a ton of features. The developers just wanted to push out a release, they will fix it eventually. You must be patient.
Click to expand...
Click to collapse
Actually, WhatsApp is mango compatible. So are Wonder Reader, and many others. Every app has this problem. Gchat, Evernote and others.
At first I thought it was developer's choice. But it is the system.
The reason for this is quite simple:
A Toast has a deep link to the app, and therefore starts a new instance of the app.
I guess they didn't think about it, that this would be a problem. Or possible there are some issues in how developers had to change their apps.
So, sorry, I don't think you can change this at the moment (easily).
As a side note: AFAIK each app can specify to NOT launch a new instance when it is started and is already running. Though I think that is an option that is not allowed for custom apps. But I'm not sure about that and if so, maybe it will change some day...
Hades32 said:
The reason for this is quite simple:
A Toast has a deep link to the app, and therefore starts a new instance of the app.
I guess they didn't think about it, that this would be a problem. Or possible there are some issues in how developers had to change their apps.
So, sorry, I don't think you can change this at the moment (easily).
As a side note: AFAIK each app can specify to NOT launch a new instance when it is started and is already running. Though I think that is an option that is not allowed for custom apps. But I'm not sure about that and if so, maybe it will change some day...
Click to expand...
Click to collapse
Ok, but why not resume when opening through tiles? And deep link is optional. So reload when it's deep link and resume when its not. Makes sense, I guess.
Either way, I want it to resume whenever I open the app.
Hope someone can find a solution to this problem.
mikeeam said:
Actually, WhatsApp is mango compatible. So are Wonder Reader, and many others. Every app has this problem. Gchat, Evernote and others.
At first I thought it was developer's choice. But it is the system.
Click to expand...
Click to collapse
I think I understand what you are talking about, once you click to open the application through a tile it reloads the application? To me, that makes sense. Quite frankly, I believe the iPhone behaves this way as well. You're telling the system to reload the application, so I guess if you look at it this way it could be considered a design flaw. However, I feel that this is how it should work.
I don't mean to troll or anything, but here's how I see it: If I go off and do something else on my phone and then hours later return to the application, I don't want that application to be stored into memory for hours on end, that will kill the battery.
I do agree with you entirely that toasts should resume the application, not reload it like you've stated. However, I haven't run into this issue so for me it doesn't bother me. It could be possible that it gets patched in the next update. Perhaps add a suggestion to the WP7 suggestion board.
Diablosblizz said:
I think I understand what you are talking about, once you click to open the application through a tile it reloads the application? To me, that makes sense. Quite frankly, I believe the iPhone behaves this way as well. You're telling the system to reload the application, so I guess if you look at it this way it could be considered a design flaw. However, I feel that this is how it should work.
I don't mean to troll or anything, but here's how I see it: If I go off and do something else on my phone and then hours later return to the application, I don't want that application to be stored into memory for hours on end, that will kill the battery.
I do agree with you entirely that toasts should resume the application, not reload it like you've stated. However, I haven't run into this issue so for me it doesn't bother me. It could be possible that it gets patched in the next update. Perhaps add a suggestion to the WP7 suggestion board.
Click to expand...
Click to collapse
The problem is, the next update should happen 5~6 months from now. If they change it, wouldnt be in a minor patch.
I understand your point, but hey, not hours after, maybe it could have a time limit to stay on memory. Like.. 30 minutes without using it, the OS kills the app. The only thing the OS is killing right now is me.
Not that I want one iPhone, but since you mentioned, iPhone resumes the app. Doesnt matter if you use the fast switch or the app icon to launch it. It just kill the app when you close it on fast switch menu.
This is the biggest issue by far in Windows Phone! The multitasking is extremely confusing.
I tried to explain it here: http://windowsphone.uservoice.com/f...285744-change-or-fix-the-back-button-concept-
but couldn't explain it really well.
Please, someone make a detailed suggestion of this on Windows Phone Uservoice (http://windowsphone.uservoice.com/forums/101801-feature-suggestions) !
You will get 3 votes from me.
I wonder if Resumable XAP works for this application...
http://forum.xda-developers.com/showthread.php?t=1136330
singularityduo said:
This is the biggest issue by far in Windows Phone! The multitasking is extremely confusing.
I tried to explain it here: http://windowsphone.uservoice.com/f...285744-change-or-fix-the-back-button-concept-
but couldn't explain it really well.
Please, someone make a detailed suggestion of this on Windows Phone Uservoice (http://windowsphone.uservoice.com/forums/101801-feature-suggestions) !
You will get 3 votes from me.
Click to expand...
Click to collapse
It's not confusing. I understand it very well. It just works when you use the back button. If you dont use it, so you are reopening the app (when it is about third party apps).
Lumic said:
I wonder if Resumable XAP works for this application...
http://forum.xda-developers.com/showthread.php?t=1136330
Click to expand...
Click to collapse
It didnt work for me.
Diablosblizz said:
I don't mean to troll or anything, but here's how I see it: If I go off and do something else on my phone and then hours later return to the application, I don't want that application to be stored into memory for hours on end, that will kill the battery.
Click to expand...
Click to collapse
But it doesn't kill your battery. Having the app in memory uses no more battery that not having it there. Also, the app IS stored in memory for all those hours on end as long as it's within the 5-app count.
WP does NOT do third-party multitasking, it does fast-app-switching. This means the app cannot perform any work in the background, hence it's not using any more battery.
I actually agree with the OP - if the app is already loaded it should be resumed. The OS is fully capable of doing so, they've [MS] just decided to not offer it to third-party devs.
emigrating said:
I actually agree with the OP - if the app is already loaded it should be resumed. The OS is fully capable of doing so, they've [MS] just decided to not offer it to third-party devs.
Click to expand...
Click to collapse
Yeap, and why not implement? I mean.. what damages would it do? The system would be faster, without lots of loadings.
The titlet of the topic remain. I still pay for someone fix this dumb decision from MS.
emigrating said:
WP does NOT do third-party multitasking, it does fast-app-switching.
Click to expand...
Click to collapse
This.
Probably the most disappointing thing about Mango.
The only phone that does true multitasking is the Nokia N900 and N9. Everything runs in the background just like a PC.
But there is no Whatsapp or anything similar. N9 only has Skype, Facebook Chat, Gtalk and SIP for chatting so far. (N900 has more but still no Whatsapp)
I also got really annoyed with my Omnia 7 and Whatsapp. It takes too long to load everytime.
I think Kik was a little better however. So I've been using Kik instead. (it's better of the 2 on WP7 so far)
Originally Posted by Lumic
I wonder if Resumable XAP works for this application...
http://forum.xda-developers.com/show....php?t=1136330
It didnt work for me.
Click to expand...
Click to collapse
That was what I talked about earlier. Somewhat surprising that it doesn't work. But then I guess it is really not possible. As this is a quite fundamental change this means you probably have to wait until Tango or Apollo. Sorry.
jakiman said:
The only phone that does true multitasking is the Nokia N900 and N9. Everything runs in the background just like a PC.
But there is no Whatsapp or anything similar. N9 only has Skype, Facebook Chat, Gtalk and SIP for chatting so far. (N900 has more but still no Whatsapp)
Click to expand...
Click to collapse
It might be true but win 6.5 was true multitasking before Ihonne,N900...Try an HD2 and see for yourself...true task manager also...
I recently helped a friend to flash back to stock his HD2, I wonder how come for a pair on new shoes Microsoft had to learn how to walk again, ups I meant they are learning how to stand up-walking later, it seems...
You could try this;
Resumable XAP Tool v0.1 Release
I would think you could take that method to edit an already installed app to do it. With a file explorer, browse to the installation directory & find the file, "WMAppManifest.xml." Copy it out to your PC & edit it. Find the line, "<DefaultTask Name="_default" NavigationPage="PivotPage.xaml" />" & add "ActivationPolicy="Resume"" to it so it looks like this, "<DefaultTask Name="_default" NavigationPage="PivotPage.xaml" ActivationPolicy="Resume"/>." Now copy it back into the installation folder of your device & reboot. See if that works.
drkfngthdragnlrd said:
You could try this;
Resumable XAP Tool v0.1 Release
I would think you could take that method to edit an already installed app to do it. With a file explorer, browse to the installation directory & find the file, "WMAppManifest.xml." Copy it out to your PC & edit it. Find the line, "<DefaultTask Name="_default" NavigationPage="PivotPage.xaml" />" & add "ActivationPolicy="Resume"" to it so it looks like this, "<DefaultTask Name="_default" NavigationPage="PivotPage.xaml" ActivationPolicy="Resume"/>." Now copy it back into the installation folder of your device & reboot. See if that works.
Click to expand...
Click to collapse
No lucky here. Frustating.

Categories

Resources