How to update a TextView from within onPostExecute
问题 Need help here, about onPostExecute. If I want to put the update on textView what should be the code and what should I do?. @Override protected Value[] doInBackground(Integer... params) { ApiClient apiClient = new ApiClient(API_KEY); Variable batteryLevel = apiClient.getVariable(VARIABLE_ID); Value[] variableValues = batteryLevel.getValues(); return variableValues; } @Override protected void onPostExecute(Value[] variableValues) { // Update your views here } 回答1: Do as follows, save reference