I made it private as it is used by the fragment "EnterURLDialog" contained inside the activity. The same function has been used to process the URL collected from that fragment as well. Can we have another alternative to this approach?