摘 要
“我的星空”是一款基于android的关于星座的app,主要由星座查询及详解、星座运势、星座与血型、星座配对、星座故事汇几部分组成。
各部分基本内容:
1.星座查询及详解:用户输入信息就可以查询星座信息以及此星座的特点分析;
2.星座运势:点击星座名称进入星座运势的查询;
3.星座与血型:点击星座名称进入该星座与各个血型匹配的分析;
4.星座配对:输入两个星座名称,会生成配对信息,并给出建议;
5.星座故事汇:需要用户注册登录,可以发表各星座人之间发生的故事,未注册则不可发表。
本设计基于android,运用android Studio,采用的数据库服务器为SQLite,使系统拥有较高的安全性和较好的性能。首先进行对系统的可行性分析,完成需求分析,然后设计出结构良好的数据库,最后编码实现其各项基本功能,完善系统。在设计过程中,将参考一些同类设计,借鉴一下布局和框架,将课题要求的基本功能合理的组织起来,形成友好、高效的交互过程。
关键词:Android;Java;星座;”我的星空”
Abstract
"My Star" is based on android on the constellation of the app, mainly by the constellation query and detailed solution, constellation fortune, constellation and blood type, constellation pair, constellation story of several parts.
The basic content of each part:
1. Constellation query and detailed: user input information can query the constellation information and the characteristics of this constellation analysis;
2. Constellation fortune: click on the constellation name into the constellation fortune of the query;
3. Constellation and blood type: click on the constellation name into the constellation and the matching of the blood type analysis;
4. Constellation pairing: Enter the name of the two constellations, will generate matching information, and give suggestions;
5. Constellation story sink: the need for users to register, you can publish the story between the constellations, not registered can not be published.
The design based on android, android Studio, using the database server for SQLite, the system has a high security and better performance. First of all, the feasibility analysis of the system to complete the demand analysis, and then design a well-structured database, the final code to achieve its basic functions, improve the system. In the design process, will refer to some similar design, learn from the layout and framework, the basic requirements of the basic requirements of the organization, to form a friendly and efficient interaction process.
Keywords: Android; Java; constellation; "my sky"
目 录
1、绪论 1
1.1课题背景 1
1.2 Android平台与其他平台的比较 1
1.3本文主要工作 2
1.4论文组织结构 2
2、Android的架构分析 4
2.1Android的功能特征 4
2.2 Android架构分析 5
2.2.1应用程序框架 5
2.2.2类库 7
2.2.3 Android运行时组件 8
2.3Android应用的构成和工作机制 8
3、Android应用程序结构剖析 9
3.1 Android的API 9
3.2Android应用程序结构解析 10
3.2.1活动 10
3.2.2意图接收器 11
3.2.3服务 11
3.2.4内容提供者 11
3.3 Intent的详细解析 12
3.3.1Intent的抽象描述 12
3.3.2Android如何解析Intent 13
3.4Android活动的生命周期 14
3.4.1活动的生命状态 14
3.4.2活动的运作流程 16
4、手机“我的星空”查询软件设计实现 17
4.1 系统设计需求 17
4.1.1需求分析 18
4.1.2下载开发资源 18
4.1.3更新Ec1ipse并下载ADT(Android开发插件) 19
4.1.4使用Ec1ipse开发Android应用 20
4.2“星座”查询软件程序中各类组件 21
4.2.1Package Explorer中的组件 21
4.2.2应用程序的资源 21
4.2.3布局文件main.xml 22
4.2.4AndroidManifest.xml 22
4.3手机“星座”查询软件设计实现 23
4.3.1系统主界面的实现 23
4.3.2“星座”查询功能实现 25
4.3.3常见的错误分析解决 30
5、总结与展望 30
5.1总结 30
5.2展望 30
6、参考文献 31
致 谢 32