Resumable XAPs: All the details, plus a nice tool - Windows Phone 7 Development and Hacking

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

Related

Remove limit of 10 unsigned app

I've finally reach 10 unsigned app on my phone. Took way longer that I thought...
This is not new for anyone who's not spending time asking for unlock key, but I've made a small app to automate the process of pushing the limit to 100000.
Here it is: http://bit.ly/qpVyR4
Work on my HTC, may work on other device as well (let me know).
Warning: At least one person had problem deploying app on his Samsung after running this app.
Edit: Updated version with rollback button (which already exists but was hidden )
this has been out for like a month now..... but good job of creating one!
http://forum.xda-developers.com/showthread.php?t=875885
Exactly what I said... nothing new but packaged as a XAP
Advanced Configuration Tool for WP7 Beta
http://forum.touchxperience.com/viewtopic.php?f=11&t=590&p=2349
has an option to remove the limit, plus set as many colour schemes as you like, and add single registry keys directly.
Its still beta but works a treat so far on my HD2, and comes with about 50 colours for the theme, or input your own with hex codes.
This tools works only on HTC. Minne should work on Samsung too, maybe on LG.
But if you have an HTC, AdvConfig is probably easier to use.
I'm not spending much time making pretty app
I ran this earlier (along with setting the key manually before), and it doesn't work. I still was limited to 10 apps.
But now, frighteningly, I'm unable to deploy -some- apps from Visual Studio (limit reached). I have a real dev unlock, never messed with Chevron.
Thanks, (nico)! I've removed this (stupid!) limit on my Focus (officially unlocked), everything works fine including deployment/debug from VS 2010. Good job!
davux said:
I ran this earlier (along with setting the key manually before), and it doesn't work. I still was limited to 10 apps.
But now, frighteningly, I'm unable to deploy -some- apps from Visual Studio (limit reached). I have a real dev unlock, never messed with Chevron.
Click to expand...
Click to collapse
I'm also officially unlock.
Like with folks with Chevron, I think the limit will be reseted periodically by Zune.
What do you mean by "some" apps?
You can't install more than 10 apps?
Not sure what do you mean, but I'll try to answer.
Using (official) unlock method, you won't be able to deploy more than 10 unsigned apps. 3 if you have a student account.
Chevron also have the same 10 limit (because they intentionally keep MS limit).
This registry tweak try to remove that limit.
In either way, this don't modify the number of app you can install though Marketplace, which is not limited.
(nico) said:
I'm also officially unlock.
Like with folks with Chevron, I think the limit will be reseted periodically by Zune.
What do you mean by "some" apps?
Click to expand...
Click to collapse
I set the key manually in the code Rusty released for the Samsung devices the other day. I wasn't able to deploy the 11th app via VS. I continued dealing with it until I got your XAP, I ran that yesterday and now sometimes I have trouble deploying in VS, even with <10 apps. Restarting VS and the phone doesn't have any effect.
Not that I'm blaming you or anything - just figured I'd note my experience. Some projects will still deploy, not sure of the pattern yet.
Thanks, that the kind of feedback I'm looking for. I'll add this to the first post to warn people.
If you have more infos, please share so we can have something more stable.
Thanks!
* Works on [Europe] Omnia 7
Ah this is the tool that some XDA user was trying to pass off as his own tool.
The big Athiest said:
Ah this is the tool that some XDA user was trying to pass off as his own tool.
Click to expand...
Click to collapse
What are you talking about?
(nico) said:
What are you talking about?
Click to expand...
Click to collapse
Look up the RRTool in this forum that I wrote, he is basically saying I rebranded the Chevron Tool as my own, even though my Tool runs on the device not from desktop and only prevents relocking, it doesnt actually unlock a device like chevron does. He only has 2 posts and tried to ruin my credability! Not Happy!
He is a lame troll. Don't pay attention. Thank you both guys! Great job!
P.S. Just a small remark: after using your tools (first I've tried (nico)'s tool, later (toady) RRTool. Both works good but behavior of VS 2010 a little bit changed. Now I can't deploy project via Zune - must close it first and use WPConnect.
Did you try to restore the original value (probably 10 for most users) and see what happends?
Nope, I didn't. Just have no time to browse for Samsung's registry editor or reflect back your's or lyriquidperfection app. Could you add an option to restore back an original values? Anyway, it's not a real problem. MS limitation of 10 app (or 3 for student account) it's just stupid and unfair. What, if I have more than 10(3) homebrew projects to debug and run? What, if I want to recreate all apps I need by myself? But of course the "MS greediness sux!" is not a topic for this thread
sensboston said:
Nope, I didn't. Just have no time to browse for Samsung's registry editor or reflect back your's or lyriquidperfection app. Could you add an option to restore back an original values? Anyway, it's not a real problem. MS limitation of 10 app (or 3 for student account) it's just stupid and unfair. What, if I have more than 10(3) homebrew projects to debug and run? What, if I want to recreate all apps I need by myself? But of course the "MS greediness sux!" is not a topic for this thread
Click to expand...
Click to collapse
Sorry I thought I did it but the button was hidden
Here is an updated version with a restore button to 10 apps: http://bit.ly/gKZDgj

Multitasking on wp7

Have a look at this
http://www.youtube.com/watch?v=jipqNtc_PPU&feature=player_embedded
Our own developer Jaxbot is up to his tricks again, and this time, it's paid off: Finder of a hack that brought instant resuming to Windows Phone 7, he has been developing a full fast app switching/multitasking solution for Windows Phone 7.
Shown in the video above, the preview of the application is triggered by pressing the half shutter button (pressing the camera button halfway, not to the point where the camera would launch), and allows the user to jump between desired applications. The applications run in the background to a degree, as shown with the timer, and no time is required to bring the applications back from their background state. It's all very technical, but rest assure that he will be sharing some more details in the future.
Keep in mind the application is a preview-the interface and how it functions may very well change before release, and no release date is available. But if you're interested in having it on your device, share some thoughts about how you think it should look, function, etc, in the comments below.
Without further ado, watch the video above for a demonstration of fast app switching on Windows Phone 7.
Click to expand...
Click to collapse
Source
Yeah, checked the article out yesterday. Hopefully he'll be releasing something to everyone soon. It's the one thing I'm dying without No third party alarms (as the one MS provides kind of blows) and all this resuming nonsense is becoming slightly annoying.
That looks pretty slick! Would love to see this one in the wild soon, now if I could only get Pandora I would be set.
kwill said:
Yeah, checked the article out yesterday. Hopefully he'll be releasing something to everyone soon. It's the one thing I'm dying without No third party alarms (as the one MS provides kind of blows) and all this resuming nonsense is becoming slightly annoying.
Click to expand...
Click to collapse
Its still work in progress, there are limitations... people work as hard as they can to overcome these limitations and make it work for all devices.
Currently I believe its not possible to automatically find the titles of the running apps, so they are manually added (hardcoded) however they can find the paths to the files... so the remaining thing is getting access to the files in these paths to extract the title and tile image.
However what you see really works, its real and should work with every app once this is accomplished.
Marvin_S said:
Its still work in progress, there are limitations... people work as hard as they can to overcome these limitations and make it work for all devices.
Currently I believe its not possible to automatically find the titles of the running apps, so they are manually added (hardcoded) however they can find the paths to the files... so the remaining thing is getting access to the files in these paths to extract the title and tile image.
However what you see really works, its real and should work with every app once this is accomplished.
Click to expand...
Click to collapse
Thanks a lot for the insight on the operation and the obstacles they have to overcome. I'll be monitoring for any progress or assistance I can provide. Although, I'm sure my non-expert help won't be of much help.
kwill said:
Thanks a lot for the insight on the operation and the obstacles they have to overcome. I'll be monitoring for any progress or assistance I can provide. Although, I'm sure my non-expert help won't be of much help.
Click to expand...
Click to collapse
you can monitor here: http://forum.xda-developers.com/showthread.php?t=1006331
and here: http://forum.xda-developers.com/showthread.php?t=1021135
btw I have nothing to do with the developments, I was just excited by the news and kept contact with Jaxbot who made this app/video with the code wrapper provided by fiinix
Looks great! I like the idea of a half shutter press. Very elegant solution.
Want that app!
Is this app on the video released?????? I can't find any link to download, although it was introduces about 2 years

After owning a WP7 more than a few months...

First month, I was constantly looking for apps or "things to prove the phone is awesome".
Second month, I only got the apps that provided me with consumption of media and information. Apps such as engadget, netflix, beezz, and many more.
Third month, I spend less than a minute per hour while still getting all the information I need. On android it would take me forever as well as the fact that many apps would crash or just not work.
I realized that it does everything I need a phone to do, and it does it without me having to worry about if the alarm won't work!
Also, I recently started developing apps in silverlight and xna. I think I just fell in love, developing for android was a pain in the ass compared to this.
I guess you already tried the beta of Mango? If not, you've to install it! It's stunning
experience7 said:
I guess you already tried the beta of Mango? If not, you've to install it! It's stunning
Click to expand...
Click to collapse
I don't have a dev account yet, and even if I did not sure I want to use Mango yet. I hear good things about it and I have played with the dev kit.
Best part of wp7 is the live tiles, when they work that is. Sometimes they don't update and I have to force them to update.
ryude said:
Also, I recently started developing apps in silverlight and xna. I think I just fell in love, developing for android was a pain in the ass compared to this.
Click to expand...
Click to collapse
Sorry to derail the thread here, but was it difficult changing/learning a different programming language? I'm starting school for computer science (even though I'm 30) and I was thinking about that this morning. Is it hard, for example, going from Java to Silverlight?
ahorriblemess said:
Sorry to derail the thread here, but was it difficult changing/learning a different programming language? I'm starting school for computer science (even though I'm 30) and I was thinking about that this morning. Is it hard, for example, going from Java to Silverlight?
Click to expand...
Click to collapse
Java is quite similar to C/C++/C#, you shouldn't have much trouble learning it.
ryude said:
Best part of wp7 is the live tiles, when they work that is. Sometimes they don't update and I have to force them to update.
Click to expand...
Click to collapse
How you force tiles to update? Still noob on wp...
Pikkuhannu said:
How you force tiles to update? Still noob on wp...
Click to expand...
Click to collapse
Long press the tile and unpin it. Then go into the app list and pin to start again. It will take a while to update, but most apps update the live tile once per hour.
I think the background service for live tiles is a little messed up right now, I'm hoping mango fixes it.
This is exactly how it was for me when I got my HD7. However, the only features I'm seriously missing are Bluetooth File Transfer and Tethering (I know you could enable tethering through hacking but it requires modifying the registry in every computer you want to tether with).
If you are deving for WP7 just go ahead and get a $99 account. Otherwise -there are ways (one of which is a very quick and simple batch file update) to get Mango on your phone and it's worth it.
CoLDxFiRE said:
This is exactly how it was for me when I got my HD7. However, the only features I'm seriously missing are Bluetooth File Transfer and Tethering (I know you could enable tethering through hacking but it requires modifying the registry in every computer you want to tether with).
Click to expand...
Click to collapse
Of course, I'm not saying it doesn't have missing features but for me it does what I need. Also, sometimes having less is better than having too much. Android has a ton of features, but a lot of them never worked properly for me. Little things like bluetooth randomly disconnecting, cell standby 50% bug, and the list goes on.

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.

[XAP] Orientation Lock: self-explanatory

Tada. Here's a little stupid-simple something I made to cure my frustrations.
Whooo. New version, basically wiped up the whole post. Oops.
Anyway, here's orientation lock, an application that, well, locks your orientation. It does this by setting the accelerometer to power state D4, then back to D0 to revive it.
Using DllImport:
Code:
DllImportCaller.lib.StringIntIntCall("coredll", "SetDevicePower", "ACC1:", 1, (int)Phone.Network.WiFi.PowerState.D0);
Simple. Worked on my HD7, Lumia, and Focus. Lmk if you have any issues.
Oh, and known problem: HTC devices detect the accel sensor as active, even when it isn't. Weird. Toggling the button back and forth works, though.
Download: http://windowsphonehacker.com/articles/orientation_lock_release-02-06-12
Cheers!
DeactivateDevice() ACC1: on HTC device will make phone reboot.
ted973 said:
DeactivateDevice() ACC1: on HTC device will make phone reboot.
Click to expand...
Click to collapse
Is that from this application or when you do it using native APIs?
Jaxbot said:
Is that from this application or when you do it using native APIs?
Click to expand...
Click to collapse
oh, i try this before and your app is same result.
DeactivateDevice()
change registry "Dll"
ActivateDeviceEx()
Process above, sometimes works on HTC Device, but it is real "sometimes"!
ted973 said:
oh, i try this before and your app is same result.
DeactivateDevice()
change registry "Dll"
ActivateDeviceEx()
Process above, sometimes works on HTC Device, but it is real "sometimes"!
Click to expand...
Click to collapse
I know you can change it in the registry, but I was hoping for something a little more integrated. I wonder what the deal with HTC is.
Jaxbot said:
I know you can change it in the registry, but I was hoping for something a little more integrated. I wonder what the deal with HTC is.
Click to expand...
Click to collapse
does samsung & lg device have this in registry:
[HKLM\Drivers\BuiltIn\Accelerometer]
"ForegoundModule"="\Windows\TaskHost.exe"
ted973 said:
does samsung & lg device have this in registry:
[HKLM\Drivers\BuiltIn\Accelerometer]
"ForegoundModule"="\Windows\TaskHost.exe"
Click to expand...
Click to collapse
Samsung doesn't, nor does it have all the X Y Z values.
works on focus s, surprisingly....
ManelScout4Life said:
works on focus s, surprisingly....
Click to expand...
Click to collapse
Why wouldn't it? And I saw your comment on Wpcentral, thanks for that. I don't blame anyone, even I get confused with all these different devices and driver versions. Seems only the end consumer has a consistent experience
Jaxbot said:
Why wouldn't it? And I saw your comment on Wpcentral, thanks for that. I don't blame anyone, even I get confused with all these different devices and driver versions. Seems only the end consumer has a consistent experience
Click to expand...
Click to collapse
With all the changes in the gen2 software, I figured it wouldn't work. Just like none of the interop apps work so far I figured this would be on the same boat.
ManelScout4Life said:
With all the changes in the gen2 software, I figured it wouldn't work. Just like none of the interop apps work so far I figured this would be on the same boat.
Click to expand...
Click to collapse
Nah, they don't work because of other changes, but it's a good thought, and I was worried myself. Glad to see it does, though
More specifically, most homebrew interop apps don't work on Samsung Gen2 because they use OEM drivers that are specifically designed to allow apps to do high-privilege things their sandbox normally prevents. In gen2 firmware, Samsung crippled those drivers somehow, locking them down to their own apps only (bears more investigating, but that's the best explanation I've found so far).
This, on the other hand, is simply opening a driver that's built into the phone - all phones, apparently - and is an actual device driver, not a software driver intended forleaving the sandbox. Samsung can't cripple that, or it wouldn't be possible for any app to use the accelerometer. Interop unlock is still required, though - in simple terms, what ID_CAP_INTEROPSERVICES regulates is "Can the app open a direct handle to a driver?" and this app needs to do this.
Update for everyone:
No more interop unlock, now allows toggling. You're welcome =D
http://windowsphonehacker.com/articles/orientation_lock_release-02-06-12
Also a video with my sexy new phone (Lumia 800) in it ^^
http://www.youtube.com/watch?feature=player_embedded&v=7tNiDn-7Szw
Too bad that this can't be put in the Marketplace; it's the kind of app a lot of people have been asking for. All the more reason for Microosft to provide more Chevron Labs unlock tokens, I guess...
EDIT: I guess that having the Sensors capability gives enough permissions to call SetDevicePower on it? I would have expected ERROR_ACCESS_DENIED. In any case, well done. Works on my HD7. One minor bug is that it doesn't remember or detect when disabled, so to re-enable it I have to first toggle to Disabled, then back to Enabled, because when the app is launched it *always* says Enabled. Might be an HTC firmware oddity.
GoodDayToDie said:
Too bad that this can't be put in the Marketplace; it's the kind of app a lot of people have been asking for. All the more reason for Microosft to provide more Chevron Labs unlock tokens, I guess...
Click to expand...
Click to collapse
Exactly. It's harmless, stays at LPC level. Wish Microsoft would let in some more /dangerous/ applications.
Awesome, good job. I've been looking for this. Works well on optimus 7
SetDevicePower really nice solution!!!
One simple fix for HTC, if they always report the accelerometer as available: can you use GetDevicePower? The method signature is the same, except the third parameter is a pointer (which .NET will see as an "out" parameter, if you declare it as such). I'm not sure if DllImport supports those, but it could be done very easily using COM.
Actually, turns out the problem is more universal than I thought. I'll find a fix for it soon, should be simple enough.
Liking this update very much Looking forward to the toggle fix.

Categories

Resources