Renamed ActivityUtil to ContextUtil.
Arranged the import statements to alphabetical order.
Enhanced to show exceptions.