Giter Site home page Giter Site logo

Comments (3)

vincent4j avatar vincent4j commented on June 12, 2024

在1.6或1.6之前,只有Service.onStart()方法。等到2.0时,Service.onStartCommand()出现,同时Service.onStart()不推荐使用。

毕竟当前1.6机器几乎已经绝迹,所以这也是作者的一个疏忽,应该使用官方推荐的 onStartCommand,而不是 onStart(虽说onStart也不会有错)。期待在下次印刷中修正;同时,多谢 http://weibo.com/darkeeeeeeeer 的反馈。

官方文档:
http://developer.android.com/guide/components/services.html#CreatingStartedService

http://developer.android.com/reference/android/app/Service.html#onStartCommand(android.content.Intent, int, int)

issue1

from google_android_book_v2.

jackspec avatar jackspec commented on June 12, 2024

回复有很效率

from google_android_book_v2.

vincent4j avatar vincent4j commented on June 12, 2024

既然该问题得到回复,那我就close掉了。@jackspec

from google_android_book_v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.