Sorry for being pedantic!
I think this is an activity, so instead of getting the Resources you can just call getString().
Also getString() takes formatting arguments, so there should be no need for String.format().

Something like:
```java
  syncAccount.setSummary(getString(R.string.sync_account_summ_logged_in, username));
```
should just work, but I do not have the code handy to try it out.

If it does not work, just let me know and let's leave it as is.