CN105468394A - Method and system for restricting exit from Android application software - Google Patents

Method and system for restricting exit from Android application software Download PDF

Info

Publication number
CN105468394A
CN105468394A CN201410458067.XA CN201410458067A CN105468394A CN 105468394 A CN105468394 A CN 105468394A CN 201410458067 A CN201410458067 A CN 201410458067A CN 105468394 A CN105468394 A CN 105468394A
Authority
CN
China
Prior art keywords
application
default
exit
system
task list
Prior art date
Application number
CN201410458067.XA
Other languages
Chinese (zh)
Other versions
CN105468394B (en
Inventor
陈开冉
Original Assignee
广东佳学信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东佳学信息科技有限公司 filed Critical 广东佳学信息科技有限公司
Priority to CN201410458067.XA priority Critical patent/CN105468394B/en
Publication of CN105468394A publication Critical patent/CN105468394A/en
Application granted granted Critical
Publication of CN105468394B publication Critical patent/CN105468394B/en

Links

Abstract

The invention provides a method for restricting an exit from Android application software. The method comprises: setting and opening a default start-up tag in a designated application; then setting a default desktop program; and entering a recent task list shielding step and a system dialog box shielding step. The invention further provides a system for restricting the exit from Android application software. According to the method and the system, a user can be prevented from exiting from the designated application via a return key or an exit key (the user needs to input a correct password to exit); the user can be prevented from exiting from the designated application via a HOME key; the user can be prevented from exiting from the designated application via a recent task list; the user can be prevented from exiting from the application via a pull-down system menu or other system dialog boxes that can make the user directly exit from the designated application; and an exit restriction function can be opened or closed without interfering normal operation of an Android system.

Description

一种限制Android应用软件退出的方法及系统 A limitation of Android applications quit method and system

技术领域 FIELD

[0001] 本发明涉及Android应用软件领域,特别涉及一种限制Android应用软件退出的方法及系统。 [0001] The present invention relates to Android application, and in particular relates to a method and system for limiting exit Android application.

背景技术 Background technique

[0002] 在很多场景中,移动终端应用软件的用户都需要限制退出当前应用程序的功能。 [0002] In many scenarios, the user mobile terminal application software are required to limit exit the current application's functionality. 例如:家长通常想让小孩使用指定的学习应用软件,而限制其退出使用其他应用程序;我们在借出自己的移动设备给他人使用某应用程序时,往往希望能够限制当前应用程序的退出,以防止他人退出当前应用,窥探自己的隐私等等。 For example: Parents usually want the child to learn to use the specified application software, and limit its use to exit other applications; we lend their mobile devices to others when using an application, often wanted to limit exit the current application to prevent others exit the current application, spy on their privacy and so on. 目前,已有的Android应用程序的限制退出功能都有以下不足之处:1)在AndroidManifest.xml配置文件里面简单设置为默认启动应用,导致用户每次点击Home键回到Android系统桌面时,包括不需要限制当前应用退出时都会弹出默认启动应用列表,而无法直接返回系统桌面,严重影响用户体验;2)仅是阻止客户从返回按键和Home按键退出当前应用,但用户可以通过其它方式退出当前应用程序;3)限制退出功能只有在应用取得焦点的时候有效,焦点是指当前光标被激活的位置,也就是说当从被限制退出的应用程序中启动其他应用程序时,被限制退出的应用程序就失去焦点,此时限制退出功能失效。 Currently, the limit of existing Android application to exit the function has the following shortcomings: 1) in AndroidManifest.xml simple configuration file which is set as the default boot application, resulting each time someone clicks the Home button back to the Android desktop, including the current limit is no need to exit the application will pop up a list of default launch applications, and can not return to direct desktop, seriously affecting the user experience; 2) only to prevent customers from back button and Home button to exit the current application, but the user can exit the current by other means applications; 3) limit the exit function only when the application of effective take focus, focus refers to the current cursor position is activated, which means that when you start another application is restricted from exiting the application, the application is limited to quit program loses focus, this time limit to exit the function fails.

发明内容 SUMMARY

[0003] 本发明目的是为克服现有的And roid应用程序限制用户退出方法的不足,提供一种限制Android应用软件退出的方法,其能阻止用户通过最近任务列表退出当前应用程序。 [0003] The object of the present invention is to limit the user to overcome the existing method of application exits And roid insufficient, there is provided a method of limiting Android application exit, which can prevent the user to exit the current application through the recent task list.

[0004] 本发明的另外一个目的是提供一种限制Android应用软件退出的系统。 [0004] Another object of the present invention to provide a restriction system Android application exits.

[0005] 为了达到上述目的,本发明采用了以下技术方案: [0005] To achieve the above object, the present invention employs the following technical solution:

[0006] 一种限制Android应用软件退出的方法,包括: [0006] a restriction Android application exits, comprising:

[0007] 获取开启限制退出功能指令,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签;开启默认启动标签; [0007] Gets turn limits the exit function instructions provided in the application designated for the application program to the default desktop default startup label; open default start tag;

[0008] 通过默认启动标签将指定应用程序设置为默认桌面程序; [0008] The tag is specified by the default startup application program to the default desktop;

[0009] 进入最近任务列表屏蔽步骤;所述最近任务列表屏蔽步骤即启动多线程监听是否弹出最近任务列表;若是,则前台运行已设置为默认桌面程序的指定应用程序。 [0009] Step into the recent task list shield; the recent task list that is shielded steps to start a multi-threaded pop-up monitor whether the recent task list; if so, the foreground has been set as the default desktop applications specified application.

[0010] 作为优选,指定应用程序已设置为默认桌面程序后,进入最近任务列表屏蔽步骤,与此同时,启动多线程发送关闭系统对话框广播以屏蔽系统下拉菜单及其它可以让用户直接退出指定应用程序的系统对话框。 [0010] Preferably, the specified application is set as the default desktop program, masking steps into the recent task list, at the same time, start sending multi-threaded shut down the system dialog box broadcasting system to shield the drop-down menu and the other allows the user to specify the exit system application dialog box.

[0011] 作为优选,最近任务列表屏蔽步骤具体过程为:判断当前运行的程序的类名是否为显示最近任务列表的程序的类名;如果当前运行的程序的类名为显示最近任务列表的程序的类名,则弹出最近任务列表;如果当前运行的程序的类名不是显示最近任务列表的程序的类名,则没有弹出最近任务列表。 [0011] Preferably, the masking task list recent specific process steps: determining whether the currently running program class name for the class name of the most recently displayed list of tasks; class if the currently running program display the most recent list of tasks called program class name, the pop-up list of recent task; if the class name of the currently running programs instead of showing the class name of the most recently task list, task list is no pop-up recently.

[0012] 作为优选,开启默认启动标签后,获取并存储指定应用程序的退出密码。 After the [0012] Preferably, the default open the Startup tab, obtain and store the password to exit the specified application.

[0013] 作为优选,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签即:在指定应用程序的配置文件里设置两个类别标签,分别为默认程序标签和Home键标签。 [0013] Preferably, the setting for the application program to the default desktop i.e. default startup label specified application: two class labels is provided in the configuration file in the specified application, respectively, and the default program label Home button label.

[0014] 作为优选,通过激活组件系统函数和系统配置的激活标签动态开启和关闭默认程序标签和Home键标签。 [0014] Advantageously, the configuration of the tag by activating the activation of components of the system functions and system dynamic opening and closing tags and the default program Home key labels.

[0015] 作为优选,通过当前任务系统函数及根据显示最近任务列表的程序的类名采用多线程监听是否弹出最近任务列表。 [0015] Preferably, the current mission by the display system functions and the class name of the most recently adopted multi-threaded task list pop-up monitor whether the recent task list.

[0016] 作为优选,开启默认启动标签后,任一时间获取关闭限制退出功能指令,便关闭默认启动标签。 [0016] Advantageously, the default startup open label, any one time acquisition function instruction to exit off limit, then turn off the default start tag.

[0017] 一种限制Android应用软件退出的系统,包括: [0017] a restriction Android applications exit system, including:

[0018] 默认启动标签设置模块,用于获取开启限制退出功能指令,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签,开启默认启动标签; [0018] The default startup tab setting module, configured to obtain exit opening limiting function instructions provided in the application designated for the application program to the default desktop default startup labels, Open default start tag;

[0019] 默认桌面程序设置模块,用于通过默认启动标签将指定应用程序设置为默认桌面程序; [0019] The default table setting program module for the designated application program is provided by default to the default desktop start tag;

[0020] 最近任务列表屏蔽模块,用于进入最近任务列表屏蔽步骤;所述最近任务列表屏蔽步骤即启动多线程监听是否弹出最近任务列表;若是,则前台运行已设置为默认桌面程序的指定应用程序。 [0020] Recently shielded module task list, the task list screen for entering the recent steps; the recent task list that is shielded steps to start a multi-threaded listen for the pop-up recently task list; if so, the foreground has been set as the default desktop program intended application program.

[0021] 作为优选,还包括: [0021] Advantageously, further comprising:

[0022] 密码设置模块,用于开启默认启动标签后,获取并存储指定应用程序的退出密码; After the [0022] password setting module for opening the default startup label, obtain and store the password to exit the specified application;

[0023] 系统对话框屏蔽模块,用于指定应用程序已设置为默认桌面程序后,进入最近任务列表屏蔽步骤,与此同时,启动多线程发送关闭系统对话框广播以屏蔽系统下拉菜单及其它可以让用户直接退出指定应用程序的系统对话框; [0023] System dialog box shielded module, is used to specify the application has been set as the default desktop program, masking steps into the recent task list, at the same time, start sending multi-threaded shut down the system dialog box broadcasting system to shield the drop-down menus and other possible the system allows the user to exit the dialog box to specify the application;

[0024] 标签关闭模块,用于开启默认启动标签后,任一时间获取关闭限制退出功能指令,便关闭默认启动标签。 [0024] tab closing module configured to open the default start tag, any one time acquisition function instruction to exit off limit, then turn off the default start tag.

[0025] 与现有技术相比,本发明具备以下有益效果: [0025] Compared with the prior art, the present invention has the following advantages:

[0026] 通过上述步骤,可以阻止用户通过最近任务列表切换到其它应用程序而退出当前应用程序;阻止用户通过返回键或退出键退出指定应用程序(需要输入正确密码才能退出),阻止用户通过HOME按键退出指定应用程序,阻止用户通过最近任务列表退出指定应用程序,阻止用户通过下拉系统菜单及其它可以让用户直接退出指定应用程序的系统对话框退出指定应用程序;能开启及关闭限制退出功能,不妨碍Android系统的正常运作。 [0026] Through the above steps, can prevent users exit the current application is switched to another application by the recent task list; prevent users back key or escape key to exit the specified application (need to enter the correct password to exit), prevents users HOME button to exit the specified application to prevent the user exits the application is specified by a recent task list, preventing the user exits the application is specified by the drop-down menus and other system allows the user to exit the specified application system dialog box; exit restrictions can be turned on and off function, Android does not interfere with the normal operation of the system. 本发明不仅能有效地限制用户退出指定应用程序,而且不会对Android系统原有的应用设置和用途产生影响。 The present invention not only can effectively limit the user to specify the application to exit, but does not affect the original set of applications and uses Android. 与此同时,本发明实现将一项原本需要Android系统Root权限才能实现的功能,转变成可以直接嵌入到普通权限应用程序上的插件。 At the same time, the present invention will achieve an original need Root privileges Android system function can be achieved, and can be embedded directly into the plug on the general permission application.

附图说明 BRIEF DESCRIPTION

[0027] 图1是本发明所述的限制Android应用软件退出的方法的流程图。 [0027] FIG. 1 is a flowchart of limit exits the Android application of the present invention.

[0028] 现结合附图与具体实施例对本发明作进一步的说明。 [0028] Now with reference to specific embodiments in conjunction with the present invention will be further described.

具体实施方式 Detailed ways

[0029] 如图1所示,为本发明所述的一种限制Android应用软件退出的方法,包括以下步骤: [0029] FIG. 1, the present method of limiting withdrawal Android application of the invention, comprising the steps of:

[0030] a、获取开启限制退出功能指令,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签;开启默认启动标签(开启默认启动标签才能将指定应用程序设置为默认桌面程序)。 [0030] a, get open limit exit function instructions provided in the application specified in the application for the desktop as the default program default startup label; open the default Startup tab (the default open the Startup tab you can assign the default application settings desktop applications).

[0031] b、开启默认启动标签后,获取并存储指定应用程序的退出密码。 After the [0031] b, open the default startup label, and store the password to obtain exit the specified application.

[0032] c、通过默认启动标签将指定应用程序设置为默认桌面程序; [0032] c, the application specified as the default desktop application by default start tag;

[0033] d-Ι、进入最近任务列表屏蔽步骤,最近任务列表屏蔽步骤即启动多线程监听是否弹出最近任务列表;若是,则前台运行已设置为默认桌面程序的指定应用程序。 [0033] d-Ι, recently entered task list shield step, namely the recent steps to start the task list screen multi-threaded pop-up monitor whether the recent task list; if so, the foreground has been set as the default desktop applications specified application.

[0034] 最近任务列表屏蔽步骤具体过程为:判断当前运行的程序类名是否为显示最近任务列表的程序的类名;如果当前运行的程序的类名为显示最近任务列表的程序的类名,则弹出最近任务列表;如果当前运行的程序的类名不是显示最近任务列表的程序的类名,则没有弹出最近任务列表。 [0034] Recently shield task list specific process steps: determining whether the class name of the class name for the currently running task list display latest program; class if the currently running program named class name of the most recently displayed task list, recent pop-up list of tasks; if the class name of the currently running programs instead of showing the class name of the most recently task list, task list is no pop-up recently.

[0035] d-2、指定应用程序已设置为默认桌面程序后,进入最近任务列表屏蔽步骤,与此同时,启动多线程发送关闭系统对话框广播以屏蔽系统下拉菜单及其它可以让用户直接退出指定应用程序的系统对话框。 [0035] d-2, specify the application has been set as the default desktop program, masking steps into the recent task list, at the same time, start sending multi-threaded shut down the system dialog box broadcasting system to shield the drop-down menu allows users and other exit specify the application system dialog box.

[0036] 开启默认启动标签后,任一时间获取关闭限制退出功能指令,便关闭默认启动标签;此时,该指定应用程序不再限制退出。 After [0036] Open label default boot, according to any one time acquisition function instruction to exit off limit, then turn off the default start tag; At this time, the designated application is no longer limited to exit.

[0037] 获取限制退出功能指令即表示需要开启限制退出功能,即需要设置默认启动标签并开启默认启动标签。 [0037] Gets limit exit function instruction is time to open the exit feature restrictions that you need to set the default startup tab and open the default startup label.

[0038] 上述步骤中,指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签即:在指定应用程序的配置文件里设置两个类别标签,分别为Home标签和默认程序标签。 [0038] In the above step, the specified application is provided for application as the default startup program default desktop label namely: two class labels provided in the configuration file in the specified application, respectively, and the Home tab labels default program . 通过激活组件系统函数和系统配置的激活标签动态开启和关闭Home标签和默认程序标签。 Activating the tag by activating components of the system configuration and system functions dynamic opening and closing tags and the default program Home tab. 通过当前任务系统函数及根据Android系统的显示最近任务列表的程序的类名采用多线程监听是否弹出最近任务列表。 With the current system function and task lists based on class name display Android system program recently adopted multi-threaded task list pop-up monitor whether the recent mission.

[0039] 所述限制Android应用软件退出的方法的一个具体实施例如下: [0039] The method of limiting the Android application exits a particular embodiment are as follows:

[0040] 在a步骤中,指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签即:在指定应用程序的配置文件AndroidManifest.xml里设置两个category标签,分别为android, intent, category.HOME 和android, intent, category.DEFAULT。 [0040] In a step, provided for the application to specify the set as the default desktop application program default startup i.e. Tags: tags arranged two profile AndroidManifest.xml category specified in the application, respectively, android, intent, category.HOME and android, intent, category.DEFAULT.

[0041] 在a步骤中或者不需要限制指定应用程序退出时,通过setComponentEnabledSetting系统函数和android:enabled标签动态开启和关闭android, intent, category.HOME 标签和android, intent, category.DERAULT 标签。 [0041] In a step no need to limit or specify the application exits, and system functions by setComponentEnabledSetting android: dynamic opening and closing android, intent, category.HOME labels and android, intent, category.DERAULT enabled tag labels.

[0042] 在d-1步骤中,通过getRunningTask系统函数及根据Android系统的显示最近任务列表的程序的类名com.android, systemu1.recent.RecentsActivity,采用多线程监听是否弹出最近任务列表。 [0042] In step d-1, the class name of the program com.android getRunningTask system function and task list according to the display latest Android system, systemu1.recent.RecentsActivity, multithreading latest pop monitor whether the task list.

[0043] 所述限制Android应用软件退出的方法中,阻止用户通过最近任务列表、下拉系统菜单及其它可以让用户直接退出指定应用程序的系统对话框退出指定应用程序,以及设置了默认桌面程序也阻止通过HOME键退出指定应用程序,设置密码阻止用户通过返回键及退出键退出指定应用程序的功能定义为限制退出功能。 [0043] The limit Android applications quit methods, prevent users recently task lists, drop-down menus and other system allows the user to exit the dialog box to specify the application of the system to exit the specified application, and also set the default desktop programs stop to exit the application specified by the HOME key, set a password to prevent users to limit exit the function by function-defined return key and the Escape key to exit the specified application.

[0044] 本发明所述的限制Android应用软件退出的方法:通过设置密码阻止用户通过返回键或退出键退出指定应用程序(需要输入正确密码才能退出);通过设置默认桌面程序,当用户按下HOME键即前台运行指定应用程序恶,从而阻止用户通过HOME按键退出指定应用程序;通过设置默认桌面程序并监听是否弹出最近任务列表阻止用户通过最近任务列表退出指定应用程序;通过发送关闭系统对话框广播阻止用户通过下拉系统菜单及其它可以让用户直接退出指定应用程序的系统对话框退出指定应用程序;在需要限制指定应用程序退出时才开启限制退出功能,当不需要限制指定应用程序退出即关闭限制退出功能,不影响其它时候各个程序的正常应用;其中,设置默认启动标签并开启,然后设置默认桌面程序即实现开启限制退出功能,关闭默认启动标签即关闭限制退出 [0044] The method of limiting Android application of the present invention, exit: prevent users by setting a password or exit the return key to exit the application specified (requires the correct password can exit); default desktop provided by the application, when the user presses HOME key to specify the application running in the foreground evil, thereby preventing the user exits the application specified by the HOME button; by setting the default desktop application and listen for the pop-up list of recent mission to prevent the user exits the application is specified by a recent task list; by sending down the system dialog broadcast prevent users from drop-down menus and other system allows the user to exit the dialog box to specify the application of the system to exit the specified application; turn limit the exit function when required limit specified application exits, when no limit is specified the application exits turns off limit exit function without affecting the normal application of the various programs at other times; which set the default startup tab and open, and then set the default desktop program that is open to achieve functional limitations exit, turn off the default startup label that is closed to limit exit 功能。 Features.

[0045] 根据上文所述,通过上述的限制Android应用软件退出的方法的部分步骤实现各种独立的应用: [0045] Based on the above, the step portion through said exit restrictions Android application methods to achieve a variety of independent applications:

[0046] 通过步骤a、c、d-1,实现通过设置默认桌面程序并监听是否弹出最近任务列表阻止用户通过最近任务列表退出指定应用程序; [0046] By the steps a, c, d-1, by setting the default desktop application and listen for the pop-up list of recent mission to prevent the user exits the application is specified by a recent task list;

[0047] 通过步骤a、c,用户按下HOME键,就会前台运行默认桌面程序,用户无法通过HOME键退出; [0047] By the steps a, c, the user presses the HOME key, it will default desktop application running in the foreground, the user can not exit through the HOME key;

[0048] 通过步骤a、b,实现通过设置密码阻止用户通过返回键或退出键退出指定应用程序; [0048] step a, b, by setting a password prevents users return key or escape key to exit the specified application;

[0049] 通过步骤a、c、d-2,实现通过发送关闭系统对话框广播阻止用户通过下拉系统菜单及其它可以让用户直接退出指定应用程序的系统对话框退出指定应用程序; [0049] step a, c, d-2, by sending the user off the system to prevent the pull-down dialog box broadcast system and other menu allows the user to exit the dialog box to specify the application to exit the specified application system;

[0050] 通过步骤a、c、dl、d-2,阻止用户通过最近任务列表、下拉系统菜单及其它可以让用户直接退出指定应用程序的系统对话框进行退出; [0050] By the steps a, c, dl, d-2, to prevent users from exit through the recent task list, drop-down menus and other system allows the user to exit the dialog box to specify the application of the system;

[0051] 所述限制Android应用软件退出的方法中各步骤的作用: [0051] The restriction Android application process exits role of steps:

[0052] a步骤:通过设置并开启默认启动标签,才能将指定应用程序设置为默认桌面程序。 [0052] a step: By default settings and turn on the Startup tab, you can assign an application as the default desktop program.

[0053] b步骤:获取并存储应用程序的退出密码,即通过返回键或退出键进行退出时,用户需要输入正确密码才能退出。 [0053] b: acquiring and storing the application of exit password, that is, through the return key or exit key to exit, the user needs to enter the correct password to exit.

[0054] c步骤:将指定应用程序设置为默认桌面程序,是阻止用户从HOME键、最近任务列表、下拉系统菜单及其它可以让用户直接退出指定应用程序的系统对话框退出的基础。 [0054] c steps: Specify the application as the default desktop program is to prevent the user from the HOME key, recently task lists, drop-down menus and other system allows the user to exit the dialog box to specify the application of the system to exit the foundation.

[0055] d-Ι步骤:当弹出最近任务列表,即立即前台运行指定应用程序;阻止了用户通过选定最近任务列表上的程序,进行程序切换,使指定应用程序失去焦点,导致限制退出功能失效,从而退出指定应用程序。 [0055] d-Ι steps: When the pop-up list of recent task that runs the front desk immediately specify the application; prevents the user through the selected program on the recent task list, a program switch, the specified application loses focus, leading to limit exit feature failure, thereby exit the specified application.

[0056] d-2步骤:屏蔽了下拉系统菜单及其它可以让用户直接退出指定应用程序的系统对话框;阻止了用户通过下拉系统菜单及其它可以让用户直接退出指定应用程序的系统对话框退出指定应用程序。 [0056] d-2 Step: a mask pull-down menus and other systems allow the user to exit the dialog box to specify the application system; prevents users and other pull-down menu system allows the user to specify the application to exit the dialog system exit specify the application.

[0057] 对应上文所述的限制Android应用软件退出的方法,本发明还提供一展示限制Android应用软件退出的方法的系统,该系统包括:默认启动标签设置模块、密码设置模块、默认桌面程序设置模块、最近任务列表屏蔽模块、系统对话框屏蔽模块及标签关闭模块。 [0057] The method of limiting Android application corresponding to the exit of the above, the present invention further provides a display restriction system exit Android application method, the system comprising: a setting module default start tag, the password setting module, the default desktop program setting module, a recent task list screen module, the system dialog box label shield modules and close the module.

[0058] 默认启动标签设置模块获取开启限制退出功能指令,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签,开启默认启动标签。 [0058] The default startup label settings module to obtain exit turn limit function instructions provided in the application specified in the application for the desktop as the default program default Startup tab, open the default startup label.

[0059] 密码设置模块开启默认启动标签后,获取并存储指定应用程序的退出密码。 After the [0059] default password setting module to open the Startup tab, obtain and store the password to exit the specified application.

[0060] 默认桌面程序设置模块通过默认启动标签将指定应用程序设置为默认桌面程序。 [0060] default desktop settings default startup module to tag the specified application program to the default desktop.

[0061] 最近任务列表屏蔽模块进入最近任务列表屏蔽步骤;所述最近任务列表屏蔽步骤即启动多线程监听是否弹出最近任务列表;若是,则前台运行已设置为默认桌面程序的指定应用程序。 [0061] Recently task list shield module into the recent task list shield step; the recent task list that is shielded steps to start a multi-threaded listen for the pop-up recently task list; if so, the foreground has been set as the default desktop applications specified application.

[0062] 系统对话框屏蔽模块指定应用程序已设置为默认桌面程序后,进入最近任务列表屏蔽步骤,与此同时,启动多线程发送关闭系统对话框广播以屏蔽系统下拉菜单及其它可以让用户直接退出指定应用程序的系统对话框。 [0062] shielded modular system dialog box to specify the application has been set as the default desktop program, masking steps into the recent task list, at the same time, start sending multi-threaded shut down the system dialog box broadcasting system to shield the drop-down menu allows users to directly and other exit dialog box to specify the application of the system.

[0063] 标签关闭模块开启默认启动标签后,任一时间获取关闭限制退出功能指令,便关闭默认启动标签。 [0063] After the label off the module to open the default startup label, either a time limit to exit the function instruction get close, then turn off the default startup label.

[0064]其中, [0064] wherein,

[0065] 在最近任务列表屏蔽模块中,最近任务列表屏蔽步骤具体过程为:判断当前运行的程序的类名是否为显示最近任务列表的程序的类名;如果当前运行的程序的类名为显示最近任务列表的程序的类名,则弹出最近任务列表;如果当前运行的程序的类名不是显示最近任务列表的程序的类名,则没有弹出最近任务列表。 [0065] In recent task list module shield, the shield nearest the task list specific process steps: determining whether the currently running program class name for the class name of the most recently displayed list of tasks; class if the currently running program display called recent class name of the program task list, task list pop-up recently; if the class name of the currently running programs instead of showing the class name of the most recently task list, task list is no pop-up recently.

[0066] 在默认启动标签设置模块中,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签即:在指定应用程序的配置文件里设置两个类别标签,分别为默认程序标签和Home键标签。 [0066] In the label setting default startup module, is provided for the application program to the default desktop i.e. default startup label specified application: two class labels is provided in the configuration file in the specified application, respectively, to default programs tab and Home key labels.

[0067] 在默认启动标签设置模块及标签关闭模块中,通过激活组件系统函数和系统配置的激活标签动态开启和关闭默认程序标签和Home键标签。 [0067] In the default setting module start tag and the tag closing module, configured to activate the tag by activating the system functions and system components dynamically opening and closing tags and the default program Home key labels.

[0068] 在最近任务列表屏蔽模块中,通过当前任务系统函数及根据显示最近任务列表的程序的类名采用多线程监听是否弹出最近任务列表。 [0068] In recent task list shield modules by the current system functions and tasks according to the program displays the class name of the task list of recent multi-threaded pop-up monitor whether the recent task list.

[0069] 本发明并不局限于上述实施方式,如果对本发明的各种改动或变型不脱离本发明的精神和范围,倘若这些改动和变型属于本发明的权利要求和等同技术范围之内,则本发明也意图包含这些改动和变动。 [0069] The present invention is not limited to the above embodiments, if the various of the present invention, modifications or variations without departing from the spirit and scope of the present invention, the inner if these modifications and variations belong to the claims of the present invention and equivalent technical scope, then the present invention intends to include these modifications and variations.

Claims (10)

1.一种限制Android应用软件退出的方法,其特征在于,包括: 获取开启限制退出功能指令,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签;开启默认启动标签; 通过默认启动标签将指定应用程序设置为默认桌面程序; 进入最近任务列表屏蔽步骤;所述最近任务列表屏蔽步骤即启动多线程监听是否弹出最近任务列表;若是,则前台运行已设置为默认桌面程序的指定应用程序。 1. A method for limiting Android application exit, characterized by comprising: acquiring restriction exit opening function instruction, the specified application is provided for the application program to the default desktop default startup label; open default start tag ; specifies the startup tab by default application settings as the default desktop programs; recently entered task list shield step; the recent task list that is shielded steps to start a multi-threaded listen for the pop-up recently task list; if so, the foreground is set to the default desktop specify the application program.
2.根据权利要求1所述的限制Android应用软件退出的方法,其特征在于,指定应用程序已设置为默认桌面程序后,进入最近任务列表屏蔽步骤,与此同时,启动多线程发送关闭系统对话框广播以屏蔽系统下拉菜单及其它可以让用户直接退出指定应用程序的系统对话框。 2. The method of claim 1 Android application exit restriction claim, characterized in that, after the application has been specified as the default desktop programs, task lists recently entered shielding step, at the same time, start sending shutting down the system dialogue multithreaded box broadcasting system to shield the drop-down menus and other allows users to exit the dialog box to specify the application of the system.
3.根据权利要求1所述的限制Android应用软件退出的方法,其特征在于,最近任务列表屏蔽步骤具体过程为:判断当前运行的程序的类名是否为显示最近任务列表的程序的类名;如果当前运行的程序的类名为显示最近任务列表的程序的类名,则弹出最近任务列表;如果当前运行的程序的类名不是显示最近任务列表的程序的类名,则没有弹出最近任务列表。 3. The method of claim 1 Android application exit restriction claim, wherein the shield nearest the task list specific process steps: determination of the currently running program whether the class name of the task list display program recent class name; If the class is currently running a program called display program recently task list class name, the pop-up list of recent task; if the class name of the currently running programs instead of showing the class name of the most recently task list, there is no pop-up list of recent task .
4.根据权利要求1所述的限制Android应用软件退出的方法,其特征在于,开启默认启动标签后,获取并存储指定应用程序的退出密码。 4. The method of claim 1 Android application exit restriction claim, characterized in that, after opening the default start tag, acquires the password and store exit the specified application.
5.根据权利要求1所述的限制Android应用软件退出的方法,其特征在于,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签即:在指定应用程序的配置文件里设置两个类别标签,分别为默认程序标签和Home键标签。 5. The method of claim 1 Android application exit restriction claim, wherein the label is used to set the default startup application program to the default desktop application that is designated: in the specified configuration file of the application set in two categories labels, respectively, as the default program labels and Home key labels.
6.根据权利要求5所述的限制Android应用软件退出的方法,其特征在于,通过激活组件系统函数和系统配置的激活标签动态开启和关闭默认程序标签和Home键标签。 6. The method of claim 5 Android application exit restriction claim, wherein the configuration of the tag by activating the activation of components of the system functions and system dynamic opening and closing tags and the default program Home key labels.
7.根据权利要求3所述的限制Android应用软件退出的方法,其特征在于,通过当前任务系统函数及根据显示最近任务列表的程序的类名采用多线程监听是否弹出最近任务列表。 7. The method of claim 3 Android application exit restriction claim, characterized in that, if listening multithreading latest pop the current task lists by a system function and the class name of the most recently task list according to the display.
8.根据权利要求1至7任一项所述的限制Android应用软件退出的方法,其特征在于,开启默认启动标签后,任一时间获取关闭限制退出功能指令,便关闭默认启动标签。 1 to 8. The method of limiting an Android application according to any one of exit according to claim 7, characterized in that the opening tab default startup, any one time acquisition function instruction to exit off limit, then turn off the default start tag.
9.一种限制Android应用软件退出的系统,其特征在于,包括: 默认启动标签设置模块,用于获取开启限制退出功能指令,在指定应用程序中设置用于将应用程序设置为默认桌面程序的默认启动标签,开启默认启动标签; 默认桌面程序设置模块,用于通过默认启动标签将指定应用程序设置为默认桌面程序; 最近任务列表屏蔽模块,用于进入最近任务列表屏蔽步骤;所述最近任务列表屏蔽步骤即启动多线程监听是否弹出最近任务列表;若是,则前台运行已设置为默认桌面程序的指定应用程序。 A restriction system Android application exits, characterized by comprising: setting default start tag module, configured to obtain exit opening limiting function instructions provided in the application designated for the application program to the default desktop default start tag, open label default startup; default desktop setting program module, by default start tag for the application specified as the default desktop applications; masking module recent task list, the task list for entering recently shielding step; the latest task a list of steps that is shielded start multithreaded listen for the pop-up recently task list; if so, the foreground has been set as the default desktop applications specified application.
10.根据权利要求9所述的限制Android应用软件退出的系统,其特征在于,还包括: 密码设置模块,用于开启默认启动标签后,获取并存储指定应用程序的退出密码; 系统对话框屏蔽模块,用于指定应用程序已设置为默认桌面程序后,进入最近任务列表屏蔽步骤,与此同时,启动多线程发送关闭系统对话框广播以屏蔽系统下拉菜单及其它可以让用户直接退出指定应用程序的系统对话框; 标签关闭模块,用于开启默认启动标签后,任一时间获取关闭限制退出功能指令,便关闭默认启动标签。 9, 10. The restriction system of Android application exits claim, characterized by further comprising: password setting module, configured to turn on the default start tag, acquires the password and store exit the specified application; shielding box system module is used to specify the application has been set as the default desktop program, masking steps into the recent task list, at the same time, start sending multi-threaded shut down the system dialog box broadcasting system to shield the drop-down menu and the other allows the user to exit the specified application the system dialog box; label closed module for default after opening the startup tab, either a time limit to exit the function instruction get close, then turn off the default startup label.
CN201410458067.XA 2014-09-10 2014-09-10 A kind of method and system that limitation Android application software exits CN105468394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410458067.XA CN105468394B (en) 2014-09-10 2014-09-10 A kind of method and system that limitation Android application software exits

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410458067.XA CN105468394B (en) 2014-09-10 2014-09-10 A kind of method and system that limitation Android application software exits

Publications (2)

Publication Number Publication Date
CN105468394A true CN105468394A (en) 2016-04-06
CN105468394B CN105468394B (en) 2019-06-07

Family

ID=55606135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410458067.XA CN105468394B (en) 2014-09-10 2014-09-10 A kind of method and system that limitation Android application software exits

Country Status (1)

Country Link
CN (1) CN105468394B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760215A (en) * 2012-06-27 2012-10-31 北京奇虎科技有限公司 Method and system for unlocking user interface based on image identification
CN103036768A (en) * 2012-12-10 2013-04-10 北京小米科技有限责任公司 Method for management application and device for management application
CN103713813A (en) * 2014-01-03 2014-04-09 三星电子(中国)研发中心 Method for controlling functions of intelligent handheld equipment
CN103778381A (en) * 2014-01-13 2014-05-07 中标软件有限公司 Application screen locking method and device based on Android

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760215A (en) * 2012-06-27 2012-10-31 北京奇虎科技有限公司 Method and system for unlocking user interface based on image identification
CN103036768A (en) * 2012-12-10 2013-04-10 北京小米科技有限责任公司 Method for management application and device for management application
CN103713813A (en) * 2014-01-03 2014-04-09 三星电子(中国)研发中心 Method for controlling functions of intelligent handheld equipment
CN103778381A (en) * 2014-01-13 2014-05-07 中标软件有限公司 Application screen locking method and device based on Android

Also Published As

Publication number Publication date
CN105468394B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
US20100011352A1 (en) Matching Plugins to Users
US9106650B2 (en) User-driven access control
CN101861566B (en) System and method for generating an application fragment
CA2860833C (en) Method and system for dynamically assignable user interface
US20140351722A1 (en) User interface elements for multiple displays
US20080196038A1 (en) Utilizing a first managed process to host at least a second managed process
CN103324613A (en) System and method for automatic language translation for applications
US9600650B2 (en) Apparatus and method for configuring password and for releasing lock
CN103235903A (en) Processing method and device for hiding programs of mobile terminal
CN103135969A (en) Method and device of operating, generating and starting application program
CN102866853A (en) Method and device for operating and controlling application program of touch screen terminal
CN102981763B (en) Touch screen lock method to run the application in a state of
CN103336924A (en) Starting lock for mobile terminal application program
CN103023649A (en) Method, device and equipment for protecting privacy information
CN102215432A (en) Television system, television system starting method and device
US20110047461A1 (en) System and Method for Desktop Management
CN103051965A (en) Method and system for customizing smart television desktop theme
US9507487B2 (en) Presenting a modal dialog box using an invisible panel underneath
JP2013532334A (en) Dynamic input device context control
CN103605920B (en) SEAndroid an application platform for dynamic security management method and system based on
DE202013012500U1 (en) Cross-system installation of online applications
WO2014209304A1 (en) Thin client computing device taskbar and widgets
CN101316402A (en) Method for managing task on mobile phone
CN105094659A (en) Method and terminal for operating applications based on gestures
US9354856B2 (en) Software installation method and device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01 Patent grant