Fast app resume - Windows Phone 8 Development and Hacking

In Windows Phone 8 you can make your app resume instead of re-launching when you click on the app tile. This will also preserve the backstack of the application.
I've created a short blog post on how you can add fast app resume to your application.
http://mindre.net/Article/Windows_Phone_8_Fast_app_resume

Interesting stuff... Thanks!

Awesome finding!

I saw a video showing this feature off. It makes me so happy to not have to spend a minute letting and app startup anymore
Sent from my HP Touchpad using the XDA Developers app.

hallatore said:
In Windows Phone 8 you can make your app resume instead of re-launching when you click on the app tile. This will also preserve the backstack of the application.
I've created a short blog post on how you can add fast app resume to your application.
http://mindre.net/Article/Windows_Phone_8_Fast_app_resume
Click to expand...
Click to collapse
Does this work only if the app is part of the last 8 apps available in Task switcher? or works even if we open the app after opening 10-20 apps?

monotheist said:
Does this work only if the app is part of the last 8 apps available in Task switcher? or works even if we open the app after opening 10-20 apps?
Click to expand...
Click to collapse
I guess it worth checking it, going to do that right now

monotheist said:
Does this work only if the app is part of the last 8 apps available in Task switcher? or works even if we open the app after opening 10-20 apps?
Click to expand...
Click to collapse
It depends on the memory requirements of the opened Apps. If you open 8 memory intensive Games it might happen that they are tombstoned and restarted even though they are still displayed in the task switcher. On the other hand it should stay alive even after being pushed out of the task switcher.

ap3rus said:
I guess it worth checking it, going to do that right now
Click to expand...
Click to collapse
So what is the result?

Related

When opening an app, the app only displays on the screen for a fraction of a second.

Occasionally, when opening an app, the app only displays on the screen for a fraction of a second, then disappears. It just kinda blinks on then off...
I can't figure out what is causing it to do this. It has happened to me with K-9, Facebook, Twitter, Maps...pretty much any app. Sometimes I try to open facebook, and it won't open, but twitter will....Some of the time you can get the program to open if you go home, then open and close the app drawer.....
Anyone else with a similar problem? I have reset the phone twice and it is still doing this...Other than this occasional problem, I love the Vibrant!
Do you have an app killer or startup controller? Mine did the same thing, and I quickly realized I was killing a service that the apps I was launching depended on.
Sent from my SGH-T959
^ pretty much exactly what I was going to post. What have you installed on your phone like this?
Mine has done this a few times, usually after an app force closes. For 30 seconds or so after if I try to reopen that app it will just shut off again, then after a bit, it's fine.
It's happened with the web browser more than once, and a couple other apps.
I get the same exact problem with no real reason. Whenever it happens I just go into the settings from the menu button. Settings opens fine and once I close it ever other app opens correctly again.
Sent from my SGH-T959 using XDA App
LiquidCool1 said:
Do you have an app killer or startup controller? Mine did the same thing, and I quickly realized I was killing a service that the apps I was launching depended on.
Sent from my SGH-T959
Click to expand...
Click to collapse
That's what I thought at first.. I wiped the phone and it did it even after when I had no task or app killers installed...
vinnydakid said:
I get the same exact problem with no real reason. Whenever it happens I just go into the settings from the menu button. Settings opens fine and once I close it ever other app opens correctly again.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Yes, that seems to help mine too...
Did you erase unneeded apps? There is a list around here somewhere of apps that can be safely deleted, without violating dependencies. I have a stock unit with the lag, the blue tint, etc. . . But I never had this problem without the startup manager.
Sent from my SGH-T959
LiquidCool1 said:
Did you erase unneeded apps? There is a list around here somewhere of apps that can be safely deleted, without violating dependencies. I have a stock unit with the lag, the blue tint, etc. . . But I never had this problem without the startup manager.
Sent from my SGH-T959
Click to expand...
Click to collapse
yes.. I took most of the bloatware off using root manager.
Startup auditor has a list of dependencies for each app that you have installed. Not much good for things that you have already deleted, but maybe the dev site can help? I know I saw a list somewhere of bloat that could be "safely deleted".
Sent from my SGH-T959
The only bloat I deleted was Telenav, so I doubt that's the cause of it.
Sent from my SGH-T959 using XDA App
I've noticed this as well. However, If you hold down your home key, after it does the weird flash, and select the app from the pop up menu, it will open. Weird.
phantomzer0 said:
I've noticed this as well. However, If you hold down your home key, after it does the weird flash, and select the app from the pop up menu, it will open. Weird.
Click to expand...
Click to collapse
Yes that fixes it most of the time...
vinnydakid said:
The only bloat I deleted was Telenav, so I doubt that's the cause of it.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
I seriously doubt that this has anything to do with deleting the bloatware apk's...
I haven't removed anything and mine does this as well. Usually after an app freezes or force closes.
Sent from my awesome Vibrant using XDA App

suggestions to free up ram

idk what the deal is but i hardly ever have more than 100mb of ram free. it at times goes down to 45mb free. i cant even watch a youtube video, pause it to reply to a text, and go back to youtube without the whole video refreshing. any suggestions on what i can do to free up some ram? idk where all the 512mb went >.<
Sent from my SPH-D700 using XDA App
I bought an app called Autostarts from the market and that helped a TON. Since every app seems to "need" to start when the phone boots. You need to be rooted to use it.
Autostarts is great because a lot of apps have several instances that will trigger it to run. Like receiving a text runs sprint nav, things like that. This app will allow you to stop it.
The built in task manager app is good too. If you do a level two kill on the RAM tab it'll free up a bunch. You need to re open your call blocker, and other third party stuff you do want running afterward though.
When you exit a program are you doing it using the home button or the back button because usin the home button doesn't close the app it just "minimizes" it....the back button will close it while leaving essential data in memory for a quick startup next time you open it....if you are exiting using the back button then I would ask how many apps you have installed and how many widgets you have running on your homescreen
Sent from my SPH-D700 using XDA App
I have the same problem, and most of the app that run are the crapware from sprint. But things like email, Gmail, settings, etc are always running. If I close all running apps, they just open 30 seconds later.
Sent from The Chaotic Void.
dantichrist said:
I bought an app called Autostarts from the market and that helped a TON. Since every app seems to "need" to start when the phone boots. You need to be rooted to use it.
Autostarts is great because a lot of apps have several instances that will trigger it to run. Like receiving a text runs sprint nav, things like that. This app will allow you to stop it.
The built in task manager app is good too. If you do a level two kill on the RAM tab it'll free up a bunch. You need to re open your call blocker, and other third party stuff you do want running afterward though.
Click to expand...
Click to collapse
Thanks a ton for this. I downloaded that app and it seems to be helping.
Sh0wNuF said:
When you exit a program are you doing it using the home button or the back button because usin the home button doesn't close the app it just "minimizes" it....the back button will close it while leaving essential data in memory for a quick startup next time you open it....if you are exiting using the back button then I would ask how many apps you have installed and how many widgets you have running on your homescreen
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
I always press the back button when exiting an app but whenever i leave an app by pressing the home button and go back to it i usually have to reload whatever i was doing.
I have a problem with this too. I can use ATK to kill things running in the background and that will bring me up above 100 usually. Then within a matter of a minute it goes down to the mid 50s again. I do use a few widgets though.
Inferno4213 said:
I have a problem with this too. I can use ATK to kill things running in the background and that will bring me up above 100 usually. Then within a matter of a minute it goes down to the mid 50s again. I do use a few widgets though.
Click to expand...
Click to collapse
What widgets and if they do background updates (facebook, twitter, etc.) how often do they update?
you shouldn't really need an autokiller with froyo.. (which I've heard a thousand times), but in all honesty, I kill certain apps that I know to be potential memory hogs. But as far as just normal stuff running in the background, you're not really going to free up memory by killing those, because they're just going to load back up.. using more battery.
Here's the general idea: http://en.wikipedia.org/wiki/Garbage_collection_(computer_science)
But if you wanna check if, for example, if Youtube, a music player, launcher and angrybirds are all somehow really running in the background, (with froyo), I just hold the Home button, click Task Manager, and you see and can kill them there.
There's also a RAM Manager in there you can check out in there as well.
ksweat2292 said:
I always press the back button when exiting an app but whenever i leave an app by pressing the home button and go back to it i usually have to reload whatever i was doing.
Click to expand...
Click to collapse
That's because android killed the app to free up memory. In most cases android does a pretty good job in freeing up memory. For instance i know if i leave the xda app and do nothing it will stay open the next time i come back. But lets say i leave the xda app turn turn pandora on and brows the web, the phone will close xda to free up memory
Sent from my SPH-D700 using XDA App
I typically keep about 140 mb of ram free. I use Startup Manager to keep progs from ever starting and Memory Booster to keep the bs from ever taking over my phone.
Sent from hell...

Messaging Application Remains Open

Well, I just got my new SGS II and noticed that on both the stock Bell firmware (KG3) and the most recent KH3 that the messaging app stays open (as per the Program Monitor widget). I have searched without finding any result. Anyone else notice this and / or have a fix?
Sent from my GT-I9100 using xda premium
It does, unfortunately I noticed this too but it uses little resource. It is annoying to see the open applications count as "one" when you have finished!
DeHann said:
Well, I just got my new SGS II and noticed that on both the stock Bell firmware (KG3) and the most recent KH3 that the messaging app stays open (as per the Program Monitor widget). I have searched without finding any result. Anyone else notice this and / or have a fix?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Apps like messaging and internet stay in the background even after you close it,because these apps are frequently used and they load faster the next time you use it,but dont worry the android OS will kill them eventually
Sent from my GT-I9100 using XDA App
I waited a long time and the Messaging application never actually closed.
I suspect it is a similar bug to the Contacts issue I had with Froyo where the application remained open. This was later fixed in Gingerbread...
Does anyone else see Messaging remain open in the Program Monitor widget?
Sent from my GT-I9100 using xda premium
DeHann said:
I waited a long time and the Messaging application never actually closed.
I suspect it is a similar bug to the Contacts issue I had with Froyo where the application remained open. This was later fixed in Gingerbread...
Does anyone else see Messaging remain open in the Program Monitor widget?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
It stays open for me also, If and when the resources get low enough it should close but since we have so much ram i don't think it will ever close. It doesn't really bother me.
Stop using task killers. The android os does not work like windows that relies on free memory. It keeps apps in memory so that they can be instantly opened later. Some system processes will even be started again after you close them.
If a program is in memory but not used for a while it will be flagged to be removed if another app needs more memory. Just because an app is in memory does not mean it is using your CPU.
You are wasting more battery by killing things that you will use again or that the system will restart anyway. This phone has a lot of memory, let the phone use it!
Sent from my GT-I9100 using Tapatalk
devilkin said:
Stop using task killers. The android os does not work like windows that relies on free memory. It keeps apps in memory so that they can be instantly opened later. Some system processes will even be started again after you close them.
If a program is in memory but not used for a while it will be flagged to be removed if another app needs more memory. Just because an app is in memory does not mean it is using your CPU.
You are wasting more battery by killing things that you will use again or that the system will restart anyway. This phone has a lot of memory, let the phone use it!
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Thsnks for your reply; but, I am not using a task killer...
I am just wondering why the stock messaging application is displayed in the Program Monitor once exiting via the back button. Is it a known bug? Also, is there any way to fix it besides killing it or using another messaging app like Handcent?
Sent from my GT-I9100 using xda premium
DeHann said:
Thsnks for your reply; but, I am not using a task killer...
I am just wondering why the stock messaging application is displayed in the Program Monitor once exiting via the back button. Is it a known bug? Also, is there any way to fix it besides killing it or using another messaging app like Handcent?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Known bug, it's not a bug, it's a feature,
Your phone has almost 1 Gig of ram, why would you want to micro manage what apps use the ram, has your phone ever run out of ram, has your phone slowed down, does it lag, do you attribute this lag (if there is any) to the messaging app running in the background???
when I replaced my messaging app using stock sms app, then the bug/feature went away
achillies400 said:
Known bug, it's not a bug, it's a feature,
Your phone has almost 1 Gig of ram, why would you want to micro manage what apps use the ram, has your phone ever run out of ram, has your phone slowed down, does it lag, do you attribute this lag (if there is any) to the messaging app running in the background???
Click to expand...
Click to collapse
I am not sure why, really. All I am looking for is to have the Program Monitor display 0 instead of a 1...
I am famous for leaving unused tasks open and like to monitor for them using that widget. If I understand correctly running tasks consume CPU which, in turn, drains the battery.
I have noticed that the messaging app is not in the Battery usage list; so, at this point it is an annoyance more than anything...
Sent from my GT-I9100 using xda premium
kryptoner said:
when I replaced my messaging app using stock sms app, then the bug/feature went away
Click to expand...
Click to collapse
Interesting. Can you explain this in more detail?
Sent from my GT-I9100 using xda premium
DeHann said:
Interesting. Can you explain this in more detail?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
I downloaded messaging Google stock app from here - http://forum.xda-developers.com/showpost.php?p=16699746&postcount=1
then I put it in system/app folder using root explorer and installed it, i deleted old messaging app...
now whenever I exit messaging using back button and open task manager, I don't see messaging app in active tasks...
kryptoner said:
I downloaded messaging Google stock app from here - http://forum.xda-developers.com/showpost.php?p=16699746&postcount=1
then I put it in system/app folder using root explorer and installed it, i deleted old messaging app...
now whenever I exit messaging using back button and open task manager, I don't see messaging app in active tasks...
Click to expand...
Click to collapse
Thanks. I tried it and you are right. I ended up reverting though. Going to look into it more if/when I find time.
Hopefully it is not the same in the next firmware release; but, for now, it is only an annoyance.
Sent from my GT-I9100 using xda premium
Advanced task killer
Sent from my GT-I9100 using xda premium
bruflot said:
Advanced task killer
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
No, dont use task killers. If anything, it only eats more resources. Android keeps those apps open for a reason, when you open it next time its quicker and actually needs to use less resources. Free memory= useless memory, If there is an app which needs more memory (like a game) android will automatically kill "suspended" apps on background to free up memory. And when you finish playing it will restore those apps again. Killing it with force only causes the app to restart again and again and again and again.... Even windows does it (a little bit differently though).
And if you really want to have control over your processes in background, use watchdog which will warn you if theres an app eating resources in the background.
xeq544 said:
No, dont use task killers. If anything, it only eats more resources. Android keeps those apps open for a reason, when you open it next time its quicker and actually needs to use less resources. Free memory= useless memory, If there is an app which needs more memory (like a game) android will automatically kill "suspended" apps on background to free up memory. And when you finish playing it will restore those apps again. Killing it with force only causes the app to restart again and again and again and again.... Even windows does it (a little bit differently though).
And if you really want to have control over your processes in background, use watchdog which will warn you if theres an app eating resources in the background.
Click to expand...
Click to collapse
I am running Watchdog app now & previously monitored the Battery Usage app and show no messaging application displayed. So, it is just an annoyance for me...
Sent from my GT-I9100 using xda premium
kryptoner said:
I downloaded messaging Google stock app from here - http://forum.xda-developers.com/showpost.php?p=16699746&postcount=1
then I put it in system/app folder using root explorer and installed it, i deleted old messaging app...
now whenever I exit messaging using back button and open task manager, I don't see messaging app in active tasks...
Click to expand...
Click to collapse
copied the sms app in the system/app folder, but when i try to install it, it says couldn`t install application

Point me to a task killer

Can any1 point me to a task killer which will force kill apps.I am talking about something like the one click task kill in Lewaos rom status bar. Most task killers I have tried only kill apps and those apps come up again automatically. Please help me
Hit thanks If my posts have helped u
Free ram is waste ram don't use taskillers
If you then also want that sh*** go for taskiller full in playstore
Sent from my HTC Explorer A310e using xda premium
rishabho1 said:
Free ram is waste ram don't use taskillers
Click to expand...
Click to collapse
This. Your phone is not like your PC, so stop treating it like one. The way Android treats memory, having high RAM usage is actually a good thing. Not to mention that aside from being useless and counterproductive, task killers are a huge battery drain.
---------------
Sent from my LG-P500 via Derpy Mail
rishabho1 said:
Free ram is waste ram don't use taskillers
If you then also want that sh*** go for taskiller full in playstore
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
onepinksheep said:
This. Your phone is not like your PC, so stop treating it like one. The way Android treats memory, having high RAM usage is actually a good thing. Not to mention that aside from being useless and counterproductive, task killers are a huge battery drain.
---------------
Sent from my LG-P500 via Derpy Mail
Click to expand...
Click to collapse
Okay okay!! Just chill. No need to get that aggressive on this topic. On my phone apps like facebook, friendcaster
etc keep draining battery.Now don't say these r useless too and I should stop using them. I know how android works with Ram and all that. Have been using this fone for over 18 months. I just want to know about dat kind of taskiller
Hit thanks If my posts have helped u
Well, if battery drain is your problem, then don't use a task killer -- that'll just be compounding the issue. As for how to deal with your battery drain, I've heard some reports about how turning off Facebook sync worked for some people.
Another option would be getting Watchdog Task Manager by Zomut from the Play Store (I've used it myself). It's not the typical task killer since rather than monitoring RAM, it instead keeps an eye on CPU usage (which is what causes battery drain) and notifies you when an app consumes too many CPU cycles and let's you decide whether to kill that app. It should also allow you to set a CPU threshold for certain apps, and autokill when the app exceeds that threshold.
---------------
Sent from my LG-P500 via Derpy Mail
Use autostart to stop aap to run automatically in different situation.
onepinksheep said:
Well, if battery drain is your problem, then don't use a task killer -- that'll just be compounding the issue. As for how to deal with your battery drain, I've heard some reports about how turning off Facebook sync worked for some people.
Another option would be getting Watchdog Task Manager by Zomut from the Play Store (I've used it myself). It's not the typical task killer since rather than monitoring RAM, it instead keeps an eye on CPU usage (which is what causes battery drain) and notifies you when an app consumes too many CPU cycles and let's you decide whether to kill that app. It should also allow you to set a CPU threshold for certain apps, and autokill when the app exceeds that threshold.
---------------
Sent from my LG-P500 via Derpy Mail
Click to expand...
Click to collapse
That was some what helpful. Thanks
vikasb32 said:
Use autostart to stop aap to run automatically in different situation.
Click to expand...
Click to collapse
Yeah I should probably close the receivers for boot receiver and connectivity change
Hit thanks If my posts have helped u
Use super task killer widget or make a shortcut of RUNNING SERVICES to your homescreen.
Sent from my LG-P500 using xda app-developers app
you might also give System Panel a try..available at play store
Task Killer
Use Automatic Task Killer.free on gapps. U just have to select the apps u want to be killed and it kills them when ur screen is off.
Plz press the thanks button if u found my post useful to you in any way.Thanks
vikasb32 said:
Use autostart to stop aap to run automatically in different situation.
Click to expand...
Click to collapse
I do this all the time, I have all possible battery draining apps and I close them with long press back button and disable their start up
Sent from my LG-P500
vlt96 said:
I do this all the time, I have all possible battery draining apps and I close them with long press back button and disable their start up
Sent from my LG-P500
Click to expand...
Click to collapse
I also did the same.long press backup button to kill and use autostart to stop automatically start.
vikasb32 said:
I also did the same.long press backup button to kill and use autostart to stop automatically start.
Click to expand...
Click to collapse
Can u tell me an autostart app?
Send from LG-P500 & Tapatalk
dante197 said:
Can u tell me an autostart app?
Send from LG-P500 & Tapatalk
Click to expand...
Click to collapse
Autostarts, is paid, I would honestly actually pay for it, but till then I am pirate
https://play.google.com/store/apps/details?id=com.elsdoerfer.android.autostarts&hl=en
dante197 said:
Can u tell me an autostart app?
Send from LG-P500 & Tapatalk
Click to expand...
Click to collapse
Autorun Manager is a bit difficult to use for new users. u ll have to search for boot receivers and network change receivers among the receiver list for a particular app. if u disable an imp receiver then it ll forbid the app from running. so be careful. or else u can use other managers like Lidroid toolbox or Rom toolbox which are easy to use. Cheers
Souron29 said:
Autorun Manager is a bit difficult to use for new users. u ll have to search for boot receivers and network change receivers among the receiver list for a particular app. if u disable an imp receiver then it ll forbid the app from running. so be careful. or else u can use other managers like Lidroid toolbox or Rom toolbox which are easy to use. Cheers
Click to expand...
Click to collapse
Nope, apps run anyway, but they won't start automatically if you disable receivers
vlt96 said:
Nope, apps run anyway, but they won't start automatically if you disable receivers
Click to expand...
Click to collapse
Once I closed a receiver of poweramp and it didn't open up
I don't know if I'm doing anything wrong but I disabled "Google play" at start up through from toolbox however whenever I go back to the list it reactivates itself...
Sent from my LG-P500 using xda app-developers app
timkl1 said:
I don't know if I'm doing anything wrong but I disabled "Google play" at start up through from toolbox however whenever I go back to the list it reactivates itself...
Sent from my LG-P500 using xda app-developers app
Click to expand...
Click to collapse
which toolbox did u use? u should have USB debugging turned on
The whole debate surrounding task killers are stupid. Our phones have low memory and we are running custom built roms on our devices which tend to require more from our hardware in the case of ICS.
I like the ES TaskManager/File Explorer combo, has a nice task manager, autostart feature and apk backups.

Is this running application or recently used applications?

Sent from my SGP311 using xda app-developers app
guyenxda000 said:
Sent from my SGP311 using xda app-developers app
Click to expand...
Click to collapse
Recent applications but you can swipe to close them.
Those are the recently used apps, even if I force close them they are still there.
Sent from my HTC Sensation using xda app-developers app
Doefes said:
Those are the recently used apps, even if I force close them they are still there.
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
They would be mate, because they are your most recently used apps.
SWFlyerUK said:
They would be mate, because they are your most recently used apps.
Click to expand...
Click to collapse
ok they are recently used apps based on the comments. not necessarily running apps. Because sometimes this list grow so big, if so many running apps memory would blow into pieces.
guyenxda000 said:
ok they are recently used apps based on the comments. not necessarily running apps. Because sometimes this list grow so big, if so many running apps memory would blow into pieces.
Click to expand...
Click to collapse
Run the Walkman app and play some music. Come out of the app and then close it. See if the music stops
SWFlyerUK said:
Run the Walkman app and play some music. Come out of the app and then close it. See if the music stops
Click to expand...
Click to collapse
how do you close it? Just by hitting the return key? I dont think you can say stop play has terminated the app. It appears that would depend on each application. i.e. spoitfy will keep playing when you run other apps but youtube will stop playing immediately as soon as i switch or sleep. But they would still be running in the background. I read somewhere that the android OS makes its ultimate decision to when to close the app based on current memory usage and other factors.
guyenxda000 said:
how do you close it? Just by hitting the return key? I dont think you can say stop play has terminated the app. It appears that would depend on each application. i.e. spoitfy will keep playing when you run other apps but youtube will stop playing immediately as soon as i switch or sleep. But they would still be running in the background. I read somewhere that the android OS makes its ultimate decision to when to close the app based on current memory usage and other factors.
Click to expand...
Click to collapse
No, what I mean is, you can check to see whether swiping them away closes the app or just removes it from the recent apps tray.
If you open the Walkman app and start playing music, hit the home button (the music keeps playing obviously) open the recent apps tray and swipe away Walkman. If the music stops, the app has been closed. If it doesn't, it has just removed it as a recent app.
SWFlyerUK said:
No, what I mean is, you can check to see whether swiping them away closes the app or just removes it from the recent apps tray.
If you open the Walkman app and start playing music, hit the home button (the music keeps playing obviously) open the recent apps tray and swipe away Walkman. If the music stops, the app has been closed. If it doesn't, it has just removed it as a recent app.
Click to expand...
Click to collapse
i see that d be a good experiment then :good:

Categories

Resources