I've been wondering how to do this correctly for a while.
I want to display a Dialog or Toast (or anything graphic) from another place than my main thread.
But for that I need to pass a Context.
The bruteforce way is either the pass the context along all the time or to create a static variable in which I store the context.
Those work but are not the way to go so can somebody tell me the correct way to complete this:
ProgressDialog.show([...], "",[...].getResources().getString( R.string.logoutProgressMessage), true);