//
public class main_Activity extends Activity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Test t = new Test(this);
t.setText();
}
TextView.setText(s);
}
}
//
public class Test {
main_Activity a;
Test(main_Activity a) {
this.a = a;
}
public setText(){
a.putText("ABC");
}
}
Ly8KcHVibGljIGNsYXNzIG1haW5fQWN0aXZpdHkgZXh0ZW5kcyBBY3Rpdml0eXsKICBAT3ZlcnJpZGUKICBwdWJsaWMgdm9pZCBvbkNyZWF0ZShCdW5kbGUgc2F2ZWRJbnN0YW5jZVN0YXRlKSB7CiAgICBzdXBlci5vbkNyZWF0ZShzYXZlZEluc3RhbmNlU3RhdGUpOwogICAgVGVzdCB0ID0gbmV3IFRlc3QodGhpcyk7CiAgICB0LnNldFRleHQoKTsKICB9CiAgcHVibGljIHB1dFRleHQoU3RyaW5nIHMpewogICAgVGV4dFZpZXcuc2V0VGV4dChzKTsKICB9Cn0KLy8KcHVibGljIGNsYXNzIFRlc3QgewogIG1haW5fQWN0aXZpdHkgYTsKICBUZXN0KG1haW5fQWN0aXZpdHkgYSkgewogICAgdGhpcy5hID0gYTsKICB9CiAgcHVibGljIHNldFRleHQoKXsKICAgIGEucHV0VGV4dCgiQUJDIik7CiAgfQp9