WO2017177494A1 - Method and apparatus for managing application icons, and computer storage medium - Google Patents

Method and apparatus for managing application icons, and computer storage medium Download PDF

Info

Publication number
WO2017177494A1
WO2017177494A1 PCT/CN2016/081617 CN2016081617W WO2017177494A1 WO 2017177494 A1 WO2017177494 A1 WO 2017177494A1 CN 2016081617 W CN2016081617 W CN 2016081617W WO 2017177494 A1 WO2017177494 A1 WO 2017177494A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressing operation
application icon
range
pressure
value corresponding
Prior art date
Application number
PCT/CN2016/081617
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2017177494A1 publication Critical patent/WO2017177494A1/en

Links

Images

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
    • 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
    • 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 intelligent mobile terminal management technologies, and in particular, to a method, an apparatus, and a computer storage medium for managing application icons.
  • the smart mobile terminal supports long-pressing and dragging an application icon on the standby desktop, by which the user can drag the application icon to a favorite location to adjust the desktop layout, or delete the application icon or even uninstall the application software.
  • these icons may be displaced or accidentally deleted due to misoperation.
  • Embodiments of the present invention are directed to providing a method and apparatus for managing an application icon, which locks and unlocks an application icon according to the weight of the user's pressing force, thereby preventing the application icon from being dragged or arbitrarily deleted.
  • an embodiment of the present invention provides a method for managing an application icon, where the method includes:
  • the locked state of the application icon is controlled according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  • the pressure range in which the pressure value corresponding to the pressing operation is in accordance with a preset control policy controls the locking state of the application icon including:
  • the determining the pressure range in which the pressure value corresponding to the pressing operation is located includes:
  • the pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
  • the determining the pressure range in which the pressure value corresponding to the pressing operation is performed according to the preset range interval includes:
  • the preset range interval Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
  • the setting corresponding to the lock status flag corresponding to the application icon according to the preset control policy according to the pressure range in which the pressure value corresponding to the pressing operation is performed includes:
  • the locking state flag corresponding to the application icon is set to be used to represent that the application icon is locked state
  • the locking state flag corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
  • the lock status flag corresponding to the application icon is set to be used to represent that the application icon is locked.
  • the locked state corresponding to the application icon is an unlocked state
  • the locked state corresponding to the application icon is The lock status represented by the flag bit is set to the locked state.
  • the lock status flag corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
  • the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
  • the embodiment of the present invention further provides an apparatus for managing an application icon, where the apparatus includes: an obtaining module, a determining module, and an executing module;
  • the obtaining module is configured to receive a button for any application icon displayed on the touch screen Pressing the operation and obtaining the duration of the pressing operation;
  • the determining module is configured to determine a pressure range in which the pressure value corresponding to the pressing operation is when the duration of the pressing operation belongs to a preset time range;
  • the execution module is configured to control a locked state of the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  • the acquiring module is configured to acquire a lock state flag bit of a lock state corresponding to the application icon, where the lock state includes: a locked state and an unlocked state, where the lock state flag indicates Describe the lock status corresponding to the application icon;
  • the execution module is configured to perform a setting corresponding to a lock status flag corresponding to the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  • the determining module is configured to detect a pressure value corresponding to the pressing operation
  • the determining module is configured to calculate a relative value of the pressing operation pressure according to the pressure value corresponding to the pressing operation
  • the preset range interval Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
  • the execution module is configured to set a lock status flag corresponding to the application icon to represent the application when the pressure range in which the pressure value corresponding to the pressing operation is in the first range. The icon is locked;
  • the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
  • the execution module is configured to: when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the lock state indicated by the lock status flag corresponding to the application icon is the locked state , the lock status flag corresponding to the application icon is not changed;
  • the application icon is correspondingly The lock status flag indicates that the lock status is set to the locked status.
  • the execution module is configured to: when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the lock state indicated by the lock status flag corresponding to the application icon is the unlocked state , the lock status flag corresponding to the application icon is not changed;
  • the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used in one or more of the foregoing methods for managing application icons.
  • the embodiment of the invention provides a method, a device and a computer storage medium for managing an application icon.
  • the relative value of the pressing operation pressure is calculated by the pressure value corresponding to the pressing operation, and the pressing operation determines whether the pressing operation is light pressure or medium pressure according to the relative value of the pressing operation pressure.
  • the corresponding icon is locked or unlocked, so that the application icon can be locked or unlocked conveniently and quickly, and the application icon is prevented from being dragged or deleted by mistake.
  • FIG. 1 is a flowchart of a specific implementation of a method for managing an application icon according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a preset time range according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of responding to a pressing operation according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of another response to a pressing operation according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of setting a lock status flag according to a pressure range according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a method for managing an application icon according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an apparatus for managing an application icon according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for managing an application icon.
  • the method may be applied to a terminal device having a touch display screen. As shown in FIG. 1 , the method may include:
  • the user of the terminal device operates the application software by pressing the application icon through the touch screen.
  • the terminal device acquires the duration of the pressing operation of the application icon according to the length of time the user presses the application icon, and determines whether the user long presses the application icon.
  • step S102 Determine whether the duration of the pressing operation belongs to a preset time range.
  • step S103 is performed; when the duration of the pressing operation belongs to In the preset time range, steps S104 to S106 are performed.
  • the preset time range is between a preset first time threshold and a preset second time threshold.
  • the preset time range here is used to determine the length of time the user presses the application icon.
  • step S103 includes steps S1031 and S1032:
  • the lock status flag corresponding to the application icon is used to represent a lock state in which the current application icon is located, wherein when the lock status flag is 1, it indicates that the current application icon is in a locked state; when the lock status flag is 0 , indicating that the current app icon is unlocked.
  • the responding to the pressing operation according to the locking status flag corresponding to the application icon may include steps S10311 and S10312:
  • the terminal device determines that the locked state represented by the lock status flag corresponding to the application icon is the locked state, it indicates that the application icon has been locked. At this time, the terminal device does not respond to the long press operation of the user and does not modify the lock status flag corresponding to the application icon, and keeps the application icon locked state.
  • the terminal device determines that the locked state represented by the lock status flag corresponding to the application icon is an unlocked state, it indicates that the application icon is not currently locked. At this time, the terminal device performs a drag and drop operation on the application icon in response to the user's long press operation.
  • S1032 Respond to the pressing operation when a duration of the pressing operation is less than a preset first time threshold.
  • step S104 may specifically include:
  • the pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
  • the terminal device detects the pressing force value corresponding to the pressing operation through the touch screen.
  • the duration of the application icon receiving the pressing operation within the preset time range indicates that the user has not continuously pressed the application icon.
  • the terminal device determines a pressure relative value of the application icon and determines a pressure range of the pressure relative value by detecting a pressing force value corresponding to the pressing operation.
  • the specific implementation process of determining the pressure range in which the pressure value corresponding to the pressing operation is performed according to the preset range interval may include:
  • the preset range interval Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is in accordance with the pressing operation pressure relative value; wherein the preset range interval is exemplified by two ranges, including: the first range And the second range.
  • the terminal device calculates the pressing operation pressure relative value according to the detected pressure value corresponding to the pressing operation.
  • the pressing operation pressure relative value is a ratio of the pressure value corresponding to the pressing operation to the maximum pressure value that the touch screen of the terminal device can withstand, and the value ranges from (0, 1).
  • the pressure value of the current user pressing the application icon is 200 g, that is, the pressure value corresponding to the pressing operation is 200 g, and the maximum pressure value that the touch screen of the terminal device can withstand is 500 g.
  • the pressure range in which the pressure value corresponding to the pressing operation is located is divided into a first range and a second range according to a preset range interval, wherein the first range is a light pressure and the second range is a medium pressure.
  • the relative value of the pressing operation pressure is in the range of (0, 0.5)
  • it is a light pressure
  • the relative value of the pressing operation pressure is in the range of (0.5, 1), it belongs to the medium pressure.
  • the pressure range corresponding to the pressure value of the pressing operation is used to: when the pressure range is the first range, that is, when it is light pressure, the current application icon is locked; when the pressure range is the second range, it belongs to the medium pressure. When you unlock the current app icon.
  • the lock state includes a locked state and an unlocked state, and the locked state flag represents a locked state corresponding to the application icon.
  • S106 Perform, according to a preset control strategy, a setting corresponding to a lock status flag corresponding to the application icon according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  • step S106 includes steps S1061 and S1062:
  • step S1061 may include:
  • the locked state corresponding to the application icon is an unlocked state
  • the locked state corresponding to the application icon is The lock status represented by the flag bit is set to the locked state.
  • the application icon is not changed.
  • the lock status flag is set such that the application icon remains locked; the lock status represented by the lock status flag corresponding to the application icon is set to a locked state for locking the application icon.
  • step S1062 may include:
  • the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
  • the lock status flag corresponding to the application icon is not changed, so that the application icon remains in an unlocked state; and the lock status flag corresponding to the application icon is represented.
  • the lock status is set to an unlocked state to unlock the application icon.
  • steps S105 and S106 are specifically implemented: controlling the locked state of the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  • the setting of the lock status flag is taken as an example.
  • the lock status flag is not limited to the lock status flag, and the lock status of the application icon may be controlled by using other specific flag bits.
  • An embodiment of the present invention provides a method for managing an application icon.
  • the relative value of the pressing operation pressure is calculated by the pressure value corresponding to the pressing operation, and the pressing operation is determined according to the relative value of the pressing operation pressure, and the pressing operation is light pressure or medium pressure, and the application icon is correspondingly executed.
  • Locking or unlocking operation It is convenient and quick to lock or unlock the application icon to prevent the application icon from being dragged or deleted by mistake. The study found that a large number of misoperations have the phenomenon of random pressing time and random pressing force; for example, the pressing time is short and the pressing force is small, for example, the mobile phone and the key are placed in the pocket, and the user is in the process of taking the key.
  • the touch operation causes the pressure value detected by the device to be small.
  • the duration and pressure of the pressing operation must be within the corresponding range, otherwise The icon in the locked state is not moved for control, and the random movement or deletion of the icon caused by the above touch is skillfully solved.
  • An embodiment of the present invention provides a method for managing an application icon.
  • the method may be applied to a terminal device having a touch display screen. As shown in FIG. 6, the method may include:
  • step S203 the pressure range in which the pressure value corresponding to the pressing operation is in accordance with a preset control policy controls the locking state of the application icon, including:
  • step S202 the pressure range in which the pressure value corresponding to the pressing operation is determined is determined, and the specific implementation process includes:
  • the pressure value corresponding to the pressing operation is detected.
  • the pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
  • the pressure range in which the pressure value corresponding to the pressing operation is determined according to the preset range interval includes:
  • the preset range interval Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
  • step S203 according to the pressure range in which the pressure value corresponding to the pressing operation is performed, the setting corresponding to the locking state flag bit corresponding to the application icon is performed according to a preset control policy, and the specific implementation process includes:
  • the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in a locked state
  • the locking state flag corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
  • the lock status flag corresponding to the application icon is set to be used to represent that the application icon is locked.
  • the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state, include:
  • the locking state corresponding to the application icon is The lock status represented by the flag bit is set to an unlocked state, and the application icon is unlocked.
  • An embodiment of the present invention provides a method for managing an application icon.
  • the relative value of the pressing operation pressure is calculated by the pressure value corresponding to the pressing operation, and the pressing operation is determined according to the relative value of the pressing operation pressure, and the pressing operation is light pressure or medium pressure, and the application icon is correspondingly executed.
  • the locking or unlocking operation can conveniently and quickly lock or unlock the application icon to prevent the application icon from being dragged or deleted by mistake.
  • an embodiment of the present invention provides an apparatus 7 for managing an application icon, where the apparatus for managing an application icon includes: an obtaining module 701, a determining module 702, and an executing module 703;
  • the obtaining module 701 is configured to receive a pressing operation for any application icon displayed on the touch screen, and acquire a duration of the pressing operation;
  • the determining module 702 is configured to: when the duration of the pressing operation belongs to a preset time a range of pressures at which the pressure value corresponding to the pressing operation is determined;
  • the execution module 703 is configured to control the locked state of the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  • the obtaining module 701 is configured to acquire a lock state flag bit of a lock state corresponding to the application icon, where the lock state includes: a locked state and an unlocked state, and the lock state flag bit Characterizing a lock state corresponding to the application icon;
  • the executing module 703 is configured to perform, according to a preset control policy, a setting corresponding to a lock status flag corresponding to the application icon according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  • the determining module 702 is configured to detect a pressure value corresponding to the pressing operation.
  • the pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
  • the determining module 702 is configured to calculate a relative value of the pressing operation pressure according to the pressure value corresponding to the pressing operation;
  • the preset range interval Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
  • the execution module 703 is configured to set the lock status flag corresponding to the application icon to be used for the representation when the pressure range in which the pressure value corresponding to the pressing operation is in the first range.
  • the application icon is locked;
  • the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
  • the execution module 703 is configured to be a pressure corresponding to the pressing operation.
  • the pressure range in which the value is located is the first range, and the lock state indicated by the lock state flag bit of the application icon is the locked state, the lock state flag bit corresponding to the application icon is not changed;
  • the application icon is correspondingly The lock status flag indicates that the lock status is set to the locked status.
  • the execution module 703 is configured to: when the pressure value corresponding to the pressing operation is in the second range, and the lock status flag corresponding to the application icon is locked In the state, the lock status flag corresponding to the application icon is not changed;
  • the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
  • the description of the device for managing the application icon provided by the embodiment of the present invention may be described with reference to the method for managing the application icon in the first embodiment, and details are not described herein again.
  • the obtaining module 701, the determining module 702, and the executing module 703 may each be a Central Processing Unit (CPU) or a Micro Processor Unit (MPU) located in the device 7 for managing application icons. , Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • An embodiment of the present invention provides a device for managing an application icon.
  • the relative value of the pressing operation pressure is calculated by the pressure value corresponding to the pressing operation, and the pressing operation is determined according to the relative value of the pressing operation pressure, and the pressing operation is light pressure or medium pressure, and the application icon is correspondingly executed. Locking or unlocking operation, so that the application icon can be locked or unlocked conveniently and quickly, avoiding the application icon being dragged or mistaken at will. delete.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute one or more of the foregoing methods for managing application icons, for example, performing The method shown in Figures 1 to 6.
  • the storage medium may include various storage media such as an optical disk or a magnetic disk or a flash disk, and may be a non-transitory storage medium.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation The steps of a function specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.

Abstract

A method and an apparatus for managing application icons, and a computer storage medium. The method comprises: receiving a press operation on any application icon displayed on a touch screen and obtaining duration of the press operation (201); determining, when the duration of the press operation is within a preset time range, a pressure range within which a pressure value corresponding to the press operation falls (202); locking or unlocking the application icon according to a preset control strategy on the basis of the pressure range within which the pressure value corresponding to the press operation falls (203).

Description

管理应用图标的方法、装置和计算机存储介质Method, device and computer storage medium for managing application icons 技术领域Technical field
本发明涉及智能移动终端管理技术领域,尤其涉及一种管理应用图标的方法、装置和计算机存储介质。The present invention relates to the field of intelligent mobile terminal management technologies, and in particular, to a method, an apparatus, and a computer storage medium for managing application icons.
背景技术Background technique
随着智能移动终端各种产品的普及以及各类应用软件的快速更新,智能移动终端的待机桌面中有各种不同类别的应用图标。目前用户通常都需要手动拖拽应用图标将应用软件进行整理,整理过程比较繁琐。With the popularity of various products of smart mobile terminals and the rapid update of various application softwares, there are various types of application icons in the standby desktop of the smart mobile terminal. At present, users usually need to manually drag and drop application icons to organize the application software, and the finishing process is cumbersome.
现有技术中,智能移动终端支持在待机桌面长按拖动应用图标,通过该操作用户可以将应用图标拖动到喜欢的位置来调整桌面布局,也可以删除应用图标甚至卸载应用软件。但是实际应用过程中发现,这些图标可能因误操作出现位移或者误删除。In the prior art, the smart mobile terminal supports long-pressing and dragging an application icon on the standby desktop, by which the user can drag the application icon to a favorite location to adjust the desktop layout, or delete the application icon or even uninstall the application software. However, during the actual application process, these icons may be displaced or accidentally deleted due to misoperation.
发明内容Summary of the invention
本发明实施例期望提供一种管理应用图标的方法和装置,根据用户按压力度的轻重锁定和解锁应用图标,避免了应用图标被随意拖动或误删。Embodiments of the present invention are directed to providing a method and apparatus for managing an application icon, which locks and unlocks an application icon according to the weight of the user's pressing force, thereby preventing the application icon from being dragged or arbitrarily deleted.
本发明的技术方案是这样实现的:The technical solution of the present invention is implemented as follows:
第一方面,本发明实施例提供了一种管理应用图标的方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for managing an application icon, where the method includes:
接收针对触摸屏上所显示的任一应用图标的按压操作,并获取所述按压操作的持续时间;Receiving a pressing operation for any of the application icons displayed on the touch screen, and obtaining a duration of the pressing operation;
当所述按压操作的持续时间属于预设的时间范围时,确定所述按压操作对应的压力值所处的压力范围; Determining a pressure range in which the pressure value corresponding to the pressing operation is when the duration of the pressing operation belongs to a preset time range;
根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制。And according to a preset control strategy, the locked state of the application icon is controlled according to a pressure range in which the pressure value corresponding to the pressing operation is located.
上述方案中,所述根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制,包括:In the above solution, the pressure range in which the pressure value corresponding to the pressing operation is in accordance with a preset control policy controls the locking state of the application icon, including:
获取所述应用图标对应的锁定状态的锁定状态标志位;其中,所述锁定状态包括:已锁定状态和未锁定状态,所述锁定状态标志位表征所述应用图标相对应的锁定状态;Obtaining a lock status flag bit of the lock state corresponding to the application icon; wherein the lock state includes: a locked state and an unlocked state, the lock state flag bit characterizing a lock state corresponding to the application icon;
根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置。And setting, according to a preset control strategy, a setting corresponding to a lock status flag corresponding to the application icon according to a pressure range in which the pressure value corresponding to the pressing operation is located.
上述方案中,所述确定所述按压操作对应的压力值所处的压力范围,具体包括:In the above solution, the determining the pressure range in which the pressure value corresponding to the pressing operation is located includes:
检测所述按压操作对应的压力值;Detecting a pressure value corresponding to the pressing operation;
按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围。The pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
上述方案中,所述按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围,包括:In the above solution, the determining the pressure range in which the pressure value corresponding to the pressing operation is performed according to the preset range interval includes:
根据所述按压操作对应的压力值计算按压操作压力相对值;Calculating a relative value of the pressing operation pressure according to the pressure value corresponding to the pressing operation;
根据所述按压操作压力相对值按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围;其中预设的范围区间包括:第一范围和第二范围。Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
上述方案中,所述根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置,包括:In the above solution, the setting corresponding to the lock status flag corresponding to the application icon according to the preset control policy according to the pressure range in which the pressure value corresponding to the pressing operation is performed includes:
当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状 态;When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, the locking state flag corresponding to the application icon is set to be used to represent that the application icon is locked state;
当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the locking state flag corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
上述方案中,所述当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态,包括:In the above solution, when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, the lock status flag corresponding to the application icon is set to be used to represent that the application icon is locked. ,include:
当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则不改变所述应用图标对应的锁定状态标志位;When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the lock corresponding to the application icon is not changed. Status flag
当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为已锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag corresponding to the application icon is an unlocked state, the locked state corresponding to the application icon is The lock status represented by the flag bit is set to the locked state.
上述方案中,所述当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态,包括:In the above solution, when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the lock status flag corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state. ,include:
当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则不改变所述应用图标对应的锁定状态标志位;When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is an unlocked state, the lock corresponding to the application icon is not changed. Status flag
当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
第二方面,本发明实施例还提供了一种管理应用图标的装置,所述装置包括:获取模块、确定模块和执行模块;其中,In a second aspect, the embodiment of the present invention further provides an apparatus for managing an application icon, where the apparatus includes: an obtaining module, a determining module, and an executing module;
所述获取模块,配置为接收针对触摸屏上所显示的任一应用图标的按 压操作,并获取所述按压操作的持续时间;The obtaining module is configured to receive a button for any application icon displayed on the touch screen Pressing the operation and obtaining the duration of the pressing operation;
所述确定模块,配置为当所述按压操作的持续时间属于预设的时间范围时,确定所述按压操作对应的压力值所处的压力范围;The determining module is configured to determine a pressure range in which the pressure value corresponding to the pressing operation is when the duration of the pressing operation belongs to a preset time range;
所述执行模块,配置为根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制。The execution module is configured to control a locked state of the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
上述方案中,所述获取模块,配置为获取所述应用图标对应的锁定状态的锁定状态标志位;其中,所述锁定状态包括:已锁定状态和未锁定状态,所述锁定状态标志位表征所述应用图标相对应的锁定状态;In the above solution, the acquiring module is configured to acquire a lock state flag bit of a lock state corresponding to the application icon, where the lock state includes: a locked state and an unlocked state, where the lock state flag indicates Describe the lock status corresponding to the application icon;
所述执行模块,配置为根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置。The execution module is configured to perform a setting corresponding to a lock status flag corresponding to the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
上述方案中,所述确定模块,配置为检测所述按压操作对应的压力值;In the above solution, the determining module is configured to detect a pressure value corresponding to the pressing operation;
以及,按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围。And determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located.
上述方案中,所述确定模块,配置为根据所述按压操作对应的压力值计算按压操作压力相对值;以及,In the above solution, the determining module is configured to calculate a relative value of the pressing operation pressure according to the pressure value corresponding to the pressing operation; and
根据所述按压操作压力相对值按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围;其中预设的范围区间包括:第一范围和第二范围。Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
上述方案中,所述执行模块,配置为当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态;In the above solution, the execution module is configured to set a lock status flag corresponding to the application icon to represent the application when the pressure range in which the pressure value corresponding to the pressing operation is in the first range. The icon is locked;
以及,当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态。 And, when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
上述方案中,所述执行模块,配置为当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则不改变所述应用图标对应的锁定状态标志位;In the above solution, the execution module is configured to: when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the lock state indicated by the lock status flag corresponding to the application icon is the locked state , the lock status flag corresponding to the application icon is not changed;
以及,当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为已锁定状态。And, when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag bit of the application icon is an unlocked state, the application icon is correspondingly The lock status flag indicates that the lock status is set to the locked status.
上述方案中,所述执行模块,配置为当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则不改变所述应用图标对应的锁定状态标志位;In the above solution, the execution module is configured to: when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the lock state indicated by the lock status flag corresponding to the application icon is the unlocked state , the lock status flag corresponding to the application icon is not changed;
当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
第三方面,本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于上述管理应用图标的方法中的一个或多个。In a third aspect, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used in one or more of the foregoing methods for managing application icons.
本发明实施例提供了一种管理应用图标的方法、装置和计算机存储介质,通过按压操作对应的压力值计算按压操作压力相对值,根据按压操作压力相对值确定按压操作属于轻压或是中压,对应用图标执行相应的锁定或是解锁的操作,从而可以方便快捷的锁定或解锁应用图标执行,避免了应用图标被随意拖动或误删。The embodiment of the invention provides a method, a device and a computer storage medium for managing an application icon. The relative value of the pressing operation pressure is calculated by the pressure value corresponding to the pressing operation, and the pressing operation determines whether the pressing operation is light pressure or medium pressure according to the relative value of the pressing operation pressure. The corresponding icon is locked or unlocked, so that the application icon can be locked or unlocked conveniently and quickly, and the application icon is prevented from being dragged or deleted by mistake.
附图说明DRAWINGS
图1为本发明实施例提供的一种管理应用图标的方法具体实现流程图; FIG. 1 is a flowchart of a specific implementation of a method for managing an application icon according to an embodiment of the present invention;
图2为本发明实施例提供的预设的时间范围示意图;2 is a schematic diagram of a preset time range according to an embodiment of the present invention;
图3为本发明实施例提供的一种对按压操作进行响应的流程图;FIG. 3 is a flowchart of responding to a pressing operation according to an embodiment of the present invention;
图4为本发明实施例提供的另一种对按压操作进行响应的流程图;FIG. 4 is a flowchart of another response to a pressing operation according to an embodiment of the present invention; FIG.
图5为本发明实施例提供的一种根据压力范围设置锁定状态标志位的流程图;FIG. 5 is a flowchart of setting a lock status flag according to a pressure range according to an embodiment of the present invention;
图6为本发明实施例提供的一种管理应用图标的方法流程图;FIG. 6 is a flowchart of a method for managing an application icon according to an embodiment of the present invention;
图7为本发明实施例提供的一种管理应用图标的装置结构示意图。FIG. 7 is a schematic structural diagram of an apparatus for managing an application icon according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit this invention.
实施例一 Embodiment 1
本发明实施例提供一种管理应用图标的方法,该方法可以应用于具有触摸显示屏的终端设备中,如图1所示,所述方法可以包括:An embodiment of the present invention provides a method for managing an application icon. The method may be applied to a terminal device having a touch display screen. As shown in FIG. 1 , the method may include:
S101、接收针对触摸屏上所显示的任一应用图标的按压操作,并获取所述按压操作的持续时间。S101. Receive a pressing operation for any application icon displayed on the touch screen, and acquire a duration of the pressing operation.
终端设备的用户通过触摸屏按压应用图标对应用软件进行操作。终端设备根据用户按压应用图标时间的长短获取应用图标接收按压操作的持续时间,判断用户是否长按应用图标。The user of the terminal device operates the application software by pressing the application icon through the touch screen. The terminal device acquires the duration of the pressing operation of the application icon according to the length of time the user presses the application icon, and determines whether the user long presses the application icon.
S102、判断所述按压操作的持续时间是否属于预设的时间范围之内;当所述按压操作的持续时间不属于预设的时间范围时,执行步骤S103;当所述按压操作的持续时间属于预设的时间范围时,执行步骤S104至S106。S102. Determine whether the duration of the pressing operation belongs to a preset time range. When the duration of the pressing operation does not belong to a preset time range, step S103 is performed; when the duration of the pressing operation belongs to In the preset time range, steps S104 to S106 are performed.
参见图2,预设的时间范围在预设的第一时间阈值与预设的第二时间阈值之间。这里预设的时间范围是用于判断用户按压应用图标的时间长短,Referring to FIG. 2, the preset time range is between a preset first time threshold and a preset second time threshold. The preset time range here is used to determine the length of time the user presses the application icon.
S103、当所述按压操作的持续时间不属于预设的时间范围时,对所述 按压操作进行响应。S103. When the duration of the pressing operation does not belong to a preset time range, Press the operation to respond.
具体地,参见图3,步骤S103包括步骤S1031和S1032:Specifically, referring to FIG. 3, step S103 includes steps S1031 and S1032:
S1031、当所述按压操作的持续时间大于预设的第二时间阈值时,根据所述应用图标对应的锁定状态标志位对所述按压操作进行响应。S1011: When the duration of the pressing operation is greater than a preset second time threshold, the pressing operation flag corresponding to the application icon is responsive to the pressing operation.
如图2区域3中所示,当用户按压应用图标的时间长短大于预设的第二时间阈值时,表明用户长按应用图标。所述应用图标对应的锁定状态标志位用于表征当前应用图标所处的锁定状态,其中,当锁定状态标志位为1时,表示当前应用图标处于已锁定状态;当锁定状态标志位为0时,表示当前应用图标处于未锁定状态。As shown in the area 3 of FIG. 2, when the length of time the user presses the application icon is greater than the preset second time threshold, it indicates that the user long presses the application icon. The lock status flag corresponding to the application icon is used to represent a lock state in which the current application icon is located, wherein when the lock status flag is 1, it indicates that the current application icon is in a locked state; when the lock status flag is 0 , indicating that the current app icon is unlocked.
示例性地,在具体实现过程中,参见图4,所述根据所述应用图标对应的锁定状态标志位对所述按压操作进行响应,可以包括步骤S10311和S10312:Illustratively, in a specific implementation process, referring to FIG. 4, the responding to the pressing operation according to the locking status flag corresponding to the application icon may include steps S10311 and S10312:
S10311、当获取到的应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,不响应按压操作。S10311: When the locked state indicated by the locked status flag corresponding to the acquired application icon is the locked state, the pressing operation is not responded.
若终端设备确定应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态,则表明应用图标已经被锁定。此时,终端设备不响应用户的长按操作并且不修改应用图标对应的锁定状态标志位,保持应用图标已锁定状态不变。If the terminal device determines that the locked state represented by the lock status flag corresponding to the application icon is the locked state, it indicates that the application icon has been locked. At this time, the terminal device does not respond to the long press operation of the user and does not modify the lock status flag corresponding to the application icon, and keeps the application icon locked state.
S10312、当获取到的应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,响应按压操作。S10312. Respond to the pressing operation when the locked state indicated by the locked state flag corresponding to the acquired application icon is an unlocked state.
若终端设备确定应用图标对应的锁定状态标志位表征的锁定状态为非锁定状态,则表明应用图标当前没有被锁定。此时,终端设备响应用户的长按操作,对应用图标进行拖拽等操作。If the terminal device determines that the locked state represented by the lock status flag corresponding to the application icon is an unlocked state, it indicates that the application icon is not currently locked. At this time, the terminal device performs a drag and drop operation on the application icon in response to the user's long press operation.
S1032、当所述按压操作的持续时间小于预设的第一时间阈值时,对所述按压操作进行响应。 S1032: Respond to the pressing operation when a duration of the pressing operation is less than a preset first time threshold.
如图2区域1中所示,当用户按压应用图标的时间长短小于预设的第一时间阈值时,表明用户点击应用图标,打开跟应用图标相应的应用软件。As shown in area 1 of FIG. 2, when the length of time when the user presses the application icon is less than the preset first time threshold, it indicates that the user clicks the application icon to open the application software corresponding to the application icon.
S104、当所述按压操作的持续时间属于预设的时间范围时,确定所述按压操作对应的压力值所处的压力范围。S104. Determine a pressure range in which the pressure value corresponding to the pressing operation is when the duration of the pressing operation belongs to a preset time range.
示例性的,步骤S104具体可以包括:Exemplarily, step S104 may specifically include:
检测所述按压操作对应的压力值;以及,Detecting a pressure value corresponding to the pressing operation; and,
按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围。The pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
需要说明的是,如图2区域2中所示,若触摸屏上显示的应用图标接收按压操作的持续时间属于预设的时间范围,则终端设备通过触摸屏检测与按压操作对应的按压力度值。这里应用图标接收按压操作的持续时间在预设的时间范围内则说明用户没有对应用图标进行持续按压。终端设备通过检测与按压操作对应的按压力度值来确定应用图标的压力相对值并确定压力相对值的压力范围。It should be noted that, as shown in area 2 of FIG. 2, if the duration of the application icon receiving the pressing operation displayed on the touch screen belongs to a preset time range, the terminal device detects the pressing force value corresponding to the pressing operation through the touch screen. Here, the duration of the application icon receiving the pressing operation within the preset time range indicates that the user has not continuously pressed the application icon. The terminal device determines a pressure relative value of the application icon and determines a pressure range of the pressure relative value by detecting a pressing force value corresponding to the pressing operation.
具体地,上述按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围具体实现过程可以包括:Specifically, the specific implementation process of determining the pressure range in which the pressure value corresponding to the pressing operation is performed according to the preset range interval may include:
根据所述按压操作对应的压力值计算按压操作压力相对值;以及,Calculating a relative value of the pressing operation pressure according to the pressure value corresponding to the pressing operation; and
根据所述按压操作压力相对值按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围;其中,预设的范围区间以两个范围为例进行说明,包括:第一范围和第二范围。Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is in accordance with the pressing operation pressure relative value; wherein the preset range interval is exemplified by two ranges, including: the first range And the second range.
可以理解地,终端设备根据检测到的与按压操作对应的压力值计算按压操作压力相对值。按压操作压力相对值为按压操作对应的压力值与终端设备的触摸屏能够承受的最大压力值的比值,该值取值范围为(0,1]。It can be understood that the terminal device calculates the pressing operation pressure relative value according to the detected pressure value corresponding to the pressing operation. The pressing operation pressure relative value is a ratio of the pressure value corresponding to the pressing operation to the maximum pressure value that the touch screen of the terminal device can withstand, and the value ranges from (0, 1).
具体地,假设当前用户按压应用图标的压力力度值为200g,即按压操作对应的压力值为200g,终端设备的触摸屏能够承受的最大压力值为500g, 那么按压操作压力相对值为:200g/500g=0.4。Specifically, it is assumed that the pressure value of the current user pressing the application icon is 200 g, that is, the pressure value corresponding to the pressing operation is 200 g, and the maximum pressure value that the touch screen of the terminal device can withstand is 500 g. Then the relative value of the pressing operation pressure is: 200 g / 500 g = 0.4.
按照预设的范围区间将按压操作对应的压力值所处的压力范围分为第一范围和第二范围,其中,第一范围为轻压,第二范围为中压。当按压操作压力相对值取值范围为(0,0.5]时,属于轻压,当按压操作压力相对值取值范围为(0.5,1]时,属于中压。The pressure range in which the pressure value corresponding to the pressing operation is located is divided into a first range and a second range according to a preset range interval, wherein the first range is a light pressure and the second range is a medium pressure. When the relative value of the pressing operation pressure is in the range of (0, 0.5), it is a light pressure, and when the relative value of the pressing operation pressure is in the range of (0.5, 1), it belongs to the medium pressure.
需要说明的是,按压操作对应的压力值所处的压力范围用于:当压力范围为第一范围,即属于轻压时,锁定当前应用图标;当压力范围为第二范围,即属于中压时,解锁当前应用图标。It should be noted that the pressure range corresponding to the pressure value of the pressing operation is used to: when the pressure range is the first range, that is, when it is light pressure, the current application icon is locked; when the pressure range is the second range, it belongs to the medium pressure. When you unlock the current app icon.
S105、获取所述应用图标对应的锁定状态的锁定状态标志位;S105. Acquire a lock status flag bit of a lock status corresponding to the application icon.
其中,所述锁定状态包括:已锁定状态和未锁定状态,所述锁定状态标志位表征所述应用图标相对应的锁定状态。The lock state includes a locked state and an unlocked state, and the locked state flag represents a locked state corresponding to the application icon.
S106、根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置。S106. Perform, according to a preset control strategy, a setting corresponding to a lock status flag corresponding to the application icon according to a pressure range in which the pressure value corresponding to the pressing operation is located.
具体的,参见图5,步骤S106包括步骤S1061和S1062:Specifically, referring to FIG. 5, step S106 includes steps S1061 and S1062:
S1061、当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态。S1061: When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in a locked state.
示例性的,步骤S1061具体的实现可以包括:Exemplarily, the specific implementation of step S1061 may include:
当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则不改变所述应用图标对应的锁定状态标志位;When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the lock corresponding to the application icon is not changed. Status flag
当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为已锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag corresponding to the application icon is an unlocked state, the locked state corresponding to the application icon is The lock status represented by the flag bit is set to the locked state.
需要说明的是,在上述的具体实现过程中,不改变所述应用图标对应 的锁定状态标志位,以使得所述应用图标保持已锁定状态;将所述应用图标对应的锁定状态标志位表征的锁定状态设置为已锁定状态,用以锁定所述应用图标。It should be noted that, in the foregoing specific implementation process, the application icon is not changed. The lock status flag is set such that the application icon remains locked; the lock status represented by the lock status flag corresponding to the application icon is set to a locked state for locking the application icon.
S1062、当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态。S1062: When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
示例性的,步骤S1062具体的实现可以包括:Exemplarily, the specific implementation of step S1062 may include:
当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则不改变所述应用图标对应的锁定状态标志位;When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is an unlocked state, the lock corresponding to the application icon is not changed. Status flag
当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
需要说明的是,在上述的具体实现过程中,不改变所述应用图标对应的锁定状态标志位,以使得所述应用图标保持未锁定状态;将所述应用图标对应的锁定状态标志位表征的锁定状态设置为未锁定状态,用以解锁所述应用图标。It should be noted that, in the foregoing specific implementation process, the lock status flag corresponding to the application icon is not changed, so that the application icon remains in an unlocked state; and the lock status flag corresponding to the application icon is represented. The lock status is set to an unlocked state to unlock the application icon.
上述步骤S105和S106具体实现了:根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制。需要说明的是,本发明实施例以对锁定状态标志位的设置为例进行说明,但是并不限于锁定状态标志位,也可以使用其他特定的标志位对应用图标的锁定状态进行控制。The above steps S105 and S106 are specifically implemented: controlling the locked state of the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located. It should be noted that, in the embodiment of the present invention, the setting of the lock status flag is taken as an example. However, the lock status flag is not limited to the lock status flag, and the lock status of the application icon may be controlled by using other specific flag bits.
本发明实施例提供了一种管理应用图标的方法,通过按压操作对应的压力值计算按压操作压力相对值,根据按压操作压力相对值确定按压操作属于轻压或是中压,对应用图标执行相应的锁定或是解锁的操作,从而可 以方便快捷的锁定或解锁应用图标执行,避免了应用图标被随意拖动或误删。研究发现大量误操作都具有按压时间随机和按压力度很随机的现象;例如,按压时间很短,按压力度很小等现象,例如,将手机与钥匙放在口袋里,用户在拿钥匙的过程中,不小心碰了屏幕,该触碰操作导致设备检测到的压力值较小的现象,本实施例提供的图标的控制过程中,按压操作的持续时间和压力都必须在对应的范围内,否则不会移动处于锁定状态的图标进行控制,巧妙的解决了上述触碰导致的图标的随意移动或删除。An embodiment of the present invention provides a method for managing an application icon. The relative value of the pressing operation pressure is calculated by the pressure value corresponding to the pressing operation, and the pressing operation is determined according to the relative value of the pressing operation pressure, and the pressing operation is light pressure or medium pressure, and the application icon is correspondingly executed. Locking or unlocking operation It is convenient and quick to lock or unlock the application icon to prevent the application icon from being dragged or deleted by mistake. The study found that a large number of misoperations have the phenomenon of random pressing time and random pressing force; for example, the pressing time is short and the pressing force is small, for example, the mobile phone and the key are placed in the pocket, and the user is in the process of taking the key. Inadvertently touching the screen, the touch operation causes the pressure value detected by the device to be small. In the control process of the icon provided in this embodiment, the duration and pressure of the pressing operation must be within the corresponding range, otherwise The icon in the locked state is not moved for control, and the random movement or deletion of the icon caused by the above touch is skillfully solved.
实施例二 Embodiment 2
本发明实施例提供一种管理应用图标的方法,该方法可以应用于具有触摸显示屏的终端设备中,如图6所示,所述方法可以包括:An embodiment of the present invention provides a method for managing an application icon. The method may be applied to a terminal device having a touch display screen. As shown in FIG. 6, the method may include:
S201、接收针对触摸屏上所显示的任一应用图标的按压操作,并获取所述按压操作的持续时间。S201. Receive a pressing operation for any application icon displayed on the touch screen, and acquire a duration of the pressing operation.
S202、当所述按压操作的持续时间属于预设的时间范围时,确定所述按压操作对应的压力值所处的压力范围。S202. Determine a pressure range in which the pressure value corresponding to the pressing operation is when the duration of the pressing operation belongs to a preset time range.
S203、根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制。S203. Control a locked state of the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
在步骤S203中,所述根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制,包括:In step S203, the pressure range in which the pressure value corresponding to the pressing operation is in accordance with a preset control policy controls the locking state of the application icon, including:
获取所述应用图标对应的锁定状态的锁定状态标志位;其中,所述锁定状态包括:已锁定状态和未锁定状态,所述锁定状态标志位表征所述应用图标相对应的锁定状态;Obtaining a lock status flag bit of the lock state corresponding to the application icon; wherein the lock state includes: a locked state and an unlocked state, the lock state flag bit characterizing a lock state corresponding to the application icon;
根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置。And setting, according to a preset control strategy, a setting corresponding to a lock status flag corresponding to the application icon according to a pressure range in which the pressure value corresponding to the pressing operation is located.
在步骤S202中,所述确定所述按压操作对应的压力值所处的压力范围,具体实现过程包括: In step S202, the pressure range in which the pressure value corresponding to the pressing operation is determined is determined, and the specific implementation process includes:
检测所述按压操作对应的压力值。The pressure value corresponding to the pressing operation is detected.
按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围。The pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
上述过程中,所述按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围,包括:In the above process, the pressure range in which the pressure value corresponding to the pressing operation is determined according to the preset range interval includes:
根据所述按压操作对应的压力值计算按压操作压力相对值;Calculating a relative value of the pressing operation pressure according to the pressure value corresponding to the pressing operation;
根据所述按压操作压力相对值按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围;其中预设的范围区间包括:第一范围和第二范围。Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
步骤S203中,所述根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置,具体实现过程包括:In step S203, according to the pressure range in which the pressure value corresponding to the pressing operation is performed, the setting corresponding to the locking state flag bit corresponding to the application icon is performed according to a preset control policy, and the specific implementation process includes:
当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态;When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in a locked state;
当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the locking state flag corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
上述过程中,所述当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态,包括:In the above process, when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, the lock status flag corresponding to the application icon is set to be used to represent that the application icon is locked. ,include:
当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则不改变所述应用图标对应的锁定状态标志位,保持已锁定状态;When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the lock corresponding to the application icon is not changed. Status flag, keep locked state;
当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述 应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为已锁定状态,锁定所述应用图标。When the pressure value corresponding to the pressing operation is in the first range, and the When the locked state indicated by the lock status flag corresponding to the icon is the unlocked state, the locked state represented by the lock status flag corresponding to the application icon is set to the locked state, and the application icon is locked.
相应地,所述当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态,包括:Correspondingly, when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state, include:
当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则不改变所述应用图标对应的锁定状态标志位,保持未锁定状态;When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is an unlocked state, the lock corresponding to the application icon is not changed. Status flag, which remains unlocked;
当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为未锁定状态,解锁所述应用图标。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the locking state corresponding to the application icon is The lock status represented by the flag bit is set to an unlocked state, and the application icon is unlocked.
本发明实施例提供了一种管理应用图标的方法,通过按压操作对应的压力值计算按压操作压力相对值,根据按压操作压力相对值确定按压操作属于轻压或是中压,对应用图标执行相应的锁定或是解锁的操作,从而可以方便快捷的锁定或解锁应用图标执行,避免了应用图标被随意拖动或误删。An embodiment of the present invention provides a method for managing an application icon. The relative value of the pressing operation pressure is calculated by the pressure value corresponding to the pressing operation, and the pressing operation is determined according to the relative value of the pressing operation pressure, and the pressing operation is light pressure or medium pressure, and the application icon is correspondingly executed. The locking or unlocking operation can conveniently and quickly lock or unlock the application icon to prevent the application icon from being dragged or deleted by mistake.
实施例三 Embodiment 3
参见图7,其示出了本发明实施例提供一种管理应用图标的装置7,所述管理应用图标的装置包括:获取模块701、确定模块702和执行模块703;其中,Referring to FIG. 7 , an embodiment of the present invention provides an apparatus 7 for managing an application icon, where the apparatus for managing an application icon includes: an obtaining module 701, a determining module 702, and an executing module 703;
所述获取模块701,配置为接收针对触摸屏上所显示的任一应用图标的按压操作,并获取所述按压操作的持续时间;The obtaining module 701 is configured to receive a pressing operation for any application icon displayed on the touch screen, and acquire a duration of the pressing operation;
所述确定模块702,配置为当所述按压操作的持续时间属于预设的时间 范围时,确定所述按压操作对应的压力值所处的压力范围;The determining module 702 is configured to: when the duration of the pressing operation belongs to a preset time a range of pressures at which the pressure value corresponding to the pressing operation is determined;
所述执行模块703,配置为根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制。The execution module 703 is configured to control the locked state of the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
在上述方案中,所述获取模块701,配置为获取所述应用图标对应的锁定状态的锁定状态标志位;其中,所述锁定状态包括:已锁定状态和未锁定状态,所述锁定状态标志位表征所述应用图标相对应的锁定状态;In the above solution, the obtaining module 701 is configured to acquire a lock state flag bit of a lock state corresponding to the application icon, where the lock state includes: a locked state and an unlocked state, and the lock state flag bit Characterizing a lock state corresponding to the application icon;
所述执行模块703,配置为根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置。The executing module 703 is configured to perform, according to a preset control policy, a setting corresponding to a lock status flag corresponding to the application icon according to a pressure range in which the pressure value corresponding to the pressing operation is located.
在上述方案中,所述确定模块702,配置为检测所述按压操作对应的压力值;以及,In the above solution, the determining module 702 is configured to detect a pressure value corresponding to the pressing operation; and
按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围。The pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
在上述方案中,所述确定模块702,配置为根据所述按压操作对应的压力值计算按压操作压力相对值;以及,In the above solution, the determining module 702 is configured to calculate a relative value of the pressing operation pressure according to the pressure value corresponding to the pressing operation; and
根据所述按压操作压力相对值按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围;其中预设的范围区间包括:第一范围和第二范围。Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
在上述方案中,所述执行模块703,配置为当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态;In the above solution, the execution module 703 is configured to set the lock status flag corresponding to the application icon to be used for the representation when the pressure range in which the pressure value corresponding to the pressing operation is in the first range. The application icon is locked;
以及,当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态。And, when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
在上述方案中,所述执行模块703,配置为当所述按压操作对应的压力 值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则不改变所述应用图标对应的锁定状态标志位;In the above solution, the execution module 703 is configured to be a pressure corresponding to the pressing operation. When the pressure range in which the value is located is the first range, and the lock state indicated by the lock state flag bit of the application icon is the locked state, the lock state flag bit corresponding to the application icon is not changed;
以及,当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为已锁定状态。And, when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag bit of the application icon is an unlocked state, the application icon is correspondingly The lock status flag indicates that the lock status is set to the locked status.
在上述方案中,所述执行模块703,配置为当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则不改变所述应用图标对应的锁定状态标志位;In the above solution, the execution module 703 is configured to: when the pressure value corresponding to the pressing operation is in the second range, and the lock status flag corresponding to the application icon is locked In the state, the lock status flag corresponding to the application icon is not changed;
当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
具体的,本发明实施例提供的管理应用图标的装置说明可以参考实施例一的管理应用图标的方法说明,本发明实施例在此不再赘述。For example, the description of the device for managing the application icon provided by the embodiment of the present invention may be described with reference to the method for managing the application icon in the first embodiment, and details are not described herein again.
在实际应用中,所述获取模块701、确定模块702、执行模块703均可由位于管理应用图标的装置7中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the obtaining module 701, the determining module 702, and the executing module 703 may each be a Central Processing Unit (CPU) or a Micro Processor Unit (MPU) located in the device 7 for managing application icons. , Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
本发明实施例提供了一种管理应用图标的装置,通过按压操作对应的压力值计算按压操作压力相对值,根据按压操作压力相对值确定按压操作属于轻压或是中压,对应用图标执行相应的锁定或是解锁的操作,从而可以方便快捷的锁定或解锁应用图标执行,避免了应用图标被随意拖动或误 删。An embodiment of the present invention provides a device for managing an application icon. The relative value of the pressing operation pressure is calculated by the pressure value corresponding to the pressing operation, and the pressing operation is determined according to the relative value of the pressing operation pressure, and the pressing operation is light pressure or medium pressure, and the application icon is correspondingly executed. Locking or unlocking operation, so that the application icon can be locked or unlocked conveniently and quickly, avoiding the application icon being dragged or mistaken at will. delete.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述管理应用图标的方法中的一个或多个,例如执行如图1至图6所示的方法。所述存储介质可包括光盘或磁盘或闪盘等各种存储介质,可选为非瞬间存储介质。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute one or more of the foregoing methods for managing application icons, for example, performing The method shown in Figures 1 to 6. The storage medium may include various storage media such as an optical disk or a magnetic disk or a flash disk, and may be a non-transitory storage medium.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation The steps of a function specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。 The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and modifications made in accordance with the principles of the present invention are understood to fall within the scope of the present invention.

Claims (15)

  1. 一种管理应用图标的方法,所述方法包括:A method of managing an application icon, the method comprising:
    接收针对触摸屏上所显示的任一应用图标的按压操作,并获取所述按压操作的持续时间;Receiving a pressing operation for any of the application icons displayed on the touch screen, and obtaining a duration of the pressing operation;
    当所述按压操作的持续时间属于预设的时间范围时,确定所述按压操作对应的压力值所处的压力范围;Determining a pressure range in which the pressure value corresponding to the pressing operation is when the duration of the pressing operation belongs to a preset time range;
    根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制。And according to a preset control strategy, the locked state of the application icon is controlled according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  2. 根据权利要求1所述的方法,其中,所述根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制,包括:The method according to claim 1, wherein the pressure range in which the pressure value corresponding to the pressing operation is controlled controls the locking state of the application icon according to a preset control policy, including:
    获取所述应用图标对应的锁定状态的锁定状态标志位;其中,所述锁定状态包括:已锁定状态和未锁定状态,所述锁定状态标志位表征所述应用图标相对应的锁定状态;Obtaining a lock status flag bit of the lock state corresponding to the application icon; wherein the lock state includes: a locked state and an unlocked state, the lock state flag bit characterizing a lock state corresponding to the application icon;
    根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置。And setting, according to a preset control strategy, a setting corresponding to a lock status flag corresponding to the application icon according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  3. 根据权利要求1所述的方法,其中,所述确定所述按压操作对应的压力值所处的压力范围,具体包括:The method according to claim 1, wherein the determining a pressure range in which the pressure value corresponding to the pressing operation is performed comprises:
    检测所述按压操作对应的压力值;Detecting a pressure value corresponding to the pressing operation;
    按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围。The pressure range in which the pressure value corresponding to the pressing operation is located is determined according to a preset range interval.
  4. 根据权利要求3所述的方法,其中,所述按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围,包括:The method according to claim 3, wherein the determining a pressure range in which the pressure value corresponding to the pressing operation is in accordance with a preset range interval comprises:
    根据所述按压操作对应的压力值计算按压操作压力相对值; Calculating a relative value of the pressing operation pressure according to the pressure value corresponding to the pressing operation;
    根据所述按压操作压力相对值按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围;其中预设的范围区间包括:第一范围和第二范围。Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
  5. 根据权利要求2所述的方法,其中,所述根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置,包括:The method according to claim 2, wherein the setting corresponding to the lock status flag corresponding to the application icon is performed according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located, include:
    当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态;When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in a locked state;
    当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the locking state flag corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
  6. 根据权利要求5所述的方法,其中,所述当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态,包括:The method according to claim 5, wherein when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, the lock state flag corresponding to the application icon is set to be used for the representation The application icon is locked, including:
    当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则不改变所述应用图标对应的锁定状态标志位;When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the lock corresponding to the application icon is not changed. Status flag
    当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为已锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag corresponding to the application icon is an unlocked state, the locked state corresponding to the application icon is The lock status represented by the flag bit is set to the locked state.
  7. 根据权利要求5所述的方法,其中,所述当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态,包括:The method according to claim 5, wherein when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the lock state flag corresponding to the application icon is set to be used for the representation The application icon is unlocked, including:
    当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述 应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则不改变所述应用图标对应的锁定状态标志位;When the pressure value corresponding to the pressing operation is in the second range, and the When the locked state represented by the lock status flag corresponding to the icon is an unlocked state, the lock status flag corresponding to the application icon is not changed;
    当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock state flag corresponding to the application icon is the locked state, the locking state corresponding to the application icon is The lock status represented by the flag bit is set to the unlocked state.
  8. 一种管理应用图标的装置,所述装置包括:获取模块、确定模块和执行模块;其中,An apparatus for managing an application icon, the apparatus comprising: an acquisition module, a determination module, and an execution module; wherein
    所述获取模块,配置为接收针对触摸屏上所显示的任一应用图标的按压操作,并获取所述按压操作的持续时间;The acquiring module is configured to receive a pressing operation for any application icon displayed on the touch screen, and acquire a duration of the pressing operation;
    所述确定模块,配置为当所述按压操作的持续时间属于预设的时间范围时,确定所述按压操作对应的压力值所处的压力范围;The determining module is configured to determine a pressure range in which the pressure value corresponding to the pressing operation is when the duration of the pressing operation belongs to a preset time range;
    所述执行模块,配置为根据所述按压操作对应的压力值所处的压力范围按照预设的控制策略对所述应用图标的锁定状态进行控制。The execution module is configured to control a locked state of the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  9. 根据权利要求8所述的装置,其中,The device according to claim 8, wherein
    所述获取模块,配置为获取所述应用图标对应的锁定状态的锁定状态标志位;其中,所述锁定状态包括:已锁定状态和未锁定状态,所述锁定状态标志位表征所述应用图标相对应的锁定状态;The acquiring module is configured to acquire a lock state flag bit of a lock state corresponding to the application icon, where the lock state includes: a locked state and an unlocked state, where the lock state flag represents the application icon Corresponding lock state;
    所述执行模块,配置为根据所述按压操作对应的压力值所处的压力范围,按照预设的控制策略执行与所述应用图标对应的锁定状态标志位相对应的设置。The execution module is configured to perform a setting corresponding to a lock status flag corresponding to the application icon according to a preset control policy according to a pressure range in which the pressure value corresponding to the pressing operation is located.
  10. 根据权利要求8所述的装置,其中,所述确定模块,配置为检测所述按压操作对应的压力值;The apparatus according to claim 8, wherein the determining module is configured to detect a pressure value corresponding to the pressing operation;
    以及,按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围。And determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located.
  11. 根据权利要求10所述的装置,其中,所述确定模块,配置为根据 所述按压操作对应的压力值计算按压操作压力相对值;以及,The apparatus of claim 10 wherein said determining module is configured to be Calculating a relative value of the pressing operation pressure by the pressure value corresponding to the pressing operation; and
    根据所述按压操作压力相对值按照预设的范围区间确定所述按压操作对应的压力值所处的压力范围;其中预设的范围区间包括:第一范围和第二范围。Determining, according to the preset range interval, a pressure range in which the pressure value corresponding to the pressing operation is located according to the pressing operation pressure relative value; wherein the preset range interval includes: a first range and a second range.
  12. 根据权利要求9所述的装置,其中,The apparatus according to claim 9, wherein
    所述执行模块,配置为当所述按压操作对应的压力值所处的压力范围是第一范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为已锁定状态;The execution module is configured to set a lock status flag corresponding to the application icon to be used to represent that the application icon is locked when a pressure range in which the pressure value corresponding to the pressing operation is in a first range status;
    以及,当所述按压操作对应的压力值所处的压力范围是第二范围时,将所述应用图标对应的锁定状态标志位设置为用于表征所述应用图标为未锁定状态。And, when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, the locking state flag bit corresponding to the application icon is set to be used to represent that the application icon is in an unlocked state.
  13. 根据权利要求12所述的装置,其中,The device according to claim 12, wherein
    所述执行模块,配置为当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则不改变所述应用图标对应的锁定状态标志位;The execution module is configured to not change when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock status flag corresponding to the application icon is the locked state a lock status flag corresponding to the application icon;
    以及,当所述按压操作对应的压力值所处的压力范围是第一范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则将所述应用图标对应的锁定状态标志位表征的锁定状态设置为已锁定状态。And, when the pressure range in which the pressure value corresponding to the pressing operation is in the first range, and the locked state indicated by the lock state flag bit of the application icon is an unlocked state, the application icon is correspondingly The lock status flag indicates that the lock status is set to the locked status.
  14. 根据权利要求12所述的装置,其中,The device according to claim 12, wherein
    所述执行模块,配置为当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为未锁定状态时,则不改变所述应用图标对应的锁定状态标志位;The execution module is configured to not change when the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locked state indicated by the lock status flag corresponding to the application icon is an unlocked state a lock status flag corresponding to the application icon;
    当所述按压操作对应的压力值所处的压力范围是第二范围,并且所述应用图标对应的锁定状态标志位表征的锁定状态为已锁定状态时,则将所 述应用图标对应的锁定状态标志位表征的锁定状态设置为未锁定状态。When the pressure range in which the pressure value corresponding to the pressing operation is in the second range, and the locking state indicated by the lock status flag corresponding to the application icon is the locked state, then the The lock status flag indicated by the lock status flag corresponding to the application icon is set to an unlocked state.
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至7任一项所述管理应用图标的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of managing an application icon of any one of claims 1 to 7.
PCT/CN2016/081617 2016-04-11 2016-05-10 Method and apparatus for managing application icons, and computer storage medium WO2017177494A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610221588.2 2016-04-11
CN201610221588.2A CN107291321A (en) 2016-04-11 2016-04-11 A kind of method and apparatus for managing application icon

Publications (1)

Publication Number Publication Date
WO2017177494A1 true WO2017177494A1 (en) 2017-10-19

Family

ID=60042600

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081617 WO2017177494A1 (en) 2016-04-11 2016-05-10 Method and apparatus for managing application icons, and computer storage medium

Country Status (2)

Country Link
CN (1) CN107291321A (en)
WO (1) WO2017177494A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862207A (en) * 2017-12-01 2018-03-30 四川精工伟达智能技术股份有限公司 Using credible management system and method
CN113091389A (en) * 2019-12-23 2021-07-09 佛山市云米电器科技有限公司 Refrigerator control method, terminal device and computer-readable storage medium
CN113091388A (en) * 2019-12-23 2021-07-09 佛山市云米电器科技有限公司 Refrigerator control method, terminal device and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438092A (en) * 2010-08-19 2012-05-02 株式会社理光 Operation display device and operation display method
CN104217151A (en) * 2014-09-11 2014-12-17 三星电子(中国)研发中心 Locking method for application of intelligent terminal and intelligent terminal
CN104731500A (en) * 2015-03-24 2015-06-24 联想(北京)有限公司 Information processing method and electronic equipment
CN104915141A (en) * 2015-05-28 2015-09-16 努比亚技术有限公司 Method and device for previewing object information
CN105183319A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Application operating method and device and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100123108A (en) * 2009-05-14 2010-11-24 삼성전자주식회사 Operation method for icon position movement and portable device supporting the same
CN101661373B (en) * 2009-09-29 2013-02-27 中兴通讯股份有限公司 Method and device for identifying unlocking by contact surface type
CN104182134A (en) * 2013-05-21 2014-12-03 邓晓路 Method and device for unlocking handheld terminal equipment
CN105227760A (en) * 2015-08-27 2016-01-06 广东欧珀移动通信有限公司 A kind of alarm clock setting method and terminal
CN105303086A (en) * 2015-10-31 2016-02-03 深圳市金立通信设备有限公司 Application starting method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438092A (en) * 2010-08-19 2012-05-02 株式会社理光 Operation display device and operation display method
CN104217151A (en) * 2014-09-11 2014-12-17 三星电子(中国)研发中心 Locking method for application of intelligent terminal and intelligent terminal
CN104731500A (en) * 2015-03-24 2015-06-24 联想(北京)有限公司 Information processing method and electronic equipment
CN104915141A (en) * 2015-05-28 2015-09-16 努比亚技术有限公司 Method and device for previewing object information
CN105183319A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Application operating method and device and terminal

Also Published As

Publication number Publication date
CN107291321A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US9575557B2 (en) Grip force sensor array for one-handed and multimodal interaction on handheld devices and methods
US20140201833A1 (en) Electronic device and method for fast activating application after unlocking
US20120026105A1 (en) Electronic device and method thereof for transmitting data
KR101452565B1 (en) Progressive locking method of mobile terminal and the mobile terminal
CN105045384A (en) Information processing method and electronic equipment
WO2016041469A1 (en) Touch control method, touch control device, touch control terminal and computer readable storage medium
KR20140013548A (en) User terminal apparatus and control method thereof
WO2017177494A1 (en) Method and apparatus for managing application icons, and computer storage medium
CN104866749A (en) Operation responding method and device
WO2018107396A1 (en) Fingerprint recognition method and terminal device
WO2019129039A1 (en) Application icon management method and related device
US9544419B2 (en) Methods and systems for configuring a mobile device based on an orientation-based usage context
CN104318185A (en) Application control method, application control equipment and mobile terminal
WO2018000500A1 (en) Application program management method, management apparatus, and mobile terminal
US10311254B2 (en) Electronic apparatus and information access control method thereof
WO2017028604A1 (en) Method and device for lighting screen of terminal and mobile terminal
CN104077050A (en) Terminal operating method
CN106709304A (en) Terminal equipment control method and device
US10698566B2 (en) Touch control based application launch
CN102707869B (en) Electronic installation and its control method
WO2017161818A1 (en) Control method for terminal and terminal
WO2018018858A1 (en) Unlock method and device, and computer storage medium
TWI515643B (en) Operation method for electronic apparatus
CN106557223B (en) Mobile terminal shortcut operation method and device
WO2017133244A1 (en) Touch-control method for operation and terminal

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16898309

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16898309

Country of ref document: EP

Kind code of ref document: A1