Method and device for integrating cross-platform mobile application development framework
By creating an independent cross-platform mobile application development framework process in Android applications and using cross-process communication technology, the crash and monitoring problems caused by the inability to isolate the existing mid-to-cross-platform mobile application development framework from the host is solved, and the process is realized Improved stability and efficiency.
Patent Information
- Application Number
- CN201910938547.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-30
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2039-09-30
AI Technical Summary
The existing cross-platform mobile application development framework cannot be completely isolated from the host in Android applications, resulting in the host crashing, and the lag and memory exceptions cannot be monitored and handled.
By creating an independent cross-platform mobile application development framework process, and using Android's cross-process communication technology and cross-platform mobile application development framework internal communication technology, we realize communication between the main process and the cross-platform mobile application development framework process, and send monitoring messages regularly and query memory usage, and kill or restart the process if an exception occurs.
It realizes independent memory and crash monitoring of cross-platform mobile application development framework processes, avoids the problem of host crash due to process crashes, and improves the stability and efficiency of the development framework.
Smart Images

Figure CN111782188B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method and device for integrating a cross-platform mobile application development framework. Background Art
[0002] The mainstream mobile development platforms are Android and iOS. The development technology and operation mode of each platform are different, and everyone develops applications for each platform. Naturally, there is a phenomenon that a mobile application product needs to be developed for each platform. The problem brought about by this is high development cost and low efficiency, which leads to the demand for cross-platform development. From the initial hybrid development technology based on Cordova to the bridging technology of React Native, cross-platform development technology has been evolving.
[0003] React Native (RN for short) is a cross-platform mobile application development framework that Facebook opened up in April 2015. It is a derivative of Facebook's earlier open-source JS framework React on the native mobile application platform. It currently supports iOS and Android platforms. RN uses Javascript, similar to HTML's JSX, and CSS to develop mobile applications. Therefore, technicians familiar with Web front-end development only need to learn a little to enter the field of mobile application development.
[0004] The existing method of integrating a cross-platform mobile application development framework into an Android application has the following disadvantages: the program integrated into the Android by the cross-platform mobile application development framework cannot be completely isolated from the host (the Android app that integrates the cross-platform mobile application development framework). The crash of the cross-platform mobile application development framework will cause the crash of the host. The host cannot monitor the cross-platform mobile application development framework program and actively monitor and kill the cross-platform mobile application development framework program. The host cannot detect the freeze of the cross-platform mobile application development framework program and handle it in time. Summary of the invention
[0005] The embodiments of the present disclosure provide a method and apparatus for integrating a cross-platform mobile application development framework into an Android application.
[0006] In the first aspect, an embodiment of the present disclosure provides a method for integrating a cross-platform mobile application development framework in an Android application, including: creating an independent cross-platform mobile application development framework process for the cross-platform mobile application development framework program; the main process of the Android application provides an API for the cross-platform mobile application development framework process, and uses a combination of cross-process communication technology in Android and internal communication technology of the cross-platform mobile application development framework to achieve communication between the two processes.
[0007] In some embodiments, the method also includes: the main process sends a monitoring message to the cross-platform mobile application development framework process in a predetermined first period; if a response message fed back by the cross-platform mobile application development framework process is not received in time, the cross-platform mobile application development framework process is killed or the cross-platform mobile application development framework process is restarted.
[0008] In some embodiments, the method also includes: the main process queries the memory usage of the cross-platform mobile application development framework process in a predetermined second period; if abnormal memory usage is detected, the cross-platform mobile application development framework process is killed or restarted.
[0009] In some embodiments, the upper limit of the memory of the cross-platform mobile application development framework process is the upper limit of the memory of a single process specified by the system.
[0010] In the second aspect, an embodiment of the present disclosure provides a device for integrating a cross-platform mobile application development framework in an Android application, including: a creation unit, configured to create an independent cross-platform mobile application development framework process for the cross-platform mobile application development framework program; a communication unit, configured as the main process of the Android application to provide an API for the cross-platform mobile application development framework process, and use a combination of cross-process communication technology in Android and internal communication technology of the cross-platform mobile application development framework to achieve communication between the two processes.
[0011] In some embodiments, the device also includes a monitoring unit, which is configured to: the main process sends a monitoring message to the cross-platform mobile application development framework process at a predetermined first period; if a response message fed back by the cross-platform mobile application development framework process is not received in time, the cross-platform mobile application development framework process is killed or the cross-platform mobile application development framework process is restarted.
[0012] In some embodiments, the device also includes a query unit configured to: the main process queries the memory usage of the cross-platform mobile application development framework process in a predetermined second period; if abnormal memory usage is detected, the cross-platform mobile application development framework process is killed or restarted.
[0013] In some embodiments, the upper limit of the memory of the cross-platform mobile application development framework process is the upper limit of the memory of a single process specified by the system.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device that integrates a cross-platform mobile application development framework in an Android application, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement any method as described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, any method in the first aspect is implemented.
[0016] The embodiment of the present disclosure provides a method and device for integrating a cross-platform mobile application development framework in an Android application. Each process has an independent memory upper limit. The cross-platform mobile application development framework program uses an independent process to increase the upper limit of the cross-platform mobile application development framework program. The cross-platform mobile application development framework program is placed in an independent process, and the independent process memory and crash will be monitored by the main process. The main process can monitor the crash and excessive memory of the cross-platform mobile application development framework process in this way. The main process regularly sends messages to the cross-platform mobile application development framework process, and the cross-platform mobile application development framework process responds in time after receiving the message. In this way, it can be monitored whether the cross-platform mobile application development framework process is stuck and abnormal situations occur. The main process can kill the cross-platform mobile application development framework process in time or restart the cross-platform mobile application development framework process. The main process provides an api for the cross-platform mobile application development framework process, uses the cross-process AIDL technology in Android to realize communication between two processes (a technology supported by the Android system), and adds the React and Native communication principle in the cross-platform mobile application development framework (this is an open source technology). The combination of the two technologies opens up the function of completing the independent embedded cross-platform mobile application development framework application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0018] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
[0019] Figure 2 is a flowchart of an embodiment of a method for integrating a cross-platform mobile application development framework in an Android application according to the present disclosure;
[0020] Figure 3 is a schematic diagram of an application scenario of a method for integrating a cross-platform mobile application development framework into an Android application according to the present disclosure;
[0021] Figure 4 is a flowchart of another embodiment of a method for integrating a cross-platform mobile application development framework in an Android application according to the present disclosure;
[0022] Figure 5 is a schematic diagram of another application scenario of the method for integrating a cross-platform mobile application development framework into an Android application according to the present disclosure;
[0023] Figure 6 It is a structural schematic diagram of an embodiment of a device for integrating a cross-platform mobile application development framework into an Android application according to the present disclosure;
[0024] Figure 7 It is a structural diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] Figure 1 An exemplary system architecture 100 of an embodiment of a method for integrating a cross-platform mobile application development framework into an Android application or an apparatus for integrating a cross-platform mobile application development framework into an Android application of the present disclosure is shown.
[0028] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0029] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as software development applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0030] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0031] The server 105 may be a server that provides various services, such as a background compilation server that provides support for the programming interface displayed on the terminal devices 101, 102, and 103. The background compilation server may analyze and process the received compilation request and other data, and feed back the processing result (such as a mobile application) to the terminal device.
[0032] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0033] It should be noted that the method for integrating a cross-platform mobile application development framework in an Android application provided in the embodiments of the present disclosure is generally executed by the server 105 , and accordingly, the device for integrating a cross-platform mobile application development framework in an Android application is generally set in the server 105 .
[0034] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0035] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for integrating a cross-platform mobile application development framework in an Android application according to the present disclosure. The method for integrating a cross-platform mobile application development framework in an Android application comprises the following steps:
[0036] Step 201: Create an independent cross-platform mobile application development framework process for the cross-platform mobile application development framework program.
[0037] In this embodiment, the execution body of the method for integrating a cross-platform mobile application development framework into an Android application (eg Figure 1 The server shown in the figure can receive the cross-platform mobile application development framework program code, such as React Native code, from the terminal used by the user for mobile application development through a wired connection or a wireless connection. To start executing the program from the hard disk, it must first be loaded into the memory, then described (creating a PCB (process control block)), and then run. The running program is called a process. Create an independent cross-platform mobile application development framework process for the cross-platform mobile application development framework program, independent of the main process of the Android application. That is, they have different process IDs.
[0038] The independent cross-platform mobile application development framework process does not need to share memory with the main process of the Android application, thus increasing the memory limit of the cross-platform mobile application development framework process.
[0039] Step 202: The main process of the Android application provides an API for the cross-platform mobile application development framework process, and uses a combination of the cross-process communication technology in Android and the internal communication technology of the cross-platform mobile application development framework to achieve communication between the two processes.
[0040] In this embodiment, the cross-platform mobile application development framework process interacts with the main process of the Android application through the API provided by the main process of the Android application. The communication method adopts a combination of the cross-process communication technology of AIDL (Android Interface Definition Language) in Android and the internal communication technology of the cross-platform mobile application development framework. The internal communication technology of the cross-platform mobile application development framework is used for internal communication of the cross-platform mobile application development framework process. Business interaction can be carried out between the cross-platform mobile application development framework process and the main process of the Android application, for example, the exchange of account login information, etc.
[0041] Continue to see Figure 3 , Figure 3 Schematic diagram of an application scenario of the method for integrating a cross-platform mobile application development framework into an Android application according to this embodiment. Figure 3 In the application scenario, the left picture shows the general way to integrate into Android app. The right picture shows the multi-process method supported by Android. RN program and host isolation technology is to use Figure 3 The multi-process technology on the right. Each process has an independent memory limit. Using independent processes for RN programs can increase the upper limit of RN programs.
[0042] Further references Figure 4 , which shows a process 400 of another embodiment of a method for integrating a cross-platform mobile application development framework in an Android application. The process 400 of the method for integrating a cross-platform mobile application development framework in an Android application comprises the following steps:
[0043] Step 401: Create an independent cross-platform mobile application development framework process for the cross-platform mobile application development framework program.
[0044] Step 402: The main process of the Android application provides an API for the cross-platform mobile application development framework process, and uses a combination of the cross-process communication technology in Android and the internal communication technology of the cross-platform mobile application development framework to achieve communication between the two processes.
[0045] Steps 401-402 are substantially the same as steps 201-202, and thus will not be described in detail.
[0046] Step 403, the main process sends a monitoring message to the cross-platform mobile application development framework process in a predetermined first period. If the main process does not receive a response message from the cross-platform mobile application development framework process in time, the cross-platform mobile application development framework process is killed or restarted.
[0047] In this embodiment, the main process periodically sends messages to the cross-platform mobile application development framework process, and the cross-platform mobile application development framework process responds promptly after receiving the message, which is equivalent to detecting the heartbeat. In this way, it is possible to monitor whether the cross-platform mobile application development framework process is stuck or abnormal, and the main process can kill the cross-platform mobile application development framework process in time or restart the cross-platform mobile application development framework process.
[0048] Step 404, the main process queries the memory usage of the cross-platform mobile application development framework process in a predetermined second period, and if abnormal memory usage is detected, the cross-platform mobile application development framework process is killed or restarted.
[0049] In this embodiment, the cross-platform mobile application development framework program is placed in an independent process, and the independent process memory and crashes will be monitored by the main process (by checking the memory). The main process can monitor the crash and high memory situation of the cross-platform mobile application development framework process in this way. The second cycle can be the same as or different from the first cycle.
[0050] Figure 5 The figure shows the interaction process between the main process and the cross-platform mobile application development framework (using React Native as an example). It can be seen that the cross-platform mobile application development framework program can be isolated from the host through multiple processes. In addition, the main process can monitor the cross-platform mobile application development framework program. Even if the cross-platform mobile application development framework process crashes, it will not affect the main process.
[0051] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for integrating a cross-platform mobile application development framework into an Android application. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0052] like Figure 6 As shown, the device 600 for integrating a cross-platform mobile application development framework into an Android application of this embodiment includes: a creation unit 601 and a communication unit 602. The creation unit 601 is configured to create an independent cross-platform mobile application development framework process for the cross-platform mobile application development framework program; the communication unit 602 is configured to provide an API for the cross-platform mobile application development framework process as the main process of the Android application, and realizes communication between the two processes by combining the cross-process communication technology in Android and the internal communication technology of the cross-platform mobile application development framework.
[0053] In this embodiment, the specific processing of the creation unit 601 and the communication unit 602 of the device 600 for integrating a cross-platform mobile application development framework into an Android application can be referred to in Figure 2 Corresponding to step 201 and step 202 in the embodiment.
[0054] In some optional implementations of the present embodiment, the device 600 for integrating a cross-platform mobile application development framework into an Android application further includes a monitoring unit 603, which is configured such that: the main process sends a monitoring message to the cross-platform mobile application development framework process at a predetermined first period; if a response message fed back by the cross-platform mobile application development framework process is not received in time, the cross-platform mobile application development framework process is killed or restarted.
[0055] In some optional implementations of the present embodiment, the device 600 for integrating a cross-platform mobile application development framework into an Android application further includes a query unit 604, which is configured such that: the main process queries the memory usage of the cross-platform mobile application development framework process at a predetermined second cycle; if abnormal memory usage is detected, the cross-platform mobile application development framework process is killed or restarted.
[0056] In some optional implementations of this embodiment, the upper limit of the memory of the cross-platform mobile application development framework process is the upper limit of the memory of a single process specified by the system.
[0057] Reference below Figure 7 , which shows an electronic device (eg, Figure 1 A schematic diagram of the structure of the server 700. Figure 7 The server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0058] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0059] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 7 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0060] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above functions defined in the method of the embodiment of the present disclosure are executed. It should be noted that the computer-readable medium described in the embodiment of the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus, or a device. In an embodiment of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus, or a device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
[0061] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: creates an independent cross-platform mobile application development framework process for the cross-platform mobile application development framework program; the main process of the Android application provides an API for the cross-platform mobile application development framework process, and uses a combination of the cross-process communication technology in Android and the internal communication technology of the cross-platform mobile application development framework to achieve communication between the two processes.
[0062] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0063] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0064] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be arranged in a processor, for example, may be described as: a processor includes a creation unit, a communication unit, a monitoring unit and a query unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the creation unit may also be described as "a unit for creating an independent cross-platform mobile application development framework process for a cross-platform mobile application development framework program."
[0065] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. A method for integrating a cross-platform mobile application development framework into an Android application, comprising: Creating an independent cross-platform mobile application development framework process for a cross-platform mobile application development framework program, wherein the cross-platform mobile application development framework includes React Native; The main process of the Android application provides an API for the cross-platform mobile application development framework process, and uses a combination of cross-process communication technology in Android and internal communication technology of the cross-platform mobile application development framework to achieve communication between the two processes, wherein the cross-platform mobile application development framework process and the main process of the Android application do not share memory.
2. The method according to claim 1, wherein: The method further comprises: The main process sends a monitoring message to the cross-platform mobile application development framework process at a predetermined first period; If a response message fed back by the cross-platform mobile application development framework process is not received in time, the cross-platform mobile application development framework process is killed or restarted.
3. The method according to claim 1, wherein: The method further comprises: The main process queries the memory usage of the cross-platform mobile application development framework process in a predetermined second period; If abnormal memory usage is detected, the cross-platform mobile application development framework process is killed or restarted.
4. The method according to claim 1, wherein: The upper limit of the memory of the cross-platform mobile application development framework process is the upper limit of the memory of a single process specified by the system.
5. A device for integrating a cross-platform mobile application development framework into an Android application, comprising: A creation unit is configured to create an independent cross-platform mobile application development framework process for a cross-platform mobile application development framework program, wherein the cross-platform mobile application development framework includes React Native; The communication unit is configured as the main process of the Android application to provide an API for the cross-platform mobile application development framework process, and uses a combination of cross-process communication technology in Android and internal communication technology of the cross-platform mobile application development framework to achieve communication between the two processes, wherein the cross-platform mobile application development framework process and the main process of the Android application do not share memory.
6. The device according to claim 5, wherein: The device further comprises a monitoring unit configured to: The main process sends a monitoring message to the cross-platform mobile application development framework process at a predetermined first period; If a response message fed back by the cross-platform mobile application development framework process is not received in time, the cross-platform mobile application development framework process is killed or restarted.
7. The device according to claim 5, wherein: The device also includes a query unit configured to: The main process queries the memory usage of the cross-platform mobile application development framework process in a predetermined second period; If abnormal memory usage is detected, the cross-platform mobile application development framework process is killed or restarted.
8. The device according to claim 5, wherein: The upper limit of the memory of the cross-platform mobile application development framework process is the upper limit of the memory of a single process specified by the system.
9. An electronic device integrating a cross-platform mobile application development framework in an Android application, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
10. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Mobile application cross-platform development method
CN103309660A
Method and device for implementing independent system process
CN106775608A
Method ad device of inter-process point print log sending
CN108021459A