android - 父类BaseActivity中定义了方法 子类DialActivity覆盖这个方法只执行一次
ringa_lee
ringa_lee 2017-04-17 17:34:13
0
4
469

在写android程序,父类BaseActivity中定义了方法onCalling(String id){}, 子类DialActivity覆盖这个方法onCalling(String id){xxxxx}.

调试发现只有第一次运行程序时, 子类的方法被执行了,以后就再不被执行了,

ringa_lee
ringa_lee

ringa_lee

reply all(4)
迷茫

The description is not detailed enough. The subclass inherits baseActivity and overrides the method. If the parent class or subclass executes it, it will be executed. If it is not executed, it will not be a problem with the logic here. It should be because you did not pay attention to other details

洪涛

I just solved it by broadcasting it to the sub-Activity

Peter_Zhu

Breakpoint debugging method to check the execution frequency of relevant code and make appropriate changes

巴扎黑

1. You need to understand what your own problem is
2. Describe your problem completely

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template