WO2015120707A1 - 锁屏状态下启动应用的方法及装置 - Google Patents

锁屏状态下启动应用的方法及装置 Download PDF

Info

Publication number
WO2015120707A1
WO2015120707A1 PCT/CN2014/084572 CN2014084572W WO2015120707A1 WO 2015120707 A1 WO2015120707 A1 WO 2015120707A1 CN 2014084572 W CN2014084572 W CN 2014084572W WO 2015120707 A1 WO2015120707 A1 WO 2015120707A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory
application
started
preset
memory resources
Prior art date
Application number
PCT/CN2014/084572
Other languages
English (en)
French (fr)
Inventor
陈勇
黄声声
詹孟学
何雁丹
Original Assignee
贝壳网际(北京)安全技术有限公司
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 贝壳网际(北京)安全技术有限公司 filed Critical 贝壳网际(北京)安全技术有限公司
Priority to US15/105,347 priority Critical patent/US10551996B2/en
Publication of WO2015120707A1 publication Critical patent/WO2015120707A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention relates to the field of application processing technologies, and in particular, to a method and apparatus for starting an application in a lock screen state. Background technique
  • the embodiment of the invention discloses a method and a device for starting an application in a lock screen state, so as to facilitate the user to start the application in the lock screen state, and improve the speed of the startup application and the user experience.
  • the embodiment of the present invention discloses a method for starting an application in a lock screen state, which is applied to an electronic device, and the method includes:
  • a screen unlocking operation is performed to start the to-be-launched application.
  • providing memory resources for starting the to-be-launched application includes: Detecting whether the sliding distance of the to-be-launched application icon in the preset direction is greater than a preset first threshold; if greater, providing a memory resource for starting the to-be-launched application.
  • performing the screen unlocking operation includes:
  • the providing the memory resource for starting the to-be-launched application includes:
  • the memory resource is directly released, or the memory resource is released according to a preset trigger condition to meet the memory requirement of starting the application to be started.
  • the releasing the memory resource according to the preset trigger condition includes:
  • the memory resource is released, where the preset third threshold has a value range of: [first threshold, second Threshold).
  • the obtaining a memory size required to start the application to be started includes:
  • the query obtains the memory size required to start the application to be started.
  • the memory query request information is sent to the server, and the memory size required to start the application to be started is obtained from the server.
  • the memory query request information carries the identifier of the application to be started.
  • the memory query request information further carries hardware information of the current electronic device; the server end comprehensively determines the startup device according to the identifier of the to-be-launched application and the hardware information of the current electronic device in the memory query request information. Tells the amount of memory required to launch the app.
  • the releasing the memory resource includes:
  • the memory resources occupied by the processes are sequentially released according to the length of each process that is not used.
  • the time that each process is not used is in the order of long to short, and then the cycle of restarting by the operating system after each process is restarted, from the longest to the shortest, sequentially releasing the memory resources occupied by each process.
  • the releasing the memory resource includes:
  • an embodiment of the present invention discloses a device for starting an application in a lock screen state, which is applied to an electronic device, and the device includes:
  • a lock screen state detecting module configured to detect whether it is in a lock screen state
  • a sliding instruction receiving module configured to receive a sliding operation instruction for an application icon to be activated
  • a sliding operation detecting module configured to detect a sliding operation for the to-be-launched application icon
  • a memory resource providing module configured to provide a memory resource for starting the to-be-launched application if the sliding operation detecting module detects that the sliding operation of the to-be-launched application icon satisfies the first preset condition
  • a screen unlocking module configured to perform a screen unlocking operation when the sliding operation detecting module detects that the sliding operation of the to-be-launched application icon satisfies the second preset condition
  • the application startup module is configured to start the to-be-launched application after the screen unlocking module performs a screen unlocking operation.
  • the memory resource providing module is specifically configured to: when the sliding operation detecting module detects that the sliding distance of the to-be-launched application icon in the preset direction is greater than a preset first threshold,
  • the startup application is provided to provide memory resources.
  • the screen unlocking module is configured to perform a screen unlocking operation when the sliding operation detecting module detects that the sliding distance of the to-be-launched application icon in the preset direction is greater than a preset second threshold.
  • the preset second threshold is greater than the preset first threshold.
  • the memory resource providing module includes: a memory requirement obtaining submodule, a memory determining submodule, and a memory releasing submodule;
  • the memory requirement obtaining sub-module is configured to obtain a memory size required to start the application to be started; and the memory determining sub-module is configured to determine whether the current remaining memory resource meets a memory requirement for starting the application to be started;
  • the memory release submodule is configured to directly release the memory resource when the determining result of the memory determining submodule is negative, or release the memory resource according to a preset triggering condition, so as to meet the startup of the to-be-launched application. Memory requirements.
  • the memory release submodule is specifically configured to detect the to wait in the sliding operation detecting module.
  • the memory release submodule is specifically configured to detect the to wait in the sliding operation detecting module.
  • the memory resource is released, wherein the preset third threshold has a value range of: [first threshold, second threshold) .
  • the memory requirement obtaining submodule is configured to query, in a locally preset memory requirement list, a memory size required to start the application to be started; or
  • the memory request request information sent by the sub-module further carries the hardware information of the current electronic device; the server, according to the identifier of the to-be-launched application in the memory query request information, and the current electronic device
  • the hardware information comprehensively determines the memory size required to start the application to be started.
  • the memory release sub-module includes: a first release unit and a second release unit; the memory release sub-module, configured to trigger the first release unit first, and then trigger the second release unit The order of the memory resources occupied by each process in the current electronic device is released to meet the memory requirement of starting the application to be started;
  • the first release unit is configured to release a memory resource occupied by a process that is not restarted by the operating system after exiting;
  • the second release unit is configured to release a memory resource occupied by a process that is restarted by the operating system after exiting.
  • the first release unit is specifically used in the process of releasing the memory resources occupied by the process that is not restarted by the operating system after the exit, according to the time that each process is not used, from long to short. , in turn release the memory resources occupied by each process.
  • the second release unit is specifically configured to: in the process of releasing the memory resources occupied by the process restarted by the operating system after the exit, first, according to the time that each process is not used, from long to short Then, according to the period from the longest to the shortest, the cycle of restarting by the operating system after each process exits, sequentially releasing the memory resources occupied by each process.
  • the memory release submodule includes: a started process determination unit, a process identification determination unit, and a memory release unit;
  • the activated process determining unit is configured to determine a process that has been started in the electronic device
  • the process identifier determining unit is configured to determine whether the determined process is included in a preset process list, and the memory release unit is configured to release the process occupation when the process identifier determining unit determines that the result is negative. Memory resources.
  • the application to be started in the lock screen state, when it is detected that the sliding operation for the application icon to be activated satisfies the second preset condition, the application to be started is started.
  • the icon to be launched and the icon of the application to be launched can be selected to start the application, so that it is convenient to use.
  • the user starts the application in the lock screen state.
  • the required memory space is provided for starting the application to be started, and the memory resource is not required to be acquired after starting the application. , improve the speed of launching the app and the user experience.
  • the embodiment of the present invention further provides a computer readable storage medium, comprising computer instructions, when the computer instruction is executed, to cause a method of launching an application in a lock screen state according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of sliding of an application icon to be activated according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for starting an application in a lock screen state according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for providing a memory resource for starting an application to be started according to an embodiment of the present invention
  • FIG. 4 is a first schematic structural diagram of an apparatus for starting an application in a lock screen state according to an embodiment of the present invention
  • FIG. 5 is a second schematic structural diagram of an apparatus for starting an application in a lock screen state according to an embodiment of the present invention.
  • a method for starting an application in a lock screen state is described below.
  • the method may include the following steps:
  • a screen unlocking operation is performed to start the to-be-launched application.
  • FIG. 1 is a schematic diagram of sliding of an application icon to be activated according to an embodiment of the present invention.
  • the original position of the icon if the icon slides to the position 2 at a certain moment, and the sliding operation from the position 1 and the position 2 is detected to satisfy the first preset condition, the memory resource in the current electronic device may be further determined to be satisfied.
  • the target continues to slide from the position 2, and slides to the position 3 at a certain time.
  • the screen unlocking operation is performed, and after the unlocking, the application to be started is started. .
  • FIG. 2 is a schematic flowchart of a method for starting an application in a lock screen state according to an embodiment of the present invention, where the method includes:
  • the current electronic device can obtain the sliding signal through the signal acquisition device of the touch screen.
  • the sliding operation of the to-be-launched application icon satisfies the first preset condition, and the sliding distance of the icon of the application to be activated along a straight line or a curve is greater than a preset value, or may be an application to be activated.
  • the sliding route of the icon is consistent with a preset graphic, and so on.
  • the step may be: detecting whether the sliding distance of the icon to be activated in the preset direction is greater than a preset first threshold; if greater than, providing the application to be started Memory resources.
  • the sliding distance refers to the distance between the starting position of the application icon to be activated and the position at a certain moment during the sliding of the icon.
  • the user can preset the direction of the icon to be activated to be activated, and the angle between the preset direction and the horizontal direction can be any value in the range [0, 360].
  • the application icon to be activated may be slid in a straight line along the preset direction, or may be slid in a curved manner. This application does not limit the sliding mode.
  • the preset first threshold may be set to a fixed value, for example: 1 cm, 2 cm, etc., and may also be set to the current electronic device touch screen width or percentage of height, for example: 20% of the touch screen width, 30 of the touch screen height %and many more.
  • the application icon to be moved to the sliding distance is greater than the preset first threshold, it is considered that the user is more likely to start the application, and it may be determined whether the current remaining memory resource can satisfy the application to be started.
  • the memory requirement, and the memory resource for starting the application to be started, to prevent the memory resource from being insufficient during the startup process, and then the memory release operation affects the application startup speed.
  • the memory resource is released, and when it is determined that the remaining memory resource can satisfy the memory requirement of the application to be started, the memory resource does not need to be released.
  • S204 Perform a screen unlocking operation to start the to-be-launched application if the sliding operation for the to-be-launched application icon satisfies the second preset condition.
  • the case where the sliding operation for the to-be-launched application icon satisfies the second preset condition may be similar to the case of satisfying the first preset condition described above, and is not repeated here.
  • the step may be: detecting whether the sliding distance of the icon to be activated in the preset direction is greater than a preset second threshold, and if yes, performing a screen unlocking operation, starting the The application to be launched.
  • the preset second threshold is greater than the preset first threshold.
  • the system can start the operation of starting the application to be started without manually starting the application to be started.
  • the application to be started in the lock screen state, when it is detected that the sliding operation for the application icon to be activated satisfies the second preset condition, the application to be started is started.
  • the application to be launched and the icon of the application to be launched can be selected to start the application without first unlocking, thereby facilitating the user to start the application in the lock screen state.
  • the required memory space is provided for starting the application to be started, and the memory resource is not required to be acquired after starting the application. , improve the speed of launching the app and the user experience.
  • FIG. 3 is provided according to an embodiment of the present invention.
  • a schematic flowchart of a method for starting a memory resource for starting an application to be started which may include:
  • S203A Get the memory size required to start the application to be started.
  • the memory size required to start the application to be started can be obtained from the server by sending the memory query request information to the server.
  • the memory query request information needs to carry the identifier of the application to be started, and the server determines the memory size required to start the application to be started according to the identifier of the application to be started.
  • the memory query request information may also carry hardware information of the current electronic device
  • the server may The memory size required to start the application to be started is comprehensively determined according to the identifier of the to-be-launched application and the hardware information of the current electronic device in the memory query request information.
  • the hardware information of the current electronic device may be information such as the size of the screen. When the screen of the current electronic device is large, the memory resource required to start the application to be started is large, and when the screen of the current electronic device is small, the application to be started needs to be started. The memory resources are small.
  • the application does not limit the information carried in the memory query request information, and may be set according to specific conditions in practical applications.
  • the memory size required to start the application to be launched may be obtained in a locally preset memory requirement list.
  • the preset memory requirement list may be obtained from the server and stored locally, and includes a list of various application memory requirements.
  • the identifier of the application to be launched may be from the preset memory requirement list. Get the amount of memory needed to start the application to be launched.
  • the preset memory requirement list may also be a locally generated memory requirement list for the current electronic device according to the characteristics of the user.
  • the memory size required to start the application to be started is obtained from the server by sending the memory query request information to the server, and the memory requirement is obtained.
  • the information is updated to the memory requirements list.
  • the corresponding information can be obtained directly from the local preset memory requirement list without being obtained from the server.
  • S203B Determine whether the current remaining memory resource meets the memory requirement for starting the application to be started, and if not, execute S203C, otherwise, execute S203D.
  • S203C The memory resource is directly released to meet the memory requirement of starting the application to be started.
  • memory resources can be released according to preset trigger conditions.
  • the memory resource may be released when the sliding distance of the to-be-launched application icon in the preset direction is greater than a preset third threshold.
  • the preset third threshold needs a range of values: [first threshold, second threshold).
  • the memory resources occupied by the process that is not restarted by the operating system are released first, and then the memory resources occupied by the process restarted by the operating system are released, and the current electronic devices are sequentially released.
  • the memory resources occupied by each process may be sequentially released according to the length of each process that is not used.
  • the user may first press The time that each process is not used is in the order of long to short, and then the cycle of restarting by the operating system after each process exits is in the order of long to short, and the memory resources occupied by each process are sequentially released.
  • the period of restarting process A is 10 seconds
  • the period of restarting process B is 20 seconds.
  • the memory resources occupied by process B are preferentially released.
  • memory resources can also be released by:
  • the memory resource occupied by the process is released, and the memory resource occupied by the process in the preset process list cannot be released.
  • FIG. 4 is a schematic diagram of a first structure of an apparatus for starting an application in a lock screen state according to an embodiment of the present disclosure.
  • the apparatus is applied to an electronic device, and includes: a lock screen state detecting module 401, a sliding command receiving module 402, and a sliding operation detecting module. 403.
  • the lock screen state detecting module 401 is configured to detect whether it is in a lock screen state
  • a sliding instruction receiving module 402 configured to receive a sliding operation instruction for an application icon to be activated
  • a sliding operation detecting module 403, configured to detect a sliding operation for the to-be-launched application icon
  • a memory resource providing module 404 configured to When the sliding operation detecting module 403 detects that the sliding operation of the application icon to be started satisfies the first preset condition, the sliding operation detecting module 403 provides a memory resource for starting the to-be-launched application
  • the screen unlocking module 405 is configured to perform a screen unlocking operation when the sliding operation detecting module 403 detects that the sliding operation of the application icon to be activated satisfies the second preset condition.
  • the application launching module 406 is configured to start the to-be-launched application after the screen unlocking module 405 performs a screen unlocking operation.
  • the memory resource providing module 404 is specifically configured to: when the sliding operation detecting module 403 detects that the sliding distance of the to-be-launched application icon in the preset direction is greater than a preset first threshold. In the case, a memory resource is provided for starting the to-be-launched application.
  • the screen unlocking module 405 is specifically configured to: when the sliding operation detecting module 403 detects that the sliding distance of the to-be-launched application icon in the preset direction is greater than a preset second threshold. In the case, the screen unlocking operation is performed, wherein the preset second threshold is greater than the preset first threshold.
  • the application to be started in the lock screen state, when it is detected that the sliding operation for the application icon to be activated satisfies the second preset condition, the application to be started is started.
  • the application to be launched and the icon of the application to be launched can be selected to start the application without first unlocking, thereby facilitating the user to start the application in the lock screen state.
  • the required memory space is provided for starting the application to be started, and the memory resource is not required to be acquired after starting the application. , improve the speed of launching the app and the user experience.
  • FIG. 5 is a boot screen state according to an embodiment of the present invention.
  • the memory resource providing module 404 may specifically include: a memory requirement obtaining submodule 4041, a memory determining submodule 4042, and a memory releasing submodule 4043.
  • the memory requirement obtaining sub-module 4041 is configured to obtain a memory size required to start the application to be started, and the memory determining sub-module 4042 is configured to determine whether the current remaining memory resource meets a memory requirement for starting the application to be started.
  • the memory release sub-module 4043 is configured to directly release the memory resource when the determining result of the memory determining sub-module is negative, or release the memory resource according to the preset triggering condition, so as to meet the memory for starting the application to be started. demand.
  • the memory release sub-module 404 is specifically configured to: when the sliding operation detecting module 403 detects that the sliding distance of the to-be-launched application icon in the preset direction is greater than a preset third threshold. In this case, the memory resource is released, where the preset third threshold has a value range of: [first threshold, second threshold).
  • the memory requirement obtaining submodule 4041 is configured to obtain, in a locally preset memory requirement list, a memory size required to start the application to be started; or And sending the memory query request information to the server, and obtaining, by the server, the memory size required to start the application to be started, where the memory query request information carries the identifier of the application to be started.
  • the identification and hardware information of the front electronic device comprehensively determine the memory size required to start the application to be started.
  • the memory release submodule 4043 may include: a first release unit and a second release unit (not shown).
  • the memory release sub-module 4043 is configured to sequentially release the memory resources occupied by each process in the current electronic device according to the sequence of first triggering the first release unit and then triggering the second release unit, until the booting is started.
  • the first release unit is configured to release a memory resource occupied by a process that is not restarted by the operating system after exiting;
  • the second release unit is configured to release a memory resource occupied by a process that is restarted by the operating system after exiting.
  • the first release unit is specifically configured to use a memory resource occupied by a process that is not restarted by the operating system after the exiting, and the time that each process is not used is long. In a short order, the memory resources occupied by each process are released in sequence.
  • the second release unit is specifically configured to: in the process of releasing the memory resources occupied by the process restarted by the operating system after the exiting, first according to the time when each process is not used. In the order of length to short, the cycle of restarting by the operating system after each process exits is in order of length to short, and the memory resources occupied by each process are sequentially released.
  • the memory release sub-module 404 can include: a started process determination unit, a process identification determination unit, and a memory release unit (not shown).
  • the process determination unit is started to determine a process that has been started in the electronic device
  • a process identifier determining unit configured to determine whether the determined process is included in a preset process list, where the memory release unit is configured to release the memory occupied by the process when the process identifier determining unit determines that the result is negative Resources.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • An embodiment of the present invention further provides a computer readable storage medium, including computer instructions, when the computer refers to When the command is executed, a method of starting an application in a lock screen state according to an embodiment of the present invention is performed.

Abstract

一种锁屏状态下启动应用的方法及装置,应用于电子设备,所述方法包括:检测是否处于锁屏状态;接收针对待启动应用图标的滑动操作指令;在针对所述待启动应用图标的滑动操作满足第一预设条件的情况下,为启动所述待启动应用提供内存资源;在针对所述待启动应用图标的滑动操作满足第二预设条件的情况下,进行屏幕解锁操作,启动所述待启动应用。该方法及装置便于用户在锁屏状态下启动应用,且可提高启动应用的速度以及用户的体验效果。

Description

锁屏状态下启动应用的方法及装置 技术领域
本发明涉及应用处理技术领域, 特别涉及一种锁屏状态下启动应用的方法及装 置。 背景技术
随着电子技术的快速发展, 使用带有触摸屏电子设备的用户越来越多。用户使用 带有触摸屏的电子设备时, 可在触摸屏的相应区域进行操作, 快速便捷的访问电子设 备中已安装的应用。 现有技术中, 用户可通过点击触摸屏上应用的图标启动应用, 使 得启动应用更加直观、 快速、 便捷, 然而, 在使用过程中经常会由于用户的误点击而 误启动应用。 鉴于此种情况, 通常用户会启动锁屏状态以防止误启动应用, 但是, 锁 屏状态下用户想启动应用时, 只能先解锁, 进入相关页面才能启动应用, 因此, 锁屏 状态也为用户的使用带来不便。
另外, 随着电子设备硬件性能的逐步提高, 用户可在电子设备上同时运行多个应 用, 但是这样会占用较多内存资源, 当用户启动某一需要内存资源较多的应用时, 由 于内存资源不足会导致启动速度慢、 卡顿等现象, 影响用户的体验效果。 发明内容
本发明实施例公开了一种锁屏状态下启动应用的方法及装置,以方便用户在锁屏 状态下启动应用、 提高启动应用的速度和用户体验效果。
为达到上述目的, 本发明实施例公开了一种锁屏状态下启动应用的方法, 应用于 电子设备, 所述方法包括:
检测是否处于锁屏状态;
接收针对待启动应用图标的滑动操作指令;
在针对所述待启动应用图标的滑动操作满足第一预设条件的情况下,为启动所述 待启动应用提供内存资源;
在针对所述待启动应用图标的滑动操作满足第二预设条件的情况下,进行屏幕解 锁操作, 启动所述待启动应用。
较佳的, 所述在针对所述待启动应用图标的滑动操作满足第一预设条件的情况 下, 为启动所述待启动应用提供内存资源, 包括: 检测所述待启动应用图标向预设方向的滑动距离是否大于预设的第一阈值;若大 于, 为启动所述待启动应用提供内存资源。
较佳的, 所述在针对所述待启动应用图标的滑动操作满足第二预设条件的情况 下, 进行屏幕解锁操作, 包括:
检测所述待启动应用图标向预设方向的滑动距离是否大于预设的第二阈值,若大 于, 进行屏幕解锁操作, 其中, 所述预设的第二阈值大于所述预设的第一阈值。
较佳的, 所述为启动所述待启动应用提供内存资源, 包括:
获得启动所述待启动应用所需的内存大小;
确定当前剩余内存资源是否满足启动所述待启动应用的内存需求;
若不满足, 则直接释放内存资源, 或根据预设的触发条件释放内存资源, 以满足 启动所述待启动应用的内存需求。
较佳的, 所述根据预设的触发条件释放内存资源, 包括:
当所述待启动应用图标向预设方向的滑动距离大于预设的第三阈值时,释放内存 资源, 其中, 所述预设的第三阈值的取值范围为: [第一阈值, 第二阈值)。
较佳的, 所述获得启动所述待启动应用所需的内存大小, 包括:
在本地预设的内存需求列表中, 查询获得启动所述待启动应用所需的内存大小; 或
向服务器端发送内存查询请求信息,从服务器端获得启动所述待启动应用所需的 内存大小, 所述内存查询请求信息中, 携带所述待启动应用的标识。
较佳的, 所述内存查询请求信息中, 还携带当前电子设备的硬件信息; 所述服务器端,根据内存查询请求信息中的待启动应用的标识以及当前电子设备 的硬件信息, 综合确定启动所述待启动应用所需的内存大小。
较佳的, 所述释放内存资源, 包括:
按照先释放退出后不会被操作系统重启的进程占用的内存资源,后释放退出后会 被操作系统重启的进程占用的内存资源的顺序,依次释放当前电子设备中各个进程所 占用的内存资源, 至满足启动所述待启动应用的内存需求:
退出后不会被操作系统重启的进程;
退出后会被操作系统重启的进程。
较佳的, 在释放所述退出后不会被操作系统重启的进程占用的内存资源的过程 中, 按照各个进程未被使用的时间由长到短的顺序, 依次释放各个进程占用的内存资 源。
较佳的, 在释放所述退出后会被操作系统重启的进程占用的内存资源的过程中, 先按照各个进程未被使用的时间由长到短的顺序,再按照各个进程退出后被操作系统 重启的周期由长到短的顺序, 依次释放各个进程占用的内存资源。
较佳的, 所述释放内存资源, 包括:
确定电子设备中已启动的进程;
判断所确定的进程是否包含在预设的进程列表中;
若不包含, 则释放该进程占用的内存资源。
为达到上述目的, 本发明实施例公开了一种锁屏状态下启动应用的装置, 应用于 电子设备, 所述装置包括:
锁屏状态检测模块, 用于检测是否处于锁屏状态;
滑动指令接收模块, 用于接收针对待启动应用图标的滑动操作指令;
滑动操作检测模块, 用于检测针对所述待启动应用图标的滑动操作;
内存资源提供模块,用于在所述滑动操作检测模块检测到待启动应用图标的滑动 操作满足第一预设条件的情况下, 为启动所述待启动应用提供内存资源;
屏幕解锁模块,用于在所述滑动操作检测模块检测到待启动应用图标的滑动操作 满足第二预设条件的情况下, 进行屏幕解锁操;。
应用启动模块, 用于在所述屏幕解锁模块进行屏幕解锁操作之后, 启动所述待启 动应用。
较佳的, 所述内存资源提供模块, 具体用于在所述滑动操作检测模块检测到所述 待启动应用图标向预设方向的滑动距离大于预设的第一阈值的情况下,为启动所述待 启动应用提供内存资源。
较佳的, 所述屏幕解锁模块, 具体用于在所述滑动操作检测模块检测到所述待启 动应用图标向预设方向的滑动距离大于预设的第二阈值的情况下, 进行屏幕解锁操, 其中, 所述预设的第二阈值大于所述预设的第一阈值。
较佳的, 所述内存资源提供模块, 包括: 内存需求获得子模块、 内存确定子模块 和内存释放子模块;
所述内存需求获得子模块, 用于获得启动所述待启动应用所需的内存大小; 所述内存确定子模块,用于确定当前剩余内存资源是否满足启动所述待启动应用 的内存需求;
所述内存释放子模块, 用于在所述内存确定子模块的确定结果为否的情况下, 直 接释放内存资源, 或根据预设的触发条件释放内存资源, 以满足启动所述待启动应用 的内存需求。
较佳的, 所述内存释放子模块, 具体用于在所述滑动操作检测模块检测到所述待 启动应用图标向预设方向的滑动距离大于预设的第三阈值的情况下, 释放内存资源, 其中, 所述预设的第三阈值的取值范围为: [第一阈值, 第二阈值)。
较佳的, 所述内存需求获得子模块, 用于在本地预设的内存需求列表中, 查询获 得启动所述待启动应用所需的内存大小; 或
用于向服务器端发送内存查询请求信息,从服务器端获得启动所述待启动应用所 需的内存大小, 所述内存查询请求信息中, 携带所述待启动应用的标识。
较佳的, 所述内存需求获得子模块发送的内存查询请求信息中, 还携带当前电子 设备的硬件信息; 所述服务器端, 根据内存查询请求信息中的待启动应用的标识以及 当前电子设备的硬件信息, 综合确定启动所述待启动应用所需的内存大小。
较佳的, 所述内存释放子模块, 包括: 第一释放单元和第二释放单元; 所述内存释放子模块, 用于按照先触发所述第一释放单元, 后触发所述第二释放 单元的顺序, 依次释放当前电子设备中各个进程所占用的内存资源, 至满足启动所述 待启动应用的内存需求;
所述第一释放单元, 用于释放退出后不会被操作系统重启的进程占用的内存资 源;
所述第二释放单元, 用于释放退出后会被操作系统重启的进程占用的内存资源。 较佳的, 所述第一释放单元, 具体用于在释放所述退出后不会被操作系统重启 的进程占用的内存资源的过程中, 按照各个进程未被使用的时间由长到短的顺序, 依 次释放各个进程占用的内存资源。
较佳的, 所述第二释放单元, 具体用于在释放所述退出后会被操作系统重启的进 程占用的内存资源的过程中, 先按照各个进程未被使用的时间由长到短的顺序, 再按 照各个进程退出后被操作系统重启的周期由长到短的顺序,依次释放各个进程占用的 内存资源。
较佳的, 所述内存释放子模块, 包括: 已启动进程确定单元、 进程标识判断单元 和内存释放单元;
所述已启动进程确定单元, 用于确定电子设备中已启动的进程;
所述进程标识判断单元, 用于判断所确定的进程是否包含在预设的进程列表中; 所述内存释放单元, 用于在所述进程标识判断单元的判断结果为否时, 释放该进 程占用的内存资源。
由以上可见, 本方案中, 锁屏状态下, 在检测得知针对待启动应用图标的滑动操 作满足第二预设条件的情况下, 启动待启动应用。 与现有技术相比, 本方案中, 无需 先解锁, 即可选择待启动应用并滑动待启动应用的图标启动该应用, 因此, 方便了用 户在锁屏状态下启动应用。 同时, 在滑动待启动应用图标的过程中, 针对待启动应用 图标的滑动操作满足第一预设条件时, 为启动待启动应用提供所需内存空间, 而无需 在开始启动应用后再获取内存资源, 提高了启动应用的速度以及用户的体验效果。
本发明实施例还提供了一种计算机可读存储介质, 包括计算机指令, 当所述计算机指 令被执行时, 使得执行根据本发明实施例的锁屏状态下启动应用的方法。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提 下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的待启动应用图标的滑动示意图;
图 2为本发明实施例提供的锁屏状态下启动应用的方法的流程示意图; 图 3 为本发明实施例提供的为启动待启动应用提供内存资源的方法的流程示意 图;
图 4为本发明实施例提供的锁屏状态下启动应用的装置的第一种结构示意图; 图 5为本发明实施例提供的锁屏状态下启动应用的装置的第二种结构示意图。 具体实施方式
下面首先对本发明实施例提供的一种锁屏状态下启动应用的方法进行说明,该方 法可以包括以下步骤:
检测是否处于锁屏状态;
接收针对待启动应用图标的滑动操作指令;
在针对所述待启动应用图标的滑动操作满足第一预设条件的情况下,为启动所述 待启动应用提供内存资源;
在针对所述待启动应用图标的滑动操作满足第二预设条件的情况下,进行屏幕解 锁操作, 启动所述待启动应用。
上述步骤的执行主体为带有触摸屏的电子设备, 具体的, 参见图 1, 图 1为本发 明实施例提供的待启动应用图标的滑动示意图, 在待启动应用图标的滑动过程中, 位 置 1为该图标的原始位置, 若某一时刻该图标滑动至位置 2, 经检测得从位置 1与到 位置 2的滑动操作满足第一预设条件,则可进一步判断当前电子设备中的内存资源是 否满足启动该待启动应用的内存需求, 并为该待启动应用提供相应的内存资源; 若图 标由位置 2继续滑动, 某一时刻滑动至位置 3, 经检测得从位置 1与位置 3的滑动操 作满足第二预设条件, 则进行屏幕解锁操作, 并在解锁后, 启动该待启动应用。
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完 整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的 所有其他实施例, 都属于本发明保护的范围。
图 2为本发明实施例提供的锁屏状态下启动应用的方法的流程示意图,该方法包 括:
S201 : 检测是否处于锁屏状态。
S202: 接收针对待启动应用图标的滑动操作指令。
当用户选中触摸屏上显示的某一应用的图标, 并拖动该图标滑动时, 当前电子设 备可通过触摸屏的信号采集装置获得该滑动信号。
S203 : 在针对所述待启动应用图标的滑动操作满足第一预设条件的情况下, 为启 动所述待启动应用提供内存资源。
本步骤中, 针对所述待启动应用图标的滑动操作满足第一预设条件, 可以是待启 动应用的图标沿直线或曲线的滑动距离大于预设的某一值,也可以是待启动应用的图 标的滑动路线与某一预设图形一致等等。
在本发明的一个具体实施例中, 本步骤具体可以为, 检测所述待启动应用图标向 预设方向的滑动距离是否大于预设的第一阈值; 若大于, 为启动所述待启动应用提供 内存资源。
其中,滑动距离是指待启动应用图标的起始位置与该图标滑动过程中某一时刻所 处位置之间的距离。
用户可以预先设定滑动待启动应用图标的方向,该预设方向与水平方向之间的夹 角可以为 [0, 360]范围内的任意值。
需要说明的是, 待启动应用图标可以沿着预设方向以直线方式滑动, 也可以以曲 线方式滑动, 本申请并不对滑动方式进行限定。
另外, 预设的第一阈值可以设置为固定值, 例如: 1厘米、 2厘米等等, 也可以 设置为当前电子设备触摸屏宽度或者高度的百分比, 例如: 触摸屏宽度的 20%、 触摸 屏高度的 30%等等。
实际应用中, 当前电子设备中可同时运行多个应用, 而运行每个应用都需要一定 内存资源, 因此, 在启动待启动应用的过程中可能会存在当前剩余内存资源不能够满 足启动待启动应用的内存需求的情况, 这种情况下, 需要系统进行内存释放操作, 以 为启动待启动应用提供足够内存资源。
本实施例中, 在滑动待启动应用图标至滑动距离大于预设的第一阈值时, 认为用 户欲启动该应用的可能性较大,可先判断当前剩余内存资源是否能够满足启动待启动 应用的内存需求, 并为启动待启动应用提供内存资源, 以防止启动过程中内存资源不 足时, 再进行内存释放操作而影响应用启动速度。 当判断得当前剩余内存资源不能够 满足启动待启动应用的内存需求时, 则释放内存资源, 而判断得剩余内存资源能够满 足启动待启动应用的内存需求时, 则无需释放内存资源。
S204 : 在针对所述待启动应用图标的滑动操作满足第二预设条件的情况下, 进行 屏幕解锁操作, 启动所述待启动应用。
本步骤中, 在针对所述待启动应用图标的滑动操作满足第二预设条件, 的情况可 以与上述的满足第一预设条件的情况类似, 这里不再重复。
在本发明的一个具体实施例中, 本步骤具体可以为, 检测所述待启动应用图标向 预设方向的滑动距离是否大于预设的第二阈值, 若大于, 进行屏幕解锁操作, 启动所 述待启动应用。
其中, 预设的第二阈值大于预设的第一阈值。
具体的, 当系统检测到屏幕解锁操作完成后, 即可调用启动待启动应用的操作, 而无需用户再手动启动待启动 应用。
由以上可见, 本方案中, 锁屏状态下, 在检测得知针对待启动应用图标的滑动操 作满足第二预设条件的情况下, 启动待启动应用。 与现有技术相比, 本方案中, 无需 先解锁, 即可选择待启动应用并滑动待启动应用的图标启动该应用, 因此, 方便了用 户在锁屏状态下启动应用。 同时, 在滑动待启动应用图标的过程中, 针对待启动应用 图标的滑动操作满足第一预设条件时, 为启动待启动应用提供所需内存空间, 而无需 在开始启动应用后再获取内存资源, 提高了启动应用的速度以及用户的体验效果。
在本发明的另一实施例中, 提供了图 2所示实施例 S203中为启动所述待启动应 用提供内存资源的一种具体实现方式, 具体参见图 3, 图 3为本发明实施例提供的为 启动待启动应用提供内存资源的方法的流程示意图,, 可以包括:
S203A: 获得启动所述待启动应用所需的内存大小。
在本发明的一个具体实施例中,可以通过向服务器端发送内存查询请求信息的方 式, 从服务器端获得启动所述待启动应用所需的内存大小。
其中, 内存查询请求信息中, 需携带待启动应用的标识, 服务器端根据该待启动 应用的标识确定启动该待启动应用所需的内存大小。
另外, 内存查询请求信息中, 还可以携带当前电子设备的硬件信息, 服务器端可 以根据内存查询请求信息中的待启动应用的标识以及当前电子设备的硬件信息,综合 确定启动该待启动应用所需的内存大小。当前电子设备的硬件信息可以为屏幕的大小 等信息, 当当前电子设备的屏幕大时, 启动该待启动应用需要的内存资源较大, 而当 当前电子设备的屏幕小时, 启动该待启动应用需要的内存资源较小。
需要说明的是, 本申请并不对内存查询请求信息中所携带的信息进行限定, 实际 应用中可以根据具体情况进行设置。
在本发明的另一个具体实施例中, 可以在本地预设的内存需求列表中, 查询获得 启动所述待启动应用所需的内存大小。
其中, 预设的内存需求列表可以是从服务器端获得并存储在本地的, 包含多种应 用内存需求的列表, 这种情况下, 可根据待启动应用的标识从该预设的内存需求列表 中获得启动该待启动应用所需的内存大小。
预设的内存需求列表还可以是根据用户的特点,在本地生成的针对当前电子设备 的内存需求列表。 这种情况下, 用户在第一次启动待启动应用时, 需通过向服务器端 发送内存查询请求信息的方式, 从服务器端获得启动所述待启动应用所需的内存大 小, 并将该内存需求信息更新到内存需求列表中。 当用户再次启动该待启动应用时, 可直接从本地预设的内存需求列表中获得相应信息, 而无需从服务器端获得。
S203B : 确定当前剩余内存资源是否满足启动所述待启动应用的内存需求, 若不 满足, 执行 S203C , 否则, 执行 S203D。
S203C : 直接释放内存资源, 以满足启动所述待启动应用的内存需求。
实际应用中, 除了直接释放内存资源之外, 还可以根据预设的触发条件释放内存 资源。
具体的,可以在所述待启动应用图标向预设方向的滑动距离大于预设的第三阈值 时, 再释放内存资源。
其中, 预设的第三阈值需的取值范围为: [第一阈值, 第二阈值)。
在释放内存资源时,可以按照先释放退出后不会被操作系统重启的进程占用的内 存资源, 后释放退出后会被操作系统重启的进程占用的内存资源的顺序, 依次释放当 前电子设备中各个进程所占用的内存资源, 至满足启动所述待启动应用的内存需求: 退出后不会被操作系统重启的进程;
退出后会被操作系统重启的进程。
其中, 在释放退出后不会被操作系统重启的进程占用的内存资源的过程中, 可以 按照各个进程未被使用的时间由长到短的顺序, 依次释放各个进程占用的内存资源。
在释放所述退出后会被操作系统重启的进程占用的内存资源的过程中,可以先按 照各个进程未被使用的时间由长到短的顺序,再按照各个进程退出后被操作系统重启 的周期由长到短的顺序, 依次释放各个进程占用的内存资源。 例如, 进程 A 退出后 重启的周期为 10秒, 而进程 B退出后重启的周期为 20秒, 则优先释放进程 B 占用 的内存资源。
需要说明的是, 在释放内存资源的过程中, 若按照优先级, 只释放部分进程占用 的内存资源即可满足启动待启动应用的内存需求,则可只释放部分进程占用的内存资 源。
在本发明的一个具体实施例中, 还可以通过以下方式释放内存资源:
确定电子设备中已启动的进程;
判断所确定的进程是否包含在预设的进程列表中;
若不包含, 则释放该进程占用的内存资源。
具体的,在进行内存释放时,若判断得知已启动进程未包含在预设的进程列表中, 则释放该进程占用的内存资源,而不能够释放预设的进程列表中的进程占用的内存资 源。
在释放不包含在预设的进程列表中的进程时, 还可以根据不同的优先级进行释 放, 例如:
按照进程占用内存资源的大小;
按照进程退出后是否被重启;
按照进程未被时间的时间等等。
当然, 本申请只是以上述为例进行说明, 实际应用中可以根据具体情况确定进程 的优先级。
S203D : 结束本流程。
由以上可见, 本方案中, 按照优先级依次释放各个进程占用的内存资源至满足启 动待启动应用的内存需求, 提高了内存释放效率, 可有效防止部分内存频繁重启。
图 4为本发明实施例提供的锁屏状态下启动应用的装置的第一种结构示意图,该 装置应用于电子设备, 包括: 锁屏状态检测模块 401、 滑动指令接收模块 402、 滑动 操作检测模块 403、 内存资源提供模块 404、 屏幕解锁模块 405和应用启动模块 406。
其中, 锁屏状态检测模块 401, 用于检测是否处于锁屏状态;
滑动指令接收模块 402, 用于接收针对待启动应用图标的滑动操作指令; 滑动操作检测模块 403, 用于检测针对所述待启动应用图标的滑动操作; 内存资源提供模块 404,用于在所述滑动操作检测模块 403检测到待启动应用图标 的滑动操作满足第一预设条件的情况下, 为启动所述待启动应用提供内存资源; 屏幕解锁模块 405,用于在所述滑动操作检测模块 403检测到待启动应用图标的滑 动操作满足第二预设条件的情况下, 进行屏幕解锁操;。
应用启动模块 406, 用于在所述屏幕解锁模块 405进行屏幕解锁操作之后, 启动所 述待启动应用。
在本发明的一个具体实施例中, 内存资源提供模块 404, 具体用于在所述滑动操 作检测模块 403检测到所述待启动应用图标向预设方向的滑动距离大于预设的第一阈 值的情况下, 为启动所述待启动应用提供内存资源。
在本发明的另一个具体实施例中, 屏幕解锁模块 405, 具体用于在所述滑动操作 检测模块 403检测到所述待启动应用图标向预设方向的滑动距离大于预设的第二阈值 的情况下, 进行屏幕解锁操, 其中, 所述预设的第二阈值大于所述预设的第一阈值。
由以上可见, 本方案中, 锁屏状态下, 在检测得知针对待启动应用图标的滑动操 作满足第二预设条件的情况下, 启动待启动应用。 与现有技术相比, 本方案中, 无需 先解锁, 即可选择待启动应用并滑动待启动应用的图标启动该应用, 因此, 方便了用 户在锁屏状态下启动应用。 同时, 在滑动待启动应用图标的过程中, 针对待启动应用 图标的滑动操作满足第一预设条件时, 为启动待启动应用提供所需内存空间, 而无需 在开始启动应用后再获取内存资源, 提高了启动应用的速度以及用户的体验效果。
在本发明的另一实施例中,提供了图 4所示实施例中内存资源提供模块 404的一 种具体实现方式, 具体参见图 5, 图 5为本发明实施例提供的锁屏状态下启动应用的 装置的第二种结构示意图, 内存资源提供模块 404具体可以包括: 内存需求获得子模 块 4041、 内存确定子模块 4042和内存释放子模块 4043。
其中,内存需求获得子模块 4041,用于获得启动所述待启动应用所需的内存大小; 内存确定子模块 4042,用于确定当前剩余内存资源是否满足启动所述待启动应用 的内存需求;
内存释放子模块 4043, 用于在所述内存确定子模块的确定结果为否的情况下, 直 接释放内存资源, 或根据预设的触发条件释放内存资源, 以满足启动所述待启动应用 的内存需求。
在本发明的一个具体实施例中, 内存释放子模块 404, 具体用于在所述滑动操作 检测模块 403检测到所述待启动应用图标向预设方向的滑动距离大于预设的第三阈值 的情况下, 释放内存资源, 其中, 所述预设的第三阈值的取值范围为: [第一阈值, 第二阈值)。
具体的, 内存需求获得子模块 4041, 用于在本地预设的内存需求列表中, 查询获 得启动所述待启动应用所需的内存大小; 或 用于向服务器端发送内存查询请求信息,从服务器端获得启动所述待启动应用所 需的内存大小, 所述内存查询请求信息中, 携带所述待启动应用的标识。
在本发明的一个具体实施例中, 内存需求获得子模块 4041, 发送的内存查询请求 信息中, 还携带当前电子设备的硬件信息; 所述服务器端, 根据内存查询请求信息中 的待启动应用的标识以及前电子设备的硬件信息,综合确定启动所述待启动应用所需 的内存大小。
具体的, 内存释放子模块 4043可以包括: 第一释放单元和第二释放单元 (图中未 示出)。
内存释放子模块 4043, 用于按照先触发所述第一释放单元, 后触发所述第二释放 单元的顺序, 依次释放当前电子设备中各个进程所占用的内存资源, 至满足启动所述 待启动应用的内存需求;
所述第一释放单元, 用于释放退出后不会被操作系统重启的进程占用的内存资 源;
所述第二释放单元, 用于释放退出后会被操作系统重启的进程占用的内存资源。 在本发明的一个具体实施例中, 第一释放单元, 具体用于在释放所述退出后不会 被操作系统重启的进程占用的内存资源的过程中,按照各个进程未被使用的时间由长 到短的顺序, 依次释放各个进程占用的内存资源。
在本发明的另一个具体实施例中, 第二释放单元, 具体用于在释放所述退出后会 被操作系统重启的进程占用的内存资源的过程中,先按照各个进程未被使用的时间由 长到短的顺序, 再按照各个进程退出后被操作系统重启的周期由长到短的顺序, 依次 释放各个进程占用的内存资源。
在本发明的另一个具体实施例中, 内存释放子模块 404可以包括: 已启动进程确 定单元、 进程标识判断单元和内存释放单元 (图中未示出)。
已启动进程确定单元, 用于确定电子设备中已启动的进程;
进程标识判断单元, 用于判断所确定的进程是否包含在预设的进程列表中; 所述内存释放单元, 用于在所述进程标识判断单元的判断结果为否时, 释放该进 程占用的内存资源。
由以上可见, 本方案中, 按照优先级逐个释放各个进程占用的内存资源至满足启 动待启动应用的内存需求, 提高了内存释放效率, 可有效防止部分内存频繁重启。
对于装置实施例而言, 由于其基本相似于方法实施例, 所以描述的比较简单, 相 关之处参见方法实施例的部分说明即可。
本发明实施例还提供了一种计算机可读存储介质, 包括计算机指令, 当所述计算机指 令被执行时, 使得执行根据本发明实施例的锁屏状态下启动应用的方法。
需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来将一个实 体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之 间存在任何这种实际的关系或者顺序。 而且, 术语"包括"、 "包含 "或者其任何其他变 体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物品或者设备 不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、 方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句 "包括一个 ... ... " 限定的要素, 并不排除在包括所述要素的过程、 方法、 物品或者设备中还存在另外的 相同要素。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可 以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质 中, 这里所称得的存储介质, 如: ROM/RAM, 磁碟、 光盘等。
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范围。 凡在 本发明的精神和原则之内所作的任何修改、 等同替换、 改进等, 均包含在本发明的保 护范围内。

Claims

权利要求书
1、 一种锁屏状态下启动应用的方法, 其特征在于, 应用于电子设备, 所述方法 包括:
检测是否处于锁屏状态;
接收针对待启动应用图标的滑动操作指令;
在针对所述待启动应用图标的滑动操作满足第一预设条件的情况下,为启动所述 待启动应用提供内存资源;
在针对所述待启动应用图标的滑动操作满足第二预设条件的情况下,进行屏幕解 锁操作, 启动所述待启动应用。
2、 根据权利要求 1所述的方法, 其特征在于, 所述在针对所述待启动应用图标的 滑动操作满足第一预设条件的情况下, 为启动所述待启动应用提供内存资源, 包括: 检测所述待启动应用图标向预设方向的滑动距离是否大于预设的第一阈值;若大 于, 为启动所述待启动应用提供内存资源。
3、 根据权利要求 2所述的方法, 其特征在于, 所述在针对所述待启动应用图标的 滑动操作满足第二预设条件的情况下, 进行屏幕解锁操作, 包括:
检测所述待启动应用图标向预设方向的滑动距离是否大于预设的第二阈值,若大 于, 进行屏幕解锁操作, 其中, 所述预设的第二阈值大于所述预设的第一阈值。
4、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述为启动所述待启 动应用提供内存资源, 包括:
获得启动所述待启动应用所需的内存大小;
确定当前剩余内存资源是否满足启动所述待启动应用的内存需求;
若不满足, 则直接释放内存资源, 或根据预设的触发条件释放内存资源, 以满足 启动所述待启动应用的内存需求。
5、 根据权利要求 4所述的方法, 其特征在于, 所述根据预设的触发条件释放内存 资源, 包括:
当所述待启动应用图标向预设方向的滑动距离大于预设的第三阈值时,释放内存 资源, 其中, 所述预设的第三阈值的取值范围为: [第一阈值, 第二阈值)。
6、 根据权利要求 4或 5所述的方法, 其特征在于, 所述获得启动所述待启动应用 所需的内存大小, 包括:
在本地预设的内存需求列表中, 查询获得启动所述待启动应用所需的内存大小; 或
向服务器端发送内存查询请求信息,从服务器端获得启动所述待启动应用所需的 内存大小, 所述内存查询请求信息中, 携带所述待启动应用的标识。
7、 根据权利要求 6所述的方法, 其特征在于,
所述内存查询请求信息中, 还携带当前电子设备的硬件信息;
所述服务器端,根据内存查询请求信息中的待启动应用的标识以及当前电子设备 的硬件信息, 综合确定启动所述待启动应用所需的内存大小。
8、 根据权利要求 4至 7中任一项所述的方法, 其特征在于, 所述释放内存资源, 包括:
按照先释放退出后不会被操作系统重启的进程占用的内存资源,后释放退出后会 被操作系统重启的进程占用的内存资源的顺序,依次释放当前电子设备中各个进程所 占用的内存资源, 至满足启动所述待启动应用的内存需求:
退出后不会被操作系统重启的进程;
退出后会被操作系统重启的进程。
9、 根据权利要求 8所述的方法, 其特征在于, 在释放所述退出后不会被操作系统 重启的进程占用的内存资源的过程中, 按照各个进程未被使用的时间由长到短的顺 序, 依次释放各个进程占用的内存资源。
10、 根据权利要求 8所述的方法, 其特征在于, 在释放所述退出后会被操作系统 重启的进程占用的内存资源的过程中,先按照各个进程未被使用的时间由长到短的顺 序, 再按照各个进程退出后被操作系统重启的周期由长到短的顺序, 依次释放各个进 程占用的内存资源。
11、 根据权利要求 4至 7中任一项所述的方法, 其特征在于, 所述释放内存资源, 包括:
确定电子设备中已启动的进程;
判断所确定的进程是否包含在预设的进程列表中;
若不包含, 则释放该进程占用的内存资源。
12、 一种锁屏状态下启动应用的装置, 其特征在于, 应用于电子设备, 所述装置 包括:
锁屏状态检测模块, 用于检测是否处于锁屏状态;
滑动指令接收模块, 用于接收针对待启动应用图标的滑动操作指令;
滑动操作检测模块, 用于检测针对所述待启动应用图标的滑动操作;
内存资源提供模块,用于在所述滑动操作检测模块检测到待启动应用图标的滑动 操作满足第一预设条件的情况下, 为启动所述待启动应用提供内存资源;
屏幕解锁模块,用于在所述滑动操作检测模块检测到待启动应用图标的滑动操作 满足第二预设条件的情况下, 进行屏幕解锁操;
应用启动模块, 用于在所述屏幕解锁模块进行屏幕解锁操作之后, 启动所述待启 动应用。
13、 根据权利要求 12所述的装置, 其特征在于, 所述内存资源提供模块, 具体用 于在所述滑动操作检测模块检测到所述待启动应用图标向预设方向的滑动距离大于 预设的第一阈值的情况下, 为启动所述待启动应用提供内存资源。
14、 根据权利要求 13所述的装置, 其特征在于, 所述屏幕解锁模块, 具体用于在 所述滑动操作检测模块检测到所述待启动应用图标向预设方向的滑动距离大于预设 的第二阈值的情况下, 进行屏幕解锁操, 其中, 所述预设的第二阈值大于所述预设的 第一阈值。
15、 根据权利要求 12至 14中任一项所述的装置, 其特征在于, 所述内存资源提供 模块, 包括: 内存需求获得子模块、 内存确定子模块和内存释放子模块;
所述内存需求获得子模块, 用于获得启动所述待启动应用所需的内存大小; 所述内存确定子模块,用于确定当前剩余内存资源是否满足启动所述待启动应用 的内存需求;
所述内存释放子模块, 用于在所述内存确定子模块的确定结果为否的情况下, 直 接释放内存资源, 或根据预设的触发条件释放内存资源, 以满足启动所述待启动应用 的内存需求。
16、 根据权利要求 15所述的装置, 其特征在于, 所述内存释放子模块, 具体用于 在所述滑动操作检测模块检测到所述待启动应用图标向预设方向的滑动距离大于预 设的第三阈值的情况下, 释放内存资源, 其中, 所述预设的第三阈值的取值范围为: [第一阈值, 第二阈值)。
17、 根据权利要求 15或 16所述的装置, 其特征在于,
所述内存需求获得子模块, 用于在本地预设的内存需求列表中, 查询获得启动所 述待启动应用所需的内存大小; 或
用于向服务器端发送内存查询请求信息,从服务器端获得启动所述待启动应用所 需的内存大小, 所述内存查询请求信息中, 携带所述待启动应用的标识。
18、 根据权利要求 17所述的装置, 其特征在于,
所述内存需求获得子模块发送的内存查询请求信息中,还携带当前电子设备的硬 件信息; 所述服务器端, 根据内存查询请求信息中的待启动应用的标识以及当前电子 设备的硬件信息, 综合确定启动所述待启动应用所需的内存大小。
19、 根据权利要求 15至 18中任一项所述的装置, 其特征在于, 所述内存释放子模 块, 包括: 第一释放单元和第二释放单元;
所述内存释放子模块, 用于按照先触发所述第一释放单元, 后触发所述第二释放 单元的顺序, 依次释放当前电子设备中各个进程所占用的内存资源, 至满足启动所述 待启动应用的内存需求;
所述第一释放单元, 用于释放退出后不会被操作系统重启的进程占用的内存资 源;
所述第二释放单元, 用于释放退出后会被操作系统重启的进程占用的内存资源。
20、 根据权利要求 19所述的装置, 其特征在于,
所述第一释放单元,具体用于在释放所述退出后不会被操作系统重启的进程占用 的内存资源的过程中, 按照各个进程未被使用的时间由长到短的顺序, 依次释放各个 进程占用的内存资源。
21、 根据权利要求 19所述的装置, 其特征在于,
所述第二释放单元,具体用于在释放所述退出后会被操作系统重启的进程占用的 内存资源的过程中, 先按照各个进程未被使用的时间由长到短的顺序, 再按照各个进 程退出后被操作系统重启的周期由长到短的顺序, 依次释放各个进程占用的内存资 源。
22、 根据权利要求 15至 18中任一项所述的装置, 其特征在于, 所述内存释放子模 块, 包括: 已启动进程确定单元、 进程标识判断单元和内存释放单元;
所述已启动进程确定单元, 用于确定电子设备中已启动的进程;
所述进程标识判断单元, 用于判断所确定的进程是否包含在预设的进程列表中; 所述内存释放单元, 用于在所述进程标识判断单元的判断结果为否时, 释放该进 程占用的内存资源。
23、 一种计算机可读存储介质, 包括计算机指令, 当所述计算机指令被执行时, 使得执 行权利要求 1至 11中任一项所述的锁屏状态下启动应用的方法。
PCT/CN2014/084572 2014-02-14 2014-08-15 锁屏状态下启动应用的方法及装置 WO2015120707A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/105,347 US10551996B2 (en) 2014-02-14 2014-08-15 Method and apparatus for starting an application in a screen-locked state

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410052564.X 2014-02-14
CN201410052564.XA CN103777871B (zh) 2014-02-14 2014-02-14 一种锁屏状态下启动应用的方法及装置

Publications (1)

Publication Number Publication Date
WO2015120707A1 true WO2015120707A1 (zh) 2015-08-20

Family

ID=50570184

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084572 WO2015120707A1 (zh) 2014-02-14 2014-08-15 锁屏状态下启动应用的方法及装置

Country Status (3)

Country Link
US (1) US10551996B2 (zh)
CN (1) CN103777871B (zh)
WO (1) WO2015120707A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777871B (zh) 2014-02-14 2017-10-10 北京猎豹移动科技有限公司 一种锁屏状态下启动应用的方法及装置
CN104268451A (zh) * 2014-09-11 2015-01-07 深圳市中兴移动通信有限公司 一种移动终端及其应用的快捷启动方法和装置
CN106155531A (zh) * 2015-04-20 2016-11-23 中国移动通信集团终端有限公司 一种终端锁屏时控制应用程序的方法及装置
CN105045465A (zh) * 2015-07-10 2015-11-11 中兴通讯股份有限公司 解锁界面快速进入应用的方法及终端
CN105159666B (zh) * 2015-08-07 2019-05-14 深圳市金立通信设备有限公司 一种解锁方法及终端
US20170195736A1 (en) 2015-12-31 2017-07-06 Opentv, Inc. Systems and methods for enabling transitions between items of content
CN112969216A (zh) * 2016-03-22 2021-06-15 华为技术有限公司 限制应用程序使用的方法和终端
KR102379313B1 (ko) * 2017-08-23 2022-03-28 삼성전자주식회사 어플리케이션을 표시하기 위한 전자 장치 및 그의 동작 방법
CN109426424A (zh) * 2017-08-31 2019-03-05 阿里巴巴集团控股有限公司 一种终端设备的操作方法、装置以及电子设备
CN110968355A (zh) * 2018-09-29 2020-04-07 深圳市诚壹科技有限公司 应用程序的启动方法、启动装置及终端
KR102557267B1 (ko) * 2018-10-12 2023-07-20 삼성전자주식회사 메모리의 저장 용량을 확보하기 위한 디스플레이 장치
CN112671976B (zh) * 2019-09-30 2023-01-13 华为技术有限公司 电子设备的控制方法、装置及电子设备、存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306095A (zh) * 2011-07-21 2012-01-04 宇龙计算机通信科技(深圳)有限公司 应用程序管理方法和终端
CN102880489A (zh) * 2012-09-13 2013-01-16 百度在线网络技术(北京)有限公司 移动终端的应用程序启动方法、装置和移动终端
JP2013041512A (ja) * 2011-08-18 2013-02-28 Kyocera Corp 携帯電子機器、制御方法、および、制御プログラム
CN103186332A (zh) * 2011-12-28 2013-07-03 宏碁股份有限公司 屏幕解锁方法
CN103513861A (zh) * 2012-06-29 2014-01-15 联想(北京)有限公司 一种信息处理的方法及一种电子设备
CN103761036A (zh) * 2014-02-14 2014-04-30 贝壳网际(北京)安全技术有限公司 一种用于启动应用的方法及装置
CN103777871A (zh) * 2014-02-14 2014-05-07 贝壳网际(北京)安全技术有限公司 一种锁屏状态下启动应用的方法及装置

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5313578A (en) * 1990-12-23 1994-05-17 Motorola, Inc. Portable interprocess communication facility
US6038571A (en) * 1996-01-31 2000-03-14 Kabushiki Kaisha Toshiba Resource management method and apparatus for information processing system of multitasking facility
US6412021B1 (en) * 1998-02-26 2002-06-25 Sun Microsystems, Inc. Method and apparatus for performing user notification
US6941437B2 (en) * 2001-07-19 2005-09-06 Wind River Systems, Inc. Memory allocation scheme
US7143413B2 (en) * 2002-05-15 2006-11-28 Hewlett-Packard Development Company, L.P. Method and system for allocating system resources among applications using weights
US20040023646A1 (en) * 2002-07-31 2004-02-05 Satoshi Inami Information processing terminal and information processing method
WO2005071522A1 (ja) * 2004-01-27 2005-08-04 Nec Corporation 高速再起動方法および情報処理装置ならびにプログラム
US7155583B2 (en) * 2004-02-25 2006-12-26 Research In Motion Limited Memory management system and method for a mobile device
US7480870B2 (en) * 2005-12-23 2009-01-20 Apple Inc. Indication of progress towards satisfaction of a user input condition
US9049302B2 (en) * 2007-01-07 2015-06-02 Apple Inc. Portable multifunction device, method, and graphical user interface for managing communications received while in a locked state
US8522249B2 (en) * 2007-06-27 2013-08-27 Bluestreak Technology, Inc. Management of software implemented services in processor-based devices
US8539382B2 (en) * 2009-04-03 2013-09-17 Palm, Inc. Preventing unintentional activation and/or input in an electronic device
US20100333043A1 (en) * 2009-06-25 2010-12-30 Motorola, Inc. Terminating a Communication Session by Performing a Gesture on a User Interface
US11165963B2 (en) * 2011-06-05 2021-11-02 Apple Inc. Device, method, and graphical user interface for accessing an application in a locked device
CN103164133A (zh) * 2011-12-14 2013-06-19 富泰华工业(深圳)有限公司 触摸屏电子装置及其控制方法
US9213822B2 (en) * 2012-01-20 2015-12-15 Apple Inc. Device, method, and graphical user interface for accessing an application in a locked device
US20130346921A1 (en) * 2012-06-26 2013-12-26 Google Inc. Light field lockscreen
CN103677503B (zh) * 2012-09-14 2015-10-21 腾讯科技(深圳)有限公司 界面组件的触发运行方法和装置
CN102929532B (zh) * 2012-09-29 2015-07-22 东莞宇龙通信科技有限公司 应用程序的启动方法及通信终端
CN103488383B (zh) * 2013-09-27 2017-01-04 深圳市金立通信设备有限公司 一种界面操作方法及终端设备
CN103530235B (zh) * 2013-10-18 2017-04-12 北京奇虎科技有限公司 移动终端中清理内存的方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306095A (zh) * 2011-07-21 2012-01-04 宇龙计算机通信科技(深圳)有限公司 应用程序管理方法和终端
JP2013041512A (ja) * 2011-08-18 2013-02-28 Kyocera Corp 携帯電子機器、制御方法、および、制御プログラム
CN103186332A (zh) * 2011-12-28 2013-07-03 宏碁股份有限公司 屏幕解锁方法
CN103513861A (zh) * 2012-06-29 2014-01-15 联想(北京)有限公司 一种信息处理的方法及一种电子设备
CN102880489A (zh) * 2012-09-13 2013-01-16 百度在线网络技术(北京)有限公司 移动终端的应用程序启动方法、装置和移动终端
CN103761036A (zh) * 2014-02-14 2014-04-30 贝壳网际(北京)安全技术有限公司 一种用于启动应用的方法及装置
CN103777871A (zh) * 2014-02-14 2014-05-07 贝壳网际(北京)安全技术有限公司 一种锁屏状态下启动应用的方法及装置

Also Published As

Publication number Publication date
CN103777871A (zh) 2014-05-07
CN103777871B (zh) 2017-10-10
US20160349962A1 (en) 2016-12-01
US10551996B2 (en) 2020-02-04

Similar Documents

Publication Publication Date Title
WO2015120707A1 (zh) 锁屏状态下启动应用的方法及装置
WO2015120705A1 (zh) 用于启动应用的方法及装置
US10268515B2 (en) Releasing resources from processes in a particular order to provide required resources to start an application
EP3144811B1 (en) Control method for intelligent terminal
RU2663338C1 (ru) Способ для открывания файла в папке и терминал
WO2013155988A1 (zh) 一种启动应用程序的方法及具有触摸显示屏的终端设备
WO2018006712A1 (zh) 一种电子设备控制方法及电子设备
JP2014523224A5 (zh)
JP2010520528A5 (zh)
JP2015515682A5 (zh)
US10691390B2 (en) Method and device for video rendering
JP2011523114A5 (zh)
WO2017028392A1 (zh) 电子设备操作方法及装置
WO2017101332A1 (zh) 后台任务触发方法及装置
WO2018000500A1 (zh) 应用程序的管理方法、管理装置及移动终端
WO2011029375A1 (zh) 一种任务栏按钮的管理方法及装置
US9940269B2 (en) Conditionally releasing locks in response to requests
US9501338B2 (en) Method and apparatus for managing processes
WO2017101336A1 (zh) 快捷开关的控制方法及装置
CN103150083B (zh) 一种自定义桌面图标的显示方法及装置
US20160048389A1 (en) System and method for supporting part replacement
WO2017101502A1 (zh) 一种终端控制方法及装置
JP2014044526A5 (zh)
CN106776050B (zh) 多用户进程互斥方法及装置
WO2019071616A1 (zh) 一种处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14882439

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15105347

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 21.10.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14882439

Country of ref document: EP

Kind code of ref document: A1