Correctly deal with app open and at lock screen.
Fix to toggle recording correctly when app is already running.
Remove unnecessary interfaces.