[Android programming] Big assignment: Design and implementation of an Android-based campus life service system

written in front

The login function refers to https://blog.csdn.net/qq_44714521/article/details/111402519
The curriculum function refers to https://blog.csdn.net/m0_46193443/article/details/124274145
Due to space limitations, please refer to the source code Mobile resource download area

1. Android application development background

1.1 Development Background

The purpose of the homework
1. To review and consolidate the basic knowledge of the Java language, to further deepen the understanding and mastery of android; to build a complete Android development environment; 2. The
practice of the Android system provides students with an opportunity to practice independently with both hands and brains , Combine Android theoretical knowledge with practice, exercise students' ability to analyze and solve practical problems, and improve students' ability to adapt to practical programming; 3.
Cultivate students' teamwork spirit, innovative awareness and ability in project development.
Main content
Through this practical content, students will consolidate the basic concepts and principles of software engineering, become familiar with the Android application development environment and technology, learn to complete the analysis, design, coding test and installation of a mobile terminal application software, and combine theory with practice. Strengthen students' project development and team awareness, and improve students' analytical ability and innovation ability.

1.2 Development environment

Windows 10 system, Android Studio integrated development environment IDE, Android emulator, Android SDK API

2. Android application development theory and method

2.1 Development theory

1. Android system development methods and basic principles
2. JavaEE application design and development technology

2.2 Application development method

AndroidSdk integration;
construction of development environment and development of JavaEE applications.

3. Application program design and implementation

3.1 Problems and goals to be solved

Android programming requirements

1. Build a complete Android development environment through Eclipse.
2. Write a simple Android software on the Android development environment, and it can run on the mobile phone.

3.2 Overall Design

insert image description here
The overall design is shown in the figure.
For the campus card account management function, an Activity for login is designed, and SharedPreference is used to read the calling account data. Click the "Register" function to add an account data in SharedPreference. When you click "Login", it will automatically determine whether the account and password correspond. Correspondingly, enter another Activity: menu page.
On the menu page, you can check whether the account has been reported as lost, and provide a button to report the loss/unreport.
In order to enter the university's educational administration system, directly call the intent to call the browser to directly enter the new educational administration system of Jiangsu University.
In order to query the weather forecast, directly call the relevant API, and after the result is requested, it will be parsed and displayed on the interface.
The class schedule management function is separated and split into a separate class schedule function and a separate alarm clock management function. Among them, the class schedule management function calls the SQLite database that comes with Android to add, delete, check and modify, and the alarm clock management function calls the corresponding components that come with Android.

3.3 Detailed design and coding implementation (including interface screenshots and codes)

3.3.1 Campus Card Account Management

insert image description here
The login activity is the first activity that is automatically opened when the program is started. Enter the account password and query the corresponding data stored in sharePreferences. If you have not registered, a toast will pop up to remind the user to register. If the password is wrong, a toast will pop up to remind the user that the password is wrong. If you check "Remember me", it will automatically start the software next time Jump to the MenuActivity corresponding to the menu, and enter the MenuActivity normally if the password is correct.
insert image description here
In the menu interface, click "Query Account" to pop up a dialog box to query the user's username and report loss status.
insert image description here
Click the "Report Lost" button, and the text on the Lost Report button will change to "Release Report". Click the button again, and the text will change back to "Report Lost". If you click Query Account, you can check the corresponding corresponding status again.

3.3.2 Educational Administration System Query

Directly call the browser to enter the new educational administration system of the university
insert image description here

3.3.3 Weather Forecast Query

Call the relevant API to query the weather forecast.
insert image description here

3.3.4 My class schedule management

insert image description here
On the class schedule management page, you can view your own class schedule and add courses.
insert image description here
The result of successful addition is shown in the figure.
insert image description here
insert image description here
The picture shows setting the alarm clock and directly calling the Android-related built-in components.
insert image description here

Guess you like

Origin blog.csdn.net/qq_46640863/article/details/128943802