Ensure that ActivityManager is constructed with a non-null context.
Merge pull request #786 from erd/activity-manager-context

Ensure that ActivityManager is constructed with a non-null context.