You cant call getString() before OnCreate.