Comments (3)
在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
from google_android_book_v2.
回复有很效率
from google_android_book_v2.
既然该问题得到回复,那我就close掉了。@jackspec
from google_android_book_v2.
Related Issues (20)
- Bug:第268页代码段“DownloadThread的实现"部分,最后一行代码对象mHandler无定义。 HOT 3
- #10# weight权重的反馈 HOT 10
- #12# 12.3源码问题:java.lang.NoClassDefFoundError: com.db4o.Db4oEmbedded HOT 3
- 新版本建议集锦! HOT 2
- #15# 214页,不理解:框架将不会画不在失效区域的视图 HOT 3
- 第1次印刷问题统计 HOT 11
- 第19章,267页,代码排版不对齐:1. Button的监听事件(startScanner()) HOT 1
- hexter 修改 HOT 9
- #13# 代码排版问题:部分代码左对齐 HOT 7
- #4# eoe 全小写的问题 HOT 2
- #10# 源码缺省 HOT 1
- #10# 部分 xml 文件名首字母大写 HOT 2
- 留有 修改 HOT 1
- 规则:如何直接在 Dropbox 上的 doc 文档上进行纠错 HOT 1
- #一印纠错# 尚未完成部分汇总
- #20# eoeWiKI源码还是运行不了? HOT 8
- 发现1处印刷错误 HOT 2
- 12章notepad的源码是不是有问题? HOT 2
- 第十三章的项目eoeWikiRecent中的URL地址是不是改了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google_android_book_v2.