Buda Gavril Buda Gavril - 1 year ago 179
Android Question

android finish activity context

If I have reference to context, is it possible to finish the current activity? I don't have the reference to current activity.

Answer Source

yes, with a cast:

((Activity) ctx).finish();