Changed from Activity to Context on some parameters.