activity

Returns the currently active (resumed) Activity, or null if no activity is currently resumed.

The activity reference is held as a WeakReference internally to avoid memory leaks.