Buda Gavril Buda Gavril - 1 year ago 222
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();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download