use app context instead of service context
Merge pull request #173 from rhomobile/app_context_for_resources

use app context instead of service context