Android application exception handling method and system, terminal equipment and storage medium

By obtaining configuration file information in Android applications and sending exception information, and saving it to the database for retransmission in case of failure, combined with the automated notification mechanism of administrator information, the problem of timeliness and reliability of exception handling in Android applications is solved, ensuring that exceptions are Timely communication and positioning of information.

CN118779142APending Publication Date: 2024-10-15西藏众陶联供应链服务有限公司 +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410984413.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In Android application development, there is a lack of effective mechanisms to capture and notify exceptions in a timely manner, which makes it difficult to handle and locate exceptions in a timely manner, especially the inability to quickly obtain exception information and locate specific business function modules.

Method used

When an exception occurs in the interface component, the configuration file information is obtained to send the exception information. If the transmission fails, it is saved to the database and retransmitted at the next startup. The target interface sends exception reminder information based on the administrator information.

Benefits of technology

It realizes the timely capture and notification of abnormal information, improves the reliability and success rate of sending abnormal information, and ensures that administrators can understand and respond to abnormal situations in a timely manner and solve problems quickly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779142A_ABST
    Figure CN118779142A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of exception handling, and provides an exception handling method and system for an Android application, terminal equipment and a storage medium, and the method comprises the steps: S1, when an interface component is abnormal, obtaining configuration file information of the interface component, sending exception information according to a target interface address in the configuration file information, if the sending fails, executing a step S2, and if the sending fails, executing a step S3; otherwise, executing the step S3; s2, storing the abnormal information in a database, resending the abnormal information when the interface component is started next time, if resending succeeds, deleting the record of the abnormal information in the database, and executing the step S3; and S3, the target interface obtains administrator information corresponding to the interface component according to the configuration file, and sends exception reminding information to an administrator according to the administrator information, so that the problems that when the Android application is abnormal, the corresponding exception information cannot be notified and obtained in time, and the business function module corresponding to the exception cannot be quickly positioned are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of exception handling, and in particular to an exception handling method, system, terminal device and storage medium for an Android application. Background Art

[0002] In Android application development, Activity is the most basic user interface component, responsible for displaying the user interface and handling user interactions. However, in existing Android development, when an application exception occurs, there is often a lack of effective mechanisms to capture and notify relevant personnel in a timely manner, making it difficult to handle and locate the exception in a timely manner. In current Android application development, there is a lack of systems that can instantly capture and notify relevant personnel, and a lack of effective means to accurately locate the Activity where the exception occurs and the specific exception information, making it difficult to track and solve the problem, and there is a lack of remedial measures when notification fails.

[0003] Therefore, it is necessary to develop a solution that can solve the problem of not being able to promptly notify when an exception occurs in an Android application, obtaining the corresponding exception information, and quickly locating the business function module corresponding to the exception. Summary of the invention

[0004] In view of the above-mentioned defects, the purpose of the present invention is to propose an exception handling method, system, terminal device and storage medium for Android applications, aiming to solve the problem that when an Android application has an exception, it is not possible to promptly notify, obtain the corresponding exception information and quickly locate the business function module corresponding to the exception.

[0005] To achieve this object, the present invention adopts the following technical solutions:

[0006] An exception handling method for an Android application comprises the following steps:

[0007] S1: When an exception occurs in an interface component, the configuration file information of the interface component is obtained, and the exception information is sent according to the target interface address in the configuration file information. If the sending fails, step S2 is executed, otherwise step S3 is executed, and the exception information includes the interface component identifier;

[0008] S2: Save the exception information to the database. When the interface component is started next time, resend the exception information. If the resending is successful, delete the record of the exception information in the database and execute step S3.

[0009] S3: The target interface obtains administrator information corresponding to the interface component according to the configuration file, and sends abnormal reminder information to the administrator according to the administrator information.

[0010] Preferably, in step S1, obtaining configuration file information of the interface component includes:

[0011] According to the configuration address of the interface component, obtain the input stream of the configuration file information;

[0012] Create a Properties object and load the configuration information in the input stream into the Properties object;

[0013] The Properties object is used to read the abnormal sending identifier and the target interface address in the configuration information, wherein the abnormal sending identifier is used to determine whether to send abnormal information.

[0014] Preferably, in step S1, sending the abnormal information according to the target interface address in the configuration file information includes:

[0015] Create an HTTP instance and set the connection timeout and read timeout for HTTP requests;

[0016] Creating a form request body, and adding the exception information to the form request body, wherein the exception information also includes an exception description;

[0017] Create a request object, set the target interface address to the address to be accessed by the request, and set the form request body to the request content;

[0018] The request object is executed using the HTTP instance, and the request content is sent to the target interface address.

[0019] Preferably, in step S2, saving the abnormal information to a database includes:

[0020] Initialize the version and name of the database, and create an exception handling table in the database;

[0021] Add the exception information to the exception handling table, wherein the exception information also includes an exception description and an interface component description.

[0022] Preferably, in step S2, resending the abnormal information includes:

[0023] All the exception information is obtained from the exception handling table, and the exception information is sent to the target interface address.

[0024] Preferably, the method further includes adding the administrator information, including:

[0025] Setting a corresponding administrator for the interface component and adding information corresponding to the administrator, including name, mobile phone number and email address;

[0026] The corresponding relationship between the information corresponding to the administrator and the interface components is stored in the database.

[0027] Preferably, in step S3, the abnormal reminder information includes abnormal SMS information and abnormal email information, and sending the abnormal SMS information to the administrator according to the administrator information includes:

[0028] Create a text message sending request object, add text message content to the request object, and the abnormal text message information includes: the mobile phone number, text message signature name, verification code and abnormal information;

[0029] Send the request object through the Alibaba Cloud SMS service object and process the sending response;

[0030] Sending abnormal email information to the administrator according to the administrator information includes:

[0031] Use JavaMail API to send an email to the email box, where the email includes the exception information.

[0032] An exception handling system for an Android application, comprising:

[0033] The exception sending module is used to obtain the configuration file information of the interface component when an exception occurs in the interface component, and send the exception information according to the target interface address in the configuration file information. If the sending fails, the exception resending module is called, otherwise the exception handling module is called;

[0034] An exception resending module is used to save the exception information in a database. When the interface component is started next time, the exception information is resent. If the resending is successful, the record of the exception information in the database is deleted and the exception handling module is called;

[0035] The exception handling module is used to obtain the administrator information corresponding to the interface component according to the configuration file using the target interface, and send exception reminder information to the administrator according to the administrator information.

[0036] A terminal device comprises: a memory, a processor and a program stored in the memory and executable on the processor, wherein the program is configured to implement the steps of the above-mentioned exception handling method for Android applications.

[0037] A storage medium stores a privacy data access program, which, when executed by a processor, implements the steps of the Android application exception handling method as described above.

[0038] One of the above technical solutions has the following advantages or beneficial effects:

[0039] When an exception occurs in an interface component, the configuration file information can be obtained immediately and an attempt can be made to send the exception information to the preset target interface address, ensuring that the exception can be captured in time and located at the specific functional module according to the interface component identifier. If the initial sending of the exception information fails, the exception information will be saved in the database and will be resent the next time the interface component is started. This mechanism improves the reliability and success rate of sending exception information. The target interface obtains the administrator information corresponding to the interface component based on the configuration file and sends an exception reminder message to the administrator. This automated notification mechanism helps administrators understand and respond to exceptions in a timely manner, helping to quickly resolve problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0041] Figure 1 It is a flowchart of an exception handling method for an Android application provided by an embodiment of the present invention;

[0042] Figure 2 It is a structural diagram of an exception handling system for Android applications provided by an embodiment of the present invention;

[0043] Figure 3 It is a flowchart of obtaining a configuration file of an exception handling method for an Android application provided by an embodiment of the present invention;

[0044] Figure 4 The present invention provides a flowchart of an exception information transmission method for an exception handling method of an Android application. DETAILED DESCRIPTION

[0045] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0046] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0047] like Figure 1 As shown, a preferred embodiment of the present application, an exception handling method for an Android application, comprises the steps of:

[0048] S1: When an exception occurs in an interface component, the configuration file information of the interface component is obtained, and the exception information is sent according to the target interface address in the configuration file information. If the sending fails, step S2 is executed, otherwise step S3 is executed, and the exception information includes the interface component identifier;

[0049] Specifically, the interface component types of Android applications include Activity, Fragment, and View, etc. Taking Activity as an example, Activity is one of the four most basic and most commonly used components in Android components, and is an application component. In this embodiment, Activity inherits BaseAcitity. When BaseAcitity is created, it calls to obtain file configuration and set a custom exception handler, and can obtain the configuration file of the corresponding Activity, including whether to send exception information when an exception occurs and the target address of the exception information. When an exception occurs in the activity, the content of the configuration file is obtained, and the exception information containing the interface component identifier is sent to the interface address provided by the configuration file, and is processed by the corresponding interface. In addition, the response needs to be processed after sending. When the sending fails, step S2 needs to be executed. If the sending is successful, step S3 needs to be executed. Among them, the interface component identifier is used to provide administrators with specific functional module positioning, helping managers to quickly locate interface components with exceptions, which is helpful to solve exceptions. The target interface address is the server-side address for receiving and processing exception information.

[0050] S2: Save the exception information to the database. When the interface component is started next time, resend the exception information. If the resending is successful, delete the record of the exception information in the database and execute step S3.

[0051] Specifically, if the sending of the exception information fails in step S1, the exception information will be saved in the local database, and the next time the interface component is started, the exception information will be retried to be sent until it succeeds. The database can be a local SQLite database or a Room database, which is used to persistently store the exception information. If the network connection between the interface component and the target interface address is unstable or interrupted, the sending of the exception information may fail, or the target interface address may be inaccessible due to reasons such as server downtime, service not started, or address configuration error, etc., which may cause the sending to fail. In order to improve the reliability and success rate of the sending of the exception information and avoid the problem of the loss of exception information or failure to handle it in time due to network problems, the exception information is first stored in the database and then resent at the next startup.

[0052] S3: The target interface obtains administrator information corresponding to the interface component according to the configuration file, and sends abnormal reminder information to the administrator according to the administrator information.

[0053] Specifically, according to the administrator information corresponding to the interface component in the configuration file, the exception information is sent to the relevant administrators to inform them that the abnormal situation of the interface component has occurred. The administrator information includes the administrator's contact information and email address, etc. The abnormal reminder information includes the specific information and timestamp of the abnormality, etc. According to their contact information, the SMTP protocol can be used to send email notifications, the SMS API can be used to send SMS notifications, or Firebase Cloud Messaging can be used to send instant notifications, etc. The relevant administrators are automatically notified so that they can intervene and handle the abnormal situation in time, improving the coping ability and response efficiency.

[0054] like Figure 3 As shown, further, in the step S1, obtaining the configuration file information of the interface component includes the steps of:

[0055] S101: acquiring an input stream of configuration file information according to a configuration address of an interface component;

[0056] Specifically, when obtaining configuration file information, first pre-specify the configuration address where the information is stored. This address can be a local file path or a network address, such as a file input stream, that is, reading from the file system, InputStream = assets.open (config.properties), obtain the input stream of the file named config.properties from the assets directory, and a network input stream, that is, obtained through HTTP or other protocols, which will not be repeated here.

[0057] S102: Create a Properties object, and load the configuration information in the input stream into the Properties object;

[0058] Specifically, the Properties object is a class used to manage key-value pair configuration information in Java. By creating an empty Properties object and loading the configuration information read from the input stream into the object, the Properties object now contains all the configuration information in the configuration file, and we can easily operate this configuration information in memory.

[0059] S103: Use the Properties object to read the abnormal sending flag and the target interface address in the configuration information, where the abnormal sending flag is used to determine whether to send abnormal information.

[0060] Specifically, once the configuration information is loaded into the Properties object, we can obtain the corresponding values ​​through specified keys such as the exception sending identifier and the target interface address key to determine whether exception information needs to be sent in subsequent operations and to which interface to send it. The exception sending identifier can be an identifier or a Boolean value to indicate whether the exception information sending function is enabled. The target interface address is used to indicate the target location for sending the exception information, which can be a network address or an address of other communication methods.

[0061] like Figure 4 As shown, further, in the step S1, sending the abnormal information according to the target interface address in the configuration file information includes the steps of:

[0062] S104: Create an HTTP instance, and set a connection timeout and a read timeout for the HTTP instance;

[0063] Specifically, the HTTP instance is an object used to execute the HTTP instance. Setting the connection timeout and the read timeout can ensure that the request can be responded to or abandoned in time when problems are encountered in network communication. The connection timeout is the maximum time to wait when trying to establish a connection, and the read timeout is the maximum time to wait for reading data after the connection is established. Among them, OkHttpClient is used to create an instance in this embodiment. OkHttpClient is a powerful and widely used HTTP client library suitable for Android application and Java backend development. It provides an efficient and reliable network request solution by simplifying the creation and management of HTTP requests.

[0064] S105: Create a form request body, and add the exception information to the form request body, wherein the exception information also includes an exception description;

[0065] Specifically, the form request body is a part of the HTTP request, which is usually used to send key-value pairs or form data in JSON format or other structured data. Here, the exception information includes an exception description for describing the specific situation of the exception.

[0066] S106: Create a request object, set the target interface address as the address to be accessed by the request, and set the form request body as the request content;

[0067] Specifically, the request object will contain all the information that needs to be sent to the target interface, including the target address and the request content, which is the form request body. The request object encapsulates all the necessary information of the HTTP request, such as the URL, HTTP method, request header, and request body, and adds the exception information to be sent to the request body.

[0068] S107: Use the HTTP instance to execute the request object and send the request content to the target interface address.

[0069] Specifically, the request object is executed through the HTTP instance, an HTTP request is actually initiated, the request content is sent to the target interface address, and different responses are processed according to different responses. For example, different responses can be taken if the request is processed successfully or failed.

[0070] By sending exceptions, abnormal situations in the application can be quickly and accurately transmitted to the target interface address, which facilitates tracking and analysis of problems and ensures that abnormal information can be notified to management personnel in real time for timely response and processing. Timely feedback of abnormal information helps to quickly locate and resolve technical problems or defects in the application.

[0071] In another embodiment, in step S2, saving the abnormal information to a database includes:

[0072] Initialize the version and name of the database, and create an exception handling table in the database;

[0073] Add the exception information to the exception handling table, wherein the exception information also includes an exception description and an interface component description.

[0074] Specifically, before starting to save the exception information, it is necessary to ensure that the database has been initialized and the correct version and database name have been selected. In this embodiment, the SQLite database is adopted. SQLite is an open source embedded database engine that implements a self-sufficient, server-free, zero-configuration database. It runs on many devices, including mobile phones and tablets. SQLite provides services through a library file and usually does not require a separate service process. In order to store exception information, it is first necessary to create a table in the database to store this information, write an SQL command to create a table, define the structure of the table, including fields such as interface component identification, exception description, interface component description, timestamp, etc., and execute SQL commands to create an exception handling table.

[0075] The captured exception information, including the exception description and interface component description, is inserted into the corresponding fields of the exception handling table. By storing the exception information in the database, the exceptions reported to the manager are persistently stored in the database. If the exception information only relies on instant network communication, the information may be lost due to network interruption or server problems. This situation can be avoided by persistently storing it in the database, ensuring that all exception information can be collected and processed even in abnormal situations.

[0076] Further, in step S2, the resending of the abnormal information includes:

[0077] All the exception information is obtained from the exception handling table, and the exception information is sent to the target interface address.

[0078] Specifically, all the exception information that was not successfully sent is retrieved from the exception handling table of the local database. These exception information may include important information such as the time when the exception occurred, the specific exception content, and the associated interface component identifier. For each retrieved exception information, an HTTP request or other appropriate network request is sent to package the exception information and send it to the pre-configured target interface address. After sending each exception information, the system will wait for and receive a response from the target interface address. If a successful response (such as HTTP status code 200) is received, it means that the exception information is successfully delivered, and the successfully sent exception information is deleted from the database. On the contrary, if an error or timeout occurs, it will wait until the next time the interface component is started and try again.

[0079] In another embodiment, the step of adding the administrator information further comprises:

[0080] Setting a corresponding administrator for the interface component and adding information corresponding to the administrator, including name, mobile phone number and email address;

[0081] The corresponding relationship between the information corresponding to the administrator and the interface components is stored in the database.

[0082] Specifically, in order to better resolve the exceptions generated by interface components, it is necessary to assign an administrator to each interface component and resolve the exceptions as soon as they occur. First, you need to create an administrator information table in the database, including fields such as the administrator's name, mobile phone number, and email address. Create a table or association table in the database to store the correspondence between administrators and interface components. You can use foreign keys or directly store the administrator ID and interface component ID in the association table to ensure that the interface components that each administrator can manage are clear and unambiguous. When adding a new administrator or updating the permissions of an existing administrator, insert the administrator's information and its corresponding interface component relationship into the database. The administrator can monitor abnormal situations in real time and respond promptly, while managing the permissions of different interface components to ensure the security and stable operation of the system.

[0083] Further, in step S3, the abnormal reminder information includes abnormal SMS information and abnormal email information, and sending the abnormal SMS information to the administrator according to the administrator information includes:

[0084] Create a text message sending request object, add text message content to the request object, and the abnormal text message information includes: the mobile phone number, text message signature name, verification code and abnormal information;

[0085] Send the request object through the Alibaba Cloud SMS service object and process the sending response;

[0086] Sending abnormal email information to the administrator according to the administrator information includes:

[0087] Use JavaMail API to send an email to the email box, where the email includes the exception information.

[0088] Specifically, when the target interface receives the exception information, it first constructs a SendSmsRequest object, adds the phone number of the administrator who receives the SMS, the SMS signature name, the verification code, and the specific exception or error information that needs to be reported to the administrator, and uses the JSON format for the exception information. JSON has mature parsing and generation libraries in many programming languages, and developers can easily convert JSON strings into data structures in the program, and vice versa. Subsequently, the created request object is sent out using the SMS service object provided by Alibaba Cloud. The Alibaba Cloud SMS service object encapsulates the interface and functions for communicating with Alibaba Cloud and is used to send SMS. After sending the request, you can receive a response result of success or failure, and you can take different countermeasures based on the result.

[0089] While sending SMS messages, you can also notify the administrator of abnormalities in the interface components in the form of emails. JavaMail API is an open source API for sending and receiving emails. It provides a set of general email solutions and supports common email protocols such as SMTP, POP3 and IMAP. Use JavaMail API to send abnormal information to the administrator via email. The administrator's email information is recorded in the above steps of adding administrators. When sending, you only need to obtain it from the corresponding database.

[0090] like Figure 2 As shown, the embodiment of the present invention further provides an exception handling system for Android applications, including:

[0091] The exception sending module 1 is used to obtain the configuration file information of the interface component when an exception occurs in the interface component, and send the exception information according to the target interface address in the configuration file information. If the sending fails, the exception resending module 2 is called, otherwise the exception handling module 3 is called;

[0092] The exception resending module 2 is used to save the exception information into the database. When the interface component is started next time, the exception information is resent. If the resending is successful, the record of the exception information in the database is deleted and the exception handling module 3 is called;

[0093] The exception handling module 3 is used to obtain the administrator information corresponding to the interface component according to the configuration file using the target interface, and send exception reminder information to the administrator according to the administrator information.

[0094] This embodiment implements the exception handling method and implementation process of the Android application. Please refer to the above embodiments and will not be described in detail here.

[0095] In addition, an embodiment of the present invention further proposes a terminal device, which includes a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program is configured to implement the steps of the exception handling method for Android applications as described above.

[0096] Since the program is configured to implement the steps of the exception handling method for Android applications as described above, the program at least has all the beneficial effects brought about by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.

[0097] In addition, an embodiment of the present application further proposes a computer-readable storage medium, on which an exception handling program for an Android application is stored. When the exception handling program for an Android application is executed by a processor, the steps of the exception handling method for an Android application as described above are implemented.

[0098] Since all the technical solutions of all the aforementioned embodiments are adopted when the exception handling program of this Android application is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.

[0099] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0100] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. An exception handling method for Android applications, It is characterized in that Includes steps: S1: When an exception occurs in an interface component, the configuration file information of the interface component is obtained, and the exception information is sent according to the target interface address in the configuration file information. If the sending fails, step S2 is executed, otherwise step S3 is executed, and the exception information includes the interface component identifier; S2: Save the exception information to the database. When the interface component is started next time, resend the exception information. If the resending is successful, delete the record of the exception information in the database and execute step S3. S3: The target interface obtains administrator information corresponding to the interface component according to the configuration file, and sends abnormal reminder information to the administrator according to the administrator information.

2. The exception handling method according to claim 1, It is characterized in that In the step S1, obtaining the configuration file information of the interface component includes: According to the configuration address of the interface component, obtain the input stream of the configuration file information; Create a Properties object and load the configuration information in the input stream into the Properties object; The Properties object is used to read the abnormal sending identifier and the target interface address in the configuration information, wherein the abnormal sending identifier is used to determine whether to send abnormal information.

3. The exception handling method according to claim 1, It is characterized in that In the step S1, sending the abnormal information according to the target interface address in the configuration file information includes: Create an HTTP instance and set the connection timeout and read timeout for HTTP requests; Creating a form request body, and adding the exception information to the form request body, wherein the exception information also includes an exception description; Create a request object, set the target interface address to the address to be accessed by the request, and set the form request body to the request content; The request object is executed using the HTTP instance, and the request content is sent to the target interface address.

4. The exception handling method according to claim 1, It is characterized in that In the step S2, saving the abnormal information to the database includes: Initialize the version and name of the database, and create an exception handling table in the database; Add the exception information to the exception handling table, wherein the exception information also includes an exception description and an interface component description.

5. The exception handling method according to claim 4, It is characterized in that In step S2, the resending of the abnormal information includes: All the exception information is obtained from the exception handling table, and the exception information is sent to the target interface address.

6. The exception handling method according to claim 1, It is characterized in that It also includes adding the administrator information, including: Setting a corresponding administrator for the interface component and adding information corresponding to the administrator, including name, mobile phone number and email address; The corresponding relationship between the information corresponding to the administrator and the interface components is stored in the database.

7. The exception handling method according to claim 6, It is characterized in that In the step S3, the abnormal reminder information includes abnormal SMS information and abnormal email information, and sending the abnormal SMS information to the administrator according to the administrator information includes: Create a text message sending request object, add text message content to the request object, and the abnormal text message information includes: the mobile phone number, text message signature name, verification code and abnormal information; Send the request object through the Alibaba Cloud SMS service object and process the sending response; Sending abnormal email information to the administrator according to the administrator information includes: Use JavaMailAPI to send an email to the email box, where the email includes the exception information.

8. An exception handling system for Android applications, It is characterized in that include: The exception sending module is used to obtain the configuration file information of the interface component when an exception occurs in the interface component, and send the exception information according to the target interface address in the configuration file information. If the sending fails, the exception resending module is called, otherwise the exception handling module is called; An exception resending module is used to save the exception information in a database. When the interface component is started next time, the exception information is resent. If the resending is successful, the record of the exception information in the database is deleted and the exception handling module is called; The exception handling module is used to obtain the administrator information corresponding to the interface component according to the configuration file using the target interface, and send exception reminder information to the administrator according to the administrator information.

9. A terminal device, It is characterized in that The terminal device comprises: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program is configured to implement the steps of the exception handling method for Android applications described in any one of claims 1 to 7.

10. A storage medium, Features The storage medium stores a privacy data access program, and when the privacy data access program is executed by the processor, the steps of the exception handling method for Android applications as described in any one of claims 1 to 7 are implemented.