clr-namespace.com has shown off a way to use tombstoning to preserve your background state and pick up where things would have been if multitasking were enabled. To put it another way, they demonstrated a stopwatch application that you can run, exit the program (which closes it and without multitasking means that it stops running) and then when the program restarts and it gives the running time as though the app was running in the background. The trick is accomplished by saving the state of the application before it closes and when the app is restarted the time from the original clock is computed. So to the end user it appears to have been running in the background the whole time. Now this doesn’t get Pandora to play in the background but time keeping apps and the like can take advantage of this. I’m curious to see what other ways devs can save states to get past the limitations of multitasking.
A demo video and source code of the app in action is located on their site.