Use activity instead of context for printing.

Fixes b/11432054.

Change-Id: I0a56b4498d8e4f1231436b9965c91246c730717e
4 files changed