unreachable statement after using .getActivity( ) in a Fragment
问题 I want to use .getSystemService in a Fragment. When i use .getActivity() to get the context of my activity, Android Studio tells me in the same line that this is a "unreachable statement". When there is a line above the line where i use "getActivity()", it will show that this line on top is unreachable. Why and how to fix this? public class NewNodeFragment extends Fragment { //GPS SIGNAL double pLat; double pLong; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container