基于Android的手机应用开发—连连看游戏的开发与实现

  • 格式:doc
  • 大小:1.38 MB
  • 文档页数:72

本 科 毕 业 设 计(论文)

题目: 基于Android的手机应用开发——

连连看游戏的开发与实现

姓 名

学 院 信息与通信工程学院

专 业 自动化

班 级

学 号

班内序号

指导教师

2010年6月

基于Android的移动智能应用开发—

连连看游戏的开发与实现

摘 要

在地铁、机场和车站,越来越多的人低头玩着手机游戏,伴随着不断变化的表情,或皱眉或微笑。手机已经成为人们生活的一部分,人们也渐渐习惯于将手

机作为新的娱乐工具。现在3G手机时代又即将开启。

2007年末,Android平台犹如一颗Google公司丢的重磅炸弹,在移动终端领域掀起了轩然大波。Android凭借其开放性和灵活性渐渐赶超原有系统平台,成为近年来最热门的移动终端平台之一,在Android平台上进行游戏的开发,成

为一个有趣并富有潜力的领域。

此次毕业设计的目的就是了解和掌握Android操作系统,并在Android平台

上做简单的移动智能应用开发。平台采用Java语言在eclipse上实现并测试。

该文章总体上可以分成两大部分,第一部分首先对Android平台的搭建作了简要的说明,然后介绍Android平台上开发的小游戏“连连看”的过程及方法;该游戏除了能实现传统“连连看”游戏的基本功能外,还有一些附加功能如帮助、背景音乐等。第二部分介绍在Android平台上开发的一个程序,这个程序可以实现对视频的录制,并将录好的视频存储在手机的SD卡上这样一种功能。其中第二部分可以被借鉴,进一步用于DVC编解码的实现。也列举出了在调试程序时遇到的一些问题和解决方法。将这两个程序放到真机上测试也收到了良好的效果。

关键词 Android SD卡 DVC 3G

Android-based Mobile Intelligent Application Development

–the development and implementation of the game

Lianliankan

ABSTRACT

In the subway, airport and station, more and more people playing mobile games

bow, accompanied by changing expression, or frown or smile. Phones have become a

part of life, and people became accustomed to hand machine as a new entertainment

tool. Now they are soon to open 3G cell phone era.

The end of 2007, Android platform broke out like a blockbuster from Google Inc.

in the field of mobile terminal has sparked an outcry. Android by virtue of its

openness and flexibility gradually catch up with the original platform, become the

most popular mobile terminal platforms. The game development in the Android

platform has become an interesting and promising area.

The graduation project is aimed to understand and master the Android operating

system, and to do simple Android platform for mobile intelligent application

development. The platform uses the java language, and is implemented and tested by

eclipse.

The article in general can be divided into two parts, the first part of the Android

platform, a brief description of the structures, and then describes the development of

Android platform game "Lianliankan" process and methods; the game in addition to

achieve the traditional "Lianliankan" the basic function of the game, there are some

additional features such as help, background music. The second part describes the

development of Android platform, a program, this program can be recorded on video

and video-recorded stored in the SD card such a function. The second part of which

can be reference, and further for DVC codec implementation. Also cited a number of

problems and solutions encountered in the debugger These two procedures into a real

machine on the test also received good results.

KEY WORDS Android sdcard DVC 3G 北京邮电大学本科毕业设计(论文)

1

目 录

第一章 开发背景介绍 ----------------------------------------------- 2

1.1 手机应用市场描述 ---------------------------------------- 2

1.2 移动互联网进展 ------------------------------------------ 2

1.3 智能手机应用平台 ---------------------------------------- 4

1.4 Android平台介绍 ---------------------------------------- 6

1.5 Android开源性能展望 ------------------------------------ 9

第二章 连连看游戏开发过程介绍 ------------------------------------ 10

2.1 连连看游戏背景介绍 ------------------------------------- 10

2.2 连连看游戏开发平台介绍 --------------------------------- 10

2.3 核心算法说明 ------------------------------------------- 12

2.3.1 数字化和布局 -------------------------------------- 12

2.3.2 判断两个点的连通性 -------------------------------- 13

2.3.3 布局无解的判断 ------------------------------------ 14

2.4 连连看游戏UI部分介绍 ---------------------------------- 14

2.5 代码的实现与分析 --------------------------------------- 23

第三章 获取视频文件的程序设计 ------------------------------------ 29

3.1 Android多媒体开发背景介绍 ----------------------------- 29

3.2 MediaRecorder类的介绍 --------------------------------- 29

3.3 设计思路概述 ------------------------------------------- 30

3.4 程序UI部分介绍 ---------------------------------------- 31

3.5 代码的实现与分析 --------------------------------------- 33

第四章 遇到的问题及解决方法 ------------------------------------ 34

第五章 程序开发的心得体会 -------------------------------------- 40

参考文献 ------------------------------------------------------- 41

致 谢 --------------------------------------------------------- 42

附 录 1 ------------------------------------------------------- 43

附 录 2 --------------------------------------------------------- 64