getAddress() is deprecated in 4.1.2, any alternate for this?

getAddress() is deprecated in 4.1.2, any alternate for this? I did extensive search but could not find any alternate possible suggestion. Looking for an alternate option in 4.1.2