CN105468394A - Method and system for restricting exit from Android application software - Google Patents
Method and system for restricting exit from Android application software Download PDFInfo
- 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
- program
- label
- exit
- task list
- acquiescence
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
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
Technical field
The present invention relates to Android application software field, particularly the method and system that exit of a kind of Android of restriction application software.
Background technology
In a lot of scene, the user of application software of mobile terminal needs to limit the function exiting current application program.Such as: the study application software that the head of a family usually wants to allow child use and specifies, limit it to exit and use other application programs; We, when the mobile device lending oneself uses certain application program to other people, often wish to limit exiting of current application program, to prevent other people from exiting current application, and privacy of spying upon oneself etc.At present, the restriction exit function of existing Android application program has following weak point: inside AndroidManifest.xml configuration file, 1) be simply set to acquiescence start application, cause user to click Home key when getting back to android system desktop at every turn, comprise and do not need restriction current application to exit Shi Douhui ejection acquiescence startup list of application, and cannot direct retrieval system desktop, have a strong impact on Consumer's Experience; 2) be only stop client from returning button and Home button exits current application, but user can exit current application program by alternate manner; 3) exit function is limited only effective when application obtains focus, focus refers to the position that current cursor is activated, that is when starting other application programs from the application program being limited to exit, the application program being limited to exit just loses focus, and this limit exit function lost efficacy.
Summary of the invention
The present invention seeks to the deficiency exiting method for overcoming existing Android application program limited subscriber, provide a kind of method that the Android of restriction application software exits, it can stop user to exit current application program by nearest task list.
Another object of the present invention is to provide the system that a kind of Android of restriction application software exits.
In order to achieve the above object, present invention employs following technical scheme:
Limit the method that Android application software exits, comprising:
Obtain and open the instruction of restriction exit function, the acquiescence being used for application program being set to default desktop program is set in specified application and starts label; Open acquiescence and start label;
Start label by acquiescence and specified application is set to default desktop program;
Enter nearest task list mask steps; Namely described nearest task list mask steps starts multithreading and monitors whether eject nearest task list; If so, then front stage operation has been set to the specified application of default desktop program.
As preferably, after specified application has been set to default desktop program, enter nearest task list mask steps, meanwhile, start the broadcast of multithreading transmission shutdown system dialog box and user can be allowed directly to exit the system dialog box of specified application with shielding harness drop-down menu and other.
As preferably, nearest task list mask steps detailed process is: judge that whether the class name of the program of current operation is the class name of the program showing nearest task list; If the class of the program of current operation is called the class name of the program showing nearest task list, then eject nearest task list; If the class name of the program of current operation is not the class name of the program showing nearest task list, then do not eject nearest task list.
As preferably, open after acquiescence starts label, obtain and store specified application exit password.
As preferably, the acquiescence being used for application program being set to default desktop program is set in specified application and starts label namely: two class labels are set in the configuration file of specified application, are respectively default program label and Home key label.
As preferably, dynamically open and close default program label and Home key label by the activation label of activation component system function and system configuration.
As preferably, multithreading is adopted to monitor whether eject nearest task list by current task system function and according to the class name of the program of the nearest task list of display.
As preferably, open after giving tacit consent to startup label, the instruction of restriction exit function is closed in arbitrary time acquisition, and just startup label is given tacit consent in closedown.
Limit the system that Android application software exits, comprising:
Acquiescence starts label and arranges module, opening the instruction of restriction exit function, arranging the acquiescence being used for application program being set to default desktop program and starting label, open acquiescence and start label in specified application for obtaining;
Default desktop programming module, is set to default desktop program for starting label by acquiescence by specified application;
Nearest task list shroud module, for entering nearest task list mask steps; Namely described nearest task list mask steps starts multithreading and monitors whether eject nearest task list; If so, then front stage operation has been set to the specified application of default desktop program.
As preferably, also comprise:
Password arranges module, starts after label for opening acquiescence, obtain and store specified application exit password;
System dialog box shroud module, be used to specify after application program has been set to default desktop program, enter nearest task list mask steps, meanwhile, starting the broadcast of multithreading transmission shutdown system dialog box can allow user directly exit the system dialog box of specified application with shielding harness drop-down menu and other;
Label closing module, after opening acquiescence startup label, arbitrary time obtains closes the instruction of restriction exit function, just closes to give tacit consent to start label.
Compared with prior art, the present invention possesses following beneficial effect:
By above-mentioned steps, user can be stoped to be switched to other application program by nearest task list and to exit current application program; User is stoped to exit specified application (needing input proper password just can exit) by return key or ESC Escape, user is stoped to exit specified application by HOME button, stop user to exit specified application by nearest task list, stop user exit specified application by drop-down System menu and other system dialog box that user can be allowed directly to exit specified application; Can open and close restriction exit function, not hinder the normal operation of android system.The present invention can not only exit specified application by limited subscriber effectively, and can not have an impact to the original application setting of android system and purposes.Meanwhile, the present invention realizes the function needing android system Root authority to realize a script, is transformed into the plug-in unit that can be directly embedded in common authority application program.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method that restriction Android application software of the present invention exits.
Now the present invention is further illustrated with specific embodiment by reference to the accompanying drawings.
Embodiment
As shown in Figure 1, be the method that a kind of Android of restriction application software of the present invention exits, comprise the following steps:
The instruction of restriction exit function is opened in a, acquisition, arranges the acquiescence startup label being used for application program being set to default desktop program in specified application; Open acquiescence and start label (unlatching acquiescence starts label could be set to default desktop program by specified application).
B, open acquiescence and start after label, obtain and store specified application exit password.
C, by acquiescence start label specified application is set to default desktop program;
D-1, enter nearest task list mask steps, namely nearest task list mask steps starts multithreading and monitors whether eject nearest task list; If so, then front stage operation has been set to the specified application of default desktop program.
Nearest task list mask steps detailed process is: judge that whether the program class name of current operation is the class name of the program showing nearest task list; If the class of the program of current operation is called the class name of the program showing nearest task list, then eject nearest task list; If the class name of the program of current operation is not the class name of the program showing nearest task list, then do not eject nearest task list.
After d-2, specified application have been set to default desktop program, enter nearest task list mask steps, meanwhile, starting the broadcast of multithreading transmission shutdown system dialog box can allow user directly exit the system dialog box of specified application with shielding harness drop-down menu and other.
After opening acquiescence startup label, arbitrary time obtains closes the instruction of restriction exit function, just closes to give tacit consent to start label; Now, this specified application no longer limits and exits.
Namely the instruction of acquisition restriction exit function represents that restriction exit function opened by needs, namely needs to arrange acquiescence startup label and open acquiescence to start label.
In above-mentioned steps, the acquiescence being used for application program being set to default desktop program is set in specified application and starts label namely: two class labels are set in the configuration file of specified application, are respectively Home label and default program label.Home label and default program label is is dynamically opened and closed by the activation label of activation component system function and system configuration.Multithreading is adopted to monitor whether eject nearest task list by current task system function and according to the class name of the program of the nearest task list of the display of android system.
A specific embodiment of the method that described restriction Android application software exits is as follows:
In a step, the acquiescence being used for application program being set to default desktop program is set in specified application and starts label namely: two category labels are set in the configuration file AndroidManifest.xml of specified application, are respectively android.intent.category.HOME and android.intent.category.DEFAULT.
In a step or when not needing restriction specified application to exit, dynamically open and close android.intent.category.HOME label and android.intent.category.DERAULT label by setComponentEnabledSetting system function and android:enabled label.
In d-1 step, by the class name com.android.systemui.recent.RecentsActivity of getRunningTask system function and the program according to the nearest task list of the display of android system, multithreading is adopted to monitor whether eject nearest task list.
In the method that described restriction Android application software exits, user is stoped to exit specified application by nearest task list, drop-down System menu and other system dialog box that user can be allowed directly to exit specified application, and be provided with default desktop program and also stop and exit specified application by HOME key, the function that password stops user to exit specified application by return key and ESC Escape is set and is defined as restriction exit function.
The method that restriction Android application software of the present invention exits: stop user to exit specified application (needing input proper password just can exit) by return key or ESC Escape by arranging password; By arranging default desktop program, when user presses HOME key and front stage operation specified application evil, thus user is stoped to exit specified application by HOME button; By arrange default desktop program and monitor whether eject nearest task list stop user exit specified application by nearest task list; User is stoped to exit specified application by drop-down System menu and other system dialog box that user can be allowed directly to exit specified application by sending the broadcast of shutdown system dialog box; Just opening restriction exit function when needs restriction specified application exits, exiting namely to close limiting exit function, the normal use of each program when not affecting other when not needing restriction specified application; Wherein, arrange acquiescence and start label and open, then arrange default desktop program and namely realize opening restriction exit function, closedown acquiescence starts label and namely closes restriction exit function.
According to mentioned above, the part steps of the method exited by above-mentioned restriction Android application software realizes various independently application:
By step a, c, d-1, realize by arrange default desktop program and monitor whether eject nearest task list stop user exit specified application by nearest task list;
By step a, c, user presses HOME key, will front stage operation default desktop program, and user cannot be exited by HOME key;
By step a, b, realize stoping user to exit specified application by return key or ESC Escape by arranging password;
By step a, c, d-2, realize stoping user exit specified application by drop-down System menu and other system dialog box that user can be allowed directly to exit specified application by sending the broadcast of shutdown system dialog box;
By step a, c, d-1, d-2, user is stoped to be exited by nearest task list, drop-down System menu and other system dialog box that user can be allowed directly to exit specified application;
The effect of each step in the method that described restriction Android application software exits:
A step: start label by arranging and opening acquiescence, specified application could be set to default desktop program.
B step: obtain and store application program exit password, when namely being exited by return key or ESC Escape, user needs input proper password just can exit.
Step c: specified application is set to default desktop program is the basis stoping user exit from HOME key, recently task list, drop-down System menu and other system dialog box that user can be allowed directly to exit specified application.
D-1 step: when the nearest task list of ejection, i.e. front stage operation specified application immediately; Prevent user by the program on selected nearest task list, carry out program switching, make specified application lose focus, cause restriction exit function to lose efficacy, thus exit specified application.
D-2 step: shield drop-down System menu and other can allow user directly exit the system dialog box of specified application; User is prevented to exit specified application by drop-down System menu and other system dialog box that user can be allowed directly to exit specified application.
The method that corresponding restriction Android application software mentioned above exits, the system of the method that the present invention also provides a displaying restriction Android application software to exit, this system comprises: label arranges module, password arranges module in acquiescence startup, default desktop programming module, recently task list shroud module, system dialog box shroud module and label closing module.
Acquiescence starts label and arranges the instruction of module acquisition unlatching restriction exit function, and in specified application, arrange the acquiescence startup label being used for application program being set to default desktop program, unlatching acquiescence starts label.
Password arranges module and opens acquiescence and start after label, obtain and store specified application exit password.
Default desktop programming module starts label by acquiescence and specified application is set to default desktop program.
Nearest task list shroud module enters nearest task list mask steps; Namely described nearest task list mask steps starts multithreading and monitors whether eject nearest task list; If so, then front stage operation has been set to the specified application of default desktop program.
After system dialog box shroud module specified application has been set to default desktop program, enter nearest task list mask steps, meanwhile, starting the broadcast of multithreading transmission shutdown system dialog box can allow user directly exit the system dialog box of specified application with shielding harness drop-down menu and other.
After label closing module opens acquiescence startup label, arbitrary time obtains closes the instruction of restriction exit function, just closes to give tacit consent to start label.
Wherein,
In nearest task list shroud module, nearest task list mask steps detailed process is: judge that whether the class name of the program of current operation is the class name of the program showing nearest task list; If the class of the program of current operation is called the class name of the program showing nearest task list, then eject nearest task list; If the class name of the program of current operation is not the class name of the program showing nearest task list, then do not eject nearest task list.
Starting label in acquiescence arranges in module, the acquiescence being used for application program being set to default desktop program is set in specified application and starts label namely: two class labels are set in the configuration file of specified application, are respectively default program label and Home key label.
Starting label in acquiescence arranges in module and label closing module, dynamically opens and closes default program label and Home key label by the activation label of activation component system function and system configuration.
In nearest task list shroud module, multithreading is adopted to monitor whether eject nearest task list by current task system function and according to the class name of the program of the nearest task list of display.
The present invention is not limited to above-mentioned embodiment, if do not depart from the spirit and scope of the present invention to various change of the present invention or modification, if these are changed and modification belongs within claim of the present invention and equivalent technologies scope, then the present invention is also intended to comprise these changes and variation.
Claims (10)
1. limit the method that Android application software exits, it is characterized in that, comprising:
Obtain and open the instruction of restriction exit function, the acquiescence being used for application program being set to default desktop program is set in specified application and starts label; Open acquiescence and start label;
Start label by acquiescence and specified application is set to default desktop program;
Enter nearest task list mask steps; Namely described nearest task list mask steps starts multithreading and monitors whether eject nearest task list; If so, then front stage operation has been set to the specified application of default desktop program.
2. the method limiting Android application software and exit according to claim 1, it is characterized in that, after specified application has been set to default desktop program, enter nearest task list mask steps, meanwhile, starting the broadcast of multithreading transmission shutdown system dialog box can allow user directly exit the system dialog box of specified application with shielding harness drop-down menu and other.
3. the method that exits of restriction Android application software according to claim 1, it is characterized in that, nearest task list mask steps detailed process is: judge that whether the class name of the program of current operation is the class name of the program showing nearest task list; If the class of the program of current operation is called the class name of the program showing nearest task list, then eject nearest task list; If the class name of the program of current operation is not the class name of the program showing nearest task list, then do not eject nearest task list.
4. the method that exits of restriction Android application software according to claim 1, is characterized in that, opens after acquiescence starts label, obtain and store specified application exit password.
5. the method limiting Android application software and exit according to claim 1, it is characterized in that, the acquiescence being used for application program being set to default desktop program is set in specified application and starts label namely: two class labels are set in the configuration file of specified application, are respectively default program label and Home key label.
6. the method limiting Android application software and exit according to claim 5, is characterized in that, dynamically open and close default program label and Home key label by the activation label of activation component system function and system configuration.
7. the method limiting Android application software and exit according to claim 3, is characterized in that, adopts multithreading to monitor whether eject nearest task list by current task system function and according to the class name of the program of the nearest task list of display.
8. the method that the restriction Android application software according to any one of claim 1 to 7 exits, is characterized in that, after opening acquiescence startup label, arbitrary time obtains closes the instruction of restriction exit function, just closes to give tacit consent to start label.
9. limit the system that Android application software exits, it is characterized in that, comprising:
Acquiescence starts label and arranges module, opening the instruction of restriction exit function, arranging the acquiescence being used for application program being set to default desktop program and starting label, open acquiescence and start label in specified application for obtaining;
Default desktop programming module, is set to default desktop program for starting label by acquiescence by specified application;
Nearest task list shroud module, for entering nearest task list mask steps; Namely described nearest task list mask steps starts multithreading and monitors whether eject nearest task list; If so, then front stage operation has been set to the specified application of default desktop program.
10. the system limiting Android application software and exit according to claim 9, is characterized in that, also comprise:
Password arranges module, starts after label for opening acquiescence, obtain and store specified application exit password;
System dialog box shroud module, be used to specify after application program has been set to default desktop program, enter nearest task list mask steps, meanwhile, starting the broadcast of multithreading transmission shutdown system dialog box can allow user directly exit the system dialog box of specified application with shielding harness drop-down menu and other;
Label closing module, after opening acquiescence startup label, arbitrary time obtains closes the instruction of restriction exit function, just closes to give tacit consent to start label.
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 Expired - Fee Related 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683926A (en) * | 2018-04-12 | 2018-10-19 | 乐蜜有限公司 | Client withdrawal control method, client, server and computer equipment |
CN110297723A (en) * | 2019-05-24 | 2019-10-01 | 深圳市优博讯科技股份有限公司 | A kind of method and terminal system for preventing application program from interrupting |
Citations (4)
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 |
-
2014
- 2014-09-10 CN CN201410458067.XA patent/CN105468394B/en not_active Expired - Fee Related
Patent Citations (4)
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 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683926A (en) * | 2018-04-12 | 2018-10-19 | 乐蜜有限公司 | Client withdrawal control method, client, server and computer equipment |
CN108683926B (en) * | 2018-04-12 | 2021-03-12 | 香港乐蜜有限公司 | Client quit control method, client, server, equipment and medium |
CN110297723A (en) * | 2019-05-24 | 2019-10-01 | 深圳市优博讯科技股份有限公司 | A kind of method and terminal system for preventing application program from interrupting |
CN110297723B (en) * | 2019-05-24 | 2024-04-12 | 深圳市优博讯科技股份有限公司 | Method for preventing application program from being interrupted and terminal system |
Also Published As
Publication number | Publication date |
---|---|
CN105468394B (en) | 2019-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150029089A1 (en) | Display apparatus and method for providing personalized service thereof | |
WO2016045328A1 (en) | Terminal application control method and apparatus, and storage medium | |
DE202015009846U1 (en) | Device for processing biometric information in an electronic device | |
WO2017000523A1 (en) | Security method and apparatus for application program, and electronic device | |
CN104573552A (en) | Method and device for hiding application icons | |
CN103593623A (en) | Sub-screen display method and device | |
US11366577B2 (en) | Method for presentation by terminal device, and terminal device | |
JP2015204104A (en) | Method and apparatus for account intercommunication among applications | |
CN103986832A (en) | Screen lock interface implementation method for smart phone | |
US20150058788A1 (en) | Information processing method and electronic device | |
WO2016037553A1 (en) | Method and apparatus for closing application program | |
US9740835B2 (en) | Systems and methods for creating and sharing protected content | |
CN105892820A (en) | Icon display management method and device | |
CN103778377A (en) | Terminal and method for preventing sensitive information leakage | |
CN110868693A (en) | Application program flow control method, terminal device and storage medium | |
CN110851057A (en) | Method and device for configuring configuration options of BIOS | |
WO2017185604A1 (en) | Interface displaying method and device of smart terminal | |
CN105468394A (en) | Method and system for restricting exit from Android application software | |
CN104239778B (en) | The ciphering startup method of application based on android system | |
CN106293439A (en) | Interface alternation method and device | |
CN104636148A (en) | Method and device for managing operation option of mobile terminal | |
CN103873680A (en) | Conversation record privacy protection device | |
US20150020165A1 (en) | System of executing application and method thereof | |
CN106331819A (en) | Set-top box operation method, set-top box client device and set-top box | |
CN107729113B (en) | Page management method, page management device, computer device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190607 Termination date: 20190910 |
|
CF01 | Termination of patent right due to non-payment of annual fee |