
| Zigurd Mednieks是一位咨询师,为领先外包厂商、企业和风险投资公司开发基于Android的系统提供咨询。 Laird Dornin是一家主要无线运营商的高级工程师,在Java、Android、J2ME、SaveJe和WebKit等方面具有广泛经验。 G.Blake Meike是一位Java应用程序资深开发人员,开发经验涵盖从移动设备到服务器端编程的一系列平台。 Masumi Nakamura是Where公司的Big Data和Recommendations Group首席架构师。 .. << 查看详细 |
| 《android程序设计(影印版)》 preface part i. tools and basics 1. your toolkit installing the android sdk and prerequisites the java development kit (jdk) the eclipse integrated development environment (ide) the android sdk adding build targets to the sdk the android development toolkit (adt) plug-in for eclipse test drive: confirm that your installation works making an android project making an android virtual device (avd) running a program on an avd2f running a program on an android device troubleshooting sdk problems: no build targets components of the sdk the android debug bridge (adb) the dalvik debug monitor server (ddms) components of the adt eclipse plug-in .android virtual devices other sdk tools keeping up-to-date keeping the android sdk up-to-date keeping eclipse and the adt plug-in up-to-date keeping the jdk up-to-date example code sdk example code example code from this book on reading code 2. java for android android is reshaping client-side java the java type system primitive types objects and classes object creation the object class and its methods objects, inheritance, and polymorphism final and static declarations abstract classes interfaces exceptions the java collections framework garbage collection scope java packages access modifiers and encapsulation idioms of java programming type safety in java using anonymous classes modular programming in java basic multirhreaded concurrent programming in java synchronization and thread safety thread control with wait() and notify() methods synchronization and data structures 3. the ingredients of an android application traditional programming models compared to android activities, intents, and tasks other android components service content providers broadcastreceiver static application resources and context application manifests a typical source tree initialization parameters in androidmanifest.xml resources the android application runtime environment the dalvik vm zygote: forking a new process sandboxing: processes and users component life cycles the activity life cycle packaging an android application: theapk file on porting software to android 4. getting your application into users' hands application signing public key encryption and cryptographic signing how signatures protect software users, publishers, and secure communications signing an application placing an application for distribution in the android market becoming an official android developer uploading applications in the market getting paid google maps apl keys specifying apl-level compatibility compatibility with many kinds of screens testing for screen size compatibility resource qualifiers and screen sizes 5. eclipse for android software development eclipse concepts and terminology plug-ins workspaces java environments projects builders and artifacts extensions associations eclipse views and perspectives the package explorer view the task list view the outline view the problems view java coding in eclipse editing java code and code completion refactoring eclipse and android preventing bugs and keeping your code clean static analyzers applying static analysis to android code limitations of static analysis eclipse idiosyncrasies and alternatives 6. effective java for android the android framework the android libraries extending android organizing java source concurrency in android asynctask and the ui thread threads in an android process serialization java serialization parcelable classes that support serialization serialization and the application life cycle part ii. about the android framework 7. building a view android gui architecture the model the view the controller putting it together assembling a graphical interface wiring up the controller listening to the model listening for touch events listening for key events alternative ways to handle events advanced wiring: focus and threading the menu 8. fragments and multiplatform support creating a fragment fragment life cycle the fragment manager fragment transactions the compatibility package 9. drawing 2d and 3d graphics rolling your own widgets layout canvas drawing drawables bitmaps bling shadows, gradients, and filters animation opengl graphics 10. handling and persisting data relational database overview sqlite the sql language sql data definition commands sql data manipulation commands additional database concepts database transactions example database manipulation using sqlite3 sql and the database-centric data model for android applications the android database classes database design for android applications basic structure of the simplevideodbhelper class using the database apl: mjandroid android and social networking the source folder (src) loading and starting the application database queries and reading data from the database modifying the database part iii. a skeleton application forandroid 11. a framework for a well-behaved application visualizing life cycles visualizing the activity life cycle visualizing the fragment life cycle the activity class and well-behaved applications the activity life cycle and the user experience life cycle methods of the application class a flowing and intuitive user experience across activities multitasking in a small-screen environment tasks and applications specifying launch and task behavior 12. using content providers understanding content providers implementing a content provider browsing video with finch defining a provider public api defining the content_uri creating the column names declaring column specification strings writing and integrating a content provider common content provider tasks file management and binary data android mvc and content observation a complete content provider: the simplefinchvideocontentprovider code the simplefinchvideocontentprovider class and instance variables implementing the oncreate method implementing the gettype method implementing the provider apl determining how often to notify observers declaring your content provider 13. exploring content providers developing restful android applications a "network mvc" summary of benefits code example: dynamically listing and caching youtube video content structure of the source code for the finch youtube video example stepping through the search application step 1: our ui collects user input step 2: our controller listens for events step 3: the controller queries the content provider with a managedquery on the content provider/model step 4: implementing the restful request constants and initialization creating the database a networked query method insert and responsehandlers file management: storing thumbnails part iv. advanced topics 14. multimedia audio and video playing audio and video audio playback video playback recording audio and video audio recording video recording stored media content 15. location and mapping location-based services mapping the google maps activity the mapview and mapactivity working with mapviews mapview and mylocationoverlay initialization pausing and resuming a mapactivity controlling the map with menu buttons controlling the map with the keypad location without maps the manifest and layout files connecting to a location provider and getting location updates updating the emulated location 16. sensors, nfc, speech, gestures, and accessibility sensors position other sensors near field communication (nfc) reading a tag writing to a tag p2p mode gesture input accessibility 17. communication, identity, sync, and social media account contacts authentication and synchronization authentication synchronization bluetooth the bluetooth protocol stack bluez: the linux bluetooth implementation using bluetooth in android applications 18. the android native development kit (ndk) native methods and jni calls conventions on the native method side conventions on the java side the android ndk setting up the ndk environment compiling with the ndk jni, ndk, and sdk: a sample app android-provided native libraries building your own custom library modules native activities index |
商品评论(0条)