摘 要
为了能满足人们利用手机设备实现理财的需求,以能随时随地能够理财为目的,结合Android手机平台,Sqlite作为后台数据库,设计并实现基于Android的个人理财系统。其间用到Android自带Sqlite数据库,Android SDK,以及Android手机模拟器AVD,利用JAVA 编程语言进行开发实现。系统有添加数据,查询数据,计算器,修改个人资料等功能,根据功能设计数据库以及界面,在这个基础之上实现功能。在系统整体完成之后,就在模拟器上测试功能并可以在Android的智能手机上安装并使用,测试的结果很好又准确,可以帮助手机用户进行各种资金上的管理。最后笔者通过在开发本系统中的学习,作出了总结以及对未来手机理财系统的展望。理财是每个人在平常的生活当中不可或缺的重要部分,大家都要对自己的财政状况、收入支出做到了解,把钱用在关键的地方,并正确规划自己的财富。理财的意义是利用当前的确实信息,经过正确合理的选择,找到最少支出并获得最大收获的方法;让每个人的资产发挥最大的用处。
关键词:理财;Android;数据库;模拟器
Design And Implementation of Personal Financial Management System Based on the Android
Abstract
In order to meet the needs of the financial management by mobilephone of young people.Under the premise of learning from a large number of management information systems,For the purpose of anytime, anywhere can financialand combined with the Android mobile phone platformI designed and implemented personal financial management system based on the Android with the Sqlite as the back-end database, the Android SDK,andAndroid phone emulator AVD.Achieve the function with JAVA programming language.There are many functions in the system like adding data,selecting data,calculator,modifying personal information etc.According to the function design the database and interface.Then achieve the function. To test the function of the system on theAVD and succeed in installing and using on Android phone.Test results is good and correct that the user can manage a variety of financial information with it.Finally, the authormade a summaryand outlook for the mobile banking system in the futurein the development of the system.
Key words:Financial; Android; Database;Simulator
基于Android的个人理财系统的设计与实现 I
Design And Implementation of Personal Financial Management System Based on the Android II
1 绪 论 1
1.1 开发背景 1
1.2 设计目的 2
1.3 相关技术 3
1.3.1 Eclipse编程软件 3
1.3.2 Android SDK 3
1.3.3 SQLite数据库 6
1.4 Android系统开发通用技术 7
1.4.1 Android工具中的通用功能 7
1.4.2 界面开发 8
1.4.3 控件操作 8
1.4.4 显示框Toast的通用功能 9
1.5 开发环境 9
1.6 部署环境 9
2 需求分析 11
2.1 概述 11
2.2 用户对功能的需求 11
2.3 可行性分析 12
2.4.1 必要性 12
2.4.2 技术可行性 12
2.4.3 经济可行性 12
2.4.4 操作可行性 13
3 总体设计 14
3.1 系统流程设计 14
3.1.1 系统流程图 14
3.1.2 系统详细流程 14
3.3 模块与功能设计 15
3.2 界面设计 19
3.4 数据库设计 20
3.4.1 数据库E-R图 20
3.4.2 数据库表的建立 23
3.4.3 数据库表间关系 25
4 详细设计 26
4.1 界面设计 26
4.2 数据库连接设计 27
4.2.1 数据库连接的实现 27
4.2.2 数据库表的建立 28
4.3 主控制类的实现 28
4.3 主控制类的设计 28
4.3.1 系统类图 28
4.3.2 主控制类的整体框架设计 29
4.3.3 类别维护设计 31
4.3.4 日常收入,支出设计 32
4.3.5 收入、支出统计设计 33
4.3.6 计算器设计 35
4.3.7 收入、支出查询功能设计 35
4.3.8 个人信息修改设计 37
5 系统测试 38
5.1 测试环境 38
5.2 系统测试 38
5.2.1 系统登录测试(AVD模拟器中) 38
5.2.2 类别维护功能测试 39
5.2.3 日常收入、日常支出功能测试 40
5.2.4 统计功能测试 40
5.2.5 计算器功能测试 41
5.2.6 查询功能测试 42
5.2.7 个人信息修改功能测试 42
5.3 系统应用 43
5.4 测试结论 43
结 语 44
致 谢 45
参考文献 46
1 绪 论
1.1 开发背景
当今,移动设备逐渐普及,移动设备的硬件以及功能也越来越来越完善,而移动设备的平台有IPhone,Windows Phone以及逐渐兴起的Android,Android系统在中国用户中的使用率也很高,据不完全统计,在2013年度,Android系统的国内市场占有率已经达到12%甚至更高[1]。虽然Android智能手机系统在本国使用率很高,可系统的研究和开发应用却仍然处在初期探索阶段。
而今,月光族已越来越多,继而合理的理财显得尤为重要,已经逐渐成为人们日常生活中不可缺少的一部分。理财就是以管钱为中心,通过抓好攒钱、生钱、护钱3个环节[1],管好现在自己手中的现金流动,让资产在保值的基础之上,实现稳步、持续的增长。