doinbackgroundに「Scores Activity」を送信してから、スコアアクティビティで関数を実行しましたが、 「ビュー階層を作成した元のスレッドのみがそのビューにアクセスできます。 on "birinci.setText(txt);"ライン。Android Context 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(結果)を入れた。ポスト実行時に これは正常に動作しました。ご協力いただきありがとうございます – Mert