I recently asked a question and one of the answers (this one) was to pass an Activity
object via an Intent
.
Is it really safe to do that (memory leaks?) and how can you achieve that?
I tried passing it with intent.putExtra()
but there is no method to pass an Activity.
Thanks in advance. I'm new to StackOverflow so if there is anything I've done wrong please tell me!