CN105468394B - A kind of method and system that limitation Android application software exits - Google Patents

A kind of method and system that limitation Android application software exits Download PDF

Info

Publication number
CN105468394B
CN105468394B CN201410458067.XA CN201410458067A CN105468394B CN 105468394 B CN105468394 B CN 105468394B CN 201410458067 A CN201410458067 A CN 201410458067A CN 105468394 B CN105468394 B CN 105468394B
Authority
CN
China
Prior art keywords
default
program
label
limitation
task list
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.)
Expired - Fee Related
Application number
CN201410458067.XA
Other languages
Chinese (zh)
Other versions
CN105468394A (en
Inventor
陈开冉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Jiaxun Information Technology Co Ltd
Original Assignee
Guangdong Jiaxun Information Technology Co Ltd
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 Guangdong Jiaxun Information Technology Co Ltd filed Critical Guangdong Jiaxun Information Technology Co Ltd
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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of method that limitation Android application software exits, and setting default starts label and opens in specified application, and default desktop program is then arranged, enters back into nearest task list mask steps and system dialog box mask steps.The present invention also provides a kind of systems that limitation Android application software exits.Method and system of the present invention can prevent user from exiting specified application by return key or ESC Escape (needing to input proper password just can exit), user is prevented to exit specified application by HOME key, it prevents user from exiting specified application by nearest task list, 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;Limitation exit function can be unlatched and closed, does not interfere the normal operation of android system.

Description

A kind of method and system that limitation Android application software exits
Technical field
The present invention relates to Android application software field, in particular to a kind of side that limitation Android application software exits Method and system.
Background technique
In many scenes, the user of application software of mobile terminal requires the function that current application program is exited in limitation. Such as: parent usually wants to allow child using specified study application software, and limits it and exit using other applications;We When the mobile device for lending oneself uses certain application program to other people, it is often desired to moving back for current application program can be limited Out, to prevent other people from exiting current application, privacy of oneself etc. is spied upon.Currently, the limitation of existing Android application program Exit function has following shortcoming: 1) being simply provided inside AndroidManifest.xml configuration file and open for default Dynamic application when causing user to click Home key every time to return to android system desktop, including does not need limitation current application and exits Shi Douhui pop-up default starting list of application, and can not direct return system desktop, seriously affect user experience;It 2) is only to prevent Client exits current application from return key and Home key, but user can exit current application program otherwise; 3) limitation exit function is only effective when application obtains focus, and focus refers to the position that current cursor is activated, also It is to say that the application program exited by limitation just loses coke when starting other applications from the application program exited by limitation Point limits exit function failure at this time.
Summary of the invention
Object of the present invention is to exit method to overcome the shortcomings of that existing And roid application program limits user, one is provided The method that kind limitation Android application software exits, can prevent user from exiting current application program by nearest task list.
Another object of the present invention is to provide a kind of system that limitation Android application software exits.
In order to achieve the above object, the invention adopts the following technical scheme:
A method of limitation Android application software exits, comprising:
It obtains and opens limitation exit function instruction, be arranged in specified application for application program to be set as defaulting The default of desktop programs starts label;Open default starting label;
Default desktop program is set by specified application by default starting label;
Into nearest task list mask steps;Whether the nearest task list mask steps start multithreading monitoring Pop up nearest task list;If so, front stage operation has been set to the specified application of default desktop program.
Preferably, after specified application has been set to default desktop program, into nearest task list mask steps, At the same time, starting multithreading, which is sent, closes system dialog box broadcast with shielding harness drop-down menu and other user can be allowed straight Connect the system dialog box for exiting specified application.
Preferably, task list mask steps detailed process recently are as follows: judge currently running program class name whether For the class name of the program of the nearest task list of display;If the journey of the entitled nearest task list of display of the class of currently running program The class name of sequence then pops up nearest task list;If the class name of currently running program is not the journey for showing nearest task list The class name of sequence, then without popping up nearest task list.
Preferably, obtaining after opening default starting label and store specified application exiting password.
Preferably, the default being arranged in specified application for setting default desktop program for application program opens Dynamic label is i.e.: two class labels, respectively default program label and Home being arranged in the configuration file of specified application Key label.
Preferably, opening and closing default journey by the activation label dynamic of activation component system function and system configuration Sequence label and Home key label.
Preferably, being used by current task system function and according to the class name for the program for showing nearest task list more Whether thread monitoring pops up nearest task list.
Preferably, any time, which obtains, closes limitation exit function instruction after opening default starting label, just close silent Recognize starting label.
A kind of system that limitation Android application software exits, comprising:
Default starting label setup module is opened limitation exit function instruction for obtaining, is set in specified application The default starting label for setting application program to default desktop program is set, default starting label is opened;
Default desktop program setup module, for setting default desktop for specified application by default starting label Program;
Nearest task list shroud module, for entering nearest task list mask steps;The nearest task list screen It covers step and starts whether multithreading monitoring pops up nearest task list;If so, front stage operation has been set to default desktop journey The specified application of sequence.
Preferably, further include:
Password setup module obtains after opening default starting label and store specified application exits password;
System dialog box shroud module after having been set to default desktop program for specified application, is appointed into nearest Be engaged in list mask steps, at the same time, starting multithreading send close system dialog box broadcast with shielding harness drop-down menu and Other system dialog box that user can be allowed directly to exit specified application;
Label closedown module, after opening default starting label, any time, which obtains, closes limitation exit function instruction, Just default starting label is closed.
Compared with prior art, the present invention have it is following the utility model has the advantages that
Through the above steps, user can be prevented to be switched to other application program by nearest task list to exit currently Application program;Preventing user from by return key or ESC Escape exiting specified application, (needing to input proper password just can move back Out), it prevents user from exiting specified application by HOME key, user is prevented to exit specified application by nearest task list Program prevents user from passing through drop-down System menu and other system dialog box that user can be allowed directly to exit specified application Exit specified application;Limitation exit function can be unlatched and closed, does not interfere the normal operation of android system.The present invention User can not only effectively be limited and exit specified application, and the original application of android system will not be arranged and be used Way has an impact.At the same time, the present invention realizes the function for needing android system Root authority to be just able to achieve a script Can, it is transformed into the plug-in unit that can be directly embedded into common permission application program.
Detailed description of the invention
Fig. 1 is the flow chart for the method that limitation Android application software of the present invention exits.
Now in conjunction with attached drawing, the present invention is further illustrated with specific embodiment.
Specific embodiment
As shown in Figure 1, for a kind of method that limitation Android application software exits of the present invention, including following step It is rapid:
A, it obtains and opens limitation exit function instruction, be arranged in specified application for setting silent for application program Recognize the default starting label of desktop programs;Opening default starting label, (opening default starting label could be by specified application It is set as default desktop program).
B, it after opening default starting label, obtains and store specified application exits password.
C, default desktop program is set for specified application by default starting label;
D-1, into nearest task list mask steps, nearest task list mask steps start multithreading monitor whether Pop up nearest task list;If so, front stage operation has been set to the specified application of default desktop program.
Nearest task list mask steps detailed process are as follows: judge whether currently running program class name is that display is appointed recently The class name of the program of business list;If the class name of the program of the entitled nearest task list of display of the class of currently running program, Pop up nearest task list;If the class name of currently running program is not the class name for showing the program of nearest task list, Nearest task list is not popped up.
After d-2, specified application have been set to default desktop program, into nearest task list mask steps, with this Meanwhile starting multithreading and send and closing system dialog box broadcast with shielding harness drop-down menu and other user can be allowed directly to move back The system dialog box of specified application out.
After opening default starting label, any time, which obtains, closes limitation exit function instruction, just closes default starting mark Label;It is exited at this point, the specified application no longer limits.
Obtaining the instruction of limitation exit function indicates to need to open limitation exit function, that is, needs to be arranged default starting label And open default starting label.
The default for setting default desktop program for application program is arranged in above-mentioned steps, in specified application to open Dynamic label is i.e.: two class labels, respectively Home label and default program being arranged in the configuration file of specified application Label.Home label and default program are opened and closed by the activation label dynamic of activation component system function and system configuration Label.It is used by current task system function and according to the class name of the program of the nearest task list of display of android system Whether multithreading monitoring pops up nearest task list.
One specific embodiment of the method that the limitation Android application software exits is as follows:
The default for setting default desktop program for application program is arranged in a step, in specified application to open Dynamic label is i.e.: two category labels are set in the configuration file AndroidManifest.xml of specified application, point It Wei not android.intent.category.HOME and android.intent.category.DEFAULT.
In a step or limitation specified application is not needed when exiting, and is passed through SetComponentEnabledSetting system function and android:enabled label dynamic open and close Android.intent.category.HOME label and android.intent.category.DERAULT label.
In d-1 step, by getRunningTask system function and according to the nearest task of the display of android system The class name com.android.systemui.recent.RecentsActivity of the program of list, being monitored using multithreading is The no nearest task list of pop-up.
In the method that the limitation Android application software exits, user is prevented to pass through nearest task list, lower pull system Menu and other system dialog box that user can be allowed directly to exit specified application exit specified application, and setting Default desktop program also prevents to exit specified application by HOME key, and setting password prevents user by return key and moves back The function that key exits specified application out is defined as limitation exit function.
The method that limitation Android application software of the present invention exits: prevent user by returning by setting password Hui Jian or ESC Escape exit specified application (needing to input proper password can just exit);By the way that default desktop program is arranged, It is disliked when user presses HOME key i.e. front stage operation specified application, so that user be prevented to exit specified application by HOME key Program;Pass through setting default desktop program and whether monitoring pops up nearest task list and user is prevented to move back by nearest task list Specified application out;It closes system dialog box broadcast by sending and prevents user by drop-down System menu and other can allow The system dialog box that user directly exits specified application exits specified application;It is moved back needing to limit specified application Limitation exit function is just opened when out, is exited i.e. closing limitation exit function when not needing limitation specified application, is not influenced The normal use of each program when other;Wherein, setting default starts label and opens, and default desktop program is then arranged and is It realizes and opens limitation exit function, close default starting label and close limitation exit function.
According to described above, realized by the part steps for the method that above-mentioned limitation Android application software exits each The independent application of kind:
By step a, c, d-1, realize pass through setting default desktop program and monitor whether pop up nearest task list resistance Only user exits specified application by nearest task list;
By step a, c, user presses HOME key, will front stage operation default desktop program, user can not pass through HOME Key exits;
By step a, b, realize that preventing user from exiting by return key or ESC Escape by setting password specifies using journey Sequence;
By step a, c, d-2, realizes and prevent user from passing through lower pull system dish by sending closing system dialog box broadcast Single and other system dialog box that user can be allowed directly to exit specified application exit specified application;
By step a, c, d-1, d-2, user is prevented by nearest task list, drop-down System menu and other can be allowed The system dialog box that user directly exits specified application exits;
The effect of each step in the method that the limitation Android application software exits:
A step: by being arranged and opening default starting label, specified application could be set to default desktop journey Sequence.
B step: obtaining and stores the password that exits of application program, i.e., when being exited by return key or ESC Escape, uses Family, which needs to input proper password, can just exit.
Step c: setting default desktop program for specified application, is that user is prevented to arrange from HOME key, nearest task The basis that table, drop-down System menu and other system dialog box that user can be allowed directly to exit specified application exit.
D-1 step: when popping up nearest task list, i.e. front stage operation specified application immediately;User is prevented to pass through The program on nearest task list is selected, program switching is carried out, specified application is made to lose focus, causes to limit exit function Failure, to exit specified application.
D-2 step: drop-down System menu and other systems that user can be allowed directly to exit specified application are shielded Dialog box;User is prevented to pass through drop-down System menu and other systems pair that user can be allowed directly to exit specified application Words frame exits specified application.
The method that corresponding limitations described above Android application software exits, the present invention also provides one to show limitation The system for the method that Android application software exits, the system include: default starting label setup module, password setup module, Default desktop program setup module, nearest task list shroud module, system dialog box shroud module and label closedown module.
Default starting label setup module, which obtains, opens limitation exit function instruction, is arranged in specified application and is used for The default that application program is set as default desktop program is started into label, opens default starting label.
After password setup module opens default starting label, obtains and store specified application exits password.
Default desktop program setup module sets default desktop program for specified application by default starting label.
Nearest task list shroud module enters nearest task list mask steps;The nearest task list mask steps I.e. whether the monitoring of starting multithreading pops up nearest task list;If so, front stage operation has been set to the finger of default desktop program Determine application program.
After system dialog box shroud module specified application has been set to default desktop program, into nearest task list Mask steps, at the same time, starting multithreading send close system dialog box broadcast with shielding harness drop-down menu and it is other can To allow user directly to exit the system dialog box of specified application.
After label closedown module opens default starting label, any time, which obtains, closes limitation exit function instruction, just closes Close default starting label.
Wherein,
In nearest task list shroud module, nearest task list mask steps detailed process are as follows: the current operation of judgement The class name of program whether be the class name for showing the program of nearest task list;If the entitled display of the class of currently running program The class name of the program of nearest task list, then pop up nearest task list;If the class name of currently running program is not display The class name of the program of nearest task list, then without popping up nearest task list.
In default starting label setup module, it is arranged in specified application for application program to be set as defaulting The default of desktop programs starts label i.e.: two class labels are set in the configuration file of specified application, it is respectively silent Recognize program tag and Home key label.
In default starting label setup module and label closedown module, pass through activation component system function and system configuration Activation label dynamic open and close default program label and Home key label.
In nearest task list shroud module, by current task system function and according to the nearest task list of display Whether the class name of program pops up nearest task list using multithreading monitoring.
The invention is not limited to above embodiment, if not departing from the present invention to various changes or modifications of the invention Spirit and scope, if these modification and variations belong within the scope of claim and equivalent technologies of the invention, then this hair It is bright to be also intended to encompass these changes and change.

Claims (10)

1. a kind of method that limitation Android application software exits characterized by comprising
It obtains and opens limitation exit function instruction, be arranged in specified application for setting default desktop for application program The default of program starts label;Open default starting label;
Default desktop program is set by specified application by default starting label;
Into nearest task list mask steps;The nearest task list mask steps start whether multithreading monitoring pops up Nearest task list;If so, front stage operation has been set to the specified application of default desktop program.
2. the method that limitation Android application software according to claim 1 exits, which is characterized in that specified to apply journey After sequence has been set to default desktop program, into nearest task list mask steps, at the same time, starting multithreading, which is sent, is closed System dialog box is broadcasted with shielding harness drop-down menu and other systems pair that user can be allowed directly to exit specified application Talk about frame.
3. the method that limitation Android application software according to claim 1 exits, which is characterized in that nearest task column Table mask steps detailed process are as follows: whether the class name for judging currently running program is the class for showing the program of nearest task list Name;If the class name of the program of the entitled nearest task list of display of the class of currently running program, pops up nearest task list; If the class name of currently running program is not the class name for showing the program of nearest task list, without popping up nearest task column Table.
4. the method that limitation Android application software according to claim 1 exits, which is characterized in that open default and open After dynamic label, obtains and store specified application exits password.
5. the method that limitation Android application software according to claim 1 exits, which is characterized in that in specified application Default for setting application program to default desktop program is set in program and starts label i.e.: in matching for specified application Set two class labels of setting, respectively default program label and Home key label in file.
6. the method that limitation Android application software according to claim 5 exits, which is characterized in that pass through activation group The activation label dynamic of part system function and system configuration opens and closes default program label and Home key label.
7. the method that limitation Android application software according to claim 3 exits, which is characterized in that by as predecessor Business system function and arranged according to the class name for the program for showing nearest task list using whether multithreading monitoring pops up nearest task Table.
8. the method that limitation Android application software according to any one of claims 1 to 7 exits, which is characterized in that open After opening default starting label, any time, which obtains, closes limitation exit function instruction, just closes default starting label.
9. a kind of system that limitation Android application software exits characterized by comprising
Default starting label setup module opens limitation exit function instruction for obtaining, is arranged in specified application and uses Start label in the default for setting application program to default desktop program, opens default starting label;
Default desktop program setup module, for setting default desktop journey for specified application by default starting label Sequence;
Nearest task list shroud module, for entering nearest task list mask steps;The nearest task list shielding step Whether rapid i.e. starting multithreading monitoring pops up nearest task list;If so, front stage operation has been set to default desktop program Specified application.
10. the system that limitation Android application software according to claim 9 exits, which is characterized in that further include:
Password setup module obtains after opening default starting label and store specified application exits password;
System dialog box shroud module after having been set to default desktop program for specified application, is arranged into nearest task Table mask steps, at the same time, starting multithreading, which is sent, closes system dialog box broadcast with shielding harness drop-down menu and other User can be allowed directly to exit the system dialog box of specified application;
Label closedown module, after opening default starting label, any time, which obtains, closes limitation exit function instruction, just closes Close default starting label.
CN201410458067.XA 2014-09-10 2014-09-10 A kind of method and system that limitation Android application software exits Expired - Fee Related 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 CN105468394A (en) 2016-04-06
CN105468394B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683926B (en) * 2018-04-12 2021-03-12 香港乐蜜有限公司 Client quit control method, client, server, equipment and medium
CN110297723B (en) * 2019-05-24 2024-04-12 深圳市优博讯科技股份有限公司 Method for preventing application program from being interrupted and terminal system

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
CN105468394A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
US10552644B2 (en) Method and apparatus for displaying information content
CN108681662B (en) Method and device for installing program
DE102015119592A1 (en) By a glance induced speech recognition
US11287948B2 (en) Method for controlling the execution of a program configurable into a disabled state and enabled state
CN105468394B (en) A kind of method and system that limitation Android application software exits
Mulfari et al. How cloud computing can support on-demand assistive services
WO2014194148A3 (en) Systems and methods involving gesture based user interaction, user interface and/or other features
CN108205619A (en) A kind of multi-user management method based on android system and its device
CN106201511B (en) Create the method and device of modal dialog box
US9680898B2 (en) Comment link to streaming media
CN104239778B (en) The ciphering startup method of application based on android system
CN108632069B (en) Client configuration method, system and related equipment
MY196277A (en) Method and Apparatus for Implementing Accessibility Function in Applications
US9612802B1 (en) Contextual interactive program feedback
WO2015176672A1 (en) Method and apparatus for obtaining response priority for application triggering
CN105335077B (en) A kind of information processing method and electronic equipment
CN104951387B (en) A kind of overall situation presentation device and its method for servicing details
US20190095047A1 (en) Safely capturing input when a dialog is presented
CN103488483A (en) Full-screen control method and system for computer and network
Teitelman Using path analysis to examine mass media exposure, sociocultural views about women, and disored eating symptomatology
Meads Network segmentation: Do no evil
TWI460661B (en) System for closing programs executing on mobile and method thereof
Lin et al. A Simple Method to Record Keystrokes on Mobile Phones and Other Devices for Usability Evaluations
Clifton Why did it do that? The (im?) possibility of deciphering actions of AI.
Li et al. Why do users click on product images? The effect of perceived arousal

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190607

Termination date: 20190910