The Developer's Guide 开发指南

本文档为安卓开发者提供了全面的应用开发指南,涵盖安卓基础知识、框架主题、市场发布、开发工具及最佳实践等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Welcome to the Android Dev Guide! The Dev Guide provoids a practical introduction to developing application for Android and documention about major platform features. It explores the concepts behind Android, the framework for constructing an application, and the tools for developing, testing, and publishing software for the platform.

 

欢迎来到安卓开发指南! 该开发指南提供实用的安卓应用开发介绍和主要平台特性文档.它将探讨安卓的一些概念, 构建应用的框架、开发工具和测试、以及在平台上发布软件.

 

The Dev Guide holds most of the documentation for the Android platform, except for reference material on the framework API. For API specifications, go to the Reference.

 

除了框架API参考资料外,开发指南拥有大量的安卓平台文档. 有关API的说明, 请进入参考网站.

 

As you can see in panel on the left, the Dev Guide is divided into serveral sections:

 

在左边的面板你可以看到开发指南被分为以下几个部分:

 

Android Basics

       An initial orientation to Adroid - what it is, what it offers, and how your application fits in.

 

安卓基础

     安卓最初的定位 - 它是什么?它提供什么? 你的那些应用合适使用安卓?

 

Framework Topics

       discussions of particular parts of the Android framework an API. For an introduction to the framework, begin with Application Fundamentals. Then explore topics - from designing a user interface and setting up resources to storing data and useing permissions - as needed.

 

框架主题

      安卓框架和API部分的详细讨论. 关于框架的介绍, 先是应用基础、 然后探讨的话题有用户界面设计, 应用资源创建到数据存储和在必要情况下使用权限.

 

Android Market Topics

       Documentation for topics that concern pulishing and monetizing application on Android Market, such as how to enforce licensing policies and implement in-app biling .

 

安卓商店主题

      涉及在安卓商店发布应用程序和收费的主题文档, 例如怎么强制执行许可策略和实现程序内置计费.

 

Developing

        Direction for using Android's development and debugging tools, and for testing the results.

 

开发

     安卓的开发和调试工具的使用方法、测试结果.

 

Publishing

       Instructions on how to prepare your application for deploymen and how to publish it when it's ready.

 

发布

     有关应用程序部署的准备和准备好了进行发布的说明.

 

Best Practices

       Recommendations on preferred techniques for writing applications that perform efficiently and work well form the user.

 

最佳实践

     推荐使用最优的技巧实现应用程序, 对于用户来说能够带来高效率和人性化的应用.

 

Web Applications'

        Documentation about how to create web application that work seamlessly on Android-powered devices and create Android applications that embed web-based content.

 

网络应用程序

     关于在装配安卓系统的设备中怎么创建兼容的网络应用程序、以及怎么创建内嵌网页内容安卓应用程序的相关文档.

 

 

 

 

 

 

 

目录如下: Android Platform Developer's Guide 4 About this Guide 4 Intended Audience 4 Getting Started with Android 4 Android Build System 4 In this document 4 Building the Android Platform 6 Building the Android Kernel 8 Build Variants 9 Configuring a New Product 10 In this document 10 Detailed Instructions 11 New Product File Tree 13 Product Definition Files 14 Build Cookbook 15 In this document 15 Building a simple APK 16 Building a APK that depends on a static .jar file 16 Building a APK that should be signed with the platform key 16 Building a APK that should be signed with a specific vendor key 17 Adding a prebuilt APK 17 Adding a Static Java Library 18 Android.mk Variables 18 Creating Release Keys and Signing Builds 26 In this document 26 Introduction 27 Generating keys 27 Signing a build for release 28 Customization 29 In this document 29 Boot Screen Customization 29 Network Customization Platform 30 Customizing pre-loaded applications 31 Customizing browser bookmarks 32 Email Provider Customization 34 Platform Themes 37 Bring Up 38 1. Confirm a Clean Installation of a Basic Linux Kernel 38 2. Modify Your Kernel Configuration to Accommodate Android Drivers 38 3. Write Drivers 38 4. Burn Images to Flash 39 5. Boot the kernel and mount the RAMdisk. 39 6. Debug Android-specific init programs on RAMdisk 39 7. Verify that applications have started 40 8. Pulling it all together 40 Android Init Language 41 Display Drivers 46 In this document 46 Functionality 46 Implementing Your Own Driver (Driver Template) 47 Troubleshooting 54 Keymaps and Keyboard Input 54 In this document 54 Functionality 55 Key Layout Map 56 Key Character Map 58 Implementing Your Own Driver (Driver Template) 61 Sample Implementation 64 Lights 65 In this document 65 Building a Lights Library 66 Interface 66 light_state_t Struct Reference 69 Data Fields 69 Detailed Description 69 Field Documentation 69 Audio 70 In this document 70 Building an Audio Library 71 Interface 72 Camera 78 In this document 78 Building a Camera Library 79 Sequence Diagrams 80 CameraHardwareInterface.h File Reference 82 Namespaces 82 Data Structures 82 Typedefs 83 Functions 83 Power Management 83 Introduction 84 Wake Locks 85 Driver API 87 User-space API 87 Types of Wake Locks 88 Exploring a Wake Lock Example 88 PowerManager class 89 Registering Drivers with the PM Driver 89 Early Suspend 90 Sensors 90 In this document 90 Building a Sensor Library 91 Interface 91 sensors.h File Reference 91 Data Structures 91 Radio Layer Interface 92 In this document 92 RIL Initialization 94 RIL Interaction 94 Implementing the RIL 96 RIL Functions 97 Dalvik 100 In this document 100 Core Libraries 100 JNI Call Bridge 101 Interpreter 102 Mterp Interpreter Structure 102 Getting Started With Mterp 103 Replacing Stubs 105 Interpreter Switching 106 Testing 106 Testing and Debugging 107 Instrumentation Testing 107 In this document 107 Instrumentation Framework 108 Platform Test Suites 109 Running Tests 110 Writing Tests 114 Debugging with GDB 116 In this document 116 Debugging 117 Just-In-Time Debug Feature 119 Debugging Native Code 120 In this document 120 Capturing logs 120 Debug Scenarios 121 Debugging with tcpdump and other tools 128 Installing tcpdump 128 Running tcpdump 129 Other network debugging commands 130
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值