Abstract:
A method and apparatus for starting an application in a screen-locked state, used for an electronic device, said method comprising: detecting whether the device is in a screen-locked state; receiving a slide operation command directed at the icon of an application to be started; if the slide operation directed at said application icon satisfies a first preset condition, providing memory resources to start the application to be started; if the slide operation directed at said application icon satisfies a second preset condition, performing a screen unlock operation and starting the application to be started. The method and apparatus facilitate a user starting an application in a screen-locked state, and increase speed when starting the application and improve user experience.

Description:
FIELD 
       [0001]    The present disclosure generally relates to an application processing technology field, and more particularly to a method and a device for starting an application under a screen lock state. 
       BACKGROUND 
       [0002]    With the rapid development of electronic technologies, there are more and more users using electronic devices with touch screens. When the user uses the electronic device with the touch screen, he/she may operate within a corresponding region of the touch screen, so as to access applications installed in the electronic device quickly and conveniently. In the related art, the user may start an application by clicking an icon of the application on the touch screen, such that it is intuitive, quick and convenient to start the application. However, during usage, the application is often started by mistake due to a misclicking of the user. Based on this, the user generally starts the screen lock state to prevent starting the application by mistake. However, when the user wishes to start the application under the screen lock state, he/she may start the application only after unlocking the screen and entering a relevant interface. Thus, the screen lock state brings inconvenience to the user. 
         [0003]    In addition, with the improvement of the hardware performance of the electronic device, the user may make multiple applications running simultaneously in the electronic device. However, this wastes a lot of memory resources, and when the user starts a certain application which requires many memory resources, phenomena such as low starting speed and unsmooth start will happen due to insufficient memory resources, thus affecting an experience effect of the user. 
       SUMMARY 
       [0004]    Embodiments of the present disclosure provide a method and a device for starting an application under a screen lock state, which facilitates a user to start the application under the screen lock state, thus enhancing an efficiency of starting the application and improving an experience effect of the user. 
         [0005]    In order to achieve the above objectives, embodiments of the present disclosure provide a method for starting an application under a screen lock state, the method is applied in an electronic device, and the method includes: 
         [0006]    detecting whether the electronic device is under the screen lock state; 
         [0007]    receiving a sliding operation instruction with respect to an icon of the application to be started; 
         [0008]    providing memory resources for starting the application to be started, if a sliding operation with respect to the icon of the application to be started satisfies a first predetermined condition; 
         [0009]    performing a screen unlocking operation and starting the application to be started, if the sliding operation with respect to the icon of the application to be started satisfies a second predetermined condition. 
         [0010]    Preferably, providing memory resources for starting the application to be started if a sliding operation with respect to the icon of the application to be started satisfies a first predetermined condition includes: 
         [0011]    detecting whether a sliding distance of the icon of the application to be started in a predetermined direction is greater than a first predetermined threshold; and 
         [0012]    if yes, providing memory resources for starting the application to be started. 
         [0013]    Preferably, performing a screen unlocking operation if the sliding operation with respect to the icon of the application to be started satisfies a second predetermined condition includes: 
         [0014]    detecting whether the sliding distance of the icon of the application to be started in the predetermined direction is greater than a second predetermined threshold, in which the second predetermined threshold is greater than the first predetermined threshold; and 
         [0015]    if yes, performing the screen unlocking operation. 
         [0016]    Preferably, providing memory resources for starting the application to be started includes: 
         [0017]    obtaining a size of memory required by starting the application to be started; 
         [0018]    determining whether remaining memory resources satisfy a memory requirement of starting the application to be started; and 
         [0019]    if no, releasing memory resources directly or according to a predetermined trigger condition, so as to satisfy the memory requirement of starting the application to be started. 
         [0020]    Preferably, releasing memory resources according to a predetermined trigger condition includes: 
         [0021]    releasing memory resources if the sliding distance of the icon of the application to be started in the predetermined direction is greater than a third predetermined threshold, in which the third predetermined threshold is greater than or equal to the first threshold and less than the second threshold. 
         [0022]    Preferably, obtaining a size of memory required by starting the application to be started includes: 
         [0023]    searching for the size of memory required by starting the application to be started in a preset memory requirement list stored locally; or 
         [0024]    sending a memory searching request to a server, and obtaining the size of memory required by starting the application to be started from the server, in which the memory searching request carries an identification of the application to be started. 
         [0025]    Preferably, the memory searching request further carries hardware information of the electronic device, and the server determines the size of memory required by starting the application to be started according to the identification of the application to be started and the hardware information of the electronic device carried in the memory searching request. 
         [0026]    Preferably, releasing memory resources includes: 
         [0027]    releasing memory resources occupied by processes in the electronic device in sequence until the memory requirement of starting the application to be started is satisfied, in which memory resources occupied by a first kind of processes are released first, and memory resources occupied by a second kind of processes are released later, the first kind of processes are processes which will not be restarted by an operating system after exiting, and the second kind of processes are processes which will be restarted by the operating system after exiting. 
         [0028]    Preferably, during releasing memory resources occupied by the first kind of processes, the memory resources occupied by respective processes are released in an order long to short of unused time of respective processes. 
         [0029]    Preferably, during releasing memory resources occupied by the second kind of processes, the memory resources occupied by respective processes are released first in an order of long to short unused time of respective processes, and then in an order of long to short restarting periods of the respective processes. 
         [0030]    Preferably, releasing memory resources includes: 
         [0031]    determining a process having been started in the electronic device; 
         [0032]    judging whether the processes having been started is included in a predetermined process list; and 
         [0033]    if no, releasing memory resources occupied by the process. 
         [0034]    In order to achieve the above objectives, embodiments of the present disclosure provide a device for starting an application under a screen lock state. The device is applied in an electronic device and the device includes: 
         [0035]    a screen lock state detecting module, configured to detect whether the electronic device is under the screen lock state; 
         [0036]    a sliding instruction receiving module, configured to receive a sliding operation instruction with respect to an icon of the application to be started; 
         [0037]    a sliding operation detecting module, configured to detect a sliding operation with respect to the icon of the application to be started; 
         [0038]    a memory resource providing module, configured to provide memory resources for starting the application to be started, if the sliding operation detecting module detects that the sliding operation with respect to the icon of the application to be started satisfies a first predetermined condition; 
         [0039]    a screen unlocking module, configured to perform a screen unlocking operation if the sliding operation detecting module detects that the sliding operation with respect to the icon of the application to be started satisfies a second predetermined condition; and 
         [0040]    an application starting module, configured to start the application to be started after the screen unlocking module performs the screen unlocking operation. 
         [0041]    Preferably, the memory resource providing module is configured to provide memory resources for starting the application to be started if the sliding operation detecting module detects that a sliding distance of the icon of the application to be started in a predetermined direction is greater than a first predetermined threshold. 
         [0042]    Preferably, the screen unlocking module is configured to perform the screen unlocking operation if the sliding operation detecting module detects that the sliding distance of the icon of the application to be started in the predetermined direction is greater than a second predetermined threshold, in which the second predetermined threshold is greater than the first predetermined threshold. 
         [0043]    Preferably, the memory resource providing module includes: 
         [0044]    a memory requirement obtaining sub-module, configured to obtain a size of memory required by starting the application to be started; 
         [0045]    a memory determining sub-module, configured to determine whether remaining memory resources satisfy a memory requirement of starting the application to be started; and 
         [0046]    a memory releasing sub-module, configured to release memory resources directly or according to a predetermined trigger condition, if a determining result of the memory determining sub-module is no, so as to satisfy the memory requirement of starting the application to be started. 
         [0047]    Preferably, the memory releasing sub-module is configured to release memory resources if the sliding operation detecting module detects that the sliding distance of the icon of the application to be started in the predetermined direction is greater than a third predetermined threshold, in which the third predetermined threshold is greater than or equal to the first threshold and less than the second threshold. 
         [0048]    Preferably, the memory requirement obtaining sub-module is configured to: 
         [0049]    search for the size of memory required by starting the application to be started in a preset memory requirement list stored locally; or 
         [0050]    send a memory searching request to a server, and obtain the size of memory required by starting the application to be started from the server, in which the memory searching request carries an identification of the application to be started. 
         [0051]    Preferably, the memory searching request sent by the memory requirement obtaining sub-module further carries hardware information of the electronic device, and the server determines the size of memory required by starting the application to be started according to the identification of the application to be started and the hardware information of the electronic device carried in the memory searching request. 
         [0052]    Preferably, the memory releasing sub-module includes: 
         [0053]    a first releasing unit, configured to release memory resources occupied by processes which will not be restarted by an operating system after exiting; 
         [0054]    a second releasing unit, configured to release memory resources occupied by processes which will be restarted by the operating system after exiting, 
         [0055]    in which, the first releasing unit is triggered first and the second releasing unit is triggered later, and the memory releasing sub-module releases the memory resources occupied by respective processes in the electronic device in sequence until the memory requirement of starting the application to be started is satisfied. 
         [0056]    Preferably, the first releasing unit is configured to release the memory resources occupied by respective processes in an order of long to short unused time of respective processes, during releasing memory resources occupied by processes which will not be restarted by an operating system after exiting. 
         [0057]    Preferably, the second releasing unit is configured to release the memory resources occupied by respective resources first in an order of long to short unused time of respective processes, and then in an order of long to short restarting periods of the respective processes, during releasing memory resources occupied by processes which will be restarted by the operating system after exiting. 
         [0058]    Preferably, the memory releasing sub-module includes: 
         [0059]    a started processes determining unit, configured to determine a processes having been started in the electronic device; 
         [0060]    a process identification judging unit, configured to judge whether the process having been started is included in a predetermined process list; and 
         [0061]    a memory releasing unit, configured to release memory resources occupied by the process if a judging result of the process identification judging unit is no. 
         [0062]    It can be seen from the above technical solutions that, in the present disclosure, under the screen lock state, the application to be started is started when it is detected that the sliding operation with respect to the icon of the application to be started satisfies the second predetermined condition. Compared with the related art, in the present disclosure, the application to be started may be selected and the application may be started by sliding the icon of the application to be started, without the need of unlocking the screen first. Thus, it is convenient for the user to start the application under the screen lock state. Meanwhile, when the sliding operation with respect to the icon of the application to be started satisfies the first predetermined condition, the memory resources required by starting the application to be started are provided during sliding the icon of the application to be started, without the need of obtaining the memory resources after beginning to start the application, thus enhancing the efficiency of starting the application and improving the experience effect of the user. 
         [0063]    Embodiments of the present disclosure also provide a computer-readable storage medium, including computer instructions that, when executed, causes to perform the method for starting an application under a screen lock state according to embodiments of the present disclosure. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0064]    In order to explicitly illustrate embodiments of the present disclosure or technical solutions in the related art, a brief introduction for the accompanying drawings used when describing the embodiments or the related art will be listed as follows. Apparently, the drawings described below are only corresponding to some embodiments of the present disclosure, and those skilled in the art may obtain other drawings according to these drawings without creative labor. 
           [0065]      FIG. 1  is a schematic diagram illustrating sliding an icon of an application to be started according to an embodiment of the present disclosure; 
           [0066]      FIG. 2  is a flow chart of a method for starting an application under a screen lock state according to an embodiment of the present disclosure; 
           [0067]      FIG. 3  is a flow chart of a method of providing memory resources for an application to be started according to an embodiment of the present disclosure; 
           [0068]      FIG. 4  is a first block diagram of a device for starting an application under a screen lock state according to an embodiment of the present disclosure; 
           [0069]      FIG. 5  is a second block diagram of a device for starting an application under a screen lock state according to an embodiment of the present disclosure. 
       
    
    
     DETAILED DESCRIPTION 
       [0070]    In the following, a method for starting an application under a screen lock state provided by embodiments of the present disclosure will be illustrated first, and the method may include following steps: 
         [0071]    detecting whether it is under the screen lock state; 
         [0072]    receiving a sliding operation instruction with respect to an icon of the application to be started; 
         [0073]    providing memory resources for starting the application to be started, if a sliding operation with respect to the icon of the application to be started satisfies a first predetermined condition; 
         [0074]    performing a screen unlocking operation and starting the application to be started, if the sliding operation with respect to the icon of the application to be started satisfies a second predetermined condition. 
         [0075]    The executing subject of the above steps is an electronic device having a touch screen. Specifically, refer to  FIG. 1  which is a schematic diagram illustrating sliding an icon of an application to be started according to an embodiment of the present disclosure, during sliding the icon of the application to be started, location  1  is an original location of the icon. If the icon is slid to location  2  at a certain time and it detects that the sliding operation from location  1  to location  2  satisfies the first predetermined condition, then it may further judge whether the memory resources in the electronic device satisfy the memory requirement of starting the application to be started, and provide corresponding memory resources for the application to be started. If the icon is slid further from location  2  and slid to location  3  at a certain time, then the screen unlocking operation is performed when it detects that the sliding operation from location  2  to location  3  satisfies the second predetermined condition, and the application to be started is started after unlocking. 
         [0076]    In the following, technical solutions in embodiments of the present disclosure will be described clearly and completely with reference to drawings in the embodiments. Apparently, the described embodiments are only part of embodiments of the present disclosure, instead of the entire embodiments. Based on embodiments described herein, those skilled in the art may obtain all other embodiments without creative labor, which belongs to the protection scope of the present disclosure. 
         [0077]      FIG. 2  is a flow chart of a method for starting an application under a screen lock state according to an embodiment of the present disclosure, and the method includes following steps. 
         [0078]    In step  201 , it is detected whether the electronic device is under the screen lock state. 
         [0079]    In step  202 , a sliding operation instruction with respect to an icon of the application to be started is received. 
         [0080]    When the user selects the icon of a certain application on the touch screen and drags the icon for sliding, the electronic device may obtain a sliding signal via a signal collecting device of the touch screen. 
         [0081]    In step  203 , memory resources are provided for starting the application to be started, when a sliding operation with respect to the icon of the application to be started satisfies a first predetermined condition. 
         [0082]    In this step, the sliding operation with respect to the icon of the application to be started may satisfy the first predetermined condition when a linear or curve sliding distance of the icon of the application to be started is greater than a predetermined value, or when a sliding route of the icon of the application to be started is consistent with a predetermined graph. 
         [0083]    In a specific embodiment of the present disclosure, this step may include: detecting whether a sliding distance of the icon of the application to be started in a predetermined direction is greater than a first predetermined threshold, and if yes, providing memory resources for starting the application to be started. 
         [0084]    The sliding distance refers to a distance between the original location of the icon of the application to be started and the location of the icon at a certain time during sliding. 
         [0085]    The user may preset the direction of sliding the icon of the application to be started, in which an angle between the predetermined direction and the horizontal direction may be any value in a range of [0, 360]. 
         [0086]    It should be noted that, the icon of the application to be started may be slid along a straight line or a curved line in the predetermined direction, which is not limited in the present disclosure. 
         [0087]    In addition, the first predetermined threshold may be a fixed value, for example, 1 cm, 2 cm, etc. Alternatively, the first predetermined threshold may be a percent of a width or height of the touch screen of the electronic device, for example, twenty percent of the width of the touch screen, thirty percent of the height of the touch screen, etc. 
         [0088]    In practical use, multiple applications may run simultaneously in the electronic device, and each application may require some memory resources for running. Thus, during starting the application to be started, there may be a case in that the remaining memory resources can not satisfy the memory requirement of starting the application to be started. In this case, the system needs to release memory resources, so as to provide sufficient memory resources for starting the application to be started. 
         [0089]    In this embodiment, when the sliding distance of the icon of the application to be started is greater than the first predetermined threshold, it considers that the user is more likely to start the application, and then it may judge first whether the remaining memory resources satisfy the memory requirement of starting the application to be started and provide memory resources for starting the application to be started, so as to avoid affecting the efficiency of starting the application if the memory releasing operation is performed after detecting that the memory resources are insufficient during starting the application. If it is judged that the remaining memory resources cannot satisfy the memory requirement of starting the application to be started, memory resources are released, and if it is judged that the remaining memory resources can satisfy the memory requirement of starting the application to be started, there is no need to release memory resources. 
         [0090]    In step  204 , a screen unlocking operation is performed and the application to be started is started, if the sliding operation with respect to the icon of the application to be started satisfies a second predetermined condition. 
         [0091]    In this step, the sliding operation with respect to the icon of the application to be started may be determined as satisfying the second predetermined condition in a similar case when the sliding operation with respect to the icon of the application to be started satisfies the first predetermined condition, which will be elaborated herein. 
         [0092]    In a specific embodiment of the present disclosure, this step may include: detecting whether the sliding distance of the icon of the application to be started in the predetermined direction is greater than a second predetermined threshold, and if yes, performing the screen unlocking operation and starting the application to be started. 
         [0093]    The second predetermined threshold is greater than the first predetermined threshold. 
         [0094]    Specifically, when the system detects that the screen unlocking operation is completed, it calls the operation of starting the application to be started, without the need of manually starting the application to be started by the user. 
         [0095]    It can be seen from the above technical solutions that, in the present disclosure, under the screen lock state, the application to be started is started when it is detected that the sliding operation with respect to the icon of the application to be started satisfies the second predetermined condition. Compared with the related art, in the present disclosure, the application to be started may be selected and the application may be started by sliding the icon of the application to be started, without the need of unlocking the screen first. Thus, it is convenient for the user to start the application under the screen lock state. Meanwhile, when the sliding operation with respect to the icon of the application to be started satisfies the first predetermined condition, the memory resources required by starting the application to be started are provided during sliding the icon of the application to be started, without the need of obtaining the memory resources after beginning to start the application, thus enhancing the efficiency of starting the application and improving the experience effect of the user. 
         [0096]    In another embodiment of the present disclosure, a specific implementation of providing memory resources for the application to be started (step  203  in the embodiment shown in  FIG. 2 ) is provided. Refer to  FIG. 3  which is a flow chart of a method of providing memory resources for an application to be started according to an embodiment of the present disclosure, the method may include following steps. 
         [0097]    In step  203 A, a size of memory required by starting the application to be started is obtained. 
         [0098]    In a specific embodiment of the present disclosure, the size of memory required by starting the application to be started may be obtained from the server by sending a memory searching request to the server. 
         [0099]    The memory searching request needs to carry an identification of the application to be started, and then the server determines the size of memory required by starting the application to be started according to the identification of the application to be started. 
         [0100]    In addition, the memory searching request may further carry hardware information of the electronic device, and then the server can determine the size of memory required by starting the application to be started according to the identification of the application to be started and the hardware information of the electronic device carried in the memory searching request. The hardware information of the electronic device may be information such as a size of the screen. When the screen of the electronic device is large, more memory resources are required by starting the application to be started, while when the screen of the electronic device is small, less memory resources are required by starting the application to be started. 
         [0101]    It should be noted that, the information carried in the memory searching request is not limited in the present disclosure, and can be set according to particular situations in practical use. 
         [0102]    In another specific embodiment of the present disclosure, the size of memory required by starting the application to be started may be obtained by searching a preset memory requirement list stored locally. 
         [0103]    The preset memory requirement list may be obtained from the server and stored locally, and may be a list including memory requirements of multiple applications. In this case, the size of memory required by starting the application to be started may be obtained from the preset memory requirement list according to the identification of the application to be started. 
         [0104]    The preset memory requirement list may also be a memory requirement list generated locally with respect to the electronic device and according to characteristics of the user. In this case, when the user starts the application to be started for the first time, it needs to obtain the size of memory required by starting the application to be started from the server by sending the memory searching request to the server, and to update the memory requirement list according to the obtained memory requirement information. When the user starts the application to be started again, the corresponding information may be obtained directly from the preset memory requirement list stored locally without the need of obtaining it from the server. 
         [0105]    In step  203 B, it is determined whether remaining memory resources satisfy the memory requirement of starting the application to be started, and if no, step  203 C is executed, and if yes, step  203 D is executed. 
         [0106]    In practical use, except releasing memory resources directly, it is also possible to release memory resources according to a predetermined trigger condition. 
         [0107]    Specifically, memory resources may be released if the sliding direction of the icon of the application to be started in the predetermined direction is greater than a third predetermined threshold. 
         [0108]    The third predetermined threshold is greater than or equal to the first threshold and less than the second threshold, i.e. in a range of [the first threshold, the second threshold). 
         [0109]    When releasing memory resources, memory resources occupied by respective processes in the electronic device are released in sequence until the memory requirement of starting the application to be started is satisfied. Specifically, the memory resources occupied by processes which will not be restarted by the operating system after exiting are released first, and then the memory resources occupied by processes which will be restarted by the operation system after exiting are released. 
         [0110]    During releasing memory resources occupied by processes which will not be restarted by the operating system after exiting, the memory resources occupied by respective processes are released in an order of long to short unused time of respective processes. 
         [0111]    During releasing memory resources occupied by processes which will be restarted by the operating system after exiting, the memory resources occupied by respective processes are released first in an order of long to short unused time of respective processes, and then in an order of long to short restarting periods of the respective processes. For example, if the restarting period of process A is 10 s and the restarting period of process B is 20 s, then the memory resources occupied by process B are released prior to process A. 
         [0112]    It should be noted that, during releasing memory resources, if the memory requirement of starting the application to be started can be satisfied when memory resources occupied by only part of the processes are released according to priorities, then it only needs to release memory resources occupied by part of the processes. 
         [0113]    In a specific embodiment of the present disclosure, the memory resources may be released in the following way: 
         [0114]    determining a process having been started in the electronic device; 
         [0115]    judging whether the process is included in a predetermined process list; and 
         [0116]    if no, releasing memory resources occupied by the process. 
         [0117]    Specifically, when releasing memory resources, if it is judged that the process having been started is not included in the predetermined process list, then the memory resources occupied by this process are released, instead of releasing memory resources occupied by processes in the predetermined process list. 
         [0118]    The memory resources occupied by processes not included in the predetermined process list may also be released according to priorities, for example, the size of memory resources occupied by processes, whether processes are restarted after exiting, unused time of processes, etc. 
         [0119]    The above examples are only described for explanation, and in practical use, the priorities of processes may be determined according to particular situations. 
         [0120]    In step  203 D, the procedure is ended. 
         [0121]    It can been seen from above that, in the present disclosure, the memory resources occupied by respective processes are released in sequence according to their priorities until the memory requirement of starting the application to be started is satisfied, thus enhancing the efficiency of starting the application, and efficiently avoiding frequent restarting of some processes. 
         [0122]      FIG. 4  is a first block diagram of a device for starting an application under a screen lock state according to an embodiment of the present disclosure. The device is applied in an electronic device, and includes a screen lock state detecting module  401 , a sliding instruction receiving module  402 , a sliding operation detecting module  403 , a memory resource providing module  404 , a screen unlocking module  405  and an application starting module  406 . 
         [0123]    The screen lock state detecting module  401  is configured to detect whether the electronic device is under the screen lock state. 
         [0124]    The sliding instruction receiving module  402  is configured to receive a sliding operation instruction with respect to an icon of the application to be started. 
         [0125]    The sliding operation detecting module  403  is configured to detect a sliding operation with respect to the icon of the application to be started. 
         [0126]    The memory resource providing module  404  is configured to provide memory resources for starting the application to be started, if the sliding operation detecting module  403  detects that the sliding operation with respect to the icon of the application to be started satisfies a first predetermined condition. 
         [0127]    The screen unlocking module  405  is configured to perform a screen unlocking operation if the sliding operation detecting module  403  detects that the sliding operation with respect to the icon of the application to be started satisfies a second predetermined condition. 
         [0128]    The application starting module  406  is configured to start the application to be started after the screen unlocking module  405  performs the screen unlocking operation. 
         [0129]    In a specific embodiment of the present disclosure, the memory resource providing module  404  is configured to provide memory resources for starting the application to be started if the sliding operation detecting module  403  detects that a sliding distance of the icon of the application to be started in a predetermined direction is greater than a first predetermined threshold. 
         [0130]    In another specific embodiment of the present disclosure, the screen unlocking module  405  is configured to perform the screen unlocking operation if the sliding operation detecting module  403  detects that the sliding distance of the icon of the application to be started in the predetermined direction is greater than a second predetermined threshold, in which the second predetermined threshold is greater than the first predetermined threshold. 
         [0131]    It can been seen from above that, in the present disclosure, under the screen lock state, the application to be started is started when it is detected that the sliding operation with respect to the icon of the application to be started satisfies the second predetermined condition. Compared with the related art, in the present disclosure, the application to be started may be selected and the application may be started by sliding the icon of the application to be started, without the need of unlocking the screen first. Thus, it is convenient for the user to start the application under the screen lock state. Meanwhile, when the sliding operation with respect to the icon of the application to be started satisfies the first predetermined condition, the memory resources required by starting the application to be started are provided during sliding the icon of the application to be started, without the need of obtaining the memory resources after beginning to start the application, thus enhancing the efficiency of starting the application and improving the experience effect of the user. 
         [0132]    In another embodiment of the present disclosure, a specific implementation of the memory resource providing module  404  in the embodiment shown in  FIG. 4  is provided. Refer to  FIG. 5  which is a second block diagram of a device for starting an application under a screen lock state according to an embodiment of the present disclosure, the memory resource providing module  404  may specifically include a memory requirement obtaining sub-module  4041 , a memory determining sub-module  4042  and a memory releasing sub-module  4043 . 
         [0133]    The memory requirement obtaining sub-module  4041  is configured to obtain a size of memory required by starting the application to be started; 
         [0134]    The memory determining sub-module  4042  is configured to determine whether remaining memory resources satisfy a memory requirement of starting the application to be started. 
         [0135]    The memory releasing sub-module  4043  is configured to release memory resources directly or according to a predetermined trigger condition, if a determining result of the memory determining sub-module is no, so as to satisfy the memory requirement of starting the application to be started. 
         [0136]    In a specific embodiment of the present disclosure, the memory releasing sub-module  4043  is configured to release memory resources if the sliding operation detecting module  403  detects that the sliding distance of the icon of the application to be started in the predetermined direction is greater than a third predetermined threshold, in which the third predetermined threshold is greater than or equal to the first threshold and less than the second threshold. 
         [0137]    Specifically, the memory requirement obtaining sub-module  4041  is configured to search for the size of memory required by starting the application to be started in a preset memory requirement list stored locally, or configured to send a memory searching request to a server, and to obtain the size of memory required by starting the application to be started from the server, in which the memory searching request carries an identification of the application to be started. 
         [0138]    In a specific embodiment of the present disclosure, the memory searching request sent by the memory requirement obtaining sub-module  4041  further carries hardware information of the electronic device, and the server determines the size of memory required by starting the application to be started according to the identification of the application to be started and the hardware information of the electronic device carried in the memory searching request. 
         [0139]    Specifically, the memory releasing sub-module  4043  may include a first releasing unit and a second releasing unit (not shown). 
         [0140]    The memory releasing sub-module  4043  is configured to release memory resources occupied by respective processes in the electronic device in sequence until the memory requirement of starting the application to be started is satisfied, in which the first releasing unit is triggered first and the second releasing unit is triggered later. 
         [0141]    The first releasing unit is configured to release memory resources occupied by processes which will not be restarted by an operating system after exiting. 
         [0142]    The second releasing unit is configured to release memory resources occupied by processes which will be restarted by the operating system after exiting. 
         [0143]    In a specific embodiment of the present disclosure, the first releasing unit is configured to release the memory resources occupied by respective processes in an order of long to short unused time of respective processes, during releasing memory resources occupied by processes which will not be restarted by an operating system after exiting. 
         [0144]    In another specific embodiment of the present disclosure, the second releasing unit is configured to release the memory resources occupied by respective resources first in an order of long to short unused time of respective processes, and then in an order of long to short restarting periods of the respective processes, during releasing memory resources occupied by processes which will be restarted by the operating system after exiting. 
         [0145]    In another specific embodiment of the present disclosure, the memory releasing sub-module  4043  may include a started processes determining unit, a process identification judging unit, and a memory releasing unit (not shown). 
         [0146]    The started processes determining unit is configured to determine a processes having been started in the electronic device. 
         [0147]    The process identification judging unit is configured to judge whether the process having been started is included in a process list. 
         [0148]    The memory releasing unit is configured to release memory resources occupied by the process if a judging result of the process identification judging unit is no. 
         [0149]    It can be seen from above that, in the present disclosure, in the present disclosure, the memory resources occupied by respective processes are released in sequence according to their priorities until the memory requirement of starting the application to be started is satisfied, thus enhancing the efficiency of starting the application, and efficiently avoiding frequent restarting of some processes. 
         [0150]    With respect to the device embodiments, since they are substantially similar to the method embodiments, they are described briefly, and for related content, please refer to the description of method embodiments. 
         [0151]    Embodiments of the present disclosure also provide a computer-readable storage medium for storing computer instructions that, when executed, causes to perform the method for starting an application under a screen lock state according to embodiments of the present disclosure. 
         [0152]    It should be noted that, in the present disclosure, relational terms such as first and second are only used distinguish one entity or operation from another entity or operation, but do not require or imply any actual relation or order between these entities or operations. Moreover, terms such as “including”, “comprising” or any other variants are intended to cover non-exclusive containing, such that the process, method, product or apparatus including a series of elements does not only include those items, but also include other elements which are not listed explicitly, or also include elements inherently included in the process, method, product or apparatus. Without more limitations, the element defined by a phase of “including a/an . . . ” does not exclude that the process, method, product or apparatus including the element includes other equivalent elements. 
         [0153]    It should be understood for those skilled in the art that, all or part of steps implementing the above method embodiments can be realized by programs to instruct related hardware. The programs can be stored in a computer-readable storage medium, and the storage medium herein is ROM/RAM, disk, CD, etc. 
         [0154]    The above description is only preferred embodiments of the present disclosure and is not used to limit the present disclosure. Any modification, alternative or improvement made within the spirit and principle of the present disclosure falls in the protection scope of the present disclosure.