Made change to OnClick in HomeFragment. Before starting Activity checks for a valid network connection if present launches Activity otherwise no connection starts dialog to user.