AudioManager memory leak
@goapunk reported a memory leak on the Nexus S caused by the AudioManager. We don't use the AudioManager directly, but ViewRootImpl uses it to play click sounds, and the AudioManager gets a reference to the view's context. It seems that if the AudioManager isn't properly released, the context is leaked.
This has been fixed in AOSP by changing the AudioManager to keep a reference to the application context:
A workaround is available for older versions that uses the application context to retrieve the AudioManager:
We should be able to incorporate the workaround into BaseActivity.