Location is always null after coming from foreground to background?
问题 I am having this issue where my Android's location is always null, but it seems like it only happens when my app goes from the background to the foreground. Here is my code: Public.java: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { String userId = AccessToken.getCurrentAccessToken().getUserId(); //Open DB and get freinds from db & posts. datasource = new FriendsDataSource(getContext()); datasource.open(); postsDataSource = new