天天看点

《Android应用开发攻略》——导读

《Android应用开发攻略》——导读

前言

对于蜂窝技术和移动计算来说,android是“开放源码的革命”,至少是革命的一部分。从已经不存在的openmoko freerunner到qt embedded、moblin、 limo、 debian mobile,以及maemo和最近刚刚开放源码的symbian os、刚刚消失的hp webos,人们对于提供开放源码的蜂窝技术已经做出了许多的尝试。我们也不要忘记闭源系统的忠实拥趸:blackberry os、apple iphone和microsoft windows mobile(这些系统都有开发人员工具箱,但是它们的os都不是开放源码的,并且常常有其他的“单击合同”(click-wrap)限制)。

但是,正如mike o扗ell曾经说过的,“空谈不能预测未来”。android是否能在其他竞争者中间占据重要位置?当我们开始组织本书的材料时,我们认为它已经做到了,实践也证明了:android绝对占据一席之地!本书旨在帮助android开发者社区分享知识,贡献这些知识的开发人员们将会使追随者们更轻松地进行android的开发工作。

关于android

android是一个移动技术平台,为蜂窝电话、平板电脑和其他手持或移动设备(甚至上网本)提供linux操作系统的能力和可移植性,以及标准高级语言和api的可靠性和可移植性。android应用使用eclipse等工具,以java语言编写,依靠android api编译并转换为用于dalvik vm的字节码。

因此,android的os家族与openmoko、qt embedded、 meego、ophone、 limo和其他基于linux的蜂窝电话项目相关联。android还与blackberry和java me手机的编程语言,以及java和更广泛的java企业应用程序相关联。

android的销售量已经持续攀升;来自npd的一篇报道称,2010年第一季度,所有android设备的销售量超过了iphone的销售量,上升到第二位(仍然与blackberry平台有一定差距)。当然,android的销售量增长部分原因是主要运营商verizon“买一送一”的促销行动,但是这并不是全部原因

[第1章 入门

<a href="https://yq.aliyun.com/articles/175939">1.2 学习java语言</a>

<a href="https://yq.aliyun.com/articles/175942">1.3 从命令行创建 “hello, world”应用程序</a>

<a href="https://yq.aliyun.com/articles/175948">1.4 在eclipse中创建“hello, world”应用程序</a>

<a href="https://yq.aliyun.com/articles/175953">1.5 在windows上安装用于android开发的ide</a>

<a href="https://yq.aliyun.com/articles/175954">1.6 理解android生命周期</a>

<a href="https://yq.aliyun.com/articles/175956">1.7 通过adb在模拟器上安装.apk文件</a>

<a href="https://yq.aliyun.com/articles/175960">1.8 通过slideme将应用程序安装到模拟器上</a>

<a href="https://yq.aliyun.com/articles/175964">1.9 共享来自其他eclipse项目的java类</a>

<a href="https://yq.aliyun.com/articles/175966">1.10 引用程序库实现外部功能</a>

<a href="https://yq.aliyun.com/articles/175973">1.11 使用sdk样例避免棘手的情况</a>

<a href="https://yq.aliyun.com/articles/175983">1.12 保持android sdk更新</a>

<a href="https://yq.aliyun.com/articles/175991">1.13 从模拟器/android设备获得屏幕截图</a>

<a href="https://yq.aliyun.com/articles/175999">1.14 程序:简单的countdowntimer示例</a>

<a href="https://yq.aliyun.com/articles/176019">1.15 程序:android os下的小费计算器tipster</a>

[第2章 设计成功的应用程序

<a href="https://yq.aliyun.com/articles/176028">2.2 异常处理</a>

<a href="https://yq.aliyun.com/articles/176034">2.3 作为“单例”访问android应用程序对象</a>

<a href="https://yq.aliyun.com/articles/176037">2.4 在用户旋转设备时保存数据</a>

<a href="https://yq.aliyun.com/articles/176040">2.5 监控android设备的电量</a>

<a href="https://yq.aliyun.com/articles/176050">2.6 在android中创建闪屏</a>

<a href="https://yq.aliyun.com/articles/176054">2.7 设计会议/网络研讨/编程马拉松/机构用的应用程序</a>

<a href="https://yq.aliyun.com/articles/176057">2.8 在android应用中使用google analytics</a>

<a href="https://yq.aliyun.com/articles/176061">2.9 简单的手电筒应用程序</a>

<a href="https://yq.aliyun.com/articles/176063">2.10 将android手机应用程序改编为平板电脑应用程序</a>

<a href="https://yq.aliyun.com/articles/176064">2.11 设置首次运行的首选项</a>

<a href="https://yq.aliyun.com/articles/176066">2.12 为显示格式化时间和日期</a>

<a href="https://yq.aliyun.com/articles/176068">2.13 用keylistener控制输入</a>

<a href="https://yq.aliyun.com/articles/176071">2.14 备份android应用程序数据</a>

<a href="https://yq.aliyun.com/articles/176075">2.15 用提示代替工具提示</a>

[第3章 测试

<a href="https://yq.aliyun.com/articles/176080">3.2 在android中进行tdd</a>

<a href="https://yq.aliyun.com/articles/176087">3.3 为应用测试设置android虚拟设备(avd)</a>

<a href="https://yq.aliyun.com/articles/176089">3.4 用基于云的测试在多种设备上进行测试</a>

<a href="https://yq.aliyun.com/articles/176094">3.5 测试项目的创建和使用</a>

<a href="https://yq.aliyun.com/articles/176098">3.6 应用程序崩溃排错</a>

<a href="https://yq.aliyun.com/articles/176100">3.7 用log.d和logcat进行调试</a>

<a href="https://yq.aliyun.com/articles/176103">3.8 用bugsense自动从用户那里得到缺陷报告</a>

<a href="https://yq.aliyun.com/articles/176104">3.9 使用本地运行时应用程序日志分析现场错误情况</a>

<a href="https://yq.aliyun.com/articles/176106">3.10 为测试重现活动生命周期场景</a>

<a href="https://yq.aliyun.com/articles/176107">3.11 用strictmode保持应用程序敏捷性</a>

<a href="https://yq.aliyun.com/articles/176108">3.12 运行monkey程序</a>

<a href="https://yq.aliyun.com/articles/176111">3.13 发送文本消息以及avd之间的通话</a>

继续阅读