I call AsyncTask in the snippet. I go through all the stages normally, but in the onPostExecute() method I need to fill in a TextView . Here is the fragment code:
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.info_fragment, container, false); tv = (TextView) v.findViewById(R.id.textViewFIO); tv.setText("TEXT"); new GetUserInformation(getActivity(), "zz@zz"); setTextTV("ADSDADAD"); return v; } And onPostExecute () itself:
protected void onPostExecute(String result) { super.onPostExecute(result); tv.setText(otvet) } The answer is not null. I need to fill the TextView . How to be?
onPostExecute, you should seeotvetif it really comes. TextView then located in the snippet? - temq