专利摘要:
Processing method and device for application program. The present invention relates to a processing method for an application program and a device thereof, which relates the field of electronic terminals, and which can effectively save the processing resources of electronic terminals, so as to improve the efficiency of use of resources. the method of the present description basically includes: switching (s11) an application program from a foreground to a background, where the processes of said application program comprise a ui process and a logic process; and terminating (s12) the ui process of said application program, and continuing (s19) running the logical process of said application program. the modalities of the present description are basically applied to the procedures of processing the application programs in the electronic terminals.
公开号:BR112015000216B1
申请号:R112015000216-1
申请日:2014-10-22
公开日:2022-01-11
发明作者:Wei Han;Wenjun Wang;Jun Yuan;Qiwu Huang
申请人:Xiaomi Inc.;
IPC主号:
专利说明:

[001] This application claims priority from Chinese patent application No. 201410203339.1, entitled "Processing method and device for application program," filed May 14, 2014, the entire contents of which are incorporated herein by reference. Technical Field
[002] The present invention relates to the field of electronic terminals, and more particularly to a processing method and a device for the application program. background
[003] Nowadays, there are many application programs designed for mobile phones, pads and other electronic terminals, and there is usually a scene of multiple applications running simultaneously on an electronic terminal. Furthermore, the running of the application is usually presented in two ways: one is running in the foreground, that is, running directly in the window or interface displayed by the screen illustrating the current interface in which the application is running, which can interact with the user. of the electronic terminal through the display interface. The other way is to run in the background, which means that the screen does not show the interface in which the app is running, but the app continues to provide services and can be switched at any time to the foreground and displayed.
[004] During the practical use of electronic terminals, there are normally requirements for switching applications running from the front to the background. For example, when a user opens a music application and starts playing music, a UI (User Interface) of the music application would be calculated by the music application process and then displayed, and the interface content might include the music application button. playback control, cover art, song information, lyrics and so on. At that time, user can switch the music app to run in the background, turn on the support app to support the terminal data, then the UI including the support control button and the support schedule would be calculated by the application process of support and displayed. While support is in progress, the user can also switch to the home page for other operations, which may not be mentioned here redundantly.
[005] For such situations, the processing method in the related technique is: when the application is switched to run in the background, it continuously executes the same process as the one running in front, thus, all data, services and Application UIs can continue to be rendered in the same way as in the foreground, with the UI hidden. When the application is switched to running in the foreground again, the UI can be displayed.
[006] In the above processing course of the application programs, there are at least the following problems: since the same process is performed while running in the foreground, while the application is switched to running in the background, a lot of resources processing time can be busy, and the user usually doesn't care about the background program UI in practical situations, so such a processing method can result in a waste of processing resources and relatively low resource utilization efficiency. summary
[007] In order to solve background problems, the modalities of the present description provide a processing method and a device for an application program, which can efficiently save the processing resources of an electronic terminal, from in order to improve the efficiency of resource use.
[008] In accordance with a first aspect of the embodiments of the present description, a processing method for an application program is provided, which may include:
[009] switching an application program from a foreground running in a background, where the processes of said application program include a UI process and a logic process; and
[0010] the termination of the UI process of said application program, and the continuation of the operation of the logical process of said application program.
[0011] In accordance with a second aspect of the embodiments of the present disclosure, a processing device for an application program is provided, which may include:
[0012] a first switching unit, configured to switch the application program from a foreground to a background, where the processes of said application program include a UI process and a logic process;
[0013] a shutdown unit, configured to terminate the UI process of said application program after said switching unit switches the application program from foreground to background; and
[0014] an operating unit, configured to continue running the logic process of said application program after said first switching unit switches the application program from foreground to background.
[0015] The solutions provided by the description modalities can have the following advantages: running the UI processes and the application program's logical processes separately, when the application program is switched to run in the background, the logical processes needed to the user can continue to run and UI processes that are of no concern to the user can be terminated. The solutions, compared to the way in related technology where the application program's operations still continue to run in the background, can save CPU processing resources and memory space occupied by UI calculations when the application program enters the execution mode. background, in this way, can reduce the power consumption of electronic terminal, so as to achieve the purpose of energy saving when many application programs are run simultaneously, and can not only improve the resource utility efficiency, but also reduce electronic terminal heating, due to the prevention of wasting CPU processing resources in the electronic terminal.
[0016] It should be understood that both the above general description and the following detailed description are illustrative and explanatory only, and do not limit the description. Brief Description of Drawings
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
[0018] Figure 1 is a flowchart of a processing method for an application program according to an illustrative embodiment.
[0019] Figure 2 is a flowchart of a processing method for an application program according to another illustrative embodiment.
[0020] Figure 3 is a flowchart of a processing method for an application program according to another illustrative embodiment.
[0021] Figure 4 is a flowchart of a processing method for an application program according to another illustrative embodiment.
[0022] Figure 5 is a flowchart of a processing method for an application program according to another illustrative embodiment.
[0023] Figure 6 is a block diagram of a processing device for an application program.
[0024] Figure 7 is a block diagram of another processing device for an application program.
[0025] Figure 8 is a block diagram of another processing device for an application program.
[0026] Figure 9 is a block diagram of another processing device for an application program.
[0027] Figure 10 is a block diagram of another processing device for an application program.
[0028] Fig. 11 is a block diagram of a processing device for an application program according to an illustrative embodiment; and
[0029] Figure 12 is a block diagram of a processing device for an application program according to another illustrative embodiment. Description of Modalities
[0030] The illustration can now be made in detail of the illustrative embodiments, examples of which are illustrated in the attached drawings. The following description refers to the accompanying drawings in which the same numeral references in different drawings represent the same or similar elements unless otherwise shown. The implementations shown in the following description of the illustrative embodiments do not represent all application-consistent implementations. Rather, they are merely examples of apparatus and methods consistent with aspects relating to the application as mentioned in the attached embodiments.
[0031] Figure 1 is a flowchart of a processing method for an application program according to an illustrative embodiment. As shown in Figure 1, the processing method for an application program is used in a terminal, and includes the following steps.
[0032] In step S11, the application program is switched from a foreground to a background, where the processes of said application program include a UI process and a logic process.
[0033] The difference between a mode of operation of the application program according to the present description and that according to the related technology lies in the fact that the application program in the related technology normally has only one process, and subprograms of services , data, algorithms and UIS are mixed in the process. However, in the present description, some application program codes are subprograms related to the application program's service, data or algorithm, which can be mixed in a logical process to run, and other application program codes are of little influence. in the core service, data or algorithm and are usually some UI related subprograms, and those subprograms that can be mixed into a UI process to run.
[0034] For example, all of the playback control button, cover art, song information, lyrics and so on in the music application program can be sorted in the UI process for running, so that these programs can be terminated when switched to the background. However, the application program's service programs, such as playing music, downloading music data, etc. can be classified into logical process for execution, so that these programs can continue to run even when switched to the background. Similarly, many applications, such as radio, a backup, a stock and a weather application and the like, can adopt the similar method to be classified in a UI process or a logical process, so that it runs separately.
[0035] In step S12, the UI process of said application program is terminated and the logical process of said application program continues to run.
[0036] Where, since the present description adopts the way of running the UI process and the logic process separately as described in S11, the two processes can be handled differently when switched to the background. On the other hand, the application program is just switched from the foreground to the background, not turned off. Thus, in order to guarantee the full function of the terminal application, the application program running in the background still continues to provide a corresponding service, that is, it continues to run the corresponding logical process of said application program. On the other hand, as the user switches the application program to the background to display another interface or close the screen, the user is not aware of a UI interface of the application program running in the background. However, computing these UI interfaces can take up more processing resources, which are sometimes several times the size of the logical process. Thus, in order to reduce resource occupancy, when the application program is running in the background, its UI interface no longer needs to be calculated, that is, the UI process is terminated.
[0037] Additionally, Figure 2 is a flowchart of a processing method for an application program according to another illustrative embodiment. As illustrated in figure 2, the method may include the following steps.
[0038] In step S13, when the application program is switched from background to foreground, said UI process is regenerated according to said logical process.
[0039] Where even though the UI process is terminated while the application program runs in the background, the UI interface of the application program must be displayed accurately at the time the application program is switched to the background front. When the application program is switched to the front plane, the UI process can be restarted and can recover completely. Therefore, after the UI process is restarted, the status of the logical process must be visited first, and the corresponding UI interface of the current logical process must be calculated.
[0040] Additionally, Figure 3 is a flowchart of a processing method for an application program according to another illustrative embodiment. As illustrated in figure 3, before step S11, the method may additionally include the following steps.
[0041] In step S14, when said application program is started, a logical process identifier and/or a UI process identifier in the configuration file of said application program is read.
[0042] Where, during the development of the application program, the designer can apply the corresponding identification to the configuration file of the application program to correspond to the strategy of separation of the logical process and the UI process according to the present description. The form of identification can be: labeling processes that cannot be terminated, eg labeling a server, data and the like with a "process" or "logic". The "process" or "logic" illustrated here can be thought of as logical process identifiers, so that when the application program is run by the operating system, programs corresponding to the "logic" are assembled into the logical process to run, and so on. programs are put into the UI process to run. It can be understood that in the application program configuration file, UI related programs can also be labeled with UI process identifiers, similarly programs with UI process identifiers are placed in UI process to run and other programs are run as logical processes that cannot be terminated even in the background. Otherwise, not only UI-related programs can be labeled with UI process identifiers, but also logic-related programs can be labeled with logic process identifiers, which may not be limited by the embodiments of the present disclosure.
[0043] In step S15, according to said logical process identifier and/or UI process identifier, the respective subprograms included in said application program are classified by process classes, where said process classes include a class of UI and a logic class.
[0044] Taking a music application program as an example, the application program's configuration file is named "AndroidManifest.xml", and the elements included in the configuration file include: Activity, Service, Provider, and Receiver.
[0045] Where the brief definitions and classified process classes of the respective elements are presented as follows:
[0046] (1) Activity, corresponding to each component in the UI interface, such as the song list, playback device visualization and the like that can be observed, belonging to the UI process.
[0047] (2) Service, being the background music player services, belongs to the logical process.
[0048] (3) Provider, being the music data, such as the currently played music and the author, belongs to the logical process.
[0049] (4) Receiver, being some actions triggered after the system broadcast is received, such as the beginning of the playback of a song when it is downloaded completely, belonging to the logical process.
[0050] In step S16, said UI process and said logic process are run according to the classified process classes, where subprograms of said UI class are run in said UI process, and subprograms of said class of logic are run in said logic process.
[0051] Where, based on the results sorted in step S15, the UI process is established to run the subprograms of the UI class separately, and the logic process is established to run the subprograms of the logic class separately. For example, all Activity elements in a music application run in a UI process, and all Service, Provider, and Receiver elements run in a logical process.
[0052] It should be explained that if step S15 can be performed, that is, the subprograms that may or may not be terminated when running in the background may be embodied in the application program's configuration file, processing can be effectively saved by using the method in accordance with the embodiments of the present description. However, since there are many different development teams working for the application programs, it cannot be guaranteed that all the configuration files of the respective application programs can conform to the strategy of separating the UI process and the logical process accordingly. with the present description. Thus, in order to avoid termination of necessary background programs of the application program and affect the normal use of the application program's function, a form of discriminative processing can be adopted further in this mode. For example, for the application program that conforms to the strategy of separating the UI process and the logical process, when it runs in the background, its UI process is terminated; and for the application program that does not conform to the strategy of separating the UI process and the logic process, when it runs in the background, its due program continues to run.
[0053] Additionally, in an alternative embodiment, as illustrated in Figure 4, in order to ensure fluent switching of the interface and prevention of frequent termination and rebooting of the UI process, a time judgment condition can be added after the application program stops working in the background and before the UI process is terminated. Specifically, after step S11, the method may additionally include the following steps.
[0054] In step S17, it is determined whether a time duration in which said application program runs in the background reaches a predetermined length of time.
[0055] Where, when the length of time that said application program runs in the background reaches a predetermined length of time, step S12 is performed; and when the time duration for which said application program runs in the background does not reach the predetermined time duration, step S17 continues to be performed. It can be understood that if the application program is switched to the background running and timing is started, and the application program returns to the foreground without reaching the predetermined duration of time, the timing may be terminated; and if the application program goes back to the background again, a new timing round can be started. Said predetermined length of time can be pre-configured during the development of the application program, and can also be determined by the user. For example, the default length of time can be 5 seconds or 10 seconds, and so on.
[0056] In another alternative modality, as illustrated in Figure 5, in addition to this time duration is considered a condition for determining whether to terminate the background UI process, other judgment conditions can also be adopted. Specifically, after step S11, the method may additionally include the following steps.
[0057] In step S18, it is determined whether a number of other UI processes running in the background reaches a predetermined amount.
[0058] Where, when the amount of said other UI processes reaches the predetermined amount, perform step S12. If the amount of UI processes running in the foreground and background does not reach the predetermined amount, which can be considered the available space for processing resources as relatively adequate, step S19 is performed. Said predetermined amount can be pre-configured during the development of the application program and can also be determined by the user. For example, the predetermined amount can be 5 or 10 and so on.
[0059] In step S19, the UI process and the logic process of said application program continue to run in the background.
[0060] Where, since the amount of UI process running in the foreground and background does not reach the predetermined amount, the UI processes of the application program may not be terminated, and the UI processes and Logic can still run concurrently while running in the background. When the number of UI processes reaches the predetermined amount, in order to avoid consuming excessive processing resources, the UI processes of the application program that pass into the background running subsequently can be terminated.
[0061] In the processing method for the application program according to the illustrative embodiments of the present description, running the UI processes and the logical processes of the application program separately, when the application program is switched to run in the plane In the background, logical processes needed by the user can continue to run and UI processes not important to the user can be terminated. The method, compared to the way in related technology where application program operations are assembled into a process to run and all application program programs still continue to run in the background, can save CPU processing resources and space of memory occupied by the UI calculations when the application program enters the background, in this way, it can reduce the power consumption of the electronic terminal, so as to achieve the purpose of energy saving when many application programs run simultaneously; and it can not only improve the resource utility efficiency, but also reduce the electronic terminal heating, due to the prevention of wasting CPU processing resources in the electronic terminal.
[0062] Figure 6 is a block diagram of a processing device 200 for an application program according to an illustrative embodiment. As illustrated in Figure 6, the processing device 200 includes: a first switching unit 201, a shutdown unit 202 and an operating unit 203.
[0063] The first switching unit 201 is configured to switch the application program from the front to the background, where the processes of said application program include a UI process and a logic process.
[0064] Shutdown unit 202 is configured to terminate the UI process of said application program after said first switching unit 201 switches the application program from foreground to background.
[0065] The operating unit 203 is configured to continue running the logic process of said application program after said first switching unit 201 switches the application program from the front to the background.
[0066] Additionally, as illustrated in Figure 7, the processing device 200 may include a second switching unit 204 and a regeneration unit 205.
[0067] The second switching unit 204 is configured to switch said application program from the background to the foreground.
[0068] Regeneration unit 205 is configured to regenerate said UI process according to said logical process after said second switching unit 204 switches said application program from background to foreground.
[0069] Additionally, as illustrated in Figure 8, the processing device 200 may include: a reading unit 206, configured to read a logical process identifier and/or a UI process identifier in a configuration file of said program when said application program is started, before said first switching unit 201 switches the application program from the front to the background.
[0071] a classification unit 207, configured to classify the respective subprograms included in said application program by process classes, according to said logical process identifier and/or UI process identifier read by said reader unit 206, where said process classes include a UI class and a logic class; and
[0072] a generation unit 208 configured to generate said UI process and said logic process according to said process classes classified by said classification unit 207, where subprograms of said UI class run in said process of UI, and the subprograms of said logic class run in said logic process.
[0073] Additionally, as illustrated in Figure 9, in an alternate embodiment, the processing device 200 may include:
[0074] a first determination unit 209, configured to determine a length of time that said application program runs in the background after said first switching unit 201 switches said application program from the foreground for the background; and
[0075] said shutdown unit 202, further configured to terminate the UI process of said application program after said time duration determined by first determining unit 209 reaches the predetermined time duration.
[0076] As illustrated in Figure 10, in another alternative embodiment, the processing device 200 may additionally include:
[0077] a second determining unit 210, configured to determine a number of other UI processes running in the background after said first switching unit 201 switches said application program from foreground to background; and
[0078] said shutdown unit 202, further configured to shut down UI processes of said application program after the amount of said other UI processes determined by second determining unit 210 reaches a predetermined amount.
[0079] With regard to devices according to the above-mentioned modalities, specific ways in which the respective units perform the operations have already been described in the corresponding method modalities, thus, no details are illustrated here.
[0070] In the processing device 200 for the application program according to the illustrative embodiments of the present description, running the UI processes and the logic processes of the application program separately, when the application program is switched to the plane In the background, logical processes needed by the user can continue to run and UI processes not needed by the user can be terminated. The device, compared to the form in related technology where application program operations are assembled into one process to run and all application program programs still continue to run in the background, can save CPU processing resources and memory space occupied by UI calculations when the application program enters the background, in this way, it can reduce the power consumption of the electronic terminal, so as to achieve the purpose of energy saving when many application programs are run simultaneously ; and it can not only improve the resource utility efficiency, but also reduce electronic terminal heating, due to the prevention of wasting CPU processing resources in the electronic terminal.
[0071] Fig. 11 is a block diagram of a processing device 800 for an application program according to an illustrative embodiment. For example, device 800 can be mobile phone, computer, digital broadcasting terminal, information transceiver, game console, pad equipment, medical equipment, physical exercise equipment, personal digital assistant, and so on.
[0072] Referring to Figure 8, processing device 800 may include one or more of the following components: the processing component 802, the memory 802, the power supply component 806, the multimedia component 808, the audio component 810, input/output (I/O) port 812, sensor component 814, and communication component 816.
[0073] Processing component 802 normally controls the overall operations of processing device 800, such as operations related to display, call, data communication, camera operation and recording operation. Processing component 802 may include one or more processors 820 configured to carry out instructions to complete all or part of the steps of the aforementioned methods. Additionally, processing component 802 may include one or more modules configured to facilitate communication between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate communication between multimedia component 808 and processing component 802.
[0074] Memory 804 is configured to store types of data to support the operations of device 800. Examples of this data include instructions for any application programs or methods operated on device 800, contact information, telephone directory data, messages , images, videos and so on. Memory 804 may be realized by any type of volatile or non-volatile memory device or combinations thereof, such as Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Read Only Memory Erasable and Programmable Only Memory (EPRIM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a magnetic store, a flash memory, a magnetic disk or an optical disk.
[0075] Power component 806 may supply electrical power to various modules in device 800. Power component 806 may include the power management system, one or more power supplies, and other modules related to generation, management, and distribution. of power to the 800 device.
[0076] The multimedia component 808 may include a screen to provide an output interface between said device 800 and the user. In some illustrative embodiments, the display may include a Liquid Crystal Display (LCD) and a touch panel (TP). If the screen contains the touch panel, it can be realized as such a touch screen for receiving user input signals. The touch panel may include one or more touch sensors to sense touch, swipe and gestures on the touch panel. The touch pad can not only sense the limit of touch or slide operation, but also detect the length and pressure related to touch or slide operation. In some illustrative embodiments, the multimedia component 808 may include a preposition camera and/or a postposition camera. When device 800 is in operating mode, such as a camera mode or a video mode, the preposition camera and/or postposition camera can receive external multimedia data. Each of the preposition camera and postposition camera may be a fixed optical lens system or may have a focal length and optical zoom capability.
[0077] Audio component 810 is configured to send and/or receive audio signals. For example, the audio component 810 may include a microphone (MIC), and when the device 800 is in an operational mode, such as a calling mode, a recording mode, or a voice recognition mode, the MIC may be configured to receive external audio signals. Received audio signals may be additionally stored in memory 804 or sent via communication component 816. In some illustrative embodiments, audio component 810 may additionally include a speaker for sending audio signals.
[0078] I/O port 812 provides the interface between the processing component 802 and the external interface modules. Said external interface modules can be a keyboard, a click or button wheel, etc. These buttons can include, but are not limited to, a home button, a volume button, a home button, and a lock button.
[0079] Sensor component 814 may include one or more sensors configured to provide respective status determination aspects to device 800. For example, sensor component 814 may detect on/off status of device 800 and positioning relative between the components, for example, said components can be a screen and a small keyboard of the device 800. The sensor component 814 can additionally detect the change of position of the device 800 or of a device component 800, where there is a contact between the user and the device 800, an orientation, or an acceleration/deceleration of the device 800 and a temperature change of the device 800. The sensor component 814 may include a proximity detector configured to detect the existence of the nearby object without any contact. physicist. Sensor component 814 may additionally include optical sensors such as CMOS or CCD imaging sensors for use in the imaging application. In some illustrative embodiments, sensor component 814 may additionally include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0080] The 816 communication component is configured to facilitate wired or wireless communication between the 800 device and other devices. The 800 device can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or combinations thereof. In an illustrative embodiment, communication component 816 may receive broadcast signals or broadcast-related information from an external broadcast management system over broadcast channels. In an illustrative embodiment, the communication component 816 may additionally include the near-field communication (NFC) module configured to facilitate short-range communication. For example, the NFC module can be realized, based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB) or Bluetooth (BT) technologies or other technologies. In some illustrative embodiments, device 800 may be realized by one or more of application-specific integrated circuits (ASIC), Digital Signal Processors (DSP), Digital Signal Processor Devices (DSPD), Programmable Logic Devices (PLD) , Field Programmable Gate Assemblies (FPGA), controllers, microcontrollers, microprocessors or other electronic components, which are configured to perform the above mentioned methods.
[0092] In some illustrative embodiments, a non-transient computer readable storage medium including instructions is additionally provided, such as memory 804 including the instructions. These instructions can be processed by the processor 820 of the device 800 to perform the above mentioned method. For example, the non-transient computer-readable storage medium can be a ROM, Random Access Storage (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and so on.
[0093] Fig. 12 is a block diagram of a processing device 1900 for an application program according to a second illustrative embodiment. For example, the 1900 device can be provided as a server. Referring to Figure 12, device 1900 may include a processing component 1922 which may additionally include one or more processors; and memory resources represented by a memory 1932 configured to store instructions that can be executed by the processing component 1922, such as an application program. The application program stored in memory 1932 may include one or more modules, each of which corresponds to a group of instructions. Additionally, the processing component 1922 is configured to execute the instructions so as to carry out the above mentioned processing methods for the application programs.
[0094] Device 1900 may additionally include a power supply component 1926 configured to perform power supply management of device 1900, a wired or wireless network port 1950 configured to connect device 1900 to a network; and an input/output (I/O) port 1958. Device 1900 can operate memory based and stored operating systems 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and the like.
[0081] After consideration of the specification and practice of the present disclosure, those skilled in the art should readily obtain other embodiments of the present disclosure. The present description shall cover any variations, purposes or specializations that are carried out with the general principles of the present description and additionally include common knowledge or normal technical means not described in the present description. The specification and modalities are considered illustrative only. The actual scope and soul of the present description are defined by the appended embodiments.
[0082] It should be understood by those skilled in the art that the present description is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and transformations within the scope of the present description may be carried out. The scope of the present description is defined only by the appended embodiments.
权利要求:
Claims (8)
[0001]
1. Processing method for an application program, characterized by the fact that it comprises: reading (S14) a logical process identifier and a user interface (UI) process identifier in an application program configuration file when starting the application program, wherein application program processes comprise a UI process and a logical process for running an application program service program; classifying (S15) subprograms of the application program into at least one UI class and one logic class according to the logical process identifier and the UI process identifier; running (S16) application program subprograms classified as the UI class in the UI process, and running application program subprograms classified as the logic class in the logic process; switching (S11) the application program from running in the foreground to running in the background; and terminating (S12) the application program's UI process while keeping the application program's logical process running.
[0002]
2. Processing method for an application program, according to claim 1, characterized in that it further comprises the step of: regenerating (S13) the UI process of the application program according to the logical process when switching the application program from running in background to running in foreground.
[0003]
3. Processing method for an application program, according to claim 1 or 2, characterized in that, after the step of switching (S11) the application program from running in the background to running in the background , further comprises the steps of: determining (S17) a time duration of the application program running in the background; and terminating the UI process of the application program, when the time duration of the application program running in the background reaches a predetermined time duration.
[0004]
4. Processing method for an application program, according to claim 1 or 2, characterized in that, after the step of switching (S11) the application program from running in the foreground to running in the background , further comprises the steps of: determining (S18) a number of UI processes running in the background; and terminating the UI process of the application program when the number of UI processes running in the background reaches a predetermined amount.
[0005]
5. Processing device (200) for an application program, characterized in that it comprises: a reading unit (206), configured to read a logical process identifier and a user interface (UI) process identifier in an application program configuration file when the application program is started, before a first switching unit (201) the application program from running in the background to running in the background, in which application program processes comprise a UI process and a logical process for running a service program of the application program; a classification unit (207), configured to classify subprograms of the application program by process classes, according to the logical process identifier and the UI process identifier read by the reader unit (206), wherein the classes of process comprise at least one UI class and one logic class; and a generation unit (208), configured to generate the UI process and the logical process, according to the process classes classified by the classification unit (207), in which the subprograms of the UI class run in the UI process. , and the subprograms of the logic class run in the logic process; the first switching unit (201), configured to switch the application program from running in the background to running in the background, wherein processes of the application program comprise the UI process and the logic process; a shutdown unit (202) configured to terminate the application program UI process after the first switching unit (201) switches the application program from running in the background to running in the background; and an operating unit (203) configured to keep the logical process of the application program running after the first switching unit (201) switches the application program from running in the background to running in the background.
[0006]
6. Processing device (200) for an application program, according to claim 5, characterized in that it further comprises: a second switching unit (204), configured to switch the application program from running in plane bottom to rotate in the foreground; and a regeneration unit (205), configured to regenerate the UI process according to the logical process after the second switching unit (204) switches the application program from running in the background to running in the foreground.
[0007]
7. Processing device (200) for an application program, according to claim 5 or 6, characterized in that it further comprises: a first determination unit (209), configured to determine a time duration of the application program application running in the background after the first switching unit (201) switches the application program from running in the background to running in the background; and the termination unit (202), further configured to terminate the UI process of the application program after the time duration determined by the first determining unit (209) reaches a predetermined time duration.
[0008]
8. Processing device (200) for an application program, according to claim 5 or 6, characterized in that it further comprises: a second determination unit (210), configured to determine a number of UI processes running in the background after the first switching unit (201) switches the application program from running in the background to running in the background; and the terminating unit (202), further configured to terminate the UI processes of the application program after the quantity of the UI processes determined by the second determining unit (210) reaches a predetermined quantity.
类似技术:
公开号 | 公开日 | 专利标题
BR112015000216B1|2022-01-11|PROCESSING METHOD AND DEVICE FOR AN APPLICATION PROGRAM
US9977668B2|2018-05-22|Automatic updating of applications
KR102148948B1|2020-08-27|Multi tasking method of electronic apparatus and electronic apparatus thereof
US10209882B2|2019-02-19|Method of performing one or more operations based on a gesture
US9967100B2|2018-05-08|Method of controlling power supply for fingerprint sensor, fingerprint processing device, and electronic device performing the same
US10631361B2|2020-04-21|Method and apparatus for providing user with information received by electronic device
JP2022508176A|2022-01-19|Voice control method and electronic device
CN107852527B|2021-07-09|Method of controlling sharing of video and electronic device adapted to the method
WO2020108356A1|2020-06-04|Application display method and electronic device
US20210389973A1|2021-12-16|Electronic device and method for operating the same
KR20170051950A|2017-05-12|Electronic device and method for controlling display thereof
KR102137686B1|2020-07-24|Method for controlling an content integrity and an electronic device
US10284614B2|2019-05-07|Method for downloading contents of electronic device and electronic device thereof
KR20170098059A|2017-08-29|Electronic device and method for controlling operation thereof
KR20180073119A|2018-07-02|Electronic device and method for detecting error thereof
KR20180042725A|2018-04-26|Electronic device and method for playing multimedia content in the electronic device
KR102229603B1|2021-03-18|Method and Electronic Device for managing audio data
KR20150085864A|2015-07-27|Advertising method of electronic apparatus and electronic apparatus thereof
US9753933B2|2017-09-05|Electronic device and method for mounting file system using virtual block device
US20150119008A1|2015-04-30|Method of reproducing contents and electronic device thereof
US20170111608A1|2017-04-20|Method for recording execution screen and electronic device for processing the same
CN108605261B|2022-03-15|Electronic device and operation method thereof
US11080075B2|2021-08-03|Data threshold notification
US20170046279A1|2017-02-16|Content security processing method and electronic device supporting the same
同族专利:
公开号 | 公开日
CN104050035A|2014-09-17|
US20150333971A1|2015-11-19|
CN104050035B|2018-05-25|
JP2016526244A|2016-09-01|
JP6072362B2|2017-02-01|
WO2015172518A1|2015-11-19|
EP2945058B1|2017-09-20|
KR20150141124A|2015-12-17|
EP2945058A1|2015-11-18|
KR101668786B1|2016-10-24|
BR112015000216A2|2017-06-27|
RU2606051C2|2017-01-10|
MX359997B|2018-10-17|
MX2015000194A|2016-03-03|
RU2014152488A|2016-09-10|
引用文献:
公开号 | 申请日 | 公开日 | 申请人 | 专利标题

CA2128387C|1993-08-23|1999-12-28|Daniel F. Hurley|Method and apparatus for configuring computer programs from available subprograms|
US7519969B2|2003-05-17|2009-04-14|Microsoft Corporation|System and method for controlling user interface properties with data|
US20080233937A1|2006-05-08|2008-09-25|Marja-Leena Nurmela|Mobile communication terminal and method|
US8510743B2|2007-10-31|2013-08-13|Google Inc.|Terminating computer applications|
CN101788926B|2009-12-28|2014-04-30|中兴通讯股份有限公司|Resource allocation method and device for switching J2ME application platform|
US20110252422A1|2010-04-07|2011-10-13|Apple Inc.|Opportunistic Multitasking|
US8380999B1|2010-12-20|2013-02-19|Amazon Technologies, Inc.|Power management for electronic devices|
CN103164269B|2011-12-08|2017-05-03|中兴通讯股份有限公司|Method and terminal achieving multi-window display of application programs|
US9319246B2|2012-06-25|2016-04-19|Microsoft Technology Licensing, Llc|Voice-over-internet protocol application platform|
US9191417B2|2012-06-28|2015-11-17|Microsoft Technology Licensing, Llc|Cross-process media handling in a voice-over-internet protocol application platform|
CN104252389B|2013-06-27|2016-04-13|腾讯科技(深圳)有限公司|application program operation method, system|
CN104050035B|2014-05-14|2018-05-25|小米科技有限责任公司|The processing method and processing device of application program|CN104050035B|2014-05-14|2018-05-25|小米科技有限责任公司|The processing method and processing device of application program|
CN104375880B|2014-09-18|2016-04-06|腾讯科技(深圳)有限公司|memory release method and device|
CN104507158B|2014-12-30|2018-10-23|北京奇虎科技有限公司|A kind of method, apparatus and mobile terminal for establishing WLAN connection|
CN104461663B|2014-12-30|2018-04-20|北京奇虎科技有限公司|A kind of method, apparatus and mobile terminal for loading other mobile terminal applications|
CN105676991A|2015-12-28|2016-06-15|小米科技有限责任公司|Method and apparatus for managing application program|
CN105653323B|2015-12-28|2019-07-02|小米科技有限责任公司|Application management method and device|
CN105701025B|2015-12-31|2019-07-23|华为技术有限公司|A kind of method for recovering internal storage and device|
CN105893130B|2016-03-31|2019-06-07|维沃移动通信有限公司|A kind of processing method and mobile terminal of application program for mobile terminal|
US10552320B2|2016-04-01|2020-02-04|Intel Corporation|Using a projected out of memory score to selectively terminate a process without transitioning to a background mode|
CN105912204A|2016-04-07|2016-08-31|北京小米移动软件有限公司|Method and device for starting up application interface|
CN106020813A|2016-05-16|2016-10-12|上海传英信息技术有限公司|Application starting apparatus and method|
CN105975347A|2016-05-26|2016-09-28|宇龙计算机通信科技有限公司|Application freezing method and system|
WO2017216880A1|2016-06-14|2017-12-21|マクセル株式会社|Communication control method|
CN107807847A|2016-09-09|2018-03-16|华为技术有限公司|The management method and terminal device of application process|
CN106847272A|2016-12-12|2017-06-13|北京光年无限科技有限公司|With the data interactive method of the intelligent robot of operation association|
CN107315658A|2017-06-26|2017-11-03|珠海市魅族科技有限公司|A kind of data back up method and device, computer installation and readable storage medium storing program for executing|
CN107423125A|2017-07-27|2017-12-01|上海传英信息技术有限公司|A kind of camera shooting control method and shooting control system for intelligent terminal|
CN107729098B|2017-09-25|2021-06-29|北京小米移动软件有限公司|User interface display method and device|
CN107918517B|2017-11-13|2020-02-18|Oppo广东移动通信有限公司|Screen rotation response method and device, mobile terminal and storage medium|
CN109992363B|2017-12-29|2021-03-26|Oppo广东移动通信有限公司|Application program processing method and device, electronic equipment and computer readable storage medium|
CN108877143B|2018-04-20|2021-06-22|深圳市沃特沃德股份有限公司|Children amusement park project safety reminding method and device|
CN110716759A|2018-06-26|2020-01-21|深圳富泰宏精密工业有限公司|Electronic device, computer readable storage medium and operation parameter configuration method|
CN111949471A|2019-05-16|2020-11-17|珠海格力电器股份有限公司|Monitoring control method for terminal process|
CN111949385A|2019-05-16|2020-11-17|珠海格力电器股份有限公司|Monitoring control method for terminal process|
CN110489215A|2019-06-29|2019-11-22|华为技术有限公司|The treating method and apparatus of scene is waited in a kind of application program|
CN110806926A|2019-09-05|2020-02-18|华为技术有限公司|Resource control method and equipment|
法律状态:
2018-11-06| B06F| Objections, documents and/or translations needed after an examination request according [chapter 6.6 patent gazette]|
2020-04-22| B06U| Preliminary requirement: requests with searches performed by other patent offices: procedure suspended [chapter 6.21 patent gazette]|
2021-11-03| B09A| Decision: intention to grant [chapter 9.1 patent gazette]|
2022-01-11| B16A| Patent or certificate of addition of invention granted [chapter 16.1 patent gazette]|Free format text: PRAZO DE VALIDADE: 20 (VINTE) ANOS CONTADOS A PARTIR DE 22/10/2014, OBSERVADAS AS CONDICOES LEGAIS. |
优先权:
申请号 | 申请日 | 专利标题
CN201410203339.1A|CN104050035B|2014-05-14|2014-05-14|The processing method and processing device of application program|
CN201410203339.1|2014-05-14|
PCT/CN2014/089218|WO2015172518A1|2014-05-14|2014-10-22|Method and device for processing application program|
[返回顶部]