Added call to stop() in sample activity onPause()