出版時間:2011-12 出版社:東南大學出版社 作者:(美)梅德尼克斯 等著 頁數(shù):482
Tag標簽:無
內容概要
《Android程序設計(影印版)》深度探索Android的核心構造模塊和應用程序編程接口,并且學習如何創(chuàng)建適用于全系列Android設備的引人注目的應用程序。你將使用經過驗證的方法進行應用設計和實現(xiàn)——包括在你的項目起步時可用的應用程序框架。
作者簡介
Zigurd Mednieks是一位咨詢師,為領先外包廠商,企業(yè)和風險投資開發(fā)基于Android的系統(tǒng)提供咨詢。
Laird Dornin 是一家主要無線運營商的高級工程師,在Java,
Android,J2ME,SaveJe和WebKit等方面具有廣泛經驗。
書籍目錄
Preface
Tools and Basics
About the Android Framework
A Skeleton Application for Android
Advanced Topics
Index
章節(jié)摘錄
版權頁: 插圖: Eclipse refactoring tools are your best friend.With just a few clicks you can create anew project for the now standalone subtree,cut and paste the content provider codeinto it,and then rename the packages as appropriate.Eclipse will fix most things,including the changed references. It's worth a reminder that shortcutting package names-using a package named justweatherprediction,for instance-is a bad idea.Even if you are pretty sure the code youare creating will never be used outside its current context,you may want to use externally produced code in that context.Don't set yourself up for a name collision.Concurrency in AndroidAs mentioned in Chapter 2,writing correct concurrent programs can be very difficult.The Android libraries provide some convenient tools to make concurrency both easierand safer. When discussing concurrent programs,developers get into the habit of talking asthough writing code with multiple threads actually causes those threads to execute atthe same time-as though threading actually makes-the program run faster.Of course,it isn't quite that simple.Unless there are multiple processors to execute the threads,a program that needs to perform multiple,unrelated,computebound tasks will complete those tasks no more quickly if they are implemented as separate threads than itwill if they are on the same thread.In fact,on a single processor,the concurrent versionmay actually run somewhat more slowly because of the overhead due to contextswitching. Multithreaded Java applications were around for a long time before most people couldafford machines with more than one processor on which to run them.In the Androidworld,multithreading is an essential tool,even though the majority of devices willprobably have only a single CPU for another year or so.So what is the point of concurrency if not to make a program run faster?If you've been programming for any length of time at all,you probably don't even thinkabout how absolutely essential it is that the statements in your code are executed in arigid sequential order.The execution of any given statement must,unconditionally,happen before the execution of the next statement.Threads are no more than an explicitway of relaxing this constraint.They are the abstraction that developers use to make itpossible to write code that is still ordered,logical,and easy to read,even when tasksembodied by the code are not related by ordering.
媒體關注與評論
“終于!有本深入細節(jié)的書了!歡呼!” - Perry J. Nally FeetDog.com “了不起的著作。我讀了幾章就無法放下?!?- Wenjing Dai 開發(fā)人員
編輯推薦
《Android程序設計(影印版)》深入探究傳感器、原生開發(fā)、三維圖形以及其他主題,并且探索發(fā)現(xiàn)如何在你所選擇的平臺上構建應用程序。如果你是一個技能中等以上的程序員,你將學會如何制作了不起的Android應用程序。
名人推薦
“終于!有本深入細節(jié)的書了!歡呼!” ——Perry J.Nally FeetDog.com “了不起的著作。我讀了幾章就無法放下?!?——Wenjing Dai開發(fā)人員
圖書封面
圖書標簽Tags
無
評論、評分、閱讀與下載