doinbackground에 "Scores Activity"를 보내고 스코어 활동에서 함수를 실행했지만 "뷰 계층 구조를 만든 원래 스레드 만 해당 뷰를 만질 수 있습니다." "birinci.setText (txt);" 선.안드로이드 컨텍스트 doInBackground 전달
여기서 내가 놓치고있는 것은 동일한 컨텍스트를 사용하는 것입니까?
Scores Activity
{
Object[] stuff = {this.dhn, Scores.this};
ConnectXML runXML = new ConnectXML();
runXML.execute(stuff);
}
public void setScoreListUpdate(String txt)
{
birinci.setText(txt);
}
private Scores myScores;
protected String doInBackground(Object... arguments) {
myScores = (Scores)stuff[1];
myScores.setScoreListUpdate(result);
}
옙 내 실수! myScores를 넣습니다 .setScoreListUpdate (result); postExecute on 잘 작동합니다. 당신의 도움을 주셔서 감사합니다 – Mert