基于Android - 的传感器技术应用开发 - 毕业设计 精品 - 图文

更新时间:2024-01-27 04:53:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

目录

摘 要 ---------------------------------------------------------------------------------------------------------------------I ABSTRACT --------------------------------------------------------------------------------------------------------------- II 引言 ----------------------------------------------------------------------------------------------------------------------------------------- 1 1

绪论 ---------------------------------------------------------------------------------------------------------------------------------- 2 1.1 研究背景与意义 ----------------------------------------------------------------------------------------------------- 2 1.2 国内外智能手机应用程序现状研究 ---------------------------------------------------------------------------- 3 1.3 研究目的及项目背景介绍 ----------------------------------------------------------------------------------------- 3 1.4 论文的研究内容和结构安排 -------------------------------------------------------------------------------------- 3 1.4.1 论文内容概述 ----------------------------------------------------------------------------------------------- 3 1.4.2 论文内容结构安排 ----------------------------------------------------------------------------------------- 4 1.5 小结--------------------------------------------------------------------------------------------------------------------- 4 2

基于Android的传感器技术研究 ----------------------------------------------------------------------------------------- 5 2.1 Android简述 --------------------------------------------------------------------------------------------------------- 5 2.1.1 Android平台简介------------------------------------------------------------------------------------------- 5 2.1.2 Android开发框架------------------------------------------------------------------------------------------- 5 2.1.3 Android应用程序组件 ------------------------------------------------------------------------------------- 6 2.1.4 Android软件开发的优点及缺点 ------------------------------------------------------------------------- 8 2.1.5 Basic4android开发环境的搭建 -------------------------------------------------------------------------- 9 2.1.6 运用Basic4android软件的优势 ------------------------------------------------------------------------ 10 2.2 传感器概念与分类 ------------------------------------------------------------------------------------------------- 11 2.2.1 传感器的概念 ---------------------------------------------------------------------------------------------- 11 2.2.2 传感器的分类 ---------------------------------------------------------------------------------------------- 11 2. 3 传感器在智能手机中的应用 ------------------------------------------------------------------------------------ 11 2. 4 Android平台传感器的种类 -------------------------------------------------------------------------------------12 2.4.1 加速传感器(重力传感器)Accelerometer --------------------------------------------------------------- 13 2.4.2 姿态传感器Orientation ---------------------------------------------------------------------------------- 14 2. 5 传感器的使用方法 ------------------------------------------------------------------------------------------------15 2.5.1 加速度传感器的调用(PhoneAccelerometer) ---------------------------------------------------------- 15 2.5.2 方向传感器的调用(PhoneOrientation)----------------------------------------------------------------- 15 2.6 B4A-Bridge软件的使用 ------------------------------------------------------------------------------------------16 2.7 小结--------------------------------------------------------------------------------------------------------------------17 3 游戏程序设计架构详解 --------------------------------------------------------------------------------------------------------18 3.1 程序开发背景与功能简介 ----------------------------------------------------------------------------------------18 3.1.1 程序开发背景简介 ---------------------------------------------------------------------------------------- 18 3.1.2 游戏功能简介 ---------------------------------------------------------------------------------------------- 18 3.2 游戏开发平台及工作准备 ----------------------------------------------------------------------------------------19 3.2.1 游戏开发平台 ---------------------------------------------------------------------------------------------- 19 3.2.2 游戏相关素材 ---------------------------------------------------------------------------------------------- 19 3.3 游戏整体详细框架 -------------------------------------------------------------------------------------------------19 3.3.1 游戏的功能模块详解 ------------------------------------------------------------------------------------- 19

3.3.2 游戏具体包含实体模块 ---------------------------------------------------------------------------------- 21 3.3.3 MVC设计模式介绍 --------------------------------------------------------------------------------------- 22 3.3.4 游戏设计规划过程 ---------------------------------------------------------------------------------------- 23 3.3.5 游戏各个模块设计详解 ---------------------------------------------------------------------------------- 23 3.4 游戏设计中的状态机 ----------------------------------------------------------------------------------------------25 3.5 小结--------------------------------------------------------------------------------------------------------------------25 4 游戏源程序开发 ------------------------------------------------------------------------------------------------------------------26 4.1 传感器游戏开发流程 ----------------------------------------------------------------------------------------------26 4.2 游戏开发实现过程的主要技术实现 ---------------------------------------------------------------------------26 4.2.1 Android静态图片的访问 --------------------------------------------------------------------------------- 26 4.2.2 Android动态图片的访问 --------------------------------------------------------------------------------- 27 4.2.3 图像色彩显示 ---------------------------------------------------------------------------------------------- 27 4.2.4 碰撞检测实现 ---------------------------------------------------------------------------------------------- 28 4.3 核心库文件的详细解读 -------------------------------------------------------------------------------------------29 4.3.1 GameView --------------------------------------------------------------------------------------------------- 29 4.3.2 Phone -------------------------------------------------------------------------------------------------------- 30 4.3.3 Audio --------------------------------------------------------------------------------------------------------- 32 4.4 游戏测试 -------------------------------------------------------------------------------------------------------------33 4.4.1 游戏测试环境 ---------------------------------------------------------------------------------------------- 33 4.4.2 游戏测试结果 ---------------------------------------------------------------------------------------------- 33 4.5 本章总结 -------------------------------------------------------------------------------------------------------------33 5 总结与展望 -------------------------------------------------------------------------------------------------------------------------34 5.1 论文总结 -------------------------------------------------------------------------------------------------------------34 5. 2 未来展望 -------------------------------------------------------------------------------------------------------------34 致谢 ----------------------------------------------------------------------------------------------------------------------------------------35 参考文献 ---------------------------------------------------------------------------------------------------------------------------------35

摘要

随着科学技术的发展,人们的沟通方式发生了翻天覆地的变化,对手机的需求也不在局限于传统的语音、短信功能,而是要求成为具有越来越完备和强大的应用数据处理能力,如移动办公、网上购物、互联网游戏、地图导航、随身数字影院、在线音乐等等兼备的智能的手持终端。在现实生活中,智能手机硬件以及软件开发商也正是朝着这个目标进行技术和产品的创新。因此也就出现了几大阵营的智能手机操作系统,目前使用最为广泛的是Apple公司的IOS,Microsoft的Windows Phone,以及现在正在迅速崛起的Google公司推出的基于Linux内核的开源智能手机操作系统——Android。

根据Google公司的统计数据,Android设备每日实际激活量约达65万台,该系统正在如火如荼的壮大。基于Android系统的各种手机硬件及软件研发已然成为一种趋势。作为近些年智能手机操作系统中的佼佼者之一,Google公司发布的Android系统正在趋于成熟,并凭借其自身强大的开源优势成为厂商在手机硬件和应用研发中的首选。Android系统平台有功能强大的传感器接口,这些接口为开发各类手机传感器应用(APPS)提供了便利的途径。

本文通过介绍基于Android系统平台的传感器应用游戏的设计与开发过程,阐述当前流行传感器应用程序在Android智能手机操作系统中的实现过程及涉及的技术要点。利用姿态传感器设计一款游戏应用程序,从而全面的学习并实践传感器在游戏开发过程中的使用。该程序中主要运用到的技术有传感器应用技术、游戏应用程序界面设计。

关键词:智能手机; Android; 传感器; 游戏开发

I

ABSTRACT

With the development of science and technology, the way people communicate has undergone enormous changes. They are no longer just confined to the traditional voice and text messaging function level, but require the phone has become more and more complete and powerful application processing capabilities. Such as mobile office, online shopping, internet games, map navigation, online music. Smart phones and application software developers are towards this objective technical and product research and development. The most widely used is the U.S. Apple's iPhone operating system and Microsoft Windows Phone mobile operating system. The open source Linux kernel Android smartphone operating system is rapidly emerging.

Android smartphone operating system platform has a powerful sensor interface, such as orientation sensor, accelerometer sensor, light sensor, magnetic field sensor, ambient temperature sensor, gravity sensor, gyroscope sensor, pressure sensor, proximity sensor, temperature sensor and rotation vector sensor etc. These all types of mobile sensor provide a convenient way for the development of applications.

This paper introduces a sensor application game design based on the Android smartphone operating system. Learning how the popular smartphone operating system sensor applications develop.

Keywords:Smart phones; sensor; games; Android

II

本文来源:https://www.bwwdw.com/article/0xsw.html

Top