CN107463419B - Application restarting method and device and computer readable storage medium - Google Patents

Application restarting method and device and computer readable storage medium Download PDF

Info

Publication number
CN107463419B
CN107463419B CN201710857525.0A CN201710857525A CN107463419B CN 107463419 B CN107463419 B CN 107463419B CN 201710857525 A CN201710857525 A CN 201710857525A CN 107463419 B CN107463419 B CN 107463419B
Authority
CN
China
Prior art keywords
application
interval duration
restart
target application
storage space
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.)
Active
Application number
CN201710857525.0A
Other languages
Chinese (zh)
Other versions
CN107463419A (en
Inventor
修平
李加将
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710857525.0A priority Critical patent/CN107463419B/en
Publication of CN107463419A publication Critical patent/CN107463419A/en
Application granted granted Critical
Publication of CN107463419B publication Critical patent/CN107463419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an application restarting method and device and a computer readable storage medium, and belongs to the technical field of terminals. The method comprises the following steps: when abnormal exit of the target application is detected, inquiring the restart interval duration of the target application based on information stored in a preset storage space; the target application is any one of installed applications, and the preset storage space is used for storing information which is preset for the installed applications and can indicate the duration of a restart interval; and when the restart interval duration of the target application is inquired, restarting the target application after the restart interval duration. After the target application exits abnormally, when the corresponding restart interval duration can be inquired, the application can be restarted after the restart interval duration, and the restart interval duration is preset for the target application, so that the restart interval duration does not need to be calculated according to the restart times of the application, and the restart efficiency of the application and the user viscosity are improved.

Description

Application restarting method and device and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to an application restart method, an application restart apparatus, and a computer-readable storage medium.
Background
As more and more applications are installed in the terminal, some problems follow, wherein the problem that the target application exits abnormally due to some reasons in the process of running the target application by the terminal is common. For example, the misoperation of the user causes the terminal to clear the running process of the currently running target application through the installed cleaning application, so that the target application exits abnormally, or the terminal crashes abnormally, so that the target application exits abnormally. In such a case, the user may also need the terminal to continue running the target application, and therefore the terminal needs to restart the target application after the target application exits abnormally.
At present, after a target application exits abnormally, a restart interval duration needs to be determined, and the restart interval duration is determined based on a first restart interval duration, a current restart time and a restart time multiple, that is, the restart interval duration is equal to the first restart interval duration multiplied by the restart time multiple by the power of N, where N is the current restart time minus 1, so as to obtain a restart time interval, and after the restart interval duration, the target application is restarted. For example, after the wechat application exits abnormally, if the terminal determines that the wechat application is restarted for the first time and the restart interval duration is 2 seconds, the wechat application is restarted after 2 seconds; and if the terminal determines that the WeChat application is restarted for the third time and the restart time multiple is 4, multiplying the first restart interval duration by 2 times of the restart time multiple 4, and determining that the restart interval duration is 32 seconds.
However, when the number of reboots of the target application is large, the rebooting interval duration determined by the terminal will be large, for example, when the 5 th reboot is performed, the rebooting interval duration determined by the terminal is 4 times 2 times 4, that is, 1024 s. And then, each time the terminal is restarted, the terminal needs to multiply the restart time multiple by one more time, so that the terminal cannot restart the target application quickly, and the efficiency of restarting the target application is reduced. Meanwhile, when the terminal waits for the target application to restart, if the target application is an instant messaging application, the reception of the instant message is possibly influenced due to overlong waiting restart time, so that the user viscosity is reduced.
Disclosure of Invention
The embodiment of the invention provides an application restarting method, an application restarting device and a computer readable storage medium, which can solve the problems of low application restarting efficiency and low user viscosity in the prior art, and the technical scheme is as follows:
in a first aspect, a method for restarting an application is provided, where the method includes:
when abnormal exit of the target application is detected, inquiring the restart interval duration of the target application based on information stored in a preset storage space;
the target application is any one of installed applications, and the preset storage space is used for storing information which is preset for the installed applications and can indicate the duration of a restart interval;
and when the restart interval duration of the target application is inquired, restarting the target application after the restart interval duration.
Optionally, the querying the restart interval duration of the target application based on the information stored in the preset storage space includes:
and when the application identifier of the target application is stored in the preset storage space, setting a preset interval duration as a restart interval duration of the target application.
Optionally, the querying the restart interval duration of the target application based on the information stored in the preset storage space includes:
based on the application identifier of the target application, searching for corresponding interval duration from the corresponding relation between the application identifier and the interval duration stored in the preset storage space;
and when the corresponding interval duration is found, determining the found interval duration as the restart interval duration of the target application.
Optionally, before querying the restart interval duration of the target application based on the information stored in the preset storage space, the method further includes:
displaying an application identifier of an installed application when a first setting instruction is received;
when a selection operation for at least one of the displayed application identifications is received, storing the at least one application identification into the preset storage space.
Optionally, before querying the restart interval duration of the target application based on the information stored in the preset storage space, the method further includes:
receiving a second setting instruction, wherein the second setting instruction carries the application identifier and the restart interval duration of the target application;
and correspondingly storing the application identifier of the target application and the restart interval duration into the preset storage space.
Optionally, before querying the restart interval duration of the target application based on the information stored in the preset storage space, the method further includes:
receiving a setting request sent by a server, wherein the setting request carries setting information, and the setting information carries at least one application identifier or carries the at least one application identifier and at least one corresponding restart interval duration;
when the setting information carries the at least one application identifier, storing the at least one application identifier into the preset storage space;
and when the setting information carries the at least one application identifier and the corresponding at least one restart interval duration, correspondingly storing the at least one application identifier and the at least one restart interval duration into the preset storage space.
In a second aspect, an application restart apparatus is provided, the apparatus comprising:
the query module is used for querying the restart interval duration of the target application based on information stored in a preset storage space when the abnormal exit of the target application is detected;
the target application is any one of installed applications, and the preset storage space is used for storing information which is preset for the installed applications and can indicate the duration of a restart interval;
and the restarting module is used for restarting the target application after the restarting interval duration is inquired when the restarting interval duration of the target application is long.
Optionally, the query module includes:
and the setting submodule is used for setting the preset interval duration as the restart interval duration of the target application when the application identifier of the target application is stored in the preset storage space.
Optionally, the query module includes:
the searching submodule is used for searching corresponding interval duration from the corresponding relation between the application identifier stored in the preset storage space and the interval duration based on the application identifier of the target application;
and the determining submodule is used for determining the searched interval duration as the restart interval duration of the target application when the corresponding interval duration is searched.
Optionally, the apparatus further comprises:
the display module is used for displaying the application identifier of the installed application when receiving the first setting instruction;
the first storage module is used for storing at least one application identifier in the displayed application identifiers to the preset storage space when a selection operation aiming at the at least one application identifier is received.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving a second setting instruction, wherein the second setting instruction carries the application identifier and the restart interval duration of the target application;
and the second storage module is used for correspondingly storing the application identifier and the restart interval duration of the target application into the preset storage space.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive a setting request sent by a server, where the setting request carries setting information, and the setting information carries at least one application identifier, or carries the at least one application identifier and at least one corresponding restart interval duration;
the third storage module is used for storing the at least one application identifier into the preset storage space when the setting information carries the at least one application identifier;
and the fourth storage module is configured to, when the setting information carries the at least one application identifier and the corresponding at least one restart interval duration, correspondingly store the at least one application identifier and the at least one restart interval duration in the preset storage space.
In a third aspect, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by a processor, implements any of the methods provided in the first aspect above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, after the target application exits abnormally, the corresponding restart interval duration can be inquired based on the information stored in the preset storage space, and when the corresponding restart interval duration can be inquired, the application can be restarted after the restart interval duration.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating an architecture of an application restart system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for restarting an application according to an embodiment of the present invention;
fig. 3A is a schematic structural diagram of a first application restart apparatus according to an embodiment of the present invention;
FIG. 3B is a schematic structural diagram of a first query module according to an embodiment of the present invention;
FIG. 3C is a schematic structural diagram of a second query module according to an embodiment of the present invention;
fig. 3D is a schematic structural diagram of a second application restart apparatus according to an embodiment of the present invention;
fig. 3E is a schematic structural diagram of a third application restart apparatus according to an embodiment of the present invention;
fig. 3F is a schematic structural diagram of a fourth application restart apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, terms, application scenarios and system architectures related to the embodiments of the present invention are explained separately.
First, an application scenario related to the embodiment of the present invention is described.
At present, most applications can restart the application after the restart interval duration is determined after the abnormal exit, but in the related art, the terminal can only multiply the first restart interval duration by the restart time multiple by N times. Since N is the current restart frequency minus 1, the more the application restart frequency is, the longer the interval duration of the terminal restarting the application is, thereby causing the terminal not to restart the target application quickly, and reducing the efficiency of restarting the target application. Meanwhile, if the terminal waits for the instant messaging application to restart, the reception of the instant message is possibly influenced due to overlong waiting restart time, so that the user viscosity is reduced.
Based on such a scenario, the embodiment of the present invention provides an application restart method capable of accelerating an application restart speed and improving application restart efficiency and user viscosity.
Next, a system architecture according to an embodiment of the present invention will be described.
Fig. 1 is a schematic structural diagram of an application restart system according to an embodiment of the present invention, and referring to fig. 1, the system includes a restart interval configuration module 1, where the restart interval configuration module 1 is located in an AMS (application management system) included in an operating system installed in a terminal, when the AMS detects that a target application abnormally exits, the restart interval configuration module 1 may query a restart interval duration of the target application based on information stored in a preset storage space, and when the restart interval duration of the target application is queried by the restart interval configuration module 1, the AMS may restart the target application after the restart interval duration.
It should be noted that the system may further include a restart interval calculation module 2, where the restart interval configuration module 1 may be connected to the restart interval calculation module 2, and when the restart interval configuration module 1 does not inquire the restart interval duration of the target application, the restart interval calculation module 2 may determine the restart interval duration based on the first restart interval duration, the current restart times, and the restart time multiple.
After describing the application scenario and the system architecture of the embodiment of the present invention, the application restart method provided by the embodiment of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 2 is a flowchart of an application restart method according to an embodiment of the present invention, and referring to fig. 2, the method includes the following steps.
Step 201: when the terminal detects that the target application exits abnormally, the restart interval duration of the target application is inquired based on the information stored in the preset storage space.
The target application is any installed application, the preset storage space is used for storing information which is set in advance for the installed application and can indicate the duration of the restart interval, and the storage mode of the information may include multiple modes, for example, the information may be stored in a folder mode or a database mode. And the information stored in the preset storage space may include an application identifier of an application installed by the terminal, or include a correspondence between the application identifier and the interval duration.
It should be noted that the application identifier is used to uniquely identify the target application, and the application identifier may be a name, a version number, or the like of the target application.
Since the information stored in the preset storage space may include different contents, the operation of the terminal querying the restart interval duration of the target application based on the information stored in the preset storage space may include the following two ways.
In a first manner, when the information of the preset storage space includes an application identifier of an application installed by a terminal, it is described that the restart interval durations of the application installed by the terminal may be the same, and at this time, the terminal may determine whether the application identifier of the target application is stored in the preset storage space; and when the application identifier of the target application is stored in the preset storage space, setting the preset interval duration as the restart interval duration of the target application.
The preset interval duration may be set in advance, for example, the preset interval duration may be 5 seconds, 7 seconds, and the like.
For example, when the target application is a wechat application, the application identifier of the wechat application is "wechat", and the preset interval duration is 5 seconds, if the terminal detects that the wechat application exits abnormally, the terminal may determine whether the application identifier "wechat" of the wechat application is stored in the preset storage space; when the application identifier 'WeChat' of the WeChat application is stored in the preset storage space, the preset interval duration of 5 seconds is set as the restart interval duration of the WeChat application.
Further, the application identifier of the application stored in the preset storage space may be set in advance. That is, before the terminal queries the restart interval duration of the target application based on the information stored in the preset storage space, the terminal may further receive a first setting instruction, and when the first setting instruction is received, may display an application identifier of the installed application; when a selection operation for at least one of the displayed application identifiers is received, the at least one application identifier may be stored in the preset storage space.
For example, if the applications installed in the terminal are a WeChat application, a short message application, and a video application, and the corresponding application identifiers are "WeChat", "short message", and "video", when the terminal receives the first setting instruction, the application identifiers "WeChat", "short message", and "video" may be displayed; when a selection operation for the displayed application identifier 'WeChat' is received, the application identifier 'WeChat' can be stored in the preset storage space.
It should be noted that the first setting instruction is used to set an application identifier of an application stored in a preset storage space, and the first setting instruction may be triggered by a user through a specified operation, where the specified operation may be a click operation, a voice operation, a slide operation, and so on.
In addition, the application identifier of the application stored in the preset storage space can be set not only in the above manner, but also in other manners, for example, the terminal can receive a setting request sent by the server, where the setting request carries setting information, and the setting information carries at least one application identifier; and storing the at least one application identifier into a preset storage space.
In a second manner, when the information of the preset storage space includes a corresponding relationship between the application identifier and the interval duration, it indicates that the restart interval durations of the applications installed in the terminal may be different from each other, and therefore, the terminal may search, based on the application identifier of the target application, for the corresponding interval duration from the corresponding relationship between the application identifier and the interval duration stored in the preset storage space; and when the corresponding interval duration is found, determining the found interval duration as the restart interval duration of the target application.
For example, when the target application is a wechat application, the terminal may search, based on an application identifier "wechat" of the wechat application, a corresponding interval duration from a correspondence between the application identifier and the interval duration, which are stored in a preset storage space and shown in table 1; and when the corresponding interval duration is found to be 3 seconds, determining the found interval duration of 3 seconds as the restart interval duration of the WeChat application.
TABLE 1
Application identification Duration of interval
WeChat 3 seconds
Short message 5 seconds
...... ......
It should be noted that, in the embodiment of the present invention, only the correspondence between the application identifier and the interval duration shown in table 1 is taken as an example for description, and the embodiment of the present invention is not limited.
Further, the corresponding relationship between the application identifier and the interval duration stored in the preset storage space may be set in advance, that is, before the terminal queries the restart interval duration of the target application based on the information stored in the preset storage space, a second setting instruction may be received, where the second setting instruction carries the application identifier and the restart interval duration of the target application; and correspondingly storing the application identifier of the target application and the restart interval duration into the preset storage space.
It should be noted that the second setting instruction is used to set the corresponding relationship between the application identifier stored in the preset storage space and the interval duration, and the second setting instruction may also be triggered by a user through a specified operation.
In addition, the corresponding relationship between the application identifier and the interval duration stored in the preset storage space can be set not only in the above manner, but also in other manners, for example, the terminal can receive a setting request sent by the server, where the setting request carries setting information, and the setting information carries at least one application identifier and at least one corresponding restart interval duration; and correspondingly storing the at least one application identifier and the at least one restart interval duration into the preset storage space.
It should be noted that, when the information stored in the preset storage space is obtained from the server by the terminal, the terminal may further obtain, from the server, a request for updating the information stored in the preset storage space. That is, the terminal may receive an update request sent by the server, where the update request carries update information, where the update information may be information indicating to delete, add, or replace an application identifier of an application stored in a preset storage space, or information indicating to delete, add, replace, or edit a correspondence between the application identifier stored in the preset storage space and an interval duration; when the update information is information indicating to delete, add, or replace the application identifier of the application stored in the preset storage space, the terminal may delete, add, or replace the application identifier of the application stored in the preset storage space. When the update information is information indicating to delete, add, replace, or edit the correspondence between the application identifier and the interval duration stored in the preset storage space, the terminal may delete, add, replace, or edit the correspondence between the application identifier and the interval duration stored in the preset storage space.
Step 202: and when the terminal inquires the restart interval duration of the target application, restarting the target application after the restart interval duration.
When the terminal inquires the restart interval duration of the target application, the target application can be restarted quickly without calculating the restart interval duration, so that the terminal can restart the target application directly after the restart interval duration.
In addition, when the terminal does not inquire the restart interval duration of the target application, it indicates that the target application cannot be restarted quickly at present, and at this time, the terminal may determine the restart interval duration based on the first restart interval duration, the current restart times, and the restart time multiple of the target application.
In the embodiment of the invention, after the terminal detects that the target application exits abnormally, the corresponding restart interval duration can be inquired based on the information stored in the preset storage space, and after the terminal inquires the restart interval duration corresponding to the target application, the application can be restarted directly after the restart interval duration. The restart interval duration can be set in advance for the target application and stored in the preset storage space, so that the restart interval duration does not need to be calculated according to the restart times of the application, and the restart efficiency of the application and the viscosity of a user are improved.
After explaining the application restart method provided by the embodiment of the present invention, an application restart apparatus provided by the present invention is introduced next.
Fig. 3A is a block diagram of an application restart apparatus provided in an embodiment of the present disclosure, and referring to fig. 3A, the application restart apparatus may be implemented by software, hardware, or a combination of the two. The device includes: a query module 301 and a restart module 302.
The query module 301 is configured to query, when it is detected that the target application abnormally exits, a restart interval duration of the target application based on information stored in a preset storage space;
the target application is any one of installed applications, and the preset storage space is used for storing information which is preset for the installed applications and can indicate the duration of a restart interval;
a restart module 302, configured to, when the restart interval duration of the target application is found, restart the target application after the restart interval duration.
Optionally, referring to fig. 3B, the query module 301 includes:
the setting sub-module 3011 is configured to set a preset interval duration as a restart interval duration of the target application when the application identifier of the target application is stored in the preset storage space.
Optionally, referring to fig. 3C, the query module 301 includes:
the searching submodule 3012 is configured to search, based on the application identifier of the target application, a corresponding interval duration from a correspondence between the application identifier and the interval duration stored in the preset storage space;
the determining sub-module 3013 is configured to, when the corresponding interval duration is found, determine the found interval duration as the restart interval duration of the target application.
Optionally, referring to fig. 3D, the apparatus further comprises:
a display module 303, configured to display an application identifier of the installed application when the first setting instruction is received;
a first storage module 304, configured to, when a selection operation for at least one of the displayed application identifiers is received, store the at least one application identifier in the preset storage space.
Optionally, referring to fig. 3E, the apparatus further comprises:
a first receiving module 305, configured to receive a second setting instruction, where the second setting instruction carries an application identifier and a restart interval duration of the target application;
the second storage module 306 is configured to correspondingly store the application identifier of the target application and the restart interval duration in the preset storage space.
Optionally, referring to fig. 3F, the apparatus further comprises:
a second receiving module 307, configured to receive a setting request sent by a server, where the setting request carries setting information, and the setting information carries at least one application identifier, or carries the at least one application identifier and at least one corresponding restart interval duration;
a third storage module 308, configured to store the at least one application identifier in the preset storage space when the setting information carries the at least one application identifier;
a fourth storage module 309, configured to, when the setting information carries the at least one application identifier and the corresponding at least one restart interval duration, correspondingly store the at least one application identifier and the at least one restart interval duration in the preset storage space.
In summary, in the embodiment of the present invention, after detecting that the target application exits abnormally, the terminal may query the corresponding restart interval duration based on the information stored in the preset storage space, and after querying the restart interval duration corresponding to the target application, the terminal may directly restart the application after the restart interval duration. The restart interval duration can be set in advance for the target application and stored in the preset storage space, so that the restart interval duration does not need to be calculated according to the restart times of the application, and the restart efficiency of the application and the viscosity of a user are improved.
It should be noted that: in the application restart apparatus provided in the foregoing embodiment, only the division of the functional modules is described as an example when restarting an application, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the application restart apparatus and the application restart method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 4 is a block diagram illustrating a terminal 400 according to an example embodiment. For example, the terminal 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 4, the terminal 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 406 provide power to the various components of the terminal 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal 400.
The multimedia component 408 comprises a screen providing an output interface between the terminal 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect an open/closed state of the terminal 400, relative positioning of components, such as a display and keypad of the terminal 400, the sensor assembly 414 can also detect a change in position of the terminal 400 or a component of the terminal 400, the presence or absence of user contact with the terminal 400, orientation or acceleration/deceleration of the terminal 400, and a change in temperature of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communications between the terminal 400 and other devices in a wired or wireless manner. The terminal 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods provided by the embodiments illustrated in fig. 2 and described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the terminal 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a terminal, enable the mobile terminal to perform the method provided by the embodiment shown in fig. 2 described above.
In the above embodiments, the implementation may be wholly or partly realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with embodiments of the invention, to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., Digital Versatile Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (6)

1. An application restart method, the method comprising:
when abnormal exit of the target application is detected, inquiring the restart interval duration of the target application based on information stored in a preset storage space;
the target application is any installed application, the preset storage space is used for storing information which is preset for the installed application and can indicate the restart interval duration, the information is stored in a folder form or a database form, and the information comprises an application identifier of the application installed by the terminal or a corresponding relation between the application identifier and the interval duration;
when the restart interval duration of the target application is inquired, restarting the target application after the restart interval duration;
the querying the restart interval duration of the target application based on the information stored in the preset storage space includes:
when the application identifier of the target application is stored in the preset storage space, setting a preset interval duration as a restart interval duration of the target application; or,
and searching corresponding interval duration from the corresponding relation between the application identification and the interval duration based on the application identification of the target application, and determining the searched interval duration as the restart interval duration of the target application when the corresponding interval duration is searched.
2. The method of claim 1, wherein before setting a preset interval duration to a restart interval duration of the target application when the application identifier of the target application is stored in the preset storage space, further comprising:
displaying an application identifier of an installed application when a first setting instruction is received;
when a selection operation for at least one of the displayed application identifications is received, storing the at least one application identification into the preset storage space.
3. The method of claim 1, wherein before searching for a corresponding interval duration from the correspondence between the application identifier and the interval duration based on the application identifier of the target application, further comprising:
receiving a second setting instruction, wherein the second setting instruction carries the application identifier and the restart interval duration of the target application;
and correspondingly storing the application identifier of the target application and the restart interval duration into the preset storage space.
4. The method of claim 1, wherein before querying the restart interval duration of the target application based on the information stored in the preset storage space, the method further comprises:
receiving a setting request sent by a server, wherein the setting request carries setting information, and the setting information carries at least one application identifier or carries the at least one application identifier and at least one corresponding restart interval duration;
when the setting information carries the at least one application identifier, storing the at least one application identifier into the preset storage space;
and when the setting information carries the at least one application identifier and the corresponding at least one restart interval duration, correspondingly storing the at least one application identifier and the at least one restart interval duration into the preset storage space.
5. An application restart apparatus, the apparatus comprising:
the query module is used for querying the restart interval duration of the target application based on information stored in a preset storage space when the abnormal exit of the target application is detected;
the target application is any installed application, the preset storage space is used for storing information which is preset for the installed application and can indicate the restart interval duration, the information is stored in a folder form or a database form, and the information comprises an application identifier of the application installed by the terminal or a corresponding relation between the application identifier and the interval duration;
the restarting module is used for restarting the target application after the restarting interval duration when the restarting interval duration of the target application is inquired;
the query module comprises a setting sub-module, or comprises a searching sub-module and a determining sub-module,
the setting submodule is used for setting a preset interval duration as a restart interval duration of the target application when the application identifier of the target application is stored in the preset storage space;
the searching submodule is used for searching corresponding interval duration from the corresponding relation between the application identifier stored in the preset storage space and the interval duration based on the application identifier of the target application;
and the determining submodule is used for determining the searched interval duration as the restart interval duration of the target application when the corresponding interval duration is searched.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 4.
CN201710857525.0A 2017-09-21 2017-09-21 Application restarting method and device and computer readable storage medium Active CN107463419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710857525.0A CN107463419B (en) 2017-09-21 2017-09-21 Application restarting method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710857525.0A CN107463419B (en) 2017-09-21 2017-09-21 Application restarting method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107463419A CN107463419A (en) 2017-12-12
CN107463419B true CN107463419B (en) 2021-01-26

Family

ID=60552850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710857525.0A Active CN107463419B (en) 2017-09-21 2017-09-21 Application restarting method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107463419B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595238B (en) * 2018-04-10 2021-08-06 Oppo广东移动通信有限公司 Display control method and device of application interface
CN111367698B (en) * 2018-12-26 2022-08-26 北京微播视界科技有限公司 Application program flash back detection and processing method and device and electronic equipment
CN117827546B (en) * 2024-03-05 2024-05-31 四川华鲲振宇智能科技有限责任公司 Restarting supervision system and method for control server under Linux system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7506149B2 (en) * 2004-08-27 2009-03-17 Intel Corporation Method, program and system to update files in a computer system
US8725112B2 (en) * 2011-06-05 2014-05-13 Apple Inc. Activation solution
US9405526B2 (en) * 2012-08-07 2016-08-02 Microsoft Technology Licensing, Llc Initiating update operations
CN103416040B (en) * 2012-08-29 2016-11-16 华为终端有限公司 Terminal control method and device and terminal
CN103870747B (en) * 2014-03-31 2017-05-24 可牛网络技术(北京)有限公司 Method and device for monitoring and processing application program
CN105591892B (en) * 2015-09-16 2019-06-07 新华三技术有限公司 A kind of starting method and apparatus of smooth restarting process

Also Published As

Publication number Publication date
CN107463419A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
CN107370772B (en) account login method and device and computer readable storage medium
EP3171270A1 (en) Method and device for information push
CN107105478B (en) Network registration method and device
CN109388625B (en) Method and device for processing configuration file in multi-distributed file system
CN105094904A (en) Application program installation method and device
CN104917895A (en) Positioning system selection method and device and terminal
CN107423394A (en) Page display method and device
CN107463419B (en) Application restarting method and device and computer readable storage medium
CN112416219B (en) Target object processing method, device and system, electronic equipment and storage medium
CN112506553B (en) Upgrading method and device for data surface container of service grid and electronic equipment
CN113254784A (en) Information display method and device, electronic equipment and storage medium
CN111046040A (en) Method and device for determining index, electronic equipment and storage medium
CN104951522B (en) Method and device for searching
CN107632835B (en) Application installation method and device
CN111241134B (en) Data processing method and device
CN106506808B (en) Method and device for prompting communication message
CN106878654B (en) Video communication method and device
CN106528247B (en) Data refreshing method and device
CN110213062B (en) Method and device for processing message
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN106155696B (en) Method and device for deleting information
CN106339470B (en) File processing method and device
CN112732098B (en) Input method and related device
CN106502719A (en) The method and device of the component of management application program
CN112769677A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder