If I have a reference to Context, is it possible to finish the current activity?
Context
I don\'t have the reference to current activity.
yes, with a cast:
((Activity) ctx).finish();