CalcProgrammer1/CalcTunes — Issue #5: Minimize and Re-Open Properly
Author: CalcProgrammer1
Created: 2011-12-16 09:48:11+00:00
State: open

This is a big one. Android doesn't follow the traditional "close" strategy of desktop applications. Instead, your activity remains in memory until Java decides to kick it out. The media player keeps playing even after the activity is stopped, so a way to maintain application state and connection to media player is necessary. A proper exit function is also a good idea, even if it means killing off our own thread.