In various bits of Android code I\'ve seen:
public class MyActivity extends Activity {
public void method() {
mContext = this; // since Activi
In some cases you may use Activity context over application context when running something in a thread. When thread completes execution and you need to return the result back to the caller activity, you need that context with a handler.
((YourActivity) context).yourCallbackMethod(yourResultFromThread, ...);