Check for null after calling getApplicationContext().
Implement result number settings.