TIMOB-12288: Use application context instead of the activity of the prox...

...y to prevent memory leaks

https://jira.appcelerator.org/browse/TIMOB-12288

Test case in Jira.