WO2016037553A1 - 一种关闭应用程序的方法及装置 - Google Patents

一种关闭应用程序的方法及装置 Download PDF

Info

Publication number
WO2016037553A1
WO2016037553A1 PCT/CN2015/089063 CN2015089063W WO2016037553A1 WO 2016037553 A1 WO2016037553 A1 WO 2016037553A1 CN 2015089063 W CN2015089063 W CN 2015089063W WO 2016037553 A1 WO2016037553 A1 WO 2016037553A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
closed
manager
page
layout information
Prior art date
Application number
PCT/CN2015/089063
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 WO2016037553A1 publication Critical patent/WO2016037553A1/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/46Multiprogramming arrangements

Definitions

  • the present application relates to the field of mobile Internet technology applications, and in particular, to a method and apparatus for shutting down an application.
  • the embodiments of the present application provide a method and an apparatus for closing an application, which can effectively close an application.
  • the embodiment of the present application provides a method for closing an application, including:
  • the current page is jumped to the operating system of the terminal The page corresponding to the application to be closed in the application manager;
  • the application to be closed is forcibly closed by executing a click command on the button.
  • the method for closing an application provided by the embodiment of the present application by using the forced stop function of the operating system application manager to close the application, can effectively close the application and prevent the application from running.
  • an apparatus for closing an application including:
  • An application determining unit is configured to obtain an application that is currently running by the terminal, and determine, from the currently running application, an application to be closed that needs to be closed this time;
  • a jump unit configured to: after the to-be-closed application determining unit determines the to-be-closed application, jump the current page to the application manager of the operating system of the terminal, and the application to be closed corresponds to Page
  • An obtaining unit configured to parse layout information of a page corresponding to the application to be closed in the application manager, and obtain a button in the layout information that indicates that the application to be closed is forcibly stopped;
  • a closing unit configured to forcibly close the application to be closed by executing a click instruction on the button.
  • the device for closing an application provided by the embodiment of the present application can use the forced stop function of the operating system application manager to close the application, and can effectively close the application and prevent the application from running.
  • an embodiment of the present application further provides an electronic device, including:
  • 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 by reading the executable program code stored in the memory, runs a program corresponding to the executable program code for executing any method for closing an application provided by the embodiment of the present application.
  • the embodiment of the present application further provides a storage medium for storing an application, and the application is used to execute any method for closing an application provided by the embodiment of the present application.
  • the embodiment of the present application further provides an application program for executing any method for closing an application provided by the embodiment of the present application.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for closing an application according to the present application
  • FIG. 2 is a method for shutting down an application according to another embodiment of the present application. After determining that the application pea pod is to be closed, the current page is redirected to the application manager of the operating system of the terminal, and the corresponding application pea pod is closed. The effect diagram of the page;
  • FIG. 3 is a partial flow chart of another embodiment of a method for closing an application according to the present application.
  • FIG. 4 is a partial flow chart of another embodiment of a method for closing an application according to the present application.
  • FIG. 5 is a schematic flow chart of an embodiment of S3 in FIG. 1;
  • FIG. 6 is a block diagram showing an embodiment of an apparatus for closing an application according to the present application.
  • FIG. 7 is a block diagram showing another embodiment of an apparatus for closing an application according to the present application.
  • FIG. 8 is a block diagram showing another embodiment of an apparatus for closing an application according to the present application.
  • FIG. 9 is a block diagram showing the structure of an acquisition unit in FIG. 6.
  • FIG. 9 is a block diagram showing the structure of an acquisition unit in FIG. 6.
  • an embodiment of the present application provides a method for closing an application, including:
  • S1 Obtain an application that is currently running by the terminal, and determine, from the currently running application, an application to be closed that needs to be closed this time;
  • the current page is redirected to the page corresponding to the application to be closed in the application manager of the operating system of the terminal;
  • the method for closing an application provided by the embodiment of the present application by using the forced stop function of the operating system application manager to close the application, can effectively close the application and prevent the application from running.
  • startActivity (Intent(android.settings.APPLICATION_DETAILS_SETT INGS,pkg)) Jumps the current page to the page corresponding to the application to be closed in the application manager of the operating system of the terminal. After determining that the application pea pod is to be closed, the current page is jumped to the page corresponding to the application to be closed in the application manager of the operating system, such as the page in the application manager where the pea pod is shown in FIG. 2.
  • the application manager that jumps the current page to the operating system of the terminal after determining the application to be closed After the page corresponding to the application to be closed, the method may further include:
  • Another page is displayed above the page corresponding to the application to be closed in the application manager.
  • another page (such as a closed animation) is used to overwrite the page corresponding to the application to be closed in the application manager of the operating system, and not only the page corresponding to the application to be closed in the application manager may be hidden. And you can hide the process of closing the application through the operating system's application manager.
  • the acquiring, by the auxiliary service of the operating system, acquiring the application to be closed in the application manager Before the page's AccessibilityEvent event can also include:
  • the object that configures the auxiliary service is an application manager.
  • the auxiliary service inherits from the Accessibility Service and implements the onAccessibilityEvent method.
  • the layout information of the page corresponding to the application to be closed in the application manager is parsed, and the location is obtained.
  • the button in the layout information of the page indicates that the button for forcibly stopping the running of the application (S3) is forcibly stopped, and may include:
  • AccessibilityEvent.getSource().findAccessibilityNodeInfosByTex t() to obtain a button indicating that the application to be closed is forcibly stopped in the layout information of the page corresponding to the application to be closed in the application manager, for example, for the page shown in FIG.
  • AccessibilityEvent.getSource().findAccessibilityNodeInfosByTex t (“forced stop") to get the "forced stop” button.
  • the method for forcibly closing the application to be closed by performing a click instruction on the button may include:
  • the operating system By executing a click instruction on the button, the operating system is called to invoke a forced end function of the activity manager to forcibly close the application to be closed.
  • the application to be closed can be forcibly closed by calling ActivityManager.forceStopPackage(), compared to the existing usage method.
  • ActivityManager.killBackgroudPrecesses() which completely closes the application to be closed.
  • the performing a click command on the button may include:
  • the AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK) function executes a click instruction on the button.
  • an embodiment of the present application provides an apparatus for shutting down an application, including: an application determining unit 1 to be closed, for acquiring an application currently running by a terminal, and from the currently running application. Determining an application to be closed that needs to be closed this time; the jumping unit 2 is configured to: after the application to be closed determining unit 1 determines the application to be closed, jump the current page to the operating system of the terminal The page corresponding to the application to be closed in the application manager; the obtaining unit 3, configured to parse the layout information of the page corresponding to the application to be closed in the application manager, and obtain the layout information Means a button for forcibly stopping the running of the application to be closed; the closing unit 4 is for forcibly closing the application to be closed by executing a click instruction on the button.
  • the device for closing an application provided by the embodiment of the present application can use the forced stop function of the operating system application manager to close the application, and can effectively close the application and prevent the application from running.
  • the method may further include:
  • a display unit configured to display another page above the page corresponding to the application to be closed in the application manager.
  • another page (such as a closed animation) is used to overwrite the page corresponding to the application to be closed in the application manager of the operating system, and not only the page corresponding to the application to be closed in the application manager may be hidden. And you can hide the process of closing the application through the operating system's application manager.
  • the method may further include:
  • the accessibility event obtaining unit 5 is configured to enable the auxiliary service of the operating system to be obtained before the obtaining unit 3 parses the layout information of the page corresponding to the application to be closed in the application manager An accessibility event of a page corresponding to the application to be closed in the application manager;
  • the layout information obtaining unit 6 is configured to obtain, from the accessibility event, layout information of a page corresponding to the application to be closed in the application manager.
  • the auxiliary service establishing unit 7 is configured to obtain accessibility at the accessibility event obtaining unit 5. Before the event, a new auxiliary service is created; the configuration unit 8 is configured to configure the auxiliary service object as an application manager; and the startup unit 9 is configured to start the auxiliary service.
  • the auxiliary service inherits from the Accessibility Service and implements the onAccessibilityEvent method.
  • the acquiring unit 3 may include: a first obtaining subunit 30, configured to enable an auxiliary service of the operating system, And parsing the layout information of the page corresponding to the application to be closed in the application manager, and acquiring text information indicating that the application to be closed is forcibly stopped in the layout information of the page;
  • the second obtaining sub-unit 31 is configured to obtain, according to the text information acquired by the first obtaining sub-unit 30, a button indicating that the running of the application to be closed is forcibly stopped in the layout information of the page.
  • AccessibilityEvent.getSource().findAccessibilityNodeInfosByTex t() to obtain a button indicating that the application to be closed is forcibly stopped in the layout information of the page corresponding to the application to be closed in the application manager, for example, for the page shown in FIG.
  • AccessibilityEvent.getSource().findAccessibilityNodeInfosByTex t (“forced stop") to get the "forced stop” button.
  • the shutting down unit may be specifically configured to:
  • the operating system By executing a click instruction on the button, the operating system is called to invoke a forced end function of the activity manager to forcibly close the application to be closed.
  • the activity manager.forceStopPackage() may be called to force the shutdown to be closed. Closed application, compared to existing usage
  • ActivityManager.killBackgroudPrecesses() which completely closes the application to be closed.
  • the shutting down unit may be specifically configured to:
  • the AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK) function executes a click instruction on the button, and then triggers the operating system to call the activity manager's forced end function to forcibly close the application to be closed.
  • an electronic device which may include:
  • 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 by reading the executable program code stored in the memory, to run a program corresponding to the executable program code, for performing the method for closing the application provided by the embodiment of the present application;
  • the method for closing an application provided by the application embodiment may include:
  • the current page is redirected to the page corresponding to the application to be closed in the application manager of the operating system of the terminal;
  • the application to be closed is forcibly closed by executing a click command on the button.
  • Another page is displayed above the page corresponding to the application to be closed in the application manager.
  • the method further includes:
  • the obtaining, by the auxiliary service of the operating system, the accessibility event of the page corresponding to the application to be closed in the application manager further includes:
  • the object configuring the auxiliary service is an application manager
  • the method for parsing the layout information of the page corresponding to the application to be closed in the application manager, and obtaining the button indicating that the application to be closed is forcibly stopped in the layout information of the page including:
  • the method of forcibly closing the application to be closed by executing a click instruction on the button includes:
  • the operating system By executing a click instruction on the button, the operating system is called to invoke a forced end function of the activity manager to forcibly close the application to be closed.
  • the performing the click command on the button includes:
  • the AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK) function executes a click instruction on the button.
  • the embodiment of the present application further provides a storage medium for storing an application, where the application is used to execute the method for closing an application provided by the embodiment of the present application;
  • the method of the application can include:
  • the current page is redirected to the page corresponding to the application to be closed in the application manager of the operating system of the terminal;
  • the application to be closed is forcibly closed by executing a click command on the button.
  • the method further includes:
  • Another page is displayed above the page corresponding to the application to be closed in the application manager.
  • the method further includes:
  • the method further includes:
  • the object configuring the auxiliary service is an application manager
  • the method for parsing the layout information of the page corresponding to the application to be closed in the application manager, and obtaining the button indicating that the application to be closed is forcibly stopped in the layout information of the page including:
  • the method of forcibly closing the application to be closed by executing a click instruction on the button includes:
  • the operating system By executing a click instruction on the button, the operating system is called to invoke a forced end function of the activity manager to forcibly close the application to be closed.
  • the performing the click command on the button includes:
  • the AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK) function executes a click instruction on the button.
  • the embodiment of the present application further provides an application for performing the method for closing an application provided by the embodiment of the present application.
  • the method for closing an application provided by the embodiment of the present application may include:
  • the current page is jumped to the operating system of the terminal The page corresponding to the application to be closed in the application manager;
  • the application to be closed is forcibly closed by executing a click command on the button.
  • the method further includes:
  • Another page is displayed above the page corresponding to the application to be closed in the application manager.
  • the method further includes:
  • the obtaining, by the auxiliary service of the operating system, the accessibility event of the page corresponding to the application to be closed in the application manager further includes:
  • the object configuring the auxiliary service is an application manager
  • the method for parsing the layout information of the page corresponding to the application to be closed in the application manager, and obtaining the button indicating that the application to be closed is forcibly stopped in the layout information of the page including:
  • the method of forcibly closing the application to be closed by executing a click instruction on the button includes:
  • the operating system By executing a click instruction on the button, the operating system is called to invoke a forced end function of the activity manager to forcibly close the application to be closed.
  • the performing the click command on the button includes:
  • the AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK) function executes a click instruction on the button.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种关闭应用程序的方法及装置,涉及移动互联网技术应用程序领域,适用于能够关闭应用程序运行的场合,能够有效关闭应用程序的运行。所述关闭应用程序的方法包括:获取终端当前正在运行的应用程序,并从当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序(S1);在确定出所述待关闭应用程序后,将当前页面跳转到终端的操作系统的应用程序管理器中待关闭应用程序对应的页面(S2);对应用程序管理器中待关闭应用程序对应的页面的布局信息进行解析,获取布局信息中表示强制停止待关闭应用程序运行的按钮(S3);通过对所述按钮执行点击指令,强制关闭待关闭的应用程序(S4)。

Description

一种关闭应用程序的方法及装置
本申请要求于2014年9月9日提交中国专利局、申请号为201410454010.2发明名称为“一种关闭应用程序的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及移动互联网技术应用领域,尤其涉及一种关闭应用程序的方法及装置。
背景技术
目前智能终端越来越普及,如智能手机,智能终端的用户为了减低CPU的负荷,使其更省电、运行更流畅,往往需要关闭智能终端上当前正在运行的应用程序。现有的关闭应用程序所使用的技术方案,通常是先通过终端的操作系统提供的ActivityManager.getRunningAppPresses()(活动管理类获取运行应用程序)函数,获取当前所有正在运行的应用程序,然后对每个应用程序调用ActivityManager.killBackgroudPrecesses(pkgName)函数进行关闭。
使用此方法关闭应用程序后,如果此应用程序有后台服务在运行,系统随即会把该应用程序重新启动起来,以保证该后台服务继续运行。因此该技术方案只能起到临时关闭应用程序的作用,无法真正关闭应用程序的运行。
发明内容
本有鉴于此,本申请实施例提供一种关闭应用程序的方法及装置,能够有效关闭应用程序。
为达到上述目的,本申请的实施例采用如下技术方案:
一方面,本申请实施例提供一种关闭应用程序的方法,包括:
获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;
在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系 统的应用程序管理器中所述待关闭应用程序对应的页面;
对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;
通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
本申请实施例提供的关闭应用程序的方法,借用操作系统应用程序管理器的强制停止功能来关闭应用程序,可以有效关闭应用程序,阻止应用程序的运行。
另一方面,本申请实施例提供一种关闭应用程序的装置,包括:
待关闭应用程序确定单元,用于获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;
跳转单元,用于在所述待关闭应用程序确定单元确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面;
获取单元,用于对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;
关闭单元,用于通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
本申请实施例提供的关闭应用程序的装置,借用操作系统应用程序管理器的强制停止功能来关闭应用程序,可以有效关闭应用程序,阻止应用程序的运行。
另一方面,本申请实施例还提供了一种电子设备,包括:
处理器、存储器、通信接口和总线;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
所述存储器存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行本申请实施例所提供的任意一种关闭应用程序的方法。
另一方面,本申请实施例还提供了一种存储介质,用于存储应用程序,所述应用程序用于执行本申请实施例所提供的任意一种关闭应用程序的方法。
另一方面,本申请实施例还提供了一种应用程序,用于执行本申请实施例所提供的任意一种关闭应用程序的方法。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请关闭应用程序的方法一实施例的流程示意图;
图2为本申请关闭应用程序的方法另一实施例中在确定出待关闭应用程序豌豆荚后,将当前页面跳转到终端的操作系统的应用程序管理器中待关闭应用程序豌豆荚对应的页面的效果示意图;
图3为本申请关闭应用程序的方法另一实施例的部分流程示意图;
图4为本申请关闭应用程序的方法另一实施例的部分流程示意图;
图5为图1中S3一实施例的流程示意图;
图6为本申请关闭应用程序的装置一实施例的方框结构示意图;
图7为本申请关闭应用程序的装置另一实施例的方框结构示意图;
图8为本申请关闭应用程序的装置另一实施例的方框结构示意图;
图9为图6中获取单元一实施例的方框结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例一种关闭应用程序 的方法及装置进行详细描述。
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
参看图1,本申请的实施例提供一种关闭应用程序的方法,包括:
S1、获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;
S2、在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面;
S3、对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;
S4、通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
本申请实施例提供的关闭应用程序的方法,借用操作系统应用程序管理器的强制停止功能来关闭应用程序,可以有效关闭应用程序,阻止应用程序的运行。
本实施例中,比如终端的操作系统是安卓系统,则可以通过调用ActivityManager.getRunningAppPresses()获取当前所有正在运行的应用程序;可以通过调用
startActivity(Intent(android.settings.APPLICATION_DETAILS_SETT INGS,pkg))将当前页面跳转到终端的操作系统的应用程序管理器中待关闭应用程序对应的页面。在确定出待关闭应用程序豌豆荚后,将当前页面跳转到操作系统的应用程序管理器中待关闭应用程序对应的页面,比如图2所显示的豌豆荚所在应用程序管理器中的页面。
可选地,在本申请关闭应用程序的方法的另一实施例中,在所述在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面之后,还可以包括:
将另一页面在所述应用程序管理器中所述待关闭应用程序对应的页面上方显示。
本实施例中,使用另一页面(比如关闭动画)覆盖在操作系统的应用程序管理器中待关闭应用程序对应的页面之上,不仅可以隐藏应用程序管理器中待关闭应用程序对应的页面,而且可以隐藏通过操作系统的应用程序管理器关闭应用程序的过程。
可选地,参看图3,在本申请关闭应用程序的方法的另一实施例中,在所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析之前,还可以包括:
S5、通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件(AccessibilityEvent事件);
S6、从所述AccessibilityEvent事件中获取所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息,如页面文字及按钮的布局信息。
本实施例中,通过使用辅助服务,能够便于获取应用程序管理器中待关闭应用程序对应的页面的布局信息。
可选地,参看图4,在本申请关闭应用程序的方法的另一实施例中,在所述通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的AccessibilityEvent事件之前,还可以包括:
S7、新建一个辅助服务;
S8、配置所述辅助服务的对象为应用程序管理器;
S9、启动所述辅助服务。
本实施例中,辅助服务继承自可访问性服务(AccessibilityService)并实现onAccessibilityEvent方法。
可选地,参看图5,在本申请关闭应用程序的方法的另一实施例中,所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮(S3),可以包括:
S30、通过所述操作系统的辅助服务,对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的文字信息;
S31、根据所述文字信息,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮。
本实施例中,可以通过调用
AccessibilityEvent.getSource().findAccessibilityNodeInfosByTex t()来获取应用程序管理器中待关闭应用程序对应的页面的布局信息中表示强制停止待关闭应用程序运行的按钮,比如对于图2中所示的页面,可以通过调用
AccessibilityEvent.getSource().findAccessibilityNodeInfosByTex t(“强制停止”)来获取“强制停止”按钮。
可选地,在本申请关闭应用程序的方法的另一实施例中,所述通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序,可以包括:
通过对所述按钮执行点击指令,触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
本实施例中,在对表示强制停止待关闭应用程序运行的按钮执行点击指令后,可以通过调用ActivityManager.forceStopPackage()来强制关闭待关闭应用程序,相较于现有使用方法
ActivityManager.killBackgroudPrecesses(),能够彻底地关闭待关闭应用程序。
可选地,在本申请关闭应用程序的方法的另一实施例中,所述对所述按钮执行点击指令,可以包括:
触发所述操作系统调用
AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK)函数对所述按钮执行点击指令。
参看图6,本申请的实施例提供一种关闭应用程序的装置,包括:待关闭应用程序确定单元1,用于获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;跳转单元2,用于在所述待关闭应用程序确定单元1确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面;获取单元3,用于对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;关闭单元4,用于通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
本申请实施例提供的关闭应用程序的装置,借用操作系统应用程序管理器的强制停止功能来关闭应用程序,可以有效关闭应用程序,阻止应用程序的运行。
可选地,在本申请关闭应用程序的装置的另一实施例中,还可以包括:
显示单元,用于将另一页面在所述应用程序管理器中所述待关闭应用程序对应的页面上方显示。
本实施例中,使用另一页面(比如关闭动画)覆盖在操作系统的应用程序管理器中待关闭应用程序对应的页面之上,不仅可以隐藏应用程序管理器中待关闭应用程序对应的页面,而且可以隐藏通过操作系统的应用程序管理器关闭应用程序的过程。
可选地,参看图7,在本申请关闭应用程序的装置的另一实施例中,还可以包括:
可访问性事件获取单元5,用于在所述获取单元3对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析之前,使所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件;
布局信息获取单元6,用于从所述可访问性事件中获取所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息。
本实施例中,通过使用辅助服务,能够便于获取应用程序管理器中待关 闭应用程序对应的页面的布局信息。
可选地,参看图8,在本申请关闭应用程序的装置的另一实施例中,还可以包括:辅助服务建立单元7,用于在所述可访问性事件获取单元5获取到可访问性事件之前,新建一个辅助服务;配置单元8,用于配置所述辅助服务的对象为应用程序管理器;启动单元9,用于启动所述辅助服务。
本实施例中,辅助服务继承自可访问性服务(AccessibilityService)并实现onAccessibilityEvent方法。
可选地,参看图9,在本申请关闭应用程序的装置的另一实施例中,所述获取单元3,可以包括:第一获取子单元30,用于使所述操作系统的辅助服务,通过对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的文字信息;
第二获取子单元31,用于根据所述第一获取子单元30获取到的文字信息,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮。
本实施例中,可以通过调用
AccessibilityEvent.getSource().findAccessibilityNodeInfosByTex t()来获取应用程序管理器中待关闭应用程序对应的页面的布局信息中表示强制停止待关闭应用程序运行的按钮,比如对于图2中所示的页面,可以通过调用
AccessibilityEvent.getSource().findAccessibilityNodeInfosByTex t(“强制停止”)来获取“强制停止”按钮。
可选地,在本申请关闭应用程序的装置的另一实施例中,所述关闭单元,具体可以用于:
通过对所述按钮执行点击指令,触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
本实施例中,在对表示强制停止待关闭应用程序运行的按钮执行点击指令后,可以通过调用ActivityManager.forceStopPackage()来强制关闭待关 闭应用程序,相较于现有使用方法
ActivityManager.killBackgroudPrecesses(),能够彻底地关闭待关闭应用程序。
可选地,在本申请关闭应用程序的装置的另一实施例中,所述关闭单元,具体可以用于:
通过对所述按钮执行点击指令,触发所述操作系统调用
AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK)函数对所述按钮执行点击指令,继而触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
另外,本申请实施例还提供了一种电子设备,可以包括:
处理器、存储器、通信接口和总线;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
所述存储器存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行本申请实施例所提供的关闭应用程序的方法;其中,本申请实施例所提供的关闭应用程序的方法,可以包括:
获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;
在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面;
对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;
通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
其中,在所述在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面之后, 还包括:
将另一页面在所述应用程序管理器中所述待关闭应用程序对应的页面上方显示。
其中,在所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析之前,还包括:
通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件;
从所述可访问性事件中获取所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息。
其中,在所述通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件之前,还包括:
新建一个辅助服务;
配置所述辅助服务的对象为应用程序管理器;
启动所述辅助服务。
其中,所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮,包括:
通过所述操作系统的辅助服务,对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的文字信息;
根据所述文字信息,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮。
其中,所述通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序,包括:
通过对所述按钮执行点击指令,触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
其中,所述对所述按钮执行点击指令,包括:
触发所述操作系统调用
AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK)函数对所述按钮执行点击指令。
另外,本申请实施例还提供了一种存储介质,用于存储应用程序,所述应用程序用于执行本申请实施例所提供的关闭应用程序的方法;其中,本申请实施例所提供的关闭应用程序的方法,可以包括:
获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;
在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面;
对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;
通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
其中,在所述在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面之后,还包括:
将另一页面在所述应用程序管理器中所述待关闭应用程序对应的页面上方显示。
其中,在所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析之前,还包括:
通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件;
从所述可访问性事件中获取所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息。
其中,在所述通过所述操作系统的辅助服务,获取所述应用程序管理器 中所述待关闭应用程序对应的页面的可访问性事件之前,还包括:
新建一个辅助服务;
配置所述辅助服务的对象为应用程序管理器;
启动所述辅助服务。
其中,所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮,包括:
通过所述操作系统的辅助服务,对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的文字信息;
根据所述文字信息,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮。
其中,所述通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序,包括:
通过对所述按钮执行点击指令,触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
其中,所述对所述按钮执行点击指令,包括:
触发所述操作系统调用
AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK)函数对所述按钮执行点击指令。
另外,本申请实施例还提供了一种应用程序,用于执行本申请实施例所提供的关闭应用程序的方法;其中,本申请实施例所提供的关闭应用程序的方法,可以包括:
获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;
在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系 统的应用程序管理器中所述待关闭应用程序对应的页面;
对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;
通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
其中,在所述在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面之后,还包括:
将另一页面在所述应用程序管理器中所述待关闭应用程序对应的页面上方显示。
其中,在所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析之前,还包括:
通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件;
从所述可访问性事件中获取所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息。
其中,在所述通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件之前,还包括:
新建一个辅助服务;
配置所述辅助服务的对象为应用程序管理器;
启动所述辅助服务。
其中,所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮,包括:
通过所述操作系统的辅助服务,对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的文字信息;
根据所述文字信息,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮。
其中,所述通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序,包括:
通过对所述按钮执行点击指令,触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
其中,所述对所述按钮执行点击指令,包括:
触发所述操作系统调用
AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTI ON_CLICK)函数对所述按钮执行点击指令。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (14)

  1. 一种关闭应用程序的方法,其特征在于,包括:
    获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;
    在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面;
    对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;
    通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
  2. 根据权利要求1所述的关闭应用程序的方法,其特征在于,在所述在确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面之后,还包括:
    将另一页面在所述应用程序管理器中所述待关闭应用程序对应的页面上方显示。
  3. 根据权利要求1或2所述的关闭应用程序的方法,其特征在于,在所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析之前,还包括:
    通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件;
    从所述可访问性事件中获取所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息。
  4. 根据权利要求3所述的关闭应用程序的方法,其特征在于,在所述通过所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件之前,还包括:
    新建一个辅助服务;
    配置所述辅助服务的对象为应用程序管理器;
    启动所述辅助服务。
  5. 根据权利要求3或4所述的关闭应用程序的方法,其特征在于,所述对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮,包括:
    通过所述操作系统的辅助服务,对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的文字信息;
    根据所述文字信息,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮。
  6. 根据权利要求1所述的关闭应用程序的方法,其特征在于,所述通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序,包括:
    通过对所述按钮执行点击指令,触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
  7. 根据权利要求6所述的关闭应用程序的方法,其特征在于,所述对所述按钮执行点击指令,包括:
    触发所述操作系统调用
    AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTION_CLICK)函数对所述按钮执行点击指令。
  8. 一种关闭应用程序的装置,其特征在于,包括:
    待关闭应用程序确定单元,用于获取终端当前正在运行的应用程序,并从所述当前正在运行的应用程序中确定本次需要关闭的待关闭应用程序;
    跳转单元,用于在所述待关闭应用程序确定单元确定出所述待关闭应用程序后,将当前页面跳转到所述终端的操作系统的应用程序管理器中所述待关闭应用程序对应的页面;
    获取单元,用于对所述应用程序管理器中所述待关闭应用程序对应的页 面的布局信息进行解析,获取所述布局信息中表示强制停止所述待关闭应用程序运行的按钮;
    关闭单元,用于通过对所述按钮执行点击指令,强制关闭所述待关闭的应用程序。
  9. 根据权利要求8所述的关闭应用程序的装置,其特征在于,还包括:
    显示单元,用于将另一页面在所述应用程序管理器中所述待关闭应用程序对应的页面上方显示。
  10. 根据权利要求8或9所述的关闭应用程序的装置,其特征在于,还包括:
    可访问性事件获取单元,用于在所述获取单元对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析之前,使所述操作系统的辅助服务,获取所述应用程序管理器中所述待关闭应用程序对应的页面的可访问性事件;
    布局信息获取单元,用于从所述可访问性事件中获取所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息。
  11. 根据权利要求10所述的关闭应用程序的装置,其特征在于,还包括:
    辅助服务建立单元,用于在所述可访问性事件获取单元获取到可访问性事件之前,新建一个辅助服务;
    配置单元,用于配置所述辅助服务的对象为应用程序管理器;
    启动单元,用于启动所述辅助服务。
  12. 根据权利要求10或11所述的关闭应用程序的装置,其特征在于,所述获取单元,包括:
    第一获取子单元,用于使所述操作系统的辅助服务,通过对所述应用程序管理器中所述待关闭应用程序对应的页面的布局信息进行解析,获取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的文字信息;
    第二获取子单元,用于根据所述第一获取子单元获取到的文字信息,获 取所述页面的布局信息中表示强制停止所述待关闭应用程序运行的按钮。
  13. 根据权利要求8所述的关闭应用程序的装置,其特征在于,所述关闭单元,具体用于:
    通过对所述按钮执行点击指令,触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
  14. 根据权利要求13所述的关闭应用程序的装置,其特征在于,所述关闭单元,具体用于:
    通过对所述按钮执行点击指令,触发所述操作系统调用
    AccessibilityNodeInfo.performAction(AccessibilityNodeInfo.ACTION_CLICK)函数对所述按钮执行点击指令,继而触发所述操作系统调用活动管理器的强制结束函数,强制关闭所述待关闭的应用程序。
PCT/CN2015/089063 2014-09-09 2015-09-07 一种关闭应用程序的方法及装置 WO2016037553A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410454010.2 2014-09-09
CN201410454010.2A CN104239131B (zh) 2014-09-09 2014-09-09 一种关闭应用程序的方法及装置

Publications (1)

Publication Number Publication Date
WO2016037553A1 true WO2016037553A1 (zh) 2016-03-17

Family

ID=52227263

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089063 WO2016037553A1 (zh) 2014-09-09 2015-09-07 一种关闭应用程序的方法及装置

Country Status (2)

Country Link
CN (1) CN104239131B (zh)
WO (1) WO2016037553A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767102A (zh) * 2020-03-25 2020-10-13 北京沃东天骏信息技术有限公司 应用程序显示方法、信息处理方法、装置及电子设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239131B (zh) * 2014-09-09 2018-05-25 可牛网络技术(北京)有限公司 一种关闭应用程序的方法及装置
CN104965733A (zh) * 2015-06-11 2015-10-07 广州市久邦数码科技有限公司 一种批量禁用/停止应用程序的方法及其系统
CN105607920B (zh) * 2015-09-30 2019-09-17 北京金山安全软件有限公司 一种应用程序停包方法、装置及电子设备
CN105224188B (zh) * 2015-09-30 2019-04-12 北京金山安全软件有限公司 一种应用程序停包方法、装置及电子设备
CN105183656B (zh) * 2015-09-30 2018-03-30 北京金山安全软件有限公司 一种应用程序的停包失败检测方法、系统及装置
CN106095054B (zh) * 2016-05-31 2019-02-12 Oppo广东移动通信有限公司 一种应用程序的关闭方法和装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722407A (zh) * 2012-06-11 2012-10-10 广州市久邦数码科技有限公司 一种快速关闭正在运行程序的方法及系统
CN104239131A (zh) * 2014-09-09 2014-12-24 可牛网络技术(北京)有限公司 一种关闭应用程序的方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314339A (zh) * 2010-07-09 2012-01-11 英业达股份有限公司 应用程序的关闭方法及应用其的手持式电子装置
JP5942416B2 (ja) * 2011-12-21 2016-06-29 富士通株式会社 情報処理装置の制御プログラム、制御方法及び情報処理装置
CN103853606B (zh) * 2012-11-29 2018-05-01 北京三星通信技术研究有限公司 切换应用程序的方法及设备
CN103106114B (zh) * 2013-03-01 2016-06-29 广东欧珀移动通信有限公司 一种快速切换程序的方法及装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722407A (zh) * 2012-06-11 2012-10-10 广州市久邦数码科技有限公司 一种快速关闭正在运行程序的方法及系统
CN104239131A (zh) * 2014-09-09 2014-12-24 可牛网络技术(北京)有限公司 一种关闭应用程序的方法及装置

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Android System Performance Optimization Guide", COMPUTERNIK, vol. 17, 30 September 2011 (2011-09-30), pages 6 *
PINGPING DANDAN: "Android Mobile phone optimization", COMPUTER FAN, vol. 16, 15 August 2013 (2013-08-15), pages 69 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767102A (zh) * 2020-03-25 2020-10-13 北京沃东天骏信息技术有限公司 应用程序显示方法、信息处理方法、装置及电子设备

Also Published As

Publication number Publication date
CN104239131B (zh) 2018-05-25
CN104239131A (zh) 2014-12-24

Similar Documents

Publication Publication Date Title
WO2016037553A1 (zh) 一种关闭应用程序的方法及装置
US20210366483A1 (en) Method, interaction device, server, and system for speech recognition
KR102334950B1 (ko) 백그라운드 애플리케이션 관리 방법 및 장치
US9880157B2 (en) Apparatus and methods for suppressing user-alerting actions
US8429390B2 (en) Method for performing quick boot and general boot at bios stage
US20170116987A1 (en) Electronic device and method for executing function using speech recognition thereof
KR102608997B1 (ko) 화면 제어 방법 및 이를 지원하는 전자 장치
US20130225238A1 (en) Sleep method, wake method and mobile terminal device
US9819758B2 (en) Remote debugging into mobile web applications across devices
EP2627097A2 (en) Video/audio switching in a computing device
WO2015169216A1 (en) Method and apparatus of preloading browser game on client
WO2016015577A1 (zh) 一种智能穿戴设备的控制方法、装置及系统
CN103778211B (zh) 移动终端游戏软件的语言切换方法及装置
US10338976B2 (en) Method and apparatus for providing screenshot service on terminal device and storage medium and device
KR102500608B1 (ko) 어플리케이션을 제어하는 전자 장치와 이의 동작 방법
US20170031559A1 (en) Electronic apparatus and method for controlling display
CN105677477A (zh) 一种优化应用程序资源的方法、装置及电子设备
US20170154205A1 (en) Method and apparatus for closing a terminal
RU2016130451A (ru) Способ и система помощи пользователю при аварийных завершениях приложения программного обеспечения
US10205741B2 (en) Method and apparatus enabling browsers to perform security scan of devices
US20140380479A1 (en) Method and System for Controlling Closing of Terminal, and Computer Storage Medium
WO2020206691A1 (zh) 应用程序的处理方法、装置、存储介质及电子设备
US9727351B2 (en) Method and device for setting status of application
KR102501083B1 (ko) 음성 인식 방법 및 이를 사용하는 전자 장치
KR102491941B1 (ko) 전원을 제어하는 전자 장치 및 방법

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: 15839326

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 1205N DATED 16/05/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15839326

Country of ref document: EP

Kind code of ref document: A1