converted the foreignprofile activity from activity to fragment . Now it works, but the fact is that this fragment superpose itself on the activity before it, mainactivity .
Has to been fixed .