CN111782188A - Method and apparatus for integrating a cross-platform mobile application development framework - Google Patents
Method and apparatus for integrating a cross-platform mobile application development framework Download PDFInfo
- Publication number
- CN111782188A CN111782188A CN201910938547.9A CN201910938547A CN111782188A CN 111782188 A CN111782188 A CN 111782188A CN 201910938547 A CN201910938547 A CN 201910938547A CN 111782188 A CN111782188 A CN 111782188A
- Authority
- CN
- China
- Prior art keywords
- cross
- mobile application
- application development
- development framework
- platform mobile
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 209
- 238000011161 development Methods 0.000 title claims abstract description 170
- 230000008569 process Effects 0.000 claims abstract description 151
- 238000004891 communication Methods 0.000 claims abstract description 46
- 238000005516 engineering process Methods 0.000 claims abstract description 31
- 238000012544 monitoring process Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 230000002159 abnormal effect Effects 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 4
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
Embodiments of the present disclosure disclose methods and apparatus for integrating a cross-platform mobile application development framework. One embodiment of the method comprises: 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 program provides an API for the cross-platform mobile application development framework process, and the cross-process communication technology in the Android and the cross-platform mobile application development framework internal communication technology are combined to realize communication between the two processes. The implementation method can completely isolate the cross-platform mobile application development framework from the host, the collapse of the cross-platform mobile application development framework cannot influence the stability of the host, the host can monitor the cross-platform mobile application development framework program, and the cross-platform mobile application development framework program can be killed (or restarted) actively. And the memory upper limit of a cross-platform mobile application development framework is improved. When a cross-platform mobile application development framework program is jammed, the host can detect and process the jam in time.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for integrating a cross-platform mobile application development framework.
Background
At present, the mainstream mobile development platforms are Android and iOS, the development technology and the operation mode of each platform are different, and people develop and apply the platform. Naturally, a phenomenon that a mobile application product needs to be developed for each platform in a set exists, and the problems caused by the development are high development cost and low efficiency, so that the requirement of cross-platform development can be met. From the Hybrid development technology based on Cordova to the bridging technology of reach Native, the cross-platform development technology is evolving.
The fact Native (RN) is a cross-platform mobile application development framework sourced from Facebook in 2015 4, and is a derivative product of JS framework React sourced from Facebook in the Native mobile application platform, and currently supports iOS and android platforms. The RN develops mobile applications using Javascript language, JSX similar to HTML, and CSS, so a person familiar with Web front-end development needs little learning to enter the field of mobile application development.
The existing method for integrating a cross-platform mobile application development framework in an Android application program has the following defects: the program integrating the cross-platform mobile application development framework into the Android cannot be completely isolated from the host (the Android app integrating the cross-platform mobile application development framework). A crash of the cross-platform mobile application development framework can result in a crash of the host. The host cannot monitor the cross-platform mobile application development framework program and actively monitors and kills the cross-platform mobile application development framework program. The host cannot detect that the cross-platform mobile application development framework program is stuck and processed in time.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for integrating a cross-platform mobile application development framework in an Android application program.
In a 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 program provides an API for the cross-platform mobile application development framework process, and the cross-process communication technology in the Android and the cross-platform mobile application development framework internal communication technology are combined to realize communication between the two processes.
In some embodiments, the method further comprises: the method comprises the steps that a main process sends monitoring messages to a cross-platform mobile application development framework process in a preset first period; if the 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.
In some embodiments, the method further comprises: the main process queries the memory use condition of the cross-platform mobile application development framework process in a preset second period; and if the memory use condition is detected to be abnormal, killing the cross-platform mobile application development framework process or restarting the cross-platform mobile application development framework process.
In some embodiments, the upper limit of memory for the cross-platform mobile application development framework process is a system-specified upper limit of memory for a single process.
In a second aspect, an embodiment of the present disclosure provides an apparatus 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 a cross-platform mobile application development framework program; and the communication unit is configured to provide an API for the cross-platform mobile application development framework process by the main process of the Android application program, and realize communication between the two processes by using the combination of a cross-process communication technology in the Android and an internal communication technology of the cross-platform mobile application development framework.
In some embodiments, the apparatus further comprises a monitoring unit configured to: the method comprises the steps that a main process sends monitoring messages to a cross-platform mobile application development framework process in a preset first period; if the 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.
In some embodiments, the apparatus further comprises a querying element configured to: the main process queries the memory use condition of the cross-platform mobile application development framework process in a preset second period; and if the memory use condition is detected to be abnormal, killing the cross-platform mobile application development framework process or restarting the cross-platform mobile application development framework process.
In some embodiments, the upper limit of memory for the cross-platform mobile application development framework process is a system-specified upper limit of memory for a single process.
In a third aspect, an embodiment of the present disclosure provides an electronic device for integrating a cross-platform mobile application development framework in an Android application, including: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement a method as in any one of the first aspects.
In a fourth aspect, embodiments of the disclosure provide a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements a method as in any one of the first aspect.
According to the method and the device for integrating the cross-platform mobile application development framework in the Android application program, each process has an independent upper memory limit, and the cross-platform mobile application development framework program can improve the upper limit of the cross-platform mobile application development framework program by using the independent process. The cross-platform mobile application development framework program is placed in an independent process, and the memory and the crash of the independent process can be monitored by the main process. The host process can monitor the crash and the over-memory condition of the cross-platform mobile application development framework process in the mode. The main process sends messages to the cross-platform mobile application development framework process regularly, and the cross-platform mobile application development framework process responds timely after receiving the messages. Therefore, whether the cross-platform mobile application development framework process is blocked or not and the abnormal condition can be monitored, and the main process can kill the cross-platform mobile application development framework process or restart the cross-platform mobile application development framework process in time. The main process provides api for the cross-platform mobile application development framework process, the cross-process AIDL technology in Android is used for realizing communication between two processes (the technology supported by the Android system), and the React and Native communication principle in the cross-platform mobile application development framework (the technology is an open source technology) is added. The combination of the two technologies is communicated to complete the function of the independent embedded cross-platform mobile application development framework application.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flowchart of one embodiment of a method of integrating a cross-platform mobile application development framework in Android applications according to the present disclosure;
FIG. 3 is a schematic illustration of one application scenario of a method of integrating a cross-platform mobile application development framework in Android applications according to the present disclosure;
FIG. 4 is a flowchart of yet another embodiment of a method of integrating a cross-platform mobile application development framework in Android applications according to the present disclosure;
FIG. 5 is a schematic illustration of yet another application scenario of a method of integrating a cross-platform mobile application development framework in Android applications according to the present disclosure;
FIG. 6 is a schematic structural diagram illustrating an embodiment of an apparatus for integrating a cross-platform mobile application development framework in Android applications according to the present disclosure;
FIG. 7 is a schematic block diagram of a computer system suitable for use with an electronic device implementing embodiments of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which an embodiment of a method of integrating a cross-platform mobile application development framework in an Android application or an apparatus of integrating a cross-platform mobile application development framework in an Android application of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a software development application, a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen 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, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background compilation server providing support for programming interfaces displayed on the terminal devices 101, 102, 103. The background compiling server may analyze and perform other processing on the received data such as the compiling request, and feed back a processing result (for example, the mobile application) to the terminal device.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for integrating the cross-platform mobile application development framework in the Android application provided by the embodiment of the present disclosure is generally executed by the server 105, and accordingly, the apparatus for integrating the cross-platform mobile application development framework in the Android application is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method of integrating a cross-platform mobile application development framework in an Android application according to the present disclosure is shown. The method for integrating the cross-platform mobile application development framework in the Android application program comprises the following steps:
In this embodiment, an execution main body (for example, a server shown in fig. 1) of the method for integrating the cross-platform mobile application development framework in the Android application may receive a cross-platform mobile application development framework program code, for example, a real Native code, from a terminal with which a user performs mobile application development in a wired connection manner or a wireless connection manner. The program is executed from the hard disk, loaded to the memory, described (PCB (process control block) is created), and then executed, so that the executed program is called a process. And creating an independent cross-platform mobile application development frame process for the cross-platform mobile application development frame program, wherein the independent cross-platform mobile application development frame process is independent of the main process of the Android application program. I.e. they have different process IDs.
The independent cross-platform mobile application development framework process does not share the memory with the main process of the Android application program, so that the memory upper limit of the cross-platform mobile application development framework process is improved.
In this embodiment, the cross-platform mobile application development framework process interacts with the main process of the Android application through an API provided by the main process of the Android application. The communication method adopts the combination of an AIDL (Android interface Definition Language) cross-process communication technology in Android and an internal communication technology of a cross-platform mobile application development framework. The cross-platform mobile application development framework internal communication technology is used for cross-platform mobile application development framework process internal communication. Service interaction can be carried out between the cross-platform mobile application development framework process and the main process of the Android application program, for example, account login information is interacted.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for integrating a cross-platform mobile application development framework in an Android application according to the embodiment. In the application scenario of fig. 3, the left diagram is the way it is typically integrated into an Android app. And the right side adopts a multi-process mode supported by Android. The RN program and host isolation technique is a technique using multiple processes on the right side of fig. 3. Each process has an independent memory upper limit, and the RN program can use the independent process to improve the upper limit of the RN program.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method of integrating a cross-platform mobile application development framework in an Android application is shown. The process 400 of the method for integrating the cross-platform mobile application development framework in the Android application program comprises the following steps:
And 402, providing an API for the cross-platform mobile application development framework process by the main process of the Android application program, and realizing communication between the two processes by using the combination of a cross-process communication technology in the Android and an internal communication technology of the cross-platform mobile application development framework.
The steps 401-402 are substantially the same as the steps 201-202, and therefore will not be described again.
In this embodiment, the main process periodically sends a message to the cross-platform mobile application development framework process, and the cross-platform mobile application development framework process timely responds after receiving the message, which is equivalent to detecting a heartbeat. Therefore, whether the cross-platform mobile application development framework process is blocked or not and the abnormal condition can be monitored, and the main process can kill the cross-platform mobile application development framework process or restart the cross-platform mobile application development framework process in time.
In this embodiment, the cross-platform mobile application development framework program is placed in an independent process, and both the independent process memory and the crash are monitored by the host process (by means of memory check). The host process can monitor the crash and the over-memory condition of the cross-platform mobile application development framework process in the mode. The second period may be the same as or different from the first period.
Fig. 5 shows the interaction flow of the main process and the cross-platform mobile application development framework (for example, real Native) process. Therefore, the isolation of the cross-platform mobile application development framework program from the host can be realized in a multi-process mode. And the host process can monitor the cross-platform mobile application development framework. Even if the cross-platform mobile application development framework process crashes, the main process is not affected.
With further reference to fig. 6, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of a device for integrating a cross-platform mobile application development framework in an Android application program, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the device may be specifically applied to various electronic devices.
As shown in fig. 6, the apparatus 600 for integrating a cross-platform mobile application development framework in an Android application according to this embodiment includes: a creating unit 601 and a communication unit 602. The creating 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 by the main process of the Android application program, and implement communication between the two processes by using a combination of a cross-process communication technology in the Android and a cross-platform mobile application development framework internal communication technology.
In this embodiment, for specific processing of the creating unit 601 and the communication unit 602 of the apparatus 600 for integrating a cross-platform mobile application development framework in an Android application, refer to step 201 and step 202 in the corresponding embodiment of fig. 2.
In some optional implementations of the present embodiment, the apparatus 600 for integrating a cross-platform mobile application development framework in an Android application further includes a monitoring unit 603 configured to: the method comprises the steps that a main process sends monitoring messages to a cross-platform mobile application development framework process in a preset first period; if the 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.
In some optional implementations of the present embodiment, the apparatus 600 for integrating a cross-platform mobile application development framework in an Android application further includes a query unit 604 configured to: the main process queries the memory use condition of the cross-platform mobile application development framework process in a preset second period; and if the memory use condition is detected to be abnormal, killing the cross-platform mobile application development framework process or restarting the cross-platform mobile application development framework process.
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.
Referring now to FIG. 7, a block diagram of an electronic device (e.g., the server of FIG. 1) 700 suitable for use in implementing embodiments of the present disclosure is shown. The server shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 7 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of embodiments of the present disclosure. It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: 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 program provides an API for the cross-platform mobile application development framework process, and the cross-process communication technology in the Android and the cross-platform mobile application development framework internal communication technology are combined to realize communication between the two processes.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a creation unit, a communication unit, a monitoring unit, and a query unit. Where the names of these elements do not in some cases constitute a limitation on the elements themselves, for example, a creation element may also be described as an "element that creates a separate cross-platform mobile application development framework process for a cross-platform mobile application development framework program".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Claims (10)
1. A method for integrating a cross-platform mobile application development framework in an Android application program comprises the following steps:
creating an independent cross-platform mobile application development framework process for the cross-platform mobile application development framework program;
and the main process of the Android application program provides an API for the cross-platform mobile application development framework process, and the communication between the two processes is realized by using the combination of a cross-process communication technology in the Android and an internal communication technology of the cross-platform mobile application development framework.
2. The method of claim 1, wherein the method further comprises:
the main process sends monitoring messages to the cross-platform mobile application development framework process in a preset first period;
and if the response message fed back by the cross-platform mobile application development framework process is not received in time, killing the cross-platform mobile application development framework process or restarting the cross-platform mobile application development framework process.
3. The method of claim 1, wherein the method further comprises:
the main process queries the memory use condition of the cross-platform mobile application development framework process according to a preset second period;
and if the memory use condition is detected to be abnormal, killing the cross-platform mobile application development framework process or restarting the cross-platform mobile application development framework process.
4. The method of claim 1, wherein the upper limit of memory of the cross-platform mobile application development framework process is a system-specified upper limit of memory for a single process.
5. An apparatus for integrating a cross-platform mobile application development framework in an Android application, comprising:
a creation unit configured to create an independent cross-platform mobile application development framework process for a cross-platform mobile application development framework program;
and the communication unit is configured to provide an API for the cross-platform mobile application development framework process by the main process of the Android application program, and realize communication between the two processes by using the combination of a cross-process communication technology in the Android and an internal communication technology of the cross-platform mobile application development framework.
6. The apparatus of claim 5, wherein the apparatus further comprises a monitoring unit configured to:
the main process sends monitoring messages to the cross-platform mobile application development framework process in a preset first period;
and if the response message fed back by the cross-platform mobile application development framework process is not received in time, killing the cross-platform mobile application development framework process or restarting the cross-platform mobile application development framework process.
7. The apparatus of claim 5, wherein the apparatus further comprises a querying element configured to:
the main process queries the memory use condition of the cross-platform mobile application development framework process according to a preset second period;
and if the memory use condition is detected to be abnormal, killing the cross-platform mobile application development framework process or restarting the cross-platform mobile application development framework process.
8. The apparatus of claim 5, wherein the upper limit of memory of the cross-platform mobile application development framework process is a system-specified upper limit of memory for a single process.
9. An electronic device for 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 executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910938547.9A CN111782188A (en) | 2019-09-30 | 2019-09-30 | Method and apparatus for integrating a cross-platform mobile application development framework |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910938547.9A CN111782188A (en) | 2019-09-30 | 2019-09-30 | Method and apparatus for integrating a cross-platform mobile application development framework |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111782188A true CN111782188A (en) | 2020-10-16 |
Family
ID=72755599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910938547.9A Pending CN111782188A (en) | 2019-09-30 | 2019-09-30 | Method and apparatus for integrating a cross-platform mobile application development framework |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111782188A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120084792A1 (en) * | 2010-10-01 | 2012-04-05 | Imerj, Llc | Cross-environment communication using application space api |
US20130198113A1 (en) * | 2012-01-28 | 2013-08-01 | Anirban Ray | Method and technique to create single intelligent collaboration platform spanning across web, mobile and cloud |
CN103309660A (en) * | 2013-05-27 | 2013-09-18 | 北京尚友通达信息技术有限公司 | Mobile application cross-platform development method |
CN103995751A (en) * | 2014-05-30 | 2014-08-20 | 上海斐讯数据通信技术有限公司 | Cross-platform communication system and method |
CN106775608A (en) * | 2015-11-24 | 2017-05-31 | 腾讯科技(深圳)有限公司 | The implementation method and device of autonomous system process |
CN108021459A (en) * | 2017-12-01 | 2018-05-11 | 北京麒麟合盛网络技术有限公司 | Striding course sends the method and device for getting daily record ready |
CN109213611A (en) * | 2018-08-01 | 2019-01-15 | 天津字节跳动科技有限公司 | The striding course means of communication, device, terminal and storage medium |
-
2019
- 2019-09-30 CN CN201910938547.9A patent/CN111782188A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120084792A1 (en) * | 2010-10-01 | 2012-04-05 | Imerj, Llc | Cross-environment communication using application space api |
US20130198113A1 (en) * | 2012-01-28 | 2013-08-01 | Anirban Ray | Method and technique to create single intelligent collaboration platform spanning across web, mobile and cloud |
CN103309660A (en) * | 2013-05-27 | 2013-09-18 | 北京尚友通达信息技术有限公司 | Mobile application cross-platform development method |
CN103995751A (en) * | 2014-05-30 | 2014-08-20 | 上海斐讯数据通信技术有限公司 | Cross-platform communication system and method |
CN106775608A (en) * | 2015-11-24 | 2017-05-31 | 腾讯科技(深圳)有限公司 | The implementation method and device of autonomous system process |
CN108021459A (en) * | 2017-12-01 | 2018-05-11 | 北京麒麟合盛网络技术有限公司 | Striding course sends the method and device for getting daily record ready |
CN109213611A (en) * | 2018-08-01 | 2019-01-15 | 天津字节跳动科技有限公司 | The striding course means of communication, device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11689422B1 (en) | Standby instances for auto-scaling groups | |
CN109766082B (en) | Method and device for application program page jump | |
CN110177028A (en) | Distributed health examination method and device | |
US20150156257A1 (en) | Application service providing method and system, and related device | |
CN113900834B (en) | Data processing method, device, equipment and storage medium based on Internet of things technology | |
CN110232091B (en) | Method, system and apparatus for synchronizing data | |
CN111597065B (en) | Method and device for collecting equipment information | |
CN110007936B (en) | Data processing method and device | |
US20130151595A1 (en) | Deployment and hosting of platform independent applications | |
CN110059064B (en) | Log file processing method and device and computer readable storage medium | |
US11243755B1 (en) | Resource aware patching service | |
CN112954056B (en) | Method and device for processing monitoring data, electronic equipment and storage medium | |
CN110855655B (en) | Information verification method, device, equipment and storage medium | |
CN110324432B (en) | Data processing method, device and medium applied to terminal and computing equipment | |
CN111782188A (en) | Method and apparatus for integrating a cross-platform mobile application development framework | |
CN113407229B (en) | Method and device for generating offline scripts | |
CN111767486B (en) | Method, apparatus, electronic device and computer readable medium for displaying pages | |
CN110221854B (en) | Multi-process data updating method, device, medium and electronic equipment | |
CN113835790B (en) | Paging page display method and device based on Android | |
CN111290873B (en) | Fault processing method and device | |
CN112882921B (en) | Fault simulation method and device | |
CN111797009B (en) | Method and device for detecting code compatibility and electronic equipment | |
CN113568695A (en) | Corner mark processing method and device for boarder application | |
US10411960B1 (en) | Detaching instances from auto-scaling group | |
CN110633182B (en) | System, method and device for monitoring server stability |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |