setActivity

fun setActivity(activity: Activity?)

Set the current activity using WeakReference.