此时直接或者被覆盖以后,在Inactive的时候资源会释放,再返回Active的时候,需要重新获取资源,在弹出窗口提示进入OnActive的时候,可以如下代码:
公共无效 onActive() {
super.onActive();
button = (Button)findComponentById(ResourceTable.Id_button);
button.setClickedListener(new Component.ClickedListener() {
public void onClick(组件组件){
System.out.println("button.onClick");
现在(新切片B(),新意图());
此时直接或者被覆盖以后,在Inactive的时候资源会释放,再返回Active的时候,需要重新获取资源,在弹出窗口提示进入OnActive的时候,可以如下代码:
公共无效 onActive() {
super.onActive();
button = (Button)findComponentById(ResourceTable.Id_button);
button.setClickedListener(new Component.ClickedListener() {
public void onClick(组件组件){
System.out.println("button.onClick");
现在(新切片B(),新意图());
举报