WO2017054615A1 - 一种应用程序停包方法、装置及电子设备 - Google Patents

一种应用程序停包方法、装置及电子设备 Download PDF

Info

Publication number
WO2017054615A1
WO2017054615A1 PCT/CN2016/097780 CN2016097780W WO2017054615A1 WO 2017054615 A1 WO2017054615 A1 WO 2017054615A1 CN 2016097780 W CN2016097780 W CN 2016097780W WO 2017054615 A1 WO2017054615 A1 WO 2017054615A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
stopped
attribute information
stop button
stop
Prior art date
Application number
PCT/CN2016/097780
Other languages
English (en)
French (fr)
Inventor
熊佳林
陈立洲
Original Assignee
北京金山安全软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2017054615A1 publication Critical patent/WO2017054615A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to an application stopping method, apparatus, and electronic device.
  • An existing application stopping method is to use a fixed manner for stopping processing on each terminal for each application, and the success rate of stopping the packet is low, and the user experience is poor.
  • the purpose of the embodiment of the present application is to provide an application stopping method, a device, and an electronic device, so as to improve the success rate of stopping the packet and improving the user experience.
  • the technical solutions are as follows:
  • An application stopping method is applied to a terminal, including:
  • a click operation is generated at the determined position of the stop button, and the application is stopped.
  • the determining an application to be stopped includes:
  • Output a display interface of the application that recommends stopping the package according to the running status of each application
  • the application to be stopped is determined according to the user's selection of the application in the display interface.
  • the determining, according to the selection of the application by the user in the display interface, the application to be stopped includes:
  • the application selected by the user in the presentation interface and the application associated with the application selected by the user are determined as an application to be stopped.
  • determining, according to the display attribute information, a location of the stop button in the stop setting page of the application including:
  • the searching for the reference display attribute information corresponding to the application and the reference position coordinates of the stop button in the bag stop policy library include:
  • the related attribute information is at least one of terminal model information, operating system type information, operating system version information, and operating system language information.
  • the generating a click operation at the determined location of the stop button, and performing the packet stopping process on the application includes:
  • the application is not the first application to be stopped, when the stoppage experience of the last application to be stopped is reached, a click operation is generated at the determined position of the stop button.
  • the application performs the packet stop processing, in which each application has the same pause duration, Or different.
  • An application stopping device is applied to a terminal, including:
  • the application to be stopped application determining module is used to determine an application to be stopped
  • Displaying an attribute information obtaining module configured to obtain display attribute information of the terminal display screen
  • a stop button position determining module configured to determine a location of the stop button in the stop setting page of the application according to the display attribute information
  • the bag stop processing module is configured to generate a click operation at the determined position of the stop button, and perform a packet stopping process on the application.
  • the to-be-stopped application determining module includes:
  • the display interface output sub-module is configured to output a display interface of the application that recommends stopping the package according to the running state of each application;
  • the to-be-stopped application determining sub-module is configured to determine an application to be stopped according to the user's selection of the application in the display interface.
  • the to-be-stopped application determining sub-module is specifically configured to:
  • the application selected by the user in the presentation interface and the application associated with the application selected by the user are determined as an application to be stopped.
  • the stop button position determining module includes:
  • a reference position coordinate finding sub-module configured to search, in the docking policy library, reference display attribute information corresponding to the application and reference position coordinates of the stop button;
  • a real position coordinate obtaining submodule configured to convert the reference position coordinate into a stop button of the application corresponding to the display attribute information according to a correspondence between the display attribute information and the reference display attribute information True position coordinates;
  • the stop button position determining submodule is configured to determine, according to the real position coordinates, a position of the stop button of the application in the stop setting page of the application.
  • the reference location coordinate search submodule is specifically configured to:
  • the related attribute information is at least one of terminal model information, operating system type information, operating system version information, and operating system language information.
  • the stopping packet processing module is specifically configured to:
  • the application is not the first application to be stopped, when the stoppage experience of the last application to be stopped is reached, a click operation is generated at the determined position of the stop button.
  • the application performs a packet stop process, in which each application has the same pause duration or different.
  • An electronic device comprising: a processor, a memory, a communication interface, and a bus;
  • the processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the memory stores executable program code
  • the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for:
  • a click operation is generated at the determined position of the stop button, and the application is stopped.
  • an application for executing the application stopping method provided by the embodiment of the present application at runtime.
  • the application stop method including:
  • a click operation is generated at the determined position of the stop button, and the application is stopped.
  • a storage medium for storing executable code which is used to execute the application stopping method provided by the embodiment of the present application at runtime.
  • the application stop method including:
  • a click operation is generated at the determined position of the stop button, and the application is stopped.
  • the terminal determines the location of the stop button in the stop setting page of the application to be stopped according to the display attribute information of the display screen, and determines the position of the stop button. Generate a click operation to stop the application.
  • the stoppage setting page of the same application may have different positions of the stop button in the terminal with different display attributes. According to the display attribute information of the display screen, the position of the stop button is determined to be more accurate, and the stoppage can be improved. Success rate to enhance user experience.
  • FIG. 1 is a flowchart of an implementation of an application stopping method in an embodiment of the present application
  • 2a is a schematic diagram of a display interface of an application for recommending a stop package in the embodiment of the present application
  • 2b is a schematic diagram of a stoppage progress interface in the embodiment of the present application.
  • FIG. 3 is a flowchart of an implementation of step S103 in FIG. 1;
  • 4a is a schematic diagram of prompt information in an embodiment of the present application.
  • FIG. 4b is a schematic diagram of another prompt information in the embodiment of the present application.
  • 4c is a schematic diagram of another prompt information in the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an application stopping device according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of the stop button position determining module 530 of FIG. 5;
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • An application stoppage method provided by an embodiment of the present application can be applied to a terminal such as a mobile phone or a tablet computer, and the application of the package stop processing refers to forcibly stopping and closing the application in the running state, and letting the application through the auxiliary function. It is in a non-operational state, that is, in a sleep state, to avoid idle applications that consume power in the background.
  • the application allows calls when necessary during sleep, without affecting the normal use of the application.
  • the terminal may directly stop the packet processing of the determined application to be stopped.
  • the application that is to be stopped may be determined by an application in the terminal, and the other applications that are determined to be stopped are stopped, for example, by using a cleaning application installed in the terminal. , or anti-virus applications, etc., to stop processing other applications.
  • an implementation flowchart of an application stopping method in an embodiment of the present application, where the method is applied to a terminal may include the following steps:
  • the terminal can determine the application to be stopped according to the length of time each application currently in the running state is not used by the user. If the application is not used by the user within the duration, the terminal can determine the application as the application to be stopped.
  • the duration may be the same for each application. For example, if each application is not used for half an hour or one hour, the corresponding application may be determined as an application to be stopped. In addition, the duration may be different for each application, for example, an application that reflects weather conditions, or an application that monitors air quality, etc., and the duration of the application may be set to be slightly longer, for example, for 3 hours. The length of time for other applications can Set it to a little shorter, for example, it can be 20 minutes or so.
  • the terminal may determine the application to be stopped after receiving the trigger request of the user to stop the application.
  • the terminal can provide the user with a power saving mode entry.
  • the user can use the power saving mode of the terminal.
  • the terminal can provide the user with a power-saving mode entry through the HOME button. The user can enter the power-saving mode of the terminal by pressing the HOME button.
  • the terminal may determine the application to be stopped according to the specific state of the application in the terminal or according to the user's selection.
  • step S110 may include the following steps:
  • Step 1 According to the running state of each application, output a display interface of the application that recommends stopping the package;
  • Step 2 Determine the application to be stopped according to the user's selection of the application in the display interface.
  • the terminal may recommend the application for stopping the packet processing according to the running state of each application in the terminal.
  • the running state of the application may include: the power consumption of the application, the length of time the application is not used by the user, and the like.
  • the terminal may output to the user a presentation interface of the application that recommends the suspension of the package.
  • the terminal recommends six applications for stopping the packet processing according to the running status of each application.
  • the user selects an application to be stopped for processing according to the recommendation of the terminal in the display interface and in combination with its actual needs. For example, the user selects an application to be stopped by the check box in the interface shown in FIG. 2a, and the terminal can display the specific quantity of the application selected by the user to the user, and can also display the application selected by the user to the user.
  • the packet processing is performed, and information such as how long the standby time is long can be extended.
  • the terminal determines the application to be stopped according to the user's selection of the application in the display interface.
  • the terminal may determine an application selected by the user in the display interface as an application to be stopped.
  • the application selected by the user in the display interface shown in FIG. 2a is directly determined as the application to be stopped.
  • the terminal determines an application selected by the user in the display interface and an application associated with the application selected by the user as an application to be stopped.
  • the applications installed in the terminal may have mutual startup phenomena and have a certain relationship.
  • XX cloud disk and XX paste bar can start each other. If only one of the applications is stopped, for example, the XX cloud disk is stopped, and the XX sticker is still running, then, in the settings After the restart period, the XX cloud disk will be launched by the XX tab, and these two applications may not be currently used by the user. In this way, the operation of the XX cloud disk and the XX sticker bar still consumes the power of the mobile power source.
  • the terminal may determine an application associated with the application selected by the user according to the association relationship of the pre-recorded application, and select the application selected by the user. Both the application and the associated application are identified as applications to be stopped. Certainly, after determining the application associated with the application selected by the user, it may be determined whether the length of time that the associated application is not used by the user reaches a corresponding threshold, and if so, determining the associated application as pending The application, otherwise, only identifies the application selected by the user as the application to be stopped.
  • the display attribute information is resolution information of the terminal display screen and/or size information of the terminal display screen.
  • the display attribute information of the display screen may be different for different terminals. Some terminals have larger display screen sizes, some have smaller display screens, some have higher resolution of the display screen, and some have lower resolution of the display screen.
  • the terminal can obtain display attribute information of the display screen by reading its own related setting information.
  • step S110 and step S120 are not limited in the embodiment of the present application.
  • S130 Determine, according to the display attribute information, a location of the stop button in the stop setting page of the application;
  • each application has its own stop package setting page. After the terminal determines the application to be stopped, the application can directly call the stop setting page of the application. In the application's stop package settings page, there is a stop button, you need to determine the location of the application's stop button.
  • the position of the characters, buttons, and the like with respect to the display screen in the stop setting page displayed in the display screen of the terminal having different display attributes is different. Based on the display attribute information, the location of the stop button can be determined in the application's stop package setting page.
  • S140 A click operation is generated at a position of the determined stop button, and the application is stopped.
  • a click operation may be generated at the determined position of the stop button, that is, the click operation of the simulated user is clicked, and the stop button is clicked to the application. Stop the package to force the application to close.
  • the stoppage setting page of the application called by the terminal is invisible to the user, and the process of stopping the application of the application is completed by the terminal.
  • the terminal may display a progress interface to the user to prompt the user for the current progress.
  • the application that prompts the user to stop the package has 4, and is currently in the process.
  • the second application performs the stop processing, and the user can click the cancel "CANCEL" button to cancel the current stop operation.
  • the terminal determines the location of the stop button in the stop setting page of the application to be stopped according to the display attribute information of the display screen, and determines the position of the stop button.
  • a click operation is generated to stop the application.
  • the stoppage setting page of the same application may have different positions of the stop button in the terminal with different display attributes. According to the display attribute information of the display screen, the position of the stop button is determined to be more accurate, and the stoppage can be improved. Success rate to enhance user experience.
  • step S130 may include the following steps:
  • the display attributes of terminals on the market are not the same, such as different screen sizes or different resolutions.
  • the operator may collect the position coordinates of the stop button of each application corresponding to some display attribute information in advance, and display the attribute information as a reference display attribute information, and use the corresponding position coordinate as the reference position coordinate.
  • the location attribute of the stop button of each application corresponding to the display attribute information of the screen size of 5.0 and the resolution of 480x320 may be collected in advance, and the previously collected information is stored in the server's stoppage policy library.
  • the terminal may send a query request to the server, where the query carries the identification information of the application to be stopped, and the server is in the database of the suspension policy according to the identification information of the application to be stopped. Finding the reference display attribute information corresponding to the application and the reference position coordinates of the stop button, and returning the search result to the terminal, so that the terminal can obtain the reference display attribute information of the application to be stopped and the reference of the stop button Position coordinates.
  • the terminal can also obtain all the contents recorded in the stop package policy library by communicating with the server, or the terminal only obtains the corresponding reference display attribute information and the reference position coordinates of the stop button from the server for the application installed by the terminal. And recorded in the locally saved package policy library.
  • the terminal may search for the reference display attribute information corresponding to the application to be stopped and the reference position coordinate of the stop button in the locally saved package policy database. In this way, when the application needs to be stopped, the terminal can obtain corresponding information without communicating with the server, which can save network traffic and network bandwidth.
  • the terminal may search for the reference display attribute information corresponding to the application installed by the terminal and the reference position coordinate of the stop button in the locally saved package policy database. In this way, when the application needs to be stopped, the terminal can obtain corresponding information without communicating with the server, which can save network traffic and network bandwidth.
  • the storage space of the terminal can be saved, and the search efficiency is improved.
  • S132 Convert, according to the correspondence between the display attribute information and the reference display attribute information, the reference position coordinates into real position coordinates of the stop button of the application corresponding to the display attribute information;
  • the display attribute information has a certain correspondence relationship with the reference display attribute information, for example, the screen size of the display attribute information is 4.0, the resolution is 800 ⁇ 480, and the screen size in the display attribute information is referenced. It is 5.0 and the resolution is 480x320.
  • the reference position coordinates corresponding to the reference display attribute information can be converted into the real position coordinates of the stop button of the application corresponding to the display attribute information.
  • the position coordinates of the stop button can be obtained in advance in various sizes and multiple resolutions, through mathematics.
  • the classification statistical method obtains the corresponding transformation formula, and the conversion of the reference position coordinates to the real position coordinates is performed by the formula.
  • S133 Determine, according to the real location coordinates, a location of the stop button of the application in the stoppage setting page of the application.
  • step S132 the real position coordinates of the stop button of the application to be stopped are determined, so that the position of the stop button of the application in the stop setting page of the application can be determined according to the real position coordinate.
  • the position coordinate of the stop button refers to a coordinate system with a certain point of the terminal screen as the origin, a height direction of the terminal screen as a vertical axis, and a width direction of the terminal screen as a horizontal axis.
  • step S131 may include the following steps:
  • the related attribute information is at least one of terminal model information, operating system type information, operating system version information, and operating system language information.
  • the display attribute information may also be different, the position coordinates of the stop button may not be consistent .
  • the following information can be recorded in the stop package policy library for each application, terminal model, operating system type, operating system version, operating system language, and display attributes.
  • the related attribute information of the terminal such as the terminal model, the operating system type, the operating system version, and the operating system language, may be recorded.
  • the information may be collected by the operator, or may be reported to the server by the terminal according to the result of the suspension.
  • Finding the reference display attribute information corresponding to the application and the reference position coordinates of the stop button under the related attribute information of the terminal in the stoppage policy database can effectively improve the success rate of the application stoppage.
  • step S140 may include the following steps:
  • the application is not the first application to be stopped, when the stoppage experience of the last application to be stopped is reached, a click operation is generated at the determined position of the stop button.
  • the application performs a packet stop process, in which each application has the same pause duration or different.
  • step S110 When the application to be stopped determined in step S110 is the first application to be stopped, that is, the first application that needs to be stopped, the click operation can be directly generated at the position of the determined stop button, and the simulation is performed. The user clicks on the stop button to stop the application.
  • step S110 When the application to be stopped determined in step S110 is not the first application to be stopped, that is, the application that needs to be stopped, the application can be stopped at the last application to be stopped. In the case of a long experience period, a click operation is generated at the position of the determined stop button, simulating the user's click operation on the stop button, and the application is stopped.
  • the pause duration of each application can be the same, for example, it is set to 2 seconds, that is, after the terminal stops the packet processing operation for an application that stops the packet, the next pause is 2 seconds.
  • the package's application performs a stop-pack processing operation. If the application does not stop the package for the duration of the outage, it can be considered that the application has failed to stop the package. It should be noted that the duration of the suspension of the package can be set and adjusted according to the actual situation, and the embodiment of the present application does not limit this.
  • the duration of the outage experience for each application can vary. Different applications may have different lengths of time to stop the package. Some applications require a long time to stop the package, and some applications require a long time to stop the package.
  • the application can be pre-collected for each application, or for each application of a different terminal model or a different operating system, and can be stored in the decommissioning policy library. After determining the application to be stopped, the application's outage experience time can be obtained in the stop package policy library.
  • the application A has a stoppage experience of 5 seconds, the application B has a stoppage experience of 3 seconds, and the application C has a stoppage experience of 1 second.
  • the application A starts the packet stop processing operation. After that, the application B is stopped at the interval of 5 seconds, and the application C is stopped at intervals of 3 seconds.
  • the application of the application to stop the package in turn can improve the success rate of the stoppage and avoid the short time reserved for the application.
  • the terminal may obtain the state information of the application for each application after the packet is stopped to determine whether the application stops. If an application fails to stop the packet, the terminal may collect the identification information of the application that failed to stop the packet, the related attribute information of the terminal, and the information of other applications currently running, and report the information to the server, so that the server may use the reported information according to the information. Determine the location of the corresponding stop button or adjust the length of the lockout experience for each application that fails to stop the package. When the terminal needs to perform the packet stop processing of the application again, the corresponding packet stopping operation can be performed according to the new information, so as to improve the success rate of the stopping packet.
  • the user when a user first uses an application of the terminal to stop other applications, the user is required to authorize the application. Specifically, the user can authorize the application by turning on the auxiliary function of the application.
  • the application may prompt the user to enable the auxiliary function.
  • the prompt interface may be as shown in FIG. 4a.
  • the user clicks the “go to open” button the user is prompted to enable the power saving function switch in the corresponding area, and the prompt interface may be Referring to FIG. 4b, in addition, the user may be prompted to be a single authorization or always authorized to the application.
  • the prompt interface may be as shown in FIG. 4c.
  • the embodiment of the present application further provides an application stopping device, which is applied to a terminal.
  • the device may include the following modules:
  • the to-be-stopped application determining module 510 is configured to determine an application to be stopped
  • the display attribute information obtaining module 520 is configured to obtain display attribute information of the terminal display screen
  • the stop button position determining module 530 is configured to determine a location of the stop button in the bag stop setting page of the application according to the display attribute information;
  • the stopping packet processing module 540 is configured to generate a click operation at the determined position of the stop button, and perform a packet stopping process on the application.
  • the terminal determines the location of the stop button in the stop setting page of the application to be stopped according to the display attribute information of the display screen, and displays the position of the stop button at the determined stop button. Generate a click operation to stop the application.
  • the stoppage setting page of the same application may have different positions of the stop button in the terminal with different display attributes. According to the display attribute information of the display screen, the position of the stop button is determined to be more accurate, and the stoppage can be improved. Success rate to enhance user experience.
  • the to-be-stopped application determining module 510 may include the following sub-modules:
  • the display interface output sub-module is configured to output a display interface of the application that recommends stopping the package according to the running state of each application;
  • the to-be-stopped application determining sub-module is configured to determine an application to be stopped according to the user's selection of the application in the display interface.
  • the to-be-stopped application determining sub-module may be specifically used to:
  • the application selected by the user in the presentation interface and the application associated with the application selected by the user are determined as an application to be stopped.
  • the stop button location determining module 530 may include the following submodules:
  • a reference position coordinate finding sub-module 531 configured to search, in the bag-stopping policy library, reference display attribute information corresponding to the application program and reference position coordinates of the stop-packing button;
  • the real position coordinate obtaining submodule 532 is configured to convert the reference position coordinate into a stoppage of the application corresponding to the display attribute information according to the correspondence between the display attribute information and the reference display attribute information.
  • the stop button position determining sub-module 533 is configured to determine, according to the real position coordinates, a position of the stop button of the application in the stop setting page of the application.
  • the reference location coordinate finding submodule 531 may be specifically configured to:
  • the related attribute information is at least one of terminal model information, operating system type information, operating system version information, and operating system language information.
  • the stopping packet processing module 540 may be specifically configured to:
  • the application is not the first application to be stopped, when the stoppage experience of the last application to be stopped is reached, a click operation is generated at the determined position of the stop button.
  • the application performs a packet stop process, in which each application has the same pause duration or different.
  • the embodiment of the present application further provides an electronic device.
  • An electronic device may include: a processor 710, a memory 720, a communication interface 730, and a bus 740;
  • the processor 710, the memory 720, and the communication interface 730 are connected by the bus 740 and complete communication with each other;
  • the memory 720 stores executable program code
  • the processor 710 runs a program corresponding to the executable program code by reading executable program code stored in the memory 720 for:
  • a click operation is generated at the determined position of the stop button, and the application is stopped.
  • the electronic device exists in a variety of forms including, but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia Mobile phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
  • the terminal determines the location of the stop button in the stop setting page of the application to be stopped according to the display attribute information of the display screen, and determines the stop bag.
  • the position of the button generates a click operation to stop the application.
  • the stoppage setting page of the same application may have different positions of the stop button in the terminal with different display attributes. According to the display attribute information of the display screen, the position of the stop button is determined to be more accurate, and the stoppage can be improved. Success rate to enhance user experience.
  • the embodiment of the present application further provides an application program, which is used to execute the application program stopping method provided by the embodiment of the present application at runtime.
  • the application stop method including:
  • a click operation is generated at the determined position of the stop button, and the application is stopped.
  • the terminal determines the location of the stop button in the stoppage setting page of the application to be stopped according to the display attribute information of the display screen. And a click operation is generated at the position of the determined stop button, and the application is stopped.
  • the stoppage setting page of the same application may have different positions of the stop button in the terminal with different display attributes. According to the display attribute information of the display screen, the position of the stop button is determined to be more accurate, and the stoppage can be improved. Success rate to enhance user experience.
  • the embodiment of the present application provides a storage medium for storing executable code, which is used to execute the application program provided by the embodiment of the present application at runtime.
  • Package method including:
  • a click operation is generated at the determined position of the stop button, and the application is stopped.
  • the terminal determines the location of the stop button in the stop setting page of the application to be stopped according to the display attribute information of the display screen, and determines the stop bag.
  • the position of the button generates a click operation to stop the application.
  • the stoppage setting page of the same application may have different positions of the stop button in the terminal with different display attributes. According to the display attribute information of the display screen, the position of the stop button is determined to be more accurate, and the stoppage can be improved. Success rate to enhance user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种应用程序停包方法、装置及电子设备。一种应用程序停包方法,应用于终端,可以包括以下步骤:确定待停包的应用程序(S110);获得所述终端显示屏幕的显示属性信息(S120);根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置(S130);在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理(S140)。该方法根据显示屏幕的显示属性信息,确定出的停包按钮的位置更为准确,可以提高停包成功率,提升用户体验。

Description

一种应用程序停包方法、装置及电子设备
本申请要求于2015年9月30日提交中国专利局、申请号为201510641766.2、发明名称为“一种应用程序停包方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及互联网技术领域,特别涉及一种应用程序停包方法、装置及电子设备。
背景技术
随着互联网技术的快速发展,终端中安装运行的应用程序的数量越来越多,而为终端供电的移动电源(例如电池)的容量的增加却非常有限,移动电源的容量的增加远远跟不上终端中应用程序增加的速率。用户在使用终端中安装的应用程序的过程中,如果不及时关闭已打开的应用程序,可能会有较多的应用程序仍处于运行状态,这些应用程序仍在耗费移动电源的电量,影响终端的续航能力,导致用户需要频繁为移动电源充电。
现有的一种应用程序停包方法是,针对每个应用程序在每个终端上使用固定方式进行停包处理,停包成功率较低,用户体验较差。
发明内容
本申请实施例的目的在于提供一种应用程序停包方法、装置及电子设备,以提高停包成功率,提升用户体验。技术方案如下:
一种应用程序停包方法,应用于终端,包括:
确定待停包的应用程序;
获得所述终端显示屏幕的显示属性信息;
根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
在本申请的一种具体实施方式中,所述确定待停包的应用程序,包括:
根据各个应用程序的运行状态,输出推荐停包的应用程序的展示界面;
根据用户在所述展示界面中对应用程序的选择,确定待停包的应用程序。
在本申请的一种具体实施方式中,所述根据用户在所述展示界面中对应用程序的选择,确定待停包的应用程序,包括:
将用户在所述展示界面中选择的应用程序确定为待停包的应用程序;
或者,
将用户在所述展示界面中选择的应用程序及与所述用户选择的应用程序关联的应用程序确定为待停包的应用程序。
在本申请的一种具体实施方式中,所述根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置,包括:
在停包策略库中查找所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
根据所述显示属性信息与所述参考显示属性信息的对应关系,将所述参考位置坐标转换为与所述显示属性信息对应的所述应用程序的停包按钮的真实位置坐标;
根据所述真实位置坐标,确定所述应用程序的停包按钮在所述应用程序的停包设置页面中的位置。
在本申请的一种具体实施方式中,所述在停包策略库中查找所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标,包括:
在停包策略库中查找在终端的相关属性信息下所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
其中,所述相关属性信息至少为终端型号信息、操作系统类型信息、操作系统版本信息和操作系统语言信息中的一种。
在本申请的一种具体实施方式中,所述在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理,包括:
在所述应用程序为首个待停包的应用程序的情况下,直接在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理;
在所述应用程序非首个待停包的应用程序的情况下,在达到上一个待停包的应用程序的停包经验时长时,在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理,其中,每个应用程序的停包经验时长相同, 或者不同。
一种应用程序停包装置,应用于终端,包括:
待停包应用程序确定模块,用于确定待停包的应用程序;
显示属性信息获得模块,用于获得所述终端显示屏幕的显示属性信息;
停包按钮位置确定模块,用于根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
停包处理模块,用于在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
在本申请的一种具体实施方式中,所述待停包应用程序确定模块,包括:
展示界面输出子模块,用于根据各个应用程序的运行状态,输出推荐停包的应用程序的展示界面;
待停包应用程序确定子模块,用于根据用户在所述展示界面中对应用程序的选择,确定待停包的应用程序。
在本申请的一种具体实施方式中,所述待停包应用程序确定子模块,具体用于:
将用户在所述展示界面中选择的应用程序确定为待停包的应用程序;
或者,
将用户在所述展示界面中选择的应用程序及与所述用户选择的应用程序关联的应用程序确定为待停包的应用程序。
在本申请的一种具体实施方式中,所述停包按钮位置确定模块,包括:
参考位置坐标查找子模块,用于在停包策略库中查找所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
真实位置坐标获得子模块,用于根据所述显示属性信息与所述参考显示属性信息的对应关系,将所述参考位置坐标转换为与所述显示属性信息对应的所述应用程序的停包按钮的真实位置坐标;
停包按钮位置确定子模块,用于根据所述真实位置坐标,确定所述应用程序的停包按钮在所述应用程序的停包设置页面中的位置。
在本申请的一种具体实施方式中,所述参考位置坐标查找子模块,具体用于:
在停包策略库中查找在终端的相关属性信息下所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
其中,所述相关属性信息至少为终端型号信息、操作系统类型信息、操作系统版本信息和操作系统语言信息中的一种。
在本申请的一种具体实施方式中,所述停包处理模块,具体用于:
在所述应用程序为首个待停包的应用程序的情况下,直接在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理;
在所述应用程序非首个待停包的应用程序的情况下,在达到上一个待停包的应用程序的停包经验时长时,在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理,其中,每个应用程序的停包经验时长相同,或者不同。
一种电子设备,包括:处理器、存储器、通信接口和总线;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
所述存储器存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于:
确定待停包的应用程序;
获得所述终端显示屏幕的显示属性信息;
根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
一种应用程序,所述应用程序用于在运行时执行本申请实施例提供的应用程序停包方法。其中,应用程序停包方法,包括:
确定待停包的应用程序;
获得所述终端显示屏幕的显示属性信息;
根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
一种存储介质,用于存储可执行代码,所述可执行代码在运行时用于执行本申请实施例提供的应用程序停包方法。其中,应用程序停包方法,包括:
确定待停包的应用程序;
获得所述终端显示屏幕的显示属性信息;
根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
应用本申请实施例所提供的技术方案,终端根据其显示屏幕的显示属性信息,在待停包的应用程序的停包设置页面中确定停包按钮的位置,并在确定的停包按钮的位置出生成点击操作,对该应用程序进行停包处理。同一个应用程序的停包设置页面在具有不同显示属性的终端中的停包按钮的位置可能不同,根据显示屏幕的显示属性信息,确定出的停包按钮的位置更为准确,可以提高停包成功率,提升用户体验。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例中应用程序停包方法的一种实施流程图;
图2a为本申请实施例中推荐停包的应用程序的展示界面示意图;
图2b为本申请实施例中停包进度界面示意图;
图3为图1中步骤S103的一种实施流程图;
图4a为本申请实施例中一种提示信息的示意图;
图4b为本申请实施例中另一种提示信息的示意图;
图4c为本申请实施例中另一种提示信息的示意图;
图5为本申请实施例中应用程序停包装置的一种结构示意图;
图6为图5中停包按钮位置确定模块530的一种结构示意图;
图7为本申请实施例中电子设备的一种结构示意图。
具体实施方式
为了使本领域技术人员更好地理解本申请实施例中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供的一种应用程序停包方法可以应用于手机、平板电脑等终端,对应用程序进行停包处理是指将处于运行状态的应用程序强制停止、关闭,通过辅助功能让应用程序处于非运行状态,即休眠状态,避免闲置的应用程序在后台耗电。应用程序在休眠期间,允许必要时的调用,不影响应用程序的正常使用。
终端在对应用程序进行停包处理时,可以是直接对确定出的待停包的应用程序进行停包处理。具体的,可以是通过终端中的某一应用程序确定出待停包的其他应用程序,并对确定出的待停包的其他应用程序进行停包处理,例如通过终端中安装的清理类应用程序,或者杀毒类应用程序等对其他应用程序进行停包处理。
参见图1所示,为本申请实施例中应用程序停包方法的一种实施流程图,该方法应用于终端,可以包括以下步骤:
S110:确定待停包的应用程序;
在实际应用中,终端可以根据当前处于运行状态的每个应用程序不被用户使用的时长,确定待停包的应用程序。如果在该时长内应用程序不被用户使用,则终端可以将该应用程序确定为待停包的应用程序。
其中,该时长针对每个应用程序可以相同,例如,对于每个应用程序如果在半个小时,或者一个小时不被使用时,则可以将相应应用程序确定为待停包的应用程序。另外,该时长针对每个应用程序也可以不同,例如,反映天气状况的应用程序,或者监测空气质量的应用程序等,针对该应用程序的时长可以设置得稍长,例如可以为3个小时,针对其他应用程序的时长可以 设置得稍短,例如可以是20分钟等。
或者,终端可以在接收到用户对应用程序停包的触发请求后,确定出待停包的应用程序。
终端可以为用户提供一个省电模式入口。用户为节省终端的移动电源的电量,延长终端的续航能力,可以使用终端的省电模式。当用户进入终端的省电模式,或者开启省电模式的开关时,即视为用户向终端发送了一个对应用程序停包的触发请求。在实际应用中,终端可以通过HOME键为用户提供省电模式入口,用户通过长按HOME键即可进入终端的省电模式。
当终端接收到用户对应用程序停包的触发请求后,可以根据终端中应用程序的具体状态,或者根据用户的选择,确定出待停包的应用程序。
在本申请的一种具体实施方式中,步骤S110可以包括以下步骤:
步骤一:根据各个应用程序的运行状态,输出推荐停包的应用程序的展示界面;
步骤二:根据用户在所述展示界面中对应用程序的选择,确定待停包的应用程序。
为便于描述,将上述两个步骤结合起来进行说明。
终端接收到用户对应用程序停包的触发请求后,可以根据终端中各个应用程序的运行状态,向用户推荐建议进行停包处理的应用程序。应用程序的运行状态可以包括:应用程序的耗电量、应用程序不被用户使用的时长等。
终端可以向用户输出推荐停包的应用程序的展示界面。参见图2a所示,终端根据各个应用程序的运行状态,向用户推荐了6款建议进行停包处理的应用程序。
用户根据该展示界面中终端的推荐,并结合自身的实际需求,选择要进行停包处理的应用程序。比如,用户在图2a所示界面中以勾选方式选择要进行停包处理的应用程序,终端可以向用户展示用户选择的应用程序的具体数量,还可以向用户展示如果对用户选择的应用程序进行了停包处理,可以延长多久待机时长等信息。
终端根据用户在展示界面中对应用程序的选择,确定出待停包的应用程序。
具体的,终端可以将用户在所述展示界面中选择的应用程序确定为待停包的应用程序。如将用户在图2a所示展示界面中选择的应用程序直接确定为待停包的应用程序。
或者,
终端将用户在所述展示界面中选择的应用程序及与所述用户选择的应用程序关联的应用程序确定为待停包的应用程序。
可以理解的是,终端中安装的应用程序可能存在互相启动现象,存在一定的关联关系。比如,XX云盘和XX贴吧可以互相启动对方,如果只对其中一个应用程序进行停包处理,比如对XX云盘进行了停包处理,而XX贴吧仍处于运行状态,那么,在设定的重启时间段后,XX云盘会被XX贴吧启动,而这两个应用程序可能并不是用户当前需要使用的。这样,XX云盘和XX贴吧的运行仍会造成对移动电源的电量的消耗。
所以,当确定用户在展示界面中选择的要进行停包处理的应用程序后,终端可以根据预先记录的应用程序的关联关系,确定出与用户选择的应用程序关联的应用程序,将用户选择的应用程序及关联的应用程序均确定为待停包的应用程序。当然,在确定与用户选择的应用程序关联的应用程序之后,可以先判断该关联应用程序未被用户使用的时长是否达到相应的阈值,如果达到,则将该关联应用程序确定为待停包的应用程序,否则,只将用户选择的应用程序确定为待停包的应用程序。
S120:获得所述终端显示屏幕的显示属性信息;
所述显示属性信息为终端显示屏幕的分辨率信息和/或终端显示屏幕的尺寸信息。
对于不同的终端而言,其显示屏幕的显示属性信息可能不同。有的终端的显示屏幕的尺寸较大,有的终端的显示屏幕的尺寸较小,有的终端的显示屏幕的分辨率较高,有的终端的显示屏幕的分辨率较低。
终端通过读取其自身的相关设置信息,即可获得显示屏幕的显示属性信息。
需要说明的是,本申请实施例对步骤S110和步骤S120的执行顺序不做限制。
S130:根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
在终端的操作系统中,每个应用程序具有各自的停包设置页面。终端确定待停包的应用程序后,可以直接调用该应用程序的停包设置页面。在应用程序的停包设置页面中,设置有停包按钮,需要确定出该应用程序的停包按钮所在的位置。
可以理解的是,对于同一个应用程序来说,在具有不同显示属性的终端的显示屏幕中所展现的停包设置页面中文字、按钮等相对于显示屏幕的位置是不同的。根据显示属性信息,可以在应用程序的停包设置页面中确定停包按钮的位置。
S140:在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
在步骤S130确定出停包按钮在停包设置页面中所在的位置后,可以在确定的停包按钮的位置处生成点击操作,即模拟用户的点击操作,点击该停包按钮,对该应用程序进行停包处理,以强制关闭该应用程序。
在实际应用中,终端所调用的应用程序的停包设置页面对用户不可见,对应用程序的停包处理过程由终端完成。终端在对待停包的每个应用程序进行停包处理过程中,可以向用户展示进度界面,提示用户当前进度,如图2b所示,提示用户待停包的应用程序共有4个,当前正在对第2个应用程序进行停包处理,用户可以点击取消“CANCEL”按钮取消当前的停包操作。
应用本申请实施例所提供的技术方案,终端根据其显示屏幕的显示属性信息,在待停包的应用程序的停包设置页面中确定停包按钮的位置,并在确定的停包按钮的位置处生成点击操作,对该应用程序进行停包处理。同一个应用程序的停包设置页面,在具有不同显示属性的终端中停包按钮的位置可能不同,根据显示屏幕的显示属性信息,确定出的停包按钮的位置更为准确,可以提高停包成功率,提升用户体验。
参见图3所示,在本申请的一个实施例中,步骤S130可以包括以下步骤:
S131:在停包策略库中查找所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
目前市场上的终端的显示属性不尽相同,如屏幕尺寸大小不一,或者分辨率不相等。运营人员可以预先收集与某些显示属性信息对应的各应用程序的停包按钮的位置坐标,并将该显示属性信息作为参考显示属性信息,将其对应的位置坐标作为参考位置坐标。比如,可以预先收集显示属性信息为屏幕尺寸为5.0、分辨率为480x320对应的各个应用程序的停包按钮的位置坐标,并将预先收集到的这些信息存储于服务器的停包策略库中。
终端确定待停包的应用程序后,可以向服务器发送查询请求,查询请求中携带待停包的应用程序的标识信息,服务器根据待停包的应用程序的标识信息,在其停包策略库中查找与该应用程序对应的参考显示属性信息及停包按钮的参考位置坐标,并将查找结果返回给终端,从而,终端可以获得待停包的应用程序的参考显示属性信息及停包按钮的参考位置坐标。
终端还可以通过与服务器进行通信,从服务器获得停包策略库中记录的全部内容,或者,终端只针对自身安装的应用程序,从服务器获得相应的参考显示属性信息及停包按钮的参考位置坐标,并记录在本地保存的停包策略库中。终端确定待停包的应用程序后,可以在本地保存的停包策略库中查找待停包的应用程序对应的参考显示属性信息及停包按钮的参考位置坐标。这样,当需要对应用程序进行停包处理时,终端无需与服务器进行通信即可获得相应信息,可以节省网络流量和网络带宽。另外,如果终端保存的停包策略库中只记录自身安装的应用程序对应的参考显示属性信息及停包按钮的参考位置坐标,还可以节省终端的存储空间,提高查找效率。
S132:根据所述显示属性信息与所述参考显示属性信息的对应关系,将所述参考位置坐标转换为与所述显示属性信息对应的所述应用程序的停包按钮的真实位置坐标;
在步骤S120获得终端显示屏幕的显示属性信息,该显示属性信息与参考显示属性信息具有一定的对应关系,比如该显示属性信息中屏幕尺寸为4.0,分辨率为800x480,参考显示属性信息中屏幕尺寸为5.0、分辨率为480x320,经过尺寸变换及分辨率的变换,可以将参考显示属性信息对应的参考位置坐标转换为该显示属性信息对应的该应用程序的停包按钮的真实位置坐标。或者,可以预先获得多种尺寸、多种分辨率下停包按钮的位置坐标,通过数学 归类统计方法得到相应的变换公式,通过该公式进行参考位置坐标到真实位置坐标的转换。
S133:根据所述真实位置坐标,确定所述应用程序的停包按钮在所述应用程序的停包设置页面中的位置。
在步骤S132中确定了待停包的应用程序的停包按钮的真实位置坐标,从而可以根据该真实位置坐标,确定该应用程序的停包按钮在应用程序的停包设置页面中的位置。
需要说明的是,本申请实施例中停包按钮的位置坐标是指,以终端屏幕的某一点为原点,以终端屏幕的高度方向为纵轴,以终端屏幕的宽度方向为横轴的坐标系下,停包按钮在终端显示屏幕显示的停包设置页面中的位置的坐标。
在本申请的一种具体实施方式中,步骤S131可以包括以下步骤:
在停包策略库中查找在终端的相关属性信息下所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
其中,所述相关属性信息至少为终端型号信息、操作系统类型信息、操作系统版本信息和操作系统语言信息中的一种。
可以理解的是,同一款应用程序,在不同型号的终端中,在不同类型、不同版本、不同语言的操作系统下,其显示属性信息也可能不同,停包按钮的位置坐标也可能不太一致。为提高停包成功率,在停包策略库中可以针对每个应用程序记录如下信息,终端型号、操作系统类型、操作系统版本、操作系统语言、显示属性。当然,可以记录终端型号、操作系统类型、操作系统版本、操作系统语言等终端的相关属性信息中的一种或多种。具体的,这些信息可以是运营人员收集得到的,还可以是各终端根据停包结果上报给服务器的。
在停包策略库中查找在终端的相关属性信息下,所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标,可以有效提高应用程序的停包成功率。
在本申请的一个实施例中,步骤S140可以包括以下步骤:
在所述应用程序为首个待停包的应用程序的情况下,直接在确定的停包 按钮的位置处生成点击操作,对所述应用程序进行停包处理;
在所述应用程序非首个待停包的应用程序的情况下,在达到上一个待停包的应用程序的停包经验时长时,在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理,其中,每个应用程序的停包经验时长相同,或者不同。
可以理解的是,终端对待停包的应用程序进行停包处理,需要一定的时间。
当步骤S110确定的待停包的应用程序为首个待停包的应用程序时,即为首个需要进行停包处理的应用程序时,可以直接在确定的停包按钮的位置处生成点击操作,模拟用户对停包按钮的点击操作,对该应用程序进行停包处理。
当步骤S110确定的待停包的应用程序非首个待停包的应用程序时,即非首个需要进行停包处理的应用程序时,可以在达到其上一个待停包的应用程序的停包经验时长的情况下,在确定的停包按钮的位置处生成点击操作,模拟用户对停包按钮的点击操作,对该应用程序进行停包处理。
在实际应用中,每个应用程序的停包经验时长可以相同,如均设置为2秒,即终端对待停包的某个应用程序进行停包处理操作后,间隔2秒即对下一个待停包的应用程序进行停包处理操作。如果应用程序在该停包经验时长内没有停包,则可以认为该应用程序停包失败。需要说明的是,停包经验时长可以按照实际情况进行设定和调整,本申请实施例对此不做限制。
每个应用程序的停包经验时长可以不同。不同的应用程序,其停包所需时长可能不同,有的应用程序停包所需时长长,有的应用程序停包所需时长短。可以针对每个应用程序,或者针对不同终端型号、不同操作系统的每个应用程序,预先收集该应用程序的停包经验时长,可以存储于停包策略库中。当确定待停包的应用程序后,可以在停包策略库中获得该应用程序的停包经验时长。
为方便理解,举例说明。
应用程序A的停包经验时长为5秒,应用程序B的停包经验时长为3秒,应用程序C的停包经验时长为1秒,在对应用程序A开始进行停包处理操作 后,间隔5秒即开始对应用程序B进行停包处理操作,再间隔3秒对应用程序C进行停包处理操作。
按照待停包的每个应用程序的停包经验时长,依次对待停包的每个应用程序进行停包处理,可以提高停包成功率,避免为应用程序预留的时长过短,而导致的应用程序停包失败。
在实际应用中,终端对待停包的每个应用程序进行停包处理后,可以针对进行停包处理后的每个应用程序,获取该应用程序的状态信息,以判断该应用程序是否停包。如果某个应用程序停包失败,终端可以采集该停包失败的应用程序的标识信息、终端的相关属性信息及当前运行的其他应用程序的信息上报给服务器,以由服务器根据这些上报的信息,针对停包失败的每个应用程序确定相应的停包按钮的位置或者调整停包经验时长。当终端再次需要进行应用程序的停包处理时,可以根据新的信息执行相应的停包操作,以提高停包成功率。
需要说明的是,当用户初次使用终端的某一应用程序停包其他应用程序时,需要用户授权于该应用程序,具体的,用户可以通过开启该应用程序的辅助功能以授权于该应用程序。在实际应用中,该应用程序可以提示用户开启辅助功能,提示界面可以参见图4a所示,当用户点击“前去开启”按钮后,提示用户可以在相应区域开启省电功能开关,提示界面可以参见图4b所示,另外,还可以提示用户是单次授权,还是始终授权于该应用程序,提示界面可以参见图4c所示。
相应于上面的方法实施例,本申请实施例还提供了一种应用程序停包装置,应用于终端,参见图5所示,该装置可以包括以下模块:
待停包应用程序确定模块510,用于确定待停包的应用程序;
显示属性信息获得模块520,用于获得所述终端显示屏幕的显示属性信息;
停包按钮位置确定模块530,用于根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
停包处理模块540,用于在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
应用本申请实施例所提供的装置,终端根据其显示屏幕的显示属性信息,在待停包的应用程序的停包设置页面中确定停包按钮的位置,并在确定的停包按钮的位置出生成点击操作,对该应用程序进行停包处理。同一个应用程序的停包设置页面在具有不同显示属性的终端中的停包按钮的位置可能不同,根据显示屏幕的显示属性信息,确定出的停包按钮的位置更为准确,可以提高停包成功率,提升用户体验。
在本申请的一种具体实施方式中,所述待停包应用程序确定模块510,可以包括以下子模块:
展示界面输出子模块,用于根据各个应用程序的运行状态,输出推荐停包的应用程序的展示界面;
待停包应用程序确定子模块,用于根据用户在所述展示界面中对应用程序的选择,确定待停包的应用程序。
在本申请的一种具体实施方式中,所述待停包应用程序确定子模块,可以具体用于:
将用户在所述展示界面中选择的应用程序确定为待停包的应用程序;
或者,
将用户在所述展示界面中选择的应用程序及与所述用户选择的应用程序关联的应用程序确定为待停包的应用程序。
在本申请的一种具体实施方式中,所述停包按钮位置确定模块530,可以包括以下子模块:
参考位置坐标查找子模块531,用于在停包策略库中查找所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
真实位置坐标获得子模块532,用于根据所述显示属性信息与所述参考显示属性信息的对应关系,将所述参考位置坐标转换为与所述显示属性信息对应的所述应用程序的停包按钮的真实位置坐标;
停包按钮位置确定子模块533,用于根据所述真实位置坐标,确定所述应用程序的停包按钮在所述应用程序的停包设置页面中的位置。
在本申请的一种具体实施方式中,所述参考位置坐标查找子模块531,可以具体用于:
在停包策略库中查找在终端的相关属性信息下所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
其中,所述相关属性信息至少为终端型号信息、操作系统类型信息、操作系统版本信息和操作系统语言信息中的一种。
在本申请的一种具体实施方式中,所述停包处理模块540,可以具体用于:
在所述应用程序为首个待停包的应用程序的情况下,直接在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理;
在所述应用程序非首个待停包的应用程序的情况下,在达到上一个待停包的应用程序的停包经验时长时,在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理,其中,每个应用程序的停包经验时长相同,或者不同。
相应于上面的方法实施例和装置实施例,本申请实施例还提供了一种电子设备。
一种电子设备,如图7所示,可以包括:处理器710、存储器720、通信接口730和总线740;
所述处理器710、所述存储器720和所述通信接口730通过所述总线740连接并完成相互间的通信;
所述存储器720存储可执行程序代码;
所述处理器710通过读取所述存储器720中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于:
确定待停包的应用程序;
获得所述终端显示屏幕的显示属性信息;
根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
该电子设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒 体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
(5)其他具有数据交互功能的电子装置。
可见,在本申请实施例所提供的技术方案中,终端根据其显示屏幕的显示属性信息,在待停包的应用程序的停包设置页面中确定停包按钮的位置,并在确定的停包按钮的位置出生成点击操作,对该应用程序进行停包处理。同一个应用程序的停包设置页面在具有不同显示属性的终端中的停包按钮的位置可能不同,根据显示屏幕的显示属性信息,确定出的停包按钮的位置更为准确,可以提高停包成功率,提升用户体验。
相应于上面的方法实施例和装置实施例,本申请实施例还提供了一种应用程序,所述应用程序用于在运行时执行本申请实施例提供的应用程序停包方法。其中,应用程序停包方法,包括:
确定待停包的应用程序;
获得所述终端显示屏幕的显示属性信息;
根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
可见,在本申请实施例所提供的技术方案中,终端根据其显示屏幕的显示属性信息,在待停包的应用程序的停包设置页面中确定停包按钮的位置, 并在确定的停包按钮的位置出生成点击操作,对该应用程序进行停包处理。同一个应用程序的停包设置页面在具有不同显示属性的终端中的停包按钮的位置可能不同,根据显示屏幕的显示属性信息,确定出的停包按钮的位置更为准确,可以提高停包成功率,提升用户体验。
相应于上面的方法实施例和装置实施例,本申请实施例提供了一种存储介质,用于存储可执行代码,所述可执行代码在运行时用于执行本申请实施例提供的应用程序停包方法。其中,应用程序停包方法,包括:
确定待停包的应用程序;
获得所述终端显示屏幕的显示属性信息;
根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
可见,在本申请实施例所提供的技术方案中,终端根据其显示屏幕的显示属性信息,在待停包的应用程序的停包设置页面中确定停包按钮的位置,并在确定的停包按钮的位置出生成点击操作,对该应用程序进行停包处理。同一个应用程序的停包设置页面在具有不同显示属性的终端中的停包按钮的位置可能不同,根据显示屏幕的显示属性信息,确定出的停包按钮的位置更为准确,可以提高停包成功率,提升用户体验。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同 相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。

Claims (15)

  1. 一种应用程序停包方法,应用于终端,其特征在于,包括:
    确定待停包的应用程序;
    获得所述终端显示屏幕的显示属性信息;
    根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
    在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
  2. 根据权利要求1所述的方法,其特征在于,所述确定待停包的应用程序,包括:
    根据各个应用程序的运行状态,输出推荐停包的应用程序的展示界面;
    根据用户在所述展示界面中对应用程序的选择,确定待停包的应用程序。
  3. 根据权利要求2所述的方法,其特征在于,所述根据用户在所述展示界面中对应用程序的选择,确定待停包的应用程序,包括:
    将用户在所述展示界面中选择的应用程序确定为待停包的应用程序;
    或者,
    将用户在所述展示界面中选择的应用程序及与所述用户选择的应用程序关联的应用程序确定为待停包的应用程序。
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置,包括:
    在停包策略库中查找所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
    根据所述显示属性信息与所述参考显示属性信息的对应关系,将所述参考位置坐标转换为与所述显示属性信息对应的所述应用程序的停包按钮的真实位置坐标;
    根据所述真实位置坐标,确定所述应用程序的停包按钮在所述应用程序的停包设置页面中的位置。
  5. 根据权利要求4所述的方法,其特征在于,所述在停包策略库中查找所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标,包括:
    在停包策略库中查找在终端的相关属性信息下所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
    其中,所述相关属性信息至少为终端型号信息、操作系统类型信息、操作系统版本信息和操作系统语言信息中的一种。
  6. 根据权利要求1所述的方法,其特征在于,所述在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理,包括:
    在所述应用程序为首个待停包的应用程序的情况下,直接在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理;
    在所述应用程序非首个待停包的应用程序的情况下,在达到上一个待停包的应用程序的停包经验时长时,在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理,其中,每个应用程序的停包经验时长相同,或者不同。
  7. 一种应用程序停包装置,应用于终端,其特征在于,包括:
    待停包应用程序确定模块,用于确定待停包的应用程序;
    显示属性信息获得模块,用于获得所述终端显示屏幕的显示属性信息;
    停包按钮位置确定模块,用于根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
    停包处理模块,用于在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
  8. 根据权利要求7所述的装置,其特征在于,所述待停包应用程序确定模块,包括:
    展示界面输出子模块,用于根据各个应用程序的运行状态,输出推荐停包的应用程序的展示界面;
    待停包应用程序确定子模块,用于根据用户在所述展示界面中对应用程序的选择,确定待停包的应用程序。
  9. 根据权利要求8所述的装置,其特征在于,所述待停包应用程序确定子模块,具体用于:
    将用户在所述展示界面中选择的应用程序确定为待停包的应用程序;
    或者,
    将用户在所述展示界面中选择的应用程序及与所述用户选择的应用程序关联的应用程序确定为待停包的应用程序。
  10. 根据权利要求7所述的装置,其特征在于,所述停包按钮位置确定模块,包括:
    参考位置坐标查找子模块,用于在停包策略库中查找所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
    真实位置坐标获得子模块,用于根据所述显示属性信息与所述参考显示属性信息的对应关系,将所述参考位置坐标转换为与所述显示属性信息对应的所述应用程序的停包按钮的真实位置坐标;
    停包按钮位置确定子模块,用于根据所述真实位置坐标,确定所述应用程序的停包按钮在所述应用程序的停包设置页面中的位置。
  11. 根据权利要求10所述的装置,其特征在于,所述参考位置坐标查找子模块,具体用于:
    在停包策略库中查找在终端的相关属性信息下所述应用程序对应的参考显示属性信息及停包按钮的参考位置坐标;
    其中,所述相关属性信息至少为终端型号信息、操作系统类型信息、操作系统版本信息和操作系统语言信息中的一种。
  12. 根据权利要求7所述的装置,其特征在于,所述停包处理模块,具体用于:
    在所述应用程序为首个待停包的应用程序的情况下,直接在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理;
    在所述应用程序非首个待停包的应用程序的情况下,在达到上一个待停包的应用程序的停包经验时长时,在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理,其中,每个应用程序的停包经验时长相同,或者不同。
  13. 一种电子设备,其特征在于,包括:处理器、存储器、通信接口和总线;
    所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
    所述存储器存储可执行程序代码;
    所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于:
    确定待停包的应用程序;
    获得所述终端显示屏幕的显示属性信息;
    根据所述显示属性信息,在所述应用程序的停包设置页面中确定停包按钮的位置;
    在确定的停包按钮的位置处生成点击操作,对所述应用程序进行停包处理。
  14. 一种应用程序,其特征在于,所述应用程序用于在运行时执行权利要求1-6任一项所述的应用程序停包方法。
  15. 一种存储介质,其特征在于,用于存储可执行代码,所述可执行代码在运行时用于执行权利要求1-6任一项所述的应用程序停包方法。
PCT/CN2016/097780 2015-09-30 2016-09-01 一种应用程序停包方法、装置及电子设备 WO2017054615A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510641766.2 2015-09-30
CN201510641766.2A CN105607920B (zh) 2015-09-30 2015-09-30 一种应用程序停包方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2017054615A1 true WO2017054615A1 (zh) 2017-04-06

Family

ID=55987874

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097780 WO2017054615A1 (zh) 2015-09-30 2016-09-01 一种应用程序停包方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN105607920B (zh)
WO (1) WO2017054615A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607920B (zh) * 2015-09-30 2019-09-17 北京金山安全软件有限公司 一种应用程序停包方法、装置及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246558A (zh) * 2012-02-07 2013-08-14 联想(北京)有限公司 应用管理方法和装置
CN103309802A (zh) * 2012-03-16 2013-09-18 百度在线网络技术(北京)有限公司 一种移动终端中系统稳定性测试的方法及装置
CN104239131A (zh) * 2014-09-09 2014-12-24 可牛网络技术(北京)有限公司 一种关闭应用程序的方法及装置
CN105607920A (zh) * 2015-09-30 2016-05-25 北京金山安全软件有限公司 一种应用程序停包方法、装置及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053911A (zh) * 2010-12-30 2011-05-11 东莞宇龙通信科技有限公司 基于Android的自动化测试方法、系统及移动终端
CN103036968B (zh) * 2012-12-11 2015-09-30 广东好帮手电子科技股份有限公司 一种通过车载主机显示并控制智能手机的方法及系统
CN103324519A (zh) * 2013-06-17 2013-09-25 华为技术有限公司 一种恶意耗电应用的清理方法、装置及用户终端
CN104461576B (zh) * 2014-12-29 2018-06-01 联想(北京)有限公司 一种信息处理方法和电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246558A (zh) * 2012-02-07 2013-08-14 联想(北京)有限公司 应用管理方法和装置
CN103309802A (zh) * 2012-03-16 2013-09-18 百度在线网络技术(北京)有限公司 一种移动终端中系统稳定性测试的方法及装置
CN104239131A (zh) * 2014-09-09 2014-12-24 可牛网络技术(北京)有限公司 一种关闭应用程序的方法及装置
CN105607920A (zh) * 2015-09-30 2016-05-25 北京金山安全软件有限公司 一种应用程序停包方法、装置及电子设备

Also Published As

Publication number Publication date
CN105607920B (zh) 2019-09-17
CN105607920A (zh) 2016-05-25

Similar Documents

Publication Publication Date Title
TWI565315B (zh) 基於視頻的交互方法、終端、伺服器及系統
CN106202453B (zh) 一种多媒体资源推荐方法和装置
US10462245B2 (en) Method, terminal, and system for pushing information
US9396264B2 (en) Methods and systems for information matching
CN104519485B (zh) 一种终端之间的通信方法、装置和系统
CN106778117B (zh) 权限开启方法、装置及系统
CN104902531B (zh) 连接网络的方法、应用认证服务器、终端及路由器
US8307283B1 (en) Live demonstration of computing device applications
US20170154205A1 (en) Method and apparatus for closing a terminal
WO2014198132A1 (en) Methods and systems for information matching
CN106231433B (zh) 一种播放网络视频的方法、装置和系统
US11004445B2 (en) Information processing method, server, terminal, and information processing system
WO2017156983A1 (zh) 一种列表的调用方法及装置
CN109364477A (zh) 基于语音控制进行打麻将游戏的方法及装置
CN109067751A (zh) 一种非Root环境下ARP欺骗检测方法、装置及终端
CN106792014B (zh) 一种推荐音频的方法、装置及系统
CN108595481A (zh) 一种通知消息显示方法及终端设备
CN110032321A (zh) 应用程序处理方法和装置、电子设备、计算机可读存储介质
CN107622137A (zh) 查找语音消息的方法和装置
RU2679253C1 (ru) Способ обработки события отпечатка пальца, устройство и терминал
US20140143345A1 (en) Conference system, server, and computer-readable medium storing conference information generation program
WO2017054615A1 (zh) 一种应用程序停包方法、装置及电子设备
WO2016019695A1 (zh) 语音互动的方法及终端
CN102984282B (zh) 智能终端获取云存储文件的媒体数据的方法和装置
WO2017166640A1 (zh) 一种应用调用方法和终端

Legal Events

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

Ref document number: 16850239

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 08.08.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16850239

Country of ref document: EP

Kind code of ref document: A1