Locations of super() calls in Android Eclipse Plugin generated code reliable?
问题 In many of Android methods, especially constructors and overridden methods, you should or even must call the parent class method using super() . When you use the Eclipse Source > Override/Implement Methods... you get code from a template with TODO tags like this: public MyCanvas(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); } I do