Final exam of mobile network development technology: complete works of food suitability and reciprocity
Major: Computer Science and Technology Class: Student Name: Student Number:
June 20 14
catalogue
1. Project introduction
....................................................................................................................................
1
1. Design background
............................................................................................................................
1
2. Function summary
............................................................................................................................
1
2. System analysis
....................................................................................................................................
1
1. Demand analysis
..........................................................................................................................
1
2. Feasibility analysis
........................................................................................................................
2
1. Technical feasibility analysis
................................................................................................................
2
2. Operational feasibility analysis
................................................................................................................
2
3. System design
....................................................................................................................................
2
1. Overall design
............................................................................................................................
2
2. Function design
............................................................................................................................
three
3. Database design
........................................................................................................................
three
4. Interaction design
............................................................................................................................
three
4. System implementation
....................................................................................................................................
three
1. Implementation platform:
........................................................................................................................
three
2. Main interface:
........................................................................................................................
three
3. The main code
............................................................................................................................
five
1. Main interface code: ....................................................................................................................
five
2. Edit data interface:
................................................................................................................
eight
3. Operation database code:
..........................................................................................................
10
4. Display format code:
..............................................................................................................
12
5. System test
..................................................................................................................................
13
Big homework report for computer science and technology specialty
1. Project introduction
1. Design background
Nowadays, mobile phones have become an indispensable tool in daily life. With the development of science and technology, smart phones are becoming more and more mature. Android mobile operating system is one of the most popular smartphone platforms in the world. The development flexibility is stronger, and various softwares emerge one after another, which has a very broad development prospect.
Smart hands have changed people's habits of using mobile phones and amplified people's imagination of mobile phones. Based on the analysis of the current form and the prospect of the future, the mobile phone system is no longer limited to calls and short messages, and the extended functions of mobile phones are increasing day by day. By using various basic functions in mobile phones, more and more practical software can be expanded. The scheme is to realize a creative and practical food compatibility system by using various functions of android mobile phone system.
Food is essential in people's lives. With the improvement of people's living standards, people pay more and more attention to food safety. However, in today's daily life, there are many misunderstandings in food collocation, which directly or indirectly affect our health. Proper collocation will promote nutrient absorption and be beneficial to health; Collocation will destroy nutritional value and even lead to disease or poisoning. Only by reasonably arranging meals according to the nature of food and its own situation can we eat scientifically and healthily.
This program is planned and produced based on this design concept.
2. Function summary
This program provides two functions: query and add.
Query function: When the user inputs the name of the food, click the query button, and the food queried by the user and its relevant appropriate and comparable collocation will be displayed on the page. When the user clicks the Show All button, all the data in the database will be displayed on the page.
Add function: users can click the Add Data button to jump to the Add Data interface, and users can add, delete and modify the food compatibility data in the database.
2. System analysis
1. Demand analysis
Today, with the development of smart phones, everyone has a smart phone, and the audience of this program is quite wide. Everyone needs food, but few people know how to eat food together. It is precisely because of this market demand that this program came into being. No matter housewives who cook at home or men, women and children who pay attention to healthy eating, they can find out suitable or compatible foods simply, quickly and conveniently through this procedure, thus helping people to understand the appropriateness and compatibility of foods.
1
Big homework report for computer science and technology specialty
2. Feasibility analysis
With the development of society and technology, people pay more and more attention to mobility, portability and convenience. With the development of this trend, mobile application games came into being. As a mobile phone platform with a market share of more than 50%, the application of Android system has developed very rapidly.
With the development and popularization of mobile phones and the expansion of Internet technology, people's demand for mobile communication will inevitably require multi-functionality. Connecting to the Internet through mobile communication realizes the sharing of data, applications and other resources. It improves the resource utilization rate of data and can be updated in time. In such an external environment, the promotion of mobile phone applications is guaranteed.
1. Technical feasibility analysis
Android system platform is an open source mobile phone operating system based on Linux. It was officially released by Google on June 5438+065438+1October 5, 2007.
Android platform consists of operating system, middleware, interface and application software. Is the first truly open and complete mobile terminal operating system.
Speaking of the advantages of Android operating system platform, we have to mention two most prominent features: "free" and "open source".
Free: Android provides its operating system for free, allowing mobile phone manufacturers to carry Android operating system for free, which greatly reduces the production cost of mobile phones and gradually popularizes Android.
Open source: The openness of making operating system code for Android phones not only allows developers to develop programs on a unified and open platform, but also solves the problems of inconvenient information exchange and non-portability of program content caused by different file formats between different smartphones in the market today. The boot source code of Android means that mobile phone users don't have to passively accept the default facilities and environment of mobile phone manufacturers, and users can completely customize the configuration of mobile phones according to their own ideas.
2. Operational feasibility analysis
Because this program is a simple small application, it doesn't need much manpower and energy to develop, so it is easy to implement. The requirements for mobile phone performance are not high, and the system utilization rate is also low.
Moreover, the function of this program is simple. As long as users have a little experience in mobile phone operation, after reading the tips, they will be unclear about the operation of this software.
3. System design
1. Overall design
This program is mainly to let users know the compatibility of various foods through simple operations. The interface should be simple and easy to operate, and the functions need not be too complicated, just simple and practical.
2
Big homework report for computer science and technology specialty
2. Function design
(1) Find data in the database.
By adding a listening event to the query button, EditText can obtain the name of the data to be queried, then query the database, display the results in TextView, add a listening event to all the display buttons, and the user clicks the Show All button to call the method to display all the data in the database on the interface.
(2) Add, delete and modify data in the database.
By adding listening events to the Add, Delete and Modify buttons, EditText can obtain the name and content of the data to be operated, and then call the method to operate the database accordingly.
3. Database design
Establish a table in the database to store food data information.
4. Interaction design
Realize the interaction between querying and adding data with activities and intentions.
4. System implementation
1. Implementation platform:
Android 4.0.3
2. Main interface:
(1) search interface
In this interface, users can search the food information in the database.
Figure 1 search interface Figure 2 Search for null values
three
Big homework report for computer science and technology specialty
Figure 3 does not search for data. Figure 4 shows everything.
(2) Editing interface:
In this interface, users can add, delete and modify databases.
Figure 5 Edit interface Figure 6 Enter null value