地铁蔬菜贩卖机Android手机终端软件的设计与实现

 2022-01-23 09:01

论文总字数:42191字

摘 要

为了满足人们快节奏的生活需求,提高南京地铁站中蔬菜贩卖机的销售效率,本课题目的是开发名为“南京铁流”的手机终端软件。该软件可以实时获取售货机信息,并给消费者和运营商之间提供一个交流平台。软件功能包括地铁线路查询、站点查询、打折优惠查询、售货机位置查询、投诉建议以及售货机在售商品种类、价格、库存查询等。利用google公司提供的ADT安卓开发工具,通过java编程语言对软件进行开发。开发过程中利用Android视图控件Button、TextView、ImageView等对软件进行界面设计;利用ArrayAdapter实现自定义的蔬菜水果信息列表;利用Android组件Activity、Intent等实现界面之间的跳转及各功能模块的协同工作。通过自动售货机生产厂商提供的开放平台API接口函数,实现对售货机后台服务器的访问。通过传入厂商提供的密码和售货机的机器编码等参数获取服务器返回信息,并显示于软件商品信息查询界面中。

最后在Android模拟器和搭载Android操作系统的物理设备中分别对软件进行稳定性测试。“南京铁流”软件各功能模块的开发和测试过程将在本文中详细讨论。

关键词:Android;蔬果贩卖机;手机应用;java;ADT

Design and implementation of software for Android mobile phone of subway vegetable vending machine

Abstract

The quick fix lifestyle today is getting more and more popular. In order to improve the sales efficiency of vegetable vending machine in Nanjing subway station.The purpose of this research is develop mobile phone software which ia named “Nanjingtieliu”.People can get the information of the vending machine in time by this software.And it provide a communication platform between consumers and operators.The function of the software includes the query of the subway line, the quiry of the station, the quiry of the discount, the quiry of position of the vending machine.And the the quiry of types,price,inventory queries of goods sold in vending machines.Using ADT Android development tools provided by google,the software is develeped by JAVA programming language.In the development process, the interface of the software is designed by using Android view control Button, TextView, ImageView and so on;Using ArrayAdapter to achieve a customized list of fruits and vegetables information;Using Android components Activity, Intent to achieve the switch between the interface.Using the open platform API interface function provided by the manufacturer of the vending machine,it realize the visit to the backstage server of the vending machine.Get the information from server by the machine coding and the password of machine.And displayed in the product information query interface of the software.

Finally do the stability testing in the Android simulator and physical equipment Equipped with Android operating system.The development and testing of the functional modules of the software-"Nanjingtieliu" will be discussed in detail in this paper.

KEY WORDS: Android; Vegetable and fruit vending machine; Application; JAVA; ADT

目 录

摘要…………………………………………………………………………………………..........I

关键词………………………………………………………………………….………...……......I

Abstract…………………………………………………………………...………………….......II

Key words……………………………………………………………….……………....……......II

第1章 绪论………………………………………………………………………….................…1

1.1 课题背景及意义 ……………………………...……………………….……………1

1.2 Android发展概况…………………………………………………...............………2

1.3 本课题的主要工作……………………………………………..........................……3

1.4 本文的组织结构……………………………………….....………….………………4

1.5 本章小结………………………………………………….........................………… 4

  1. 蔬果贩卖机Android应用的总体分析…………………….........................................…5

2.1 功能需求……………………………..........................................................…………5

2.2 软件可行性分析……………………..........................................................…………5 2.3 软件总体设计 ………………………………………........…………………………6

2.4 本章小结………………………………..........................................................………8

第3章 蔬果贩卖机Android应用开发环境搭建……………............…..........................………9

3.1 Android开发平台介绍……………...................................…………………………9

3.1.1 Android系统架构…………………………….............………………..……9

3.1.1 Android四大组件……………..……………...........................……………10

3.2 Android开发环境搭建……………………………..................……………………11

3.2.1 JDK的下载和安装…………………....……….............………….…………11

3.2.1 ADT bundle的下载和安装…………………………………………………11

3.2.3 Android SDK的下载和安装…………………..............……………………11

3.3 创建Android模拟器………………………………………….....................………12

3.4 本章小结……………………………........................................................…………14

第4章 蔬果贩卖机Android应用各功能模块的程序开发…………....................……………15

4.1 程序的文件结构……………............................................…………………………15

4.2 主界面的设计与实现………………....................…………………………………16

4.2.1 主界面布局文件设计…………………………........………………………16

4.2.2 程序的主Activity文件设计……………..........…………………………18

4.3 地铁线路列表的设计与实现………………………........................………………19

4.3.1 地铁线路列表的布局文件设计………………................…………………19

4.3.2 地铁线路列表的Activity文件设计…………......………………………20

4.4 各站点蔬菜水果列表的设计与实现……………............…………………………22

4.4.1 蔬菜水果列表样式布局文件设计……………………....................………22

4.4.2 蔬菜水果对象的封装………………………………................................…23

4.4.3 蔬菜水果列表样式的适配器设计………………………....………………24

4.4.4 蔬菜水果列表的Activity文件设计…………………………......………25

4.5 后台通讯的设计与实现…………………………………................................……26

4.6 地图查询及默认站点设置…………………………............................……………29

4.7 投诉建议功能的设计与实现……………………........................…………………32

4.8 本章小结…………………………………........................................................……34

第5章 软件测试与安装…………………...........................................................................……35

5.1 在Android模拟器中运行情况……………………....……………………………35

5.2 软件的打包安装及物理设备中的运行情况………………………………………36

5.3 现场测试………...……………………………….........................................………37

5.4 本章小结………...……………………………….........................................………39

总结与展望………................................................................................................................……40

致谢…………………………………....…………………………………………………………41

参考文献………………………………………....………………………………………………42

附录 软件主要界面……………………………......……………………………………………43

剩余内容已隐藏,请支付后下载全文,论文总字数:42191字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;