WO2017036204A1 - Focus positioning method and device for application switching - Google Patents

Focus positioning method and device for application switching Download PDF

Info

Publication number
WO2017036204A1
WO2017036204A1 PCT/CN2016/084219 CN2016084219W WO2017036204A1 WO 2017036204 A1 WO2017036204 A1 WO 2017036204A1 CN 2016084219 W CN2016084219 W CN 2016084219W WO 2017036204 A1 WO2017036204 A1 WO 2017036204A1
Authority
WO
WIPO (PCT)
Prior art keywords
focus
application
current
terminal
occupancy
Prior art date
Application number
PCT/CN2016/084219
Other languages
French (fr)
Chinese (zh)
Inventor
王云华
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017036204A1 publication Critical patent/WO2017036204A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present invention relates to the field of television technologies, and in particular, to a focus positioning method and apparatus for application switching.
  • the main object of the present invention is to provide a focus positioning method and apparatus for application switching, which aims to solve the technical problem that the focus is easily lost when multiple applications are switched.
  • the present invention provides a focus positioning method when an application is switched, and the method includes the following steps:
  • the application switching instruction on the monitoring terminal specifically includes: filtering the background application of the terminal and the non-focus control application, and monitoring the change of the focus occupancy of the currently running application on the screen of the terminal;
  • the control of the application whose focus occupancy information meets the preset condition is set as the current focus selection state.
  • the step of acquiring focus occupancy information of the currently switched application includes:
  • the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application.
  • the step of positioning the current focus into the application window in which the focus occupancy information conforms to the preset condition comprises:
  • the present invention also provides a focus positioning method when an application is switched, the method comprising the following steps:
  • the step of monitoring the application switching instruction on the terminal comprises:
  • the background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
  • the step of acquiring focus occupancy information of the currently switched application includes:
  • the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application.
  • the step of positioning the current focus into the application window in which the focus occupancy information conforms to the preset condition comprises:
  • the method further includes:
  • the control of the application whose focus occupancy information meets the preset condition is set as the current focus selection state.
  • the present invention further provides a terminal for positioning a focus when an application is switched, and the terminal includes:
  • a monitoring module configured to monitor an application switching instruction on the terminal
  • An acquiring module configured to acquire focus occupancy information of an application currently switching when an application switching instruction is detected
  • a positioning module configured to position the current focus into the application window where the focus occupancy information meets the preset condition.
  • the monitoring module is further configured to:
  • the background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
  • the obtaining module is further configured to:
  • the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application.
  • the positioning module is further configured to:
  • the terminal further includes:
  • a setting module configured to set a control of the application that meets the preset condition to the current focus selection state.
  • the focus positioning method and device for application switching acquires focus occupancy information of the currently switched application when the application switching instruction is detected, and locates the current focus to the focus occupancy information. Set the condition in the application window. Since the current focus is explicitly positioned by using the focus occupancy information of each application currently switched when the multiple applications are monitored for switching, the current focus can be targeted to the currently switched application that meets the preset condition.
  • the application window avoids the loss of focus when multiple applications switch, making it easier for users to operate the application after switching.
  • FIG. 1 is a schematic flowchart of a first embodiment of a focus positioning method when an application is switched according to the present invention
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a focus positioning method when an application is switched according to the present invention
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of a terminal for positioning a focus when an application is switched;
  • FIG. 4 is a schematic diagram of functional modules of a second embodiment of a terminal for positioning a focus when an application is switched.
  • the invention provides a focus positioning method when an application is switched.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a focus positioning method when an application is switched according to the present invention.
  • the focus positioning method when the application is switched includes:
  • Step S10 monitoring an application switching instruction on the terminal
  • the application since the application performs the switching of the focus while performing the switching, in order to ensure that the focus does not occur when the application is switched, the switching instruction between the plurality of applications running on the terminal is performed. Detection. For example, it can detect a button event of a user performing an application and focus switching by pressing a button, and can also monitor an application and a focus switching event on the terminal by detecting a position change between a plurality of applications running on the terminal. The application and the focus switching event on the terminal are monitored in various other manners, which are not limited herein.
  • Step S20 When the application switching instruction is detected, acquiring focus occupancy information of the currently switched application;
  • the focus occupancy information may be information such as a focus occupancy count, a focus occupation duration, and a focus occupancy weight corresponding to each application set in advance.
  • Step S30 positioning the current focus into the application window whose focus occupancy information meets the preset condition.
  • the focus occupancy information may be selected according to the focus occupancy information, and the multiple applications that are currently switching are selected.
  • An application whose focus occupancy information meets the preset conditions such as an application that selects the most focus focus, the longest focus duration, or the largest focus weight from among multiple applications currently switching, and positions the current focus to In the selected application window. Since the selected application is the application with the most focus, the longest focus time, or the largest focus weight among the multiple applications currently switching, the selected application is the application that the user often uses the focus control. It is also the application that is most likely to meet the user's focus on the final positioning requirements when multiple applications are switched.
  • the focus occupancy information of the currently switched application is acquired, and the current focus is located in the application window whose focus occupancy information meets the preset condition. Since the current focus is explicitly positioned by using the focus occupancy information of each application currently switched when the multiple applications are monitored for switching, the current focus can be targeted to the currently switched application that meets the preset condition.
  • the application window avoids the loss of focus when multiple applications switch, making it easier for users to operate the application after switching.
  • step S10 may include:
  • the background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
  • the background application and the non-focus control application on the terminal may be filtered first. Since background applications and non-focus control applications do not involve focus usage in multiple application switching, they will not focus on background applications and non-focus control applications when multiple applications are switched. In the program. Therefore, filtering the background application and the non-focus control application on the terminal can narrow the detection range, and the monitoring efficiency is higher. Moreover, since the positioning and switching of the focus generally occur in the currently running application on the terminal screen, the application switching instruction currently running on the terminal screen can be monitored, such as monitoring the currently running application on the terminal screen. The change in focus occupancy or position change, etc. Specifically, the two application TV applications and the Shortkey application that have the longest running time among the several applications currently running on the terminal screen can be acquired, and the focus occupancy change or the position change of the TV application and the Shortkey application can be monitored.
  • step S20 may include:
  • the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application.
  • the number of focus occupations of the currently running application on the terminal screen changes within a preset time, it can be determined that the currently running application on the terminal screen is being switched, and the focus is required to be positioned, and then the focus is obtained. The total number of times the focus of the current application that has changed the number of occupations.
  • the focus of the TV application is 2 times
  • the focus of the Shortkey application is 1 time
  • the second time the focus of the TV application is 1 time
  • the focus of the Shortkey application is 2 times. It can be seen that the focus occupancy of the TV application and the Shortkey application has changed, indicating that the current TV application and the Shortkey application are switching, and the focus needs to be targeted to the switched TV application or Shortkey application. Get the total number of focus occupations of the TV application or Shortkey application, that is, the sum of the focus occupancy times after the terminal is powered on.
  • step S30 may include:
  • the focus occupancy weight of the TV application is calculated as the product of the total number of focus occupations and the preset weight, ie, The focus occupancy weight is 30. If the total number of focus occupations of the Shortkey application is 10, and the preset weight set for the Shortkey application according to the system dependency is 5, the focus occupancy weight of the Shortkey application is calculated as the product of the total number of focus occupations and the preset weight, that is, The focus occupancy weight is 50.
  • the Shortkey application Comparing the focus occupancy weight of the TV application and the Shortkey application, the Shortkey application has the largest focus occupancy weight, which means that when the TV application and the Shortkey application are switching, the Shortkey application with the largest focus weight is the most likely to match the user.
  • the second embodiment of the present invention provides a focus positioning method when the application is switched.
  • the method further includes:
  • step S40 the control of the application program whose focus occupancy information meets the preset condition is set as the current focus selection state.
  • the control of the application whose focus occupancy information meets the preset condition may be further set as the current The focus is selected.
  • the application that the current focus is docked can respond to key events that need to use the control in time, which is more convenient for the user to operate.
  • the present invention further provides a terminal that locates a focus when an application is switched.
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of a terminal for positioning a focus when an application is switched.
  • the terminal that locates the focus when the application switches :
  • the monitoring module 01 is configured to monitor an application switching instruction on the terminal
  • the application since the application performs the switching of the focus while performing the switching, in order to ensure that the focus does not occur when the application is switched, the switching instruction between the plurality of applications running on the terminal is performed. Detection. For example, it can detect the button event of the application and focus switching by the button, and can also monitor the application and the focus switching event on the terminal by detecting the position change between multiple applications running on the terminal. The application and the focus switching event on the terminal are monitored in various other manners, which are not limited herein.
  • the obtaining module 02 is configured to acquire focus occupancy information of the currently switched application when the application switching instruction is detected;
  • the focus occupancy information may be information such as a focus occupancy count, a focus occupation duration, and a focus occupancy weight corresponding to each application set in advance.
  • the positioning module 03 is configured to locate the current focus into the application window where the focus occupancy information meets the preset condition.
  • the focus occupancy information may be selected according to the focus occupancy information, and the multiple applications that are currently switching are selected.
  • An application whose focus occupancy information meets the preset conditions such as an application that selects the most focus focus, the longest focus duration, or the largest focus weight from among multiple applications currently switching, and positions the current focus to In the selected application window. Since the selected application is the application with the most focus, the longest focus time, or the largest focus weight among the multiple applications currently switching, the selected application is the application that the user often uses the focus control. It is also the application that is most likely to meet the user's focus on the final positioning requirements when multiple applications are switched.
  • the focus occupancy information of the currently switched application is acquired, and the current focus is located in the application window whose focus occupancy information meets the preset condition. Since the current focus is explicitly positioned by using the focus occupancy information of each application currently switched when the multiple applications are monitored for switching, the current focus can be targeted to the currently switched application that meets the preset condition.
  • the application window avoids the loss of focus when multiple applications switch, making it easier for users to operate the application after switching.
  • the monitoring module 01 can also be used to:
  • the background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
  • the background application and the non-focus control application on the terminal may be filtered first. Since background applications and non-focus control applications do not involve focus usage in multiple application switching, they will not focus on background applications and non-focus control applications when multiple applications are switched. In the program. Therefore, filtering the background application and the non-focus control application on the terminal can narrow the detection range, and the monitoring efficiency is higher. Moreover, since the positioning and switching of the focus generally occur in the currently running application on the terminal screen, the application switching instruction currently running on the terminal screen can be monitored, such as monitoring the currently running application on the terminal screen. The change in focus occupancy or position change, etc. Specifically, the two application TV applications and the Shortkey application that have the longest running time among the several applications currently running on the terminal screen can be acquired, and the focus occupancy change or the position change of the TV application and the Shortkey application can be monitored.
  • the obtaining module 02 is further configured to:
  • the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application.
  • the number of focus occupations of the currently running application on the terminal screen changes within a preset time, it can be determined that the currently running application on the terminal screen is being switched, and the focus is required to be positioned, and then the focus is obtained. The total number of times the focus of the current application that has changed the number of occupations.
  • the focus of the TV application is 2 times
  • the focus of the Shortkey application is 1 time
  • the second time the focus of the TV application is 1 time
  • the focus of the Shortkey application is 2 times. It can be seen that the focus occupancy of the TV application and the Shortkey application has changed, indicating that the current TV application and the Shortkey application are switching, and the focus needs to be targeted to the switched TV application or Shortkey application. Get the total number of focus occupations of the TV application or Shortkey application, that is, the sum of the focus occupancy times after the terminal is powered on.
  • the positioning module 03 can also be used to:
  • the focus occupancy weight of the TV application is calculated as the product of the total number of focus occupations and the preset weight, ie, The focus occupancy weight is 30. If the total number of focus occupations of the Shortkey application is 10, and the preset weight set for the Shortkey application according to the system dependency is 5, the focus occupancy weight of the Shortkey application is calculated as the product of the total number of focus occupations and the preset weight, that is, The focus occupancy weight is 50.
  • the Shortkey application Comparing the focus occupancy weight of the TV application and the Shortkey application, the Shortkey application has the largest focus occupancy weight, which means that when the TV application and the Shortkey application are switching, the Shortkey application with the largest focus weight is the most likely to match the user.
  • the second embodiment of the present invention provides a terminal for locating a focus when the application is switched.
  • the method further includes:
  • the setting module 04 is configured to set, as the current focus selection state, a control of the application that matches the focus occupancy information to the preset condition.
  • the control of the application whose focus occupancy information meets the preset condition may be further set as the current The focus is selected.
  • the application that the current focus is docked can respond to key events that need to use the control in time, which is more convenient for the user to operate.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • a storage medium such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Abstract

Provided are a focus positioning method for application switching, and a terminal thereof. The method comprises the following steps: monitoring and detecting an instruction to switch between applications on a terminal (S10); when the instruction to switch between applications is detected, acquiring focus engagement information of applications currently undergoing a switching operation (S20); and positioning a current focus to a window of an application having the focus engagement information satisfying a preset condition (S30). Positioning a current focus to a window of an application satisfying a preset condition among applications currently undergoing a switching operation can prevent the focus from being lost when switching between multiple applications is performed, thereby enabling a user to operate the application more conveniently after the switching.

Description

应用程序切换时的焦点定位方法及装置  Focus positioning method and device when application switching
技术领域Technical field
本发明涉及电视技术领域,尤其涉及一种应用程序切换时的焦点定位方法及装置。The present invention relates to the field of television technologies, and in particular, to a focus positioning method and apparatus for application switching.
背景技术Background technique
随着智能终端如智能电视的发展,用户可在智能终端上使用的应用程序也越来越多。然而,当用户在智能终端上对多个应用程序进行切换时,现有技术中并没有对多个应用程序切换时的焦点进行明确的定位,导致在多个应用程序切换时焦点容易出现丢失的情况,无法定位到切换的应用程序中,给用户的操作带来极大不便。With the development of smart terminals such as smart TVs, there are more and more applications that users can use on smart terminals. However, when a user switches multiple applications on the smart terminal, the prior art does not explicitly locate the focus when multiple applications are switched, resulting in the focus being easily lost when multiple applications are switched. In this case, it is impossible to locate the switched application, which brings great inconvenience to the user's operation.
发明内容Summary of the invention
本发明的主要目的在于提供一种应用程序切换时的焦点定位方法及装置,旨在解决多个应用程序切换时焦点容易丢失的技术问题。The main object of the present invention is to provide a focus positioning method and apparatus for application switching, which aims to solve the technical problem that the focus is easily lost when multiple applications are switched.
为实现上述目的,本发明提供的一种应用程序切换时的焦点定位方法,所述方法包括以下步骤:To achieve the above objective, the present invention provides a focus positioning method when an application is switched, and the method includes the following steps:
监测终端上的应用程序切换指令,具体包括:将终端的后台应用程序及非焦点控制类应用程序过滤,监测终端屏幕上当前运行的应用程序的焦点占用次数变化;The application switching instruction on the monitoring terminal specifically includes: filtering the background application of the terminal and the non-focus control application, and monitoring the change of the focus occupancy of the currently running application on the screen of the terminal;
当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息;Obtaining focus occupancy information of an application currently switching when an application switching instruction is detected;
将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中;Positioning the current focus to an application window in which the focus occupancy information conforms to a preset condition;
将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。The control of the application whose focus occupancy information meets the preset condition is set as the current focus selection state.
优选地,所述当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息的步骤包括:Preferably, when the application switching instruction is detected, the step of acquiring focus occupancy information of the currently switched application includes:
当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数,所述焦点占用总次数为所述当前应用程序在终端开机之后的焦点占用次数总和。When the number of times of focus usage of the currently running application on the terminal screen changes within a preset time, the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application. The sum of the focus occupancy times after the terminal is powered on.
优选地,所述将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中的步骤包括:Preferably, the step of positioning the current focus into the application window in which the focus occupancy information conforms to the preset condition comprises:
根据所述当前应用程序对应的焦点占用总次数及预设权重计算获取每一当前应用程序对应的焦点占用权值,将当前焦点定位到焦点占用权值最大的应用程序窗口中。Obtaining a focus occupancy weight corresponding to each current application according to the total number of focus occupations and the preset weight corresponding to the current application, and positioning the current focus into an application window with the largest focus occupancy value.
本发明还提供一种应用程序切换时的焦点定位方法,所述方法包括以下步骤:The present invention also provides a focus positioning method when an application is switched, the method comprising the following steps:
监测终端上的应用程序切换指令;Monitoring application switching instructions on the terminal;
当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息;Obtaining focus occupancy information of an application currently switching when an application switching instruction is detected;
将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。Positioning the current focus into the application window where the focus occupancy information meets the preset criteria.
优选地,所述监测终端上的应用程序切换指令的步骤包括:Preferably, the step of monitoring the application switching instruction on the terminal comprises:
将终端的后台应用程序及非焦点控制类应用程序过滤,监测终端屏幕上当前运行的应用程序的焦点占用次数变化。 The background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
优选地,所述当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息的步骤包括:Preferably, when the application switching instruction is detected, the step of acquiring focus occupancy information of the currently switched application includes:
当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数,所述焦点占用总次数为所述当前应用程序在终端开机之后的焦点占用次数总和。 When the number of times of focus usage of the currently running application on the terminal screen changes within a preset time, the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application. The sum of the focus occupancy times after the terminal is powered on.
优选地,所述将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中的步骤包括:Preferably, the step of positioning the current focus into the application window in which the focus occupancy information conforms to the preset condition comprises:
根据所述当前应用程序对应的焦点占用总次数及预设权重计算获取每一当前应用程序对应的焦点占用权值,将当前焦点定位到焦点占用权值最大的应用程序窗口中。 Obtaining a focus occupancy weight corresponding to each current application according to the total number of focus occupations and the preset weight corresponding to the current application, and positioning the current focus into an application window with the largest focus occupancy value.
优选地,所述将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中的步骤之后还包括:Preferably, after the step of positioning the current focus to the application window in which the focus occupancy information meets the preset condition, the method further includes:
将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。 The control of the application whose focus occupancy information meets the preset condition is set as the current focus selection state.
此外,为实现上述目的,本发明还提供一种应用程序切换时定位焦点的终端,所述终端包括:In addition, in order to achieve the above object, the present invention further provides a terminal for positioning a focus when an application is switched, and the terminal includes:
监测模块,用于监测终端上的应用程序切换指令;a monitoring module, configured to monitor an application switching instruction on the terminal;
获取模块,用于当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息;An acquiring module, configured to acquire focus occupancy information of an application currently switching when an application switching instruction is detected;
定位模块,用于将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。And a positioning module, configured to position the current focus into the application window where the focus occupancy information meets the preset condition.
优选地,所述监测模块还用于:Preferably, the monitoring module is further configured to:
将终端的后台应用程序及非焦点控制类应用程序过滤,监测终端屏幕上当前运行的应用程序的焦点占用次数变化。 The background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
优选地,所述获取模块还用于:Preferably, the obtaining module is further configured to:
当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数,所述焦点占用总次数为所述当前应用程序在终端开机之后的焦点占用次数总和。 When the number of times of focus usage of the currently running application on the terminal screen changes within a preset time, the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application. The sum of the focus occupancy times after the terminal is powered on.
优选地,所述定位模块还用于:Preferably, the positioning module is further configured to:
根据所述当前应用程序对应的焦点占用总次数及预设权重计算获取每一当前应用程序对应的焦点占用权值,将当前焦点定位到焦点占用权值最大的应用程序窗口中。 Obtaining a focus occupancy weight corresponding to each current application according to the total number of focus occupations and the preset weight corresponding to the current application, and positioning the current focus into an application window with the largest focus occupancy value.
优选地,所述终端还包括:Preferably, the terminal further includes:
设定模块,用于将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。 And a setting module, configured to set a control of the application that meets the preset condition to the current focus selection state.
本发明提出的一种应用程序切换时的焦点定位方法及装置,当监测到应用程序切换指令时,获取当前切换的应用程序的焦点占用信息,并将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。由于在监测到多个应用程序进行切换时,利用当前切换的每一应用程序的焦点占用信息来对当前焦点进行明确地定位,能将当前焦点定位到当前切换的应用程序中符合预设条件的应用程序窗口,避免了多个应用程序切换时焦点丢失的情况,更加方便用户对切换后应用程序的操作。The focus positioning method and device for application switching according to the present invention acquires focus occupancy information of the currently switched application when the application switching instruction is detected, and locates the current focus to the focus occupancy information. Set the condition in the application window. Since the current focus is explicitly positioned by using the focus occupancy information of each application currently switched when the multiple applications are monitored for switching, the current focus can be targeted to the currently switched application that meets the preset condition. The application window avoids the loss of focus when multiple applications switch, making it easier for users to operate the application after switching.
附图说明DRAWINGS
图1为本发明应用程序切换时的焦点定位方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a focus positioning method when an application is switched according to the present invention;
图2为本发明应用程序切换时的焦点定位方法第二实施例的流程示意图;2 is a schematic flowchart diagram of a second embodiment of a focus positioning method when an application is switched according to the present invention;
图3为本发明应用程序切换时定位焦点的终端第一实施例的功能模块示意图;3 is a schematic diagram of functional modules of a first embodiment of a terminal for positioning a focus when an application is switched;
图4为本发明应用程序切换时定位焦点的终端第二实施例的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of a second embodiment of a terminal for positioning a focus when an application is switched.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种应用程序切换时的焦点定位方法。The invention provides a focus positioning method when an application is switched.
参照图1,图1为本发明应用程序切换时的焦点定位方法第一实施例的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a first embodiment of a focus positioning method when an application is switched according to the present invention.
在第一实施例中,该应用程序切换时的焦点定位方法包括:In the first embodiment, the focus positioning method when the application is switched includes:
步骤S10,监测终端上的应用程序切换指令; Step S10, monitoring an application switching instruction on the terminal;
本实施例中,由于应用程序在进行切换的同时会进行焦点的切换,为了保证焦点在应用程序切换时不会出现丢失的情况,对终端上正在运行的多个应用程序之间的切换指令进行侦测。如可侦测用户通过按键进行应用程序、焦点切换的按键事件,还可通过侦测终端上正在运行的多个应用程序之间的位置变换来监测终端上的应用程序、焦点切换事件,还可采用其他各种方式来监测终端上的应用程序、焦点切换事件,在此不作限定。In this embodiment, since the application performs the switching of the focus while performing the switching, in order to ensure that the focus does not occur when the application is switched, the switching instruction between the plurality of applications running on the terminal is performed. Detection. For example, it can detect a button event of a user performing an application and focus switching by pressing a button, and can also monitor an application and a focus switching event on the terminal by detecting a position change between a plurality of applications running on the terminal. The application and the focus switching event on the terminal are monitored in various other manners, which are not limited herein.
步骤S20,当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息;Step S20: When the application switching instruction is detected, acquiring focus occupancy information of the currently switched application;
当监测到终端上的应用程序、焦点切换事件时,找到当前正在进行切换的多个应用程序,并获取当前进行切换的多个应用程序的焦点占用信息。其中,该焦点占用信息可以为预先设定的各应用程序对应的焦点占用次数、焦点占用时长、焦点占用权重等信息。When the application and the focus switching event on the terminal are detected, multiple applications that are currently switching are found, and the focus occupancy information of the plurality of applications currently switching is obtained. The focus occupancy information may be information such as a focus occupancy count, a focus occupation duration, and a focus occupancy weight corresponding to each application set in advance.
步骤S30,将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。Step S30, positioning the current focus into the application window whose focus occupancy information meets the preset condition.
获取到当前进行切换的应用程序的焦点占用次数、焦点占用时长、焦点占用权重等焦点占用信息后,即可根据该焦点占用信息从当前正在进行切换的多个应用程序之间进行选择,筛选出焦点占用信息符合预设条件的应用程序,如可从当前正在进行切换的多个应用程序中选择焦点占用次数最多、焦点占用时长最长或焦点占用权重最大的应用程序,并将当前焦点定位到选择的应用程序窗口中。由于选择的应用程序为当前正在进行切换的多个应用程序中焦点占用次数最多、焦点占用时长最长或焦点占用权重最大的应用程序,因此,选择的应用程序为用户经常利用焦点控制的应用程序,也是在多个应用程序切换时最有可能符合用户对焦点最终定位需求的应用程序。After obtaining the focus occupancy information such as the focus occupancy time, the focus occupation time, and the focus occupancy weight of the currently switched application, the focus occupancy information may be selected according to the focus occupancy information, and the multiple applications that are currently switching are selected. An application whose focus occupancy information meets the preset conditions, such as an application that selects the most focus focus, the longest focus duration, or the largest focus weight from among multiple applications currently switching, and positions the current focus to In the selected application window. Since the selected application is the application with the most focus, the longest focus time, or the largest focus weight among the multiple applications currently switching, the selected application is the application that the user often uses the focus control. It is also the application that is most likely to meet the user's focus on the final positioning requirements when multiple applications are switched.
本实施例中当监测到应用程序切换指令时,获取当前切换的应用程序的焦点占用信息,并将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。由于在监测到多个应用程序进行切换时,利用当前切换的每一应用程序的焦点占用信息来对当前焦点进行明确地定位,能将当前焦点定位到当前切换的应用程序中符合预设条件的应用程序窗口,避免了多个应用程序切换时焦点丢失的情况,更加方便用户对切换后应用程序的操作。In this embodiment, when the application switching instruction is detected, the focus occupancy information of the currently switched application is acquired, and the current focus is located in the application window whose focus occupancy information meets the preset condition. Since the current focus is explicitly positioned by using the focus occupancy information of each application currently switched when the multiple applications are monitored for switching, the current focus can be targeted to the currently switched application that meets the preset condition. The application window avoids the loss of focus when multiple applications switch, making it easier for users to operate the application after switching.
进一步地,在其他实施例中,上述步骤S10可以包括:Further, in other embodiments, the foregoing step S10 may include:
将终端的后台应用程序及非焦点控制类应用程序过滤,监测终端屏幕上当前运行的应用程序的焦点占用次数变化。The background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
本实施例中,在监测终端上的应用程序、焦点切换事件时,可先将终端上的后台应用程序及非焦点控制类应用程序过滤。由于后台应用程序及非焦点控制类应用程序并不涉及到在多个应用程序切换中的焦点占用,也就不会在多个应用程序切换时将焦点定位到后台应用程序及非焦点控制类应用程序中。因此,将终端上的后台应用程序及非焦点控制类应用程序过滤之后可缩小侦测的范围,监测的效率更高。而且,由于焦点的定位、切换一般发生在终端屏幕上当前运行的应用程序中,因此,可对终端屏幕上当前运行的应用程序切换指令进行监测,如可监测终端屏幕上当前运行的应用程序的焦点占用次数变化或位置变化等。具体地,可获取终端屏幕上当前运行的若干应用程序中运行时间最长的两个应用程序TV应用和Shortkey应用,并监测TV应用和Shortkey应用的焦点占用次数变化或位置变化。In this embodiment, when monitoring an application and a focus switching event on the terminal, the background application and the non-focus control application on the terminal may be filtered first. Since background applications and non-focus control applications do not involve focus usage in multiple application switching, they will not focus on background applications and non-focus control applications when multiple applications are switched. In the program. Therefore, filtering the background application and the non-focus control application on the terminal can narrow the detection range, and the monitoring efficiency is higher. Moreover, since the positioning and switching of the focus generally occur in the currently running application on the terminal screen, the application switching instruction currently running on the terminal screen can be monitored, such as monitoring the currently running application on the terminal screen. The change in focus occupancy or position change, etc. Specifically, the two application TV applications and the Shortkey application that have the longest running time among the several applications currently running on the terminal screen can be acquired, and the focus occupancy change or the position change of the TV application and the Shortkey application can be monitored.
进一步地,在其他实施例中,上述步骤S20可以包括:Further, in other embodiments, the foregoing step S20 may include:
当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数,所述焦点占用总次数为所述当前应用程序在终端开机之后的焦点占用次数总和。When the number of times of focus usage of the currently running application on the terminal screen changes within a preset time, the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application. The sum of the focus occupancy times after the terminal is powered on.
本实施例中,当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,即可判断终端屏幕上当前运行的应用程序正在进行切换,需要对焦点进行定位,则获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数。In this embodiment, when the number of focus occupations of the currently running application on the terminal screen changes within a preset time, it can be determined that the currently running application on the terminal screen is being switched, and the focus is required to be positioned, and then the focus is obtained. The total number of times the focus of the current application that has changed the number of occupations.
如当2s时间段内,在第1s时, TV应用的焦点占用次数为2次,Shortkey应用的焦点占用次数为1次,在第2s时,TV应用的焦点占用次数为1次,Shortkey应用的焦点占用次数为2次。则可知TV应用和Shortkey应用的焦点占用次数发生了变化,说明当前TV应用和Shortkey应用正在进行切换,需要将焦点定位到切换后的TV应用或Shortkey应用中。获取TV应用或Shortkey应用的焦点占用总次数即在终端开机之后的焦点占用次数总和。Such as when the 2s period, at the 1st, The focus of the TV application is 2 times, the focus of the Shortkey application is 1 time, the second time, the focus of the TV application is 1 time, and the focus of the Shortkey application is 2 times. It can be seen that the focus occupancy of the TV application and the Shortkey application has changed, indicating that the current TV application and the Shortkey application are switching, and the focus needs to be targeted to the switched TV application or Shortkey application. Get the total number of focus occupations of the TV application or Shortkey application, that is, the sum of the focus occupancy times after the terminal is powered on.
进一步地,在其他实施例中,上述步骤S30可以包括:Further, in other embodiments, the foregoing step S30 may include:
根据所述当前应用程序对应的焦点占用总次数及预设权重计算获取每一当前应用程序对应的焦点占用权值,将当前焦点定位到焦点占用权值最大的应用程序窗口中。Obtaining a focus occupancy weight corresponding to each current application according to the total number of focus occupations and the preset weight corresponding to the current application, and positioning the current focus into an application window with the largest focus occupancy value.
本实施例中,在获取到焦点占用次数发生变化的当前应用程序对应的焦点占用总次数后,进一步地,综合考虑预先为不同当前应用程序设定的预设权重计算获取每一当前应用程序对应的焦点占用权值。这样,焦点占用权值越大则说明对应的应用程序在终端开机之后的工作中占用焦点的次数最多,系统依赖性最强,最有可能成为用户在进行应用程序切换后需要将焦点停靠的应用程序。In this embodiment, after obtaining the total number of focus occupations corresponding to the current application whose focus occupancy times have changed, further comprehensively considering the preset weight calculations previously set for different current applications to obtain each current application corresponding The focus of the focus is on the weight. In this way, the larger the focus occupancy weight, the larger the number of times the corresponding application occupies the focus in the work after the terminal is powered on, and the system dependency is the strongest, and the most likely application is that the user needs to stop the focus after the application is switched. program.
如若TV应用的焦点占用总次数为3,根据系统依赖性为TV应用设定的预设权重为10,则计算获取TV应用的焦点占用权值为焦点占用总次数与预设权重的乘积,即焦点占用权值为30。若Shortkey应用的焦点占用总次数为10,根据系统依赖性为Shortkey应用设定的预设权重为5,则计算获取Shortkey应用的焦点占用权值为焦点占用总次数与预设权重的乘积,即焦点占用权值为50。比较TV应用与Shortkey应用的焦点占用权值,Shortkey应用的焦点占用权值最大,则说明TV应用和Shortkey应用在进行切换时,焦点占用权值最大的Shortkey应用为切换时最有可能符合用户对焦点最终定位需求的应用程序,则将当前焦点定位到焦点占用权值最大的Shortkey应用程序窗口中。If the total number of focus occupations of the TV application is 3, and the preset weight set for the TV application according to the system dependency is 10, the focus occupancy weight of the TV application is calculated as the product of the total number of focus occupations and the preset weight, ie, The focus occupancy weight is 30. If the total number of focus occupations of the Shortkey application is 10, and the preset weight set for the Shortkey application according to the system dependency is 5, the focus occupancy weight of the Shortkey application is calculated as the product of the total number of focus occupations and the preset weight, that is, The focus occupancy weight is 50. Comparing the focus occupancy weight of the TV application and the Shortkey application, the Shortkey application has the largest focus occupancy weight, which means that when the TV application and the Shortkey application are switching, the Shortkey application with the largest focus weight is the most likely to match the user. The application that focuses on the final positioning needs locates the current focus in the Shortkey application window with the largest focus on the weight.
如图2所示,本发明第二实施例提出一种应用程序切换时的焦点定位方法,在上述实施例的基础上,在上述步骤S30之后还包括:As shown in FIG. 2, the second embodiment of the present invention provides a focus positioning method when the application is switched. On the basis of the foregoing embodiment, after the step S30, the method further includes:
步骤S40,将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。 In step S40, the control of the application program whose focus occupancy information meets the preset condition is set as the current focus selection state.
本实施例中,在将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口后,进一步地,还可将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。这样,当前焦点停靠的应用程序可及时响应需要使用控件的按键事件等,更加方便用户操作。In this embodiment, after the current focus is positioned to the application window whose focus occupancy information meets the preset condition, the control of the application whose focus occupancy information meets the preset condition may be further set as the current The focus is selected. In this way, the application that the current focus is docked can respond to key events that need to use the control in time, which is more convenient for the user to operate.
本发明进一步提供一种应用程序切换时定位焦点的终端。The present invention further provides a terminal that locates a focus when an application is switched.
参照图3,图3为本发明应用程序切换时定位焦点的终端第一实施例的功能模块示意图。Referring to FIG. 3, FIG. 3 is a schematic diagram of functional modules of a first embodiment of a terminal for positioning a focus when an application is switched.
在第一实施例中,该应用程序切换时定位焦点的终端包括:In the first embodiment, the terminal that locates the focus when the application switches:
监测模块01,用于监测终端上的应用程序切换指令; The monitoring module 01 is configured to monitor an application switching instruction on the terminal;
本实施例中,由于应用程序在进行切换的同时会进行焦点的切换,为了保证焦点在应用程序切换时不会出现丢失的情况,对终端上正在运行的多个应用程序之间的切换指令进行侦测。如可侦测用户通过按键进行应用程序、焦点切换的按键事件,还可通过侦测终端上正在运行的多个应用程序之间的位置变换来监测终端上的应用程序、焦点切换事件,还可采用其他各种方式来监测终端上的应用程序、焦点切换事件,在此不作限定。In this embodiment, since the application performs the switching of the focus while performing the switching, in order to ensure that the focus does not occur when the application is switched, the switching instruction between the plurality of applications running on the terminal is performed. Detection. For example, it can detect the button event of the application and focus switching by the button, and can also monitor the application and the focus switching event on the terminal by detecting the position change between multiple applications running on the terminal. The application and the focus switching event on the terminal are monitored in various other manners, which are not limited herein.
获取模块02,用于当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息;The obtaining module 02 is configured to acquire focus occupancy information of the currently switched application when the application switching instruction is detected;
当监测到终端上的应用程序、焦点切换事件时,找到当前正在进行切换的多个应用程序,并获取当前进行切换的多个应用程序的焦点占用信息。其中,该焦点占用信息可以为预先设定的各应用程序对应的焦点占用次数、焦点占用时长、焦点占用权重等信息。When the application and the focus switching event on the terminal are detected, multiple applications that are currently switching are found, and the focus occupancy information of the plurality of applications currently switching is obtained. The focus occupancy information may be information such as a focus occupancy count, a focus occupation duration, and a focus occupancy weight corresponding to each application set in advance.
定位模块03,用于将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。The positioning module 03 is configured to locate the current focus into the application window where the focus occupancy information meets the preset condition.
获取到当前进行切换的应用程序的焦点占用次数、焦点占用时长、焦点占用权重等焦点占用信息后,即可根据该焦点占用信息从当前正在进行切换的多个应用程序之间进行选择,筛选出焦点占用信息符合预设条件的应用程序,如可从当前正在进行切换的多个应用程序中选择焦点占用次数最多、焦点占用时长最长或焦点占用权重最大的应用程序,并将当前焦点定位到选择的应用程序窗口中。由于选择的应用程序为当前正在进行切换的多个应用程序中焦点占用次数最多、焦点占用时长最长或焦点占用权重最大的应用程序,因此,选择的应用程序为用户经常利用焦点控制的应用程序,也是在多个应用程序切换时最有可能符合用户对焦点最终定位需求的应用程序。After obtaining the focus occupancy information such as the focus occupancy time, the focus occupation time, and the focus occupancy weight of the currently switched application, the focus occupancy information may be selected according to the focus occupancy information, and the multiple applications that are currently switching are selected. An application whose focus occupancy information meets the preset conditions, such as an application that selects the most focus focus, the longest focus duration, or the largest focus weight from among multiple applications currently switching, and positions the current focus to In the selected application window. Since the selected application is the application with the most focus, the longest focus time, or the largest focus weight among the multiple applications currently switching, the selected application is the application that the user often uses the focus control. It is also the application that is most likely to meet the user's focus on the final positioning requirements when multiple applications are switched.
本实施例中当监测到应用程序切换指令时,获取当前切换的应用程序的焦点占用信息,并将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。由于在监测到多个应用程序进行切换时,利用当前切换的每一应用程序的焦点占用信息来对当前焦点进行明确地定位,能将当前焦点定位到当前切换的应用程序中符合预设条件的应用程序窗口,避免了多个应用程序切换时焦点丢失的情况,更加方便用户对切换后应用程序的操作。In this embodiment, when the application switching instruction is detected, the focus occupancy information of the currently switched application is acquired, and the current focus is located in the application window whose focus occupancy information meets the preset condition. Since the current focus is explicitly positioned by using the focus occupancy information of each application currently switched when the multiple applications are monitored for switching, the current focus can be targeted to the currently switched application that meets the preset condition. The application window avoids the loss of focus when multiple applications switch, making it easier for users to operate the application after switching.
进一步地,在其他实施例中,监测模块01还可以用于:Further, in other embodiments, the monitoring module 01 can also be used to:
将终端的后台应用程序及非焦点控制类应用程序过滤,监测终端屏幕上当前运行的应用程序的焦点占用次数变化。The background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
本实施例中,在监测终端上的应用程序、焦点切换事件时,可先将终端上的后台应用程序及非焦点控制类应用程序过滤。由于后台应用程序及非焦点控制类应用程序并不涉及到在多个应用程序切换中的焦点占用,也就不会在多个应用程序切换时将焦点定位到后台应用程序及非焦点控制类应用程序中。因此,将终端上的后台应用程序及非焦点控制类应用程序过滤之后可缩小侦测的范围,监测的效率更高。而且,由于焦点的定位、切换一般发生在终端屏幕上当前运行的应用程序中,因此,可对终端屏幕上当前运行的应用程序切换指令进行监测,如可监测终端屏幕上当前运行的应用程序的焦点占用次数变化或位置变化等。具体地,可获取终端屏幕上当前运行的若干应用程序中运行时间最长的两个应用程序TV应用和Shortkey应用,并监测TV应用和Shortkey应用的焦点占用次数变化或位置变化。In this embodiment, when monitoring an application and a focus switching event on the terminal, the background application and the non-focus control application on the terminal may be filtered first. Since background applications and non-focus control applications do not involve focus usage in multiple application switching, they will not focus on background applications and non-focus control applications when multiple applications are switched. In the program. Therefore, filtering the background application and the non-focus control application on the terminal can narrow the detection range, and the monitoring efficiency is higher. Moreover, since the positioning and switching of the focus generally occur in the currently running application on the terminal screen, the application switching instruction currently running on the terminal screen can be monitored, such as monitoring the currently running application on the terminal screen. The change in focus occupancy or position change, etc. Specifically, the two application TV applications and the Shortkey application that have the longest running time among the several applications currently running on the terminal screen can be acquired, and the focus occupancy change or the position change of the TV application and the Shortkey application can be monitored.
进一步地,在其他实施例中,上述获取模块02还可以用于:Further, in other embodiments, the obtaining module 02 is further configured to:
当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数,所述焦点占用总次数为所述当前应用程序在终端开机之后的焦点占用次数总和。When the number of times of focus usage of the currently running application on the terminal screen changes within a preset time, the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application. The sum of the focus occupancy times after the terminal is powered on.
本实施例中,当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,即可判断终端屏幕上当前运行的应用程序正在进行切换,需要对焦点进行定位,则获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数。In this embodiment, when the number of focus occupations of the currently running application on the terminal screen changes within a preset time, it can be determined that the currently running application on the terminal screen is being switched, and the focus is required to be positioned, and then the focus is obtained. The total number of times the focus of the current application that has changed the number of occupations.
如当2s时间段内,在第1s时, TV应用的焦点占用次数为2次,Shortkey应用的焦点占用次数为1次,在第2s时,TV应用的焦点占用次数为1次,Shortkey应用的焦点占用次数为2次。则可知TV应用和Shortkey应用的焦点占用次数发生了变化,说明当前TV应用和Shortkey应用正在进行切换,需要将焦点定位到切换后的TV应用或Shortkey应用中。获取TV应用或Shortkey应用的焦点占用总次数即在终端开机之后的焦点占用次数总和。Such as when the 2s period, at the 1st, The focus of the TV application is 2 times, the focus of the Shortkey application is 1 time, the second time, the focus of the TV application is 1 time, and the focus of the Shortkey application is 2 times. It can be seen that the focus occupancy of the TV application and the Shortkey application has changed, indicating that the current TV application and the Shortkey application are switching, and the focus needs to be targeted to the switched TV application or Shortkey application. Get the total number of focus occupations of the TV application or Shortkey application, that is, the sum of the focus occupancy times after the terminal is powered on.
进一步地,在其他实施例中,上述定位模块03还可以用于:Further, in other embodiments, the positioning module 03 can also be used to:
根据所述当前应用程序对应的焦点占用总次数及预设权重计算获取每一当前应用程序对应的焦点占用权值,将当前焦点定位到焦点占用权值最大的应用程序窗口中。Obtaining a focus occupancy weight corresponding to each current application according to the total number of focus occupations and the preset weight corresponding to the current application, and positioning the current focus into an application window with the largest focus occupancy value.
本实施例中,在获取到焦点占用次数发生变化的当前应用程序对应的焦点占用总次数后,进一步地,综合考虑预先为不同当前应用程序设定的预设权重计算获取每一当前应用程序对应的焦点占用权值。这样,焦点占用权值越大则说明对应的应用程序在终端开机之后的工作中占用焦点的次数最多,系统依赖性最强,最有可能成为用户在进行应用程序切换后需要将焦点停靠的应用程序。In this embodiment, after obtaining the total number of focus occupations corresponding to the current application whose focus occupancy times have changed, further comprehensively considering the preset weight calculations previously set for different current applications to obtain each current application corresponding The focus of the focus is on the weight. In this way, the larger the focus occupancy weight, the larger the number of times the corresponding application occupies the focus in the work after the terminal is powered on, and the system dependency is the strongest, and the most likely application is that the user needs to stop the focus after the application is switched. program.
如若TV应用的焦点占用总次数为3,根据系统依赖性为TV应用设定的预设权重为10,则计算获取TV应用的焦点占用权值为焦点占用总次数与预设权重的乘积,即焦点占用权值为30。若Shortkey应用的焦点占用总次数为10,根据系统依赖性为Shortkey应用设定的预设权重为5,则计算获取Shortkey应用的焦点占用权值为焦点占用总次数与预设权重的乘积,即焦点占用权值为50。比较TV应用与Shortkey应用的焦点占用权值,Shortkey应用的焦点占用权值最大,则说明TV应用和Shortkey应用在进行切换时,焦点占用权值最大的Shortkey应用为切换时最有可能符合用户对焦点最终定位需求的应用程序,则将当前焦点定位到焦点占用权值最大的Shortkey应用程序窗口中。If the total number of focus occupations of the TV application is 3, and the preset weight set for the TV application according to the system dependency is 10, the focus occupancy weight of the TV application is calculated as the product of the total number of focus occupations and the preset weight, ie, The focus occupancy weight is 30. If the total number of focus occupations of the Shortkey application is 10, and the preset weight set for the Shortkey application according to the system dependency is 5, the focus occupancy weight of the Shortkey application is calculated as the product of the total number of focus occupations and the preset weight, that is, The focus occupancy weight is 50. Comparing the focus occupancy weight of the TV application and the Shortkey application, the Shortkey application has the largest focus occupancy weight, which means that when the TV application and the Shortkey application are switching, the Shortkey application with the largest focus weight is the most likely to match the user. The application that focuses on the final positioning needs locates the current focus in the Shortkey application window with the largest focus on the weight.
如图4所示,本发明第二实施例提出一种应用程序切换时定位焦点的终端,在上述实施例的基础上,还包括:As shown in FIG. 4, the second embodiment of the present invention provides a terminal for locating a focus when the application is switched. On the basis of the foregoing embodiment, the method further includes:
设定模块04,用于将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。 The setting module 04 is configured to set, as the current focus selection state, a control of the application that matches the focus occupancy information to the preset condition.
本实施例中,在将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口后,进一步地,还可将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。这样,当前焦点停靠的应用程序可及时响应需要使用控件的按键事件等,更加方便用户操作。In this embodiment, after the current focus is positioned to the application window whose focus occupancy information meets the preset condition, the control of the application whose focus occupancy information meets the preset condition may be further set as the current The focus is selected. In this way, the application that the current focus is docked can respond to key events that need to use the control in time, which is more convenient for the user to operate.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (16)

  1. 一种应用程序切换时的焦点定位方法,其特征在于,所述方法包括以下步骤: A focus positioning method for application switching, characterized in that the method comprises the following steps:
    监测终端上的应用程序切换指令,具体包括:将终端的后台应用程序及非焦点控制类应用程序过滤,监测终端屏幕上当前运行的应用程序的焦点占用次数变化;The application switching instruction on the monitoring terminal specifically includes: filtering the background application of the terminal and the non-focus control application, and monitoring the change of the focus occupancy of the currently running application on the screen of the terminal;
    当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息;Obtaining focus occupancy information of an application currently switching when an application switching instruction is detected;
    将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中;Positioning the current focus to an application window in which the focus occupancy information conforms to a preset condition;
    将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。The control of the application whose focus occupancy information meets the preset condition is set as the current focus selection state.
  2. 如权利要求1所述的应用程序切换时的焦点定位方法,其特征在于,所述当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息的步骤包括: The focus positioning method of the application switching according to claim 1, wherein the step of acquiring the focus occupancy information of the currently switched application when the application switching instruction is detected comprises:
    当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数,所述焦点占用总次数为所述当前应用程序在终端开机之后的焦点占用次数总和。When the number of times of focus usage of the currently running application on the terminal screen changes within a preset time, the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application. The sum of the focus occupancy times after the terminal is powered on.
  3. 如权利要求2所述的应用程序切换时的焦点定位方法,其特征在于,所述将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中的步骤包括:The focus positioning method of the application switching according to claim 2, wherein the step of positioning the current focus to the application window in which the focus occupancy information conforms to the preset condition comprises:
    根据所述当前应用程序对应的焦点占用总次数及预设权重计算获取每一当前应用程序对应的焦点占用权值,将当前焦点定位到焦点占用权值最大的应用程序窗口中。Obtaining a focus occupancy weight corresponding to each current application according to the total number of focus occupations and the preset weight corresponding to the current application, and positioning the current focus into an application window with the largest focus occupancy value.
  4. 一种应用程序切换时的焦点定位方法,其特征在于,所述方法包括以下步骤:A focus positioning method for application switching, characterized in that the method comprises the following steps:
    监测终端上的应用程序切换指令;Monitoring application switching instructions on the terminal;
    当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息;Obtaining focus occupancy information of an application currently switching when an application switching instruction is detected;
    将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。Positioning the current focus into the application window where the focus occupancy information meets the preset criteria.
  5. 如权利要求4所述的应用程序切换时的焦点定位方法,其特征在于,所述监测终端上的应用程序切换指令的步骤包括:The focus positioning method of the application switching according to claim 4, wherein the step of monitoring the application switching instruction on the terminal comprises:
    将终端的后台应用程序及非焦点控制类应用程序过滤,监测终端屏幕上当前运行的应用程序的焦点占用次数变化。The background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
  6. 如权利要求5所述的应用程序切换时的焦点定位方法,其特征在于,所述当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息的步骤包括:The method of claim 5, wherein the step of acquiring the focus occupancy information of the currently switched application when the application switching instruction is detected includes:
    当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数,所述焦点占用总次数为所述当前应用程序在终端开机之后的焦点占用次数总和。When the number of times of focus usage of the currently running application on the terminal screen changes within a preset time, the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application. The sum of the focus occupancy times after the terminal is powered on.
  7. 如权利要求6所述的应用程序切换时的焦点定位方法,其特征在于,所述将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中的步骤包括:The focus positioning method of the application switching according to claim 6, wherein the step of positioning the current focus to the application window in which the focus occupancy information conforms to the preset condition comprises:
    根据所述当前应用程序对应的焦点占用总次数及预设权重计算获取每一当前应用程序对应的焦点占用权值,将当前焦点定位到焦点占用权值最大的应用程序窗口中。Obtaining a focus occupancy weight corresponding to each current application according to the total number of focus occupations and the preset weight corresponding to the current application, and positioning the current focus into an application window with the largest focus occupancy value.
  8. 如权利要求4所述的应用程序切换时的焦点定位方法,其特征在于,所述将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中的步骤之后还包括:The focus positioning method of the application switching according to claim 4, wherein the step of positioning the current focus to the application window in which the focus occupancy information meets the preset condition further comprises:
    将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。The control of the application whose focus occupancy information meets the preset condition is set as the current focus selection state.
  9. 一种应用程序切换时定位焦点的终端,其特征在于,所述终端包括:A terminal for locating a focus when an application is switched, wherein the terminal comprises:
    监测模块,用于监测终端上的应用程序切换指令;a monitoring module, configured to monitor an application switching instruction on the terminal;
    获取模块,用于当监测到应用程序切换指令时,获取当前进行切换的应用程序的焦点占用信息;An acquiring module, configured to acquire focus occupancy information of an application currently switching when an application switching instruction is detected;
    定位模块,用于将当前焦点定位到所述焦点占用信息符合预设条件的应用程序窗口中。And a positioning module, configured to position the current focus into the application window where the focus occupancy information meets the preset condition.
  10. 如权利要求9所述的应用程序切换时定位焦点的终端,其特征在于,所述监测模块还用于:The terminal for locating a focus when the application is switched according to claim 9, wherein the monitoring module is further configured to:
    将终端的后台应用程序及非焦点控制类应用程序过滤,监测终端屏幕上当前运行的应用程序的焦点占用次数变化。The background application of the terminal and the non-focus control application are filtered to monitor the change in the focus occupancy of the currently running application on the terminal screen.
  11. 如权利要求10所述的应用程序切换时定位焦点的终端,其特征在于,所述获取模块还用于:The terminal for locating a focus when the application is switched according to claim 10, wherein the obtaining module is further configured to:
    当预设时间内终端屏幕上当前运行的应用程序的焦点占用次数发生变化时,获取焦点占用次数发生变化的当前应用程序对应的焦点占用总次数,所述焦点占用总次数为所述当前应用程序在终端开机之后的焦点占用次数总和。When the number of times of focus usage of the currently running application on the terminal screen changes within a preset time, the total number of times of focus usage corresponding to the current application whose focus occupancy number changes is obtained, and the total number of focus occupations is the current application. The sum of the focus occupancy times after the terminal is powered on.
  12. 如权利要求11所述的应用程序切换时定位焦点的终端,其特征在于,所述定位模块还用于:The terminal for locating a focus when the application is switched according to claim 11, wherein the positioning module is further configured to:
    根据所述当前应用程序对应的焦点占用总次数及预设权重计算获取每一当前应用程序对应的焦点占用权值,将当前焦点定位到焦点占用权值最大的应用程序窗口中Obtaining a focus occupancy weight corresponding to each current application according to the total number of focus occupations and the preset weight corresponding to the current application, and positioning the current focus to an application window with the largest focus occupancy value.
  13. 如权利要求9所述的应用程序切换时定位焦点的终端,其特征在于,还包括:The terminal for locating a focus when the application is switched according to claim 9, further comprising:
    设定模块,用于将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。And a setting module, configured to set a control of the application that meets the preset condition to the current focus selection state.
  14. 如权利要求10所述的应用程序切换时定位焦点的终端,其特征在于,还包括:The terminal for locating a focus when the application is switched according to claim 10, further comprising:
    设定模块,用于将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。And a setting module, configured to set a control of the application that meets the preset condition to the current focus selection state.
  15. 如权利要求11所述的应用程序切换时定位焦点的终端,其特征在于,还包括:The terminal for locating a focus when the application is switched according to claim 11, further comprising:
    设定模块,用于将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。And a setting module, configured to set a control of the application that meets the preset condition to the current focus selection state.
  16. 如权利要求12所述的应用程序切换时定位焦点的终端,其特征在于,还包括:The terminal for locating a focus when the application is switched according to claim 12, further comprising:
    设定模块,用于将所述焦点占用信息符合预设条件的应用程序的控件设定为当前焦点选中状态。And a setting module, configured to set a control of the application that meets the preset condition to the current focus selection state.
PCT/CN2016/084219 2015-09-01 2016-06-01 Focus positioning method and device for application switching WO2017036204A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510551970.5 2015-09-01
CN201510551970.5A CN105183469B (en) 2015-09-01 2015-09-01 Focus localization method and device when application program switches

Publications (1)

Publication Number Publication Date
WO2017036204A1 true WO2017036204A1 (en) 2017-03-09

Family

ID=54905568

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084219 WO2017036204A1 (en) 2015-09-01 2016-06-01 Focus positioning method and device for application switching

Country Status (2)

Country Link
CN (1) CN105183469B (en)
WO (1) WO2017036204A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437351A (en) * 2020-11-09 2021-03-02 深圳Tcl新技术有限公司 Method, device and equipment for automatically stopping control option focus and readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183469B (en) * 2015-09-01 2019-01-01 深圳Tcl数字技术有限公司 Focus localization method and device when application program switches
CN106339171A (en) * 2016-08-24 2017-01-18 深圳市万普拉斯科技有限公司 Application switching method and device
CN106502862A (en) * 2016-10-20 2017-03-15 广州优视网络科技有限公司 A kind of unit of monitoring Application Status and method
CN108282681A (en) * 2018-01-02 2018-07-13 山东浪潮商用系统有限公司 A kind of focus switching method and device
CN108566564B (en) * 2018-04-12 2021-09-28 深圳Tcl数字技术有限公司 Page focus jumping method, television and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101287222A (en) * 2008-06-11 2008-10-15 深圳华为通信技术有限公司 Method and device for positioning of focal
CN101316315A (en) * 2007-05-28 2008-12-03 深圳Tcl工业研究院有限公司 Fast focus locating method and device
US7624355B2 (en) * 2004-05-27 2009-11-24 Baneth Robin C System and method for controlling a user interface
CN103916710A (en) * 2014-03-31 2014-07-09 优视科技有限公司 Focal point switching method and system
CN105183469A (en) * 2015-09-01 2015-12-23 深圳Tcl数字技术有限公司 Method and apparatus for focus location during application switching

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7624355B2 (en) * 2004-05-27 2009-11-24 Baneth Robin C System and method for controlling a user interface
CN101316315A (en) * 2007-05-28 2008-12-03 深圳Tcl工业研究院有限公司 Fast focus locating method and device
CN101287222A (en) * 2008-06-11 2008-10-15 深圳华为通信技术有限公司 Method and device for positioning of focal
CN103916710A (en) * 2014-03-31 2014-07-09 优视科技有限公司 Focal point switching method and system
CN105183469A (en) * 2015-09-01 2015-12-23 深圳Tcl数字技术有限公司 Method and apparatus for focus location during application switching

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437351A (en) * 2020-11-09 2021-03-02 深圳Tcl新技术有限公司 Method, device and equipment for automatically stopping control option focus and readable storage medium
CN112437351B (en) * 2020-11-09 2024-02-06 深圳Tcl新技术有限公司 Automatic stop method, device and equipment for controlling option focus and readable storage medium

Also Published As

Publication number Publication date
CN105183469A (en) 2015-12-23
CN105183469B (en) 2019-01-01

Similar Documents

Publication Publication Date Title
WO2017036204A1 (en) Focus positioning method and device for application switching
WO2019119771A1 (en) Voice interaction method, device and computer readable storage medium
WO2019051887A1 (en) Method and device for controlling home appliance, and computer-readable storage medium
WO2017028601A1 (en) Voice control method and device for intelligent terminal, and television system
WO2017201913A1 (en) Precise voice control method and device
WO2019214039A1 (en) Control method and device for cleaning robot, cleaning robot and storage medium
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2018028121A1 (en) Method and device for managing storage space of data partition
WO2017028613A1 (en) Terminal control method and apparatus based on remote controller app
WO2015058570A1 (en) Method and device for automatically recognizing network operator to realize data configuration
WO2017036209A1 (en) Audio data play method based on smart television, and smart television and system
WO2016058258A1 (en) Terminal remote control method and system
WO2017084303A1 (en) Switching method for launcher and switching control system
WO2017215233A1 (en) Terminal power button control method and system
WO2018053963A1 (en) Method and apparatus for upgrading system of smart television
WO2017000729A1 (en) Audio/video playing control method and device
WO2017084301A1 (en) Audio data playing method and apparatus, and smart television
WO2015018185A1 (en) Method and device for realizing distributed remote control, and television terminal and mobile terminal thereof
WO2018053964A1 (en) Android-based method and apparatus for voice input of punctuation mark
WO2017092267A1 (en) Channel processing method and device
WO2017063366A1 (en) Method and system for starting application
WO2019080401A1 (en) Method and apparatus for converting script statement, and computer-readable storage medium
WO2019051901A1 (en) Terminal control method and device, and computer readable storage medium
WO2016206223A1 (en) Screenshooting method and system
WO2017041546A1 (en) Television bluetooth connection method and apparatus

Legal Events

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

Ref document number: 16840633

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 16840633

Country of ref document: EP

Kind code of ref document: A1