目 录
1 绪论.........................................................................................................................................1
1.1 背景...............................................................................................................................1
1.2 Android 的崛起 .............................................................................................................1
1.3 国内外研究现状...........................................................................................................2
1.4 项目研究的主要内容...................................................................................................2
1.5 本章小结.......................................................................................................................3
2 Android 的开发环境 ...............................................................................................................3
2.1 Android 操作系统 .........................................................................................................3
2.2 Android 开发环境 .........................................................................................................3
2.3 Android 开发环境变量的配置 .....................................................................................3
2.3.1 JDK 的配置 .........................................................................................................3
2.3.2 SDK 的配置 ........................................................................................................5
2.4 Eclipse 的配置...............................................................................................................5
2.5 本章小结.......................................................................................................................5
3 Android 应用程序核心 ...........................................................................................................5
3.1 应用程序基础...............................................................................................................5
3.2 应用程序组件...............................................................................................................6
3.2.1 Acitivity ...............................................................................................................6
3.2.2 Service..................................................................................................................8
3.2.3 BroadcastReciver .................................................................................................9
3.2.4 ContentProvider .................................................................................................10
3.3 本章小结.....................................................................................................................11
4 项目效果截图与相关技术...................................................................................................11
4.1 地图的滑动.................................................................................................................11
4.2 MusicPlayer .................................................................................................................12
4.3 本游戏的核心类 GameEngine...................................................................................14
4.4 相关算法研究.............................................................................................................16
4.4.1 游戏资源进度的加载.......................................................................................16
4.4.2 邮件分页显示效果的实现...............................................................................17
4.4.3 玩家排名列表的实现.......................................................................................18
4.4.4 碰撞检测...........................................................................................................19
4.4.5 按每行指定长度画字符串...............................................................................19
4.4.6 根据一串连续的数字图片,画出任何数字...................................................20