@Override public void onResume() { super.onResume(); SHashtag_list.clear(); String url = "http://119.81.176.245/userinfos/" + user_id + "/following_hashtags/"; HTTPRestfulUtilizerExtender a = new HTTPRestfulUtilizerExtender(getActivity(), url, "GET"); a.doExecution(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SHashtag_list.clear(); Bundle inputBundle = getArguments(); if (inputBundle == null) { AppPrefs appPrefs = new AppPrefs(getActivity()); user_id = appPrefs.getUser_id(); } else { user_id = inputBundle.getInt("id"); } final String url = "http://119.81.176.245/userinfos/" + user_id + "/following_hashtags/"; HTTPRestfulUtilizerExtender a = new HTTPRestfulUtilizerExtender(getActivity(), url, "GET"); a.doExecution(); }