There is a getString() method in Activity, so you could remove the first 3 calls.