Android: Add event listener for preference page.