hehonghui / android-jtm-issues Goto Github PK
View Code? Open in Web Editor NEW《Android开发进阶-从小工到专家》勘误
《Android开发进阶-从小工到专家》勘误
// 先获取tel_no字段的索引,然后再通过索引获取字段值
student.name = cursor.getString(cursor.getColumnIndex("name"));
P252 git branch -d net
删除代码是有问题,需要先merge,
如果没有merge分支,那么就得用git branch -D net
;
开发环境 Mac OX 10.11.6
git版本 2.5.4 (Apple Git-61)
还有P253 git checkout -- SayHello.java
我觉得最好还是说明下此命令的前提:没有add和commit才能恢复
P43,第二段第二行,不是"我们希望不保存原来的Canvas状态",应该为“我们希望保存原来的Canvas状态"。
P44,下方配图错误,canvas.rotate(90)应为顺时针旋转90度,配图给成了逆时针旋转90度。
P45,第一行,此时原点应该在右上角,向下x递增,向左y递增。
1、p43 “我们希望不保存原来的Canvas状态” --> “我们希望保存原来的Canvas状态”
2、p44 第3行代码: getTop()-50 --> getTop()+50,不然文字不会出现在界面内。
3、p44 图2-15错误 ,这不是顺时针旋转90度的图解
4、p45 第一行: “如图2-16” -->"如图2-15"
P97 3.2.7标题AsyncTask 而不是 AysncTask
p29:2.1.1,代码第三行(注释),复用属兔
--> 复用视图
p239:7.3.6,代码第三行,删除 final
p249:8.4.3,代码第二行,gitadd .
--> git add .
p261:8.5.5,标题,Giti gnore
--> Git ignore
第一处:13页中第一段代码(在Manifest中注册service)中不应该有android:process=":remote"
这句代码,这样远程调用不会成功,去掉这句后即可。
第二处:13页中第二段代码(MainActivity)在bindSsoAuthService方法中intent必须设置package,否则不明确的intent会抛出IllegalArgumentException异常,即加上一句intent.setPackage("book.aidl_server")
。
另外我也有一点没有明白,就是这句代码会让这个注册的service开启一个新的私有进程,即新进程的名字应该是“包名:remote”,所以我试着不修改第一处代码,在第二处代码处改为`intent.setPackage("包名:remote"),但是这样修改后bindService()会返回false,这是因为新进程为server端的私有进程,所以其他的进程无法访问吗?
github地址 .com 写成。Com
在addItems方法里面,由于bean对象没有实现equals方法,
导致使用,items.removeAll方法是没有用的,不知道这个算不算,错误。=_=
P68 : Lopper -->>Looper
P69 : PrePare--->>prepare
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.