getActivity
Retrieves an instance of the specified Activity from the current Context.
This function iterates through ContextWrapper instances until it finds an Activity of the desired type. If no matching Activity is found, an IllegalStateException is thrown.
Return
An instance of the specified Activity.
Throws
if no matching Activity is found.