Android的官方文档是这样建议的:

对于Activity:
Note: Your implementation of these lifecycle methods must always call the superclass implementation before doing any work, as shown in the examples above.
即首先调用super.detory()


对于App Service:
Unlike the activity lifecycle callback methods, you are not required to call the superclass implementation of these callback methods. 不是强制需要调用,因为在父类service中,是个空实现。


注意:pmd对于android的检查结果是错误的。

更多相关文章

  1. Android开发错误——Android Studio中遇到过的错误问题与解决方
  2. Android 记录一个智障错误
  3. Mac下发布Unity3d中Android平台下出现“android (invokation fai
  4. android错误分析集锦
  5. android开发文档中的一个小错误
  6. 我的android 第10天 - pull解析Xml文档
  7. [置顶] Android官方文档系列(翻译)
  8. Android常见错误处理

随机推荐

  1. aes文件读取
  2. 【30篇突击 android】源码统计 十四
  3. Android2.2平台上支持多camera(二)
  4. Android官方技术文档翻译——Eclilpse项
  5. android 开发 实现自动安装
  6. Android通过SystemProperties类查看系统
  7. Android JavaBinder: !!! FAILED BINDER
  8. Delphi XE5 for Android (三)
  9. android webview秒开框架
  10. ubuntu上实现Android(安卓)JNI示例