出版時(shí)間:2011-12 出版社:東南大學(xué)出版社 作者:(美)梅德尼克斯 等著 頁數(shù):482
Tag標(biāo)簽:無
內(nèi)容概要
《Android程序設(shè)計(jì)(影印版)》深度探索Android的核心構(gòu)造模塊和應(yīng)用程序編程接口,并且學(xué)習(xí)如何創(chuàng)建適用于全系列Android設(shè)備的引人注目的應(yīng)用程序。你將使用經(jīng)過驗(yàn)證的方法進(jìn)行應(yīng)用設(shè)計(jì)和實(shí)現(xiàn)——包括在你的項(xiàng)目起步時(shí)可用的應(yīng)用程序框架。
作者簡介
Zigurd Mednieks是一位咨詢師,為領(lǐng)先外包廠商,企業(yè)和風(fēng)險(xiǎn)投資開發(fā)基于Android的系統(tǒng)提供咨詢。
Laird Dornin 是一家主要無線運(yùn)營商的高級(jí)工程師,在Java,
Android,J2ME,SaveJe和WebKit等方面具有廣泛經(jīng)驗(yàn)。
書籍目錄
Preface
Tools and Basics
About the Android Framework
A Skeleton Application for Android
Advanced Topics
Index
章節(jié)摘錄
版權(quán)頁: 插圖: 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.
媒體關(guān)注與評(píng)論
“終于!有本深入細(xì)節(jié)的書了!歡呼!” - Perry J. Nally FeetDog.com “了不起的著作。我讀了幾章就無法放下?!?- Wenjing Dai 開發(fā)人員
編輯推薦
《Android程序設(shè)計(jì)(影印版)》深入探究傳感器、原生開發(fā)、三維圖形以及其他主題,并且探索發(fā)現(xiàn)如何在你所選擇的平臺(tái)上構(gòu)建應(yīng)用程序。如果你是一個(gè)技能中等以上的程序員,你將學(xué)會(huì)如何制作了不起的Android應(yīng)用程序。
名人推薦
“終于!有本深入細(xì)節(jié)的書了!歡呼!” ——Perry J.Nally FeetDog.com “了不起的著作。我讀了幾章就無法放下?!?——Wenjing Dai開發(fā)人員
圖書封面
圖書標(biāo)簽Tags
無
評(píng)論、評(píng)分、閱讀與下載