0
자신의 활동 스타트 기능 (그에게 논리의 오류를 생각;))안드로이드 난 내 자신의 기능과 활동을 시작하려했지만, 그것이 작동하지 않습니다
가 살펴 준비해주십시오
Intent adder = new Add().execute(this, Add.class, "Test:","Add the test");
startActivity(adder);
을
public class Add extends Activity {
public Intent execute(Context context, Class<?> cls, String addText, String buttonText) {
TextView addStr = (TextView) findViewById(R.id.addtext);
addStr.setText(addText);
Button addBtn = (Button) findViewById(R.id.addbtn);
addBtn.setText(buttonText);
return new Intent(context, cls);
}
}
문제점은 무엇입니까 :
이 내가 시작하려는 활동은?
내가 활동에서 보는 것을 어떻게 생각하십니까? 두 가지 작업에 하나의 작업을 사용하고 싶었 기 때문에 작업의 일부 텍스트를 변경해야합니다. –