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
program
default
task list
exit
application program
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

Method and system for limiting Android application software to exit
Technical Field
The invention relates to the field of Android application software, in particular to a method and a system for limiting exit of the Android application software.
Background
In many scenarios, the user of the mobile terminal application software needs to restrict the functionality of exiting the current application. For example: parents often want children to use a designated learning application while restricting them from exiting use of other applications; when borrowing own mobile equipment to use an application program for others, people often want to limit exiting of the current application program so as to prevent others from exiting the current application, spying on own privacy and the like. At present, the existing exit-limiting function of the Android application program has the following defects: 1) the method comprises the following steps that a default starting application is simply set in an Android management xml configuration file, so that when a user clicks a Home key to return to an Android system desktop each time, a default starting application list can be popped up without limiting the exiting of the current application, the current application cannot be directly returned to the system desktop, and the user experience is seriously influenced; 2) the client is only prevented from exiting the current application from the return key and the Home key, but the user can exit the current application program in other ways; 3) the exit restriction function is only effective when the application obtains the focus, which is the position where the current cursor is activated, that is, when other application programs are started from the exit restriction application programs, the exit restriction application program loses the focus, and the exit restriction function is disabled.
Disclosure of Invention
The invention aims to overcome the defect that the existing method for limiting the exit of a user by using an Android application program is insufficient, And provides a method for limiting the exit of Android application software, which can prevent the user from exiting the current application program through a latest task list.
Another object of the present invention is to provide a system for restricting Android application software from exiting.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for limiting exit of Android application software comprises the following steps:
acquiring an instruction for starting a function of restricting quitting, and setting a default starting tag for setting an application program as a default desktop program in a specified application program; opening a default starting label;
setting the designated application program as a default desktop program through a default starting tag;
entering a latest task list shielding step; the recent task list shielding step is to start multi-thread monitoring to pop up a recent task list; and if so, the specified application program set as the default desktop program is operated in the foreground.
Preferably, after the designated application program is set as the default desktop program, the latest task list shielding step is entered, and at the same time, the multithread sending closing system dialog box broadcast is started to shield the system pull-down menu and other system dialog boxes which can allow the user to directly quit the designated application program.
Preferably, the recent task list masking step specifically comprises the following steps: judging whether the class name of the currently running program is the class name of the program displaying the latest task list; if the class name of the currently running program is the class name of the program displaying the latest task list, popping up the latest task list; if the class name of the currently running program is not the class name of the program showing the latest task list, the latest task list is not popped up.
Preferably, after the default starting tag is opened, the exit password of the specified application program is acquired and stored.
Preferably, the default start tab for setting the application program as the default desktop program is set in the specified application program, that is: two category labels are set in a configuration file of a specified application program, wherein the two category labels are a default program label and a Home key label respectively.
Preferably, the default program tab and the Home key tab are dynamically turned on and off by activating the component system functions and the activation tab of the system configuration.
Preferably, whether the recent task list is popped up is monitored by multithreading according to the system function of the current task and the class name of the program displaying the recent task list.
Preferably, after the default start-up tag is turned on, the instruction for turning off the restricted exit function is acquired at any time, and then the default start-up tag is turned off.
A system for limiting Android application software exit comprises:
the default starting label setting module is used for acquiring an instruction for starting the function of limiting exit, setting a default starting label for setting the application program as a default desktop program in the specified application program, and starting the default starting label;
the default desktop program setting module is used for setting the specified application program as a default desktop program through a default starting tag;
the latest task list shielding module is used for entering the latest task list shielding step; the recent task list shielding step is to start multi-thread monitoring to pop up a recent task list; and if so, the specified application program set as the default desktop program is operated in the foreground.
Preferably, the method further comprises the following steps:
the password setting module is used for acquiring and storing an exit password of the specified application program after the default starting tag is opened;
the system dialog box shielding module is used for entering a latest task list shielding step after the appointed application program is set as a default desktop program, and meanwhile, starting multithreading sending and closing system dialog box broadcasting to shield a system pull-down menu and other system dialog boxes which can enable a user to directly quit the appointed application program;
and the label closing module is used for closing the default starting label by acquiring a closing limit quitting function instruction at any time after the default starting label is opened.
Compared with the prior art, the invention has the following beneficial effects:
through the steps, the user can be prevented from switching to other application programs through the latest task list and exiting the current application program; the method comprises the steps of preventing a user from quitting a specified application program through a return key or an exit key (the user can quit only by inputting a correct password), preventing the user from quitting the specified application program through an HOME key, preventing the user from quitting the specified application program through a latest task list, and preventing the user from quitting the specified application program through a pull-down system menu and other system dialog boxes which can enable the user to directly quit the specified application program; the function of limiting exit can be opened and closed, and normal operation of the Android system is not hindered. The method can effectively limit the user from quitting the designated application program, and cannot influence the original application setting and use of the Android system. Meanwhile, the method and the device realize that a function which can be realized only by Root authority of the Android system is converted into a plug-in which can be directly embedded into a common authority application program.
Drawings
FIG. 1 is a flowchart of a method for limiting exit of Android application software according to the present invention.
The invention will now be further described with reference to the accompanying drawings and specific embodiments.
Detailed Description
As shown in fig. 1, the method for limiting the exit of the Android application software, provided by the invention, comprises the following steps:
a. acquiring an instruction for starting a function of restricting quitting, and setting a default starting tag for setting an application program as a default desktop program in a specified application program; and (4) opening a default starting label (the default starting label is opened to set the specified application program as a default desktop program).
b. And after the default starting label is opened, acquiring and storing the exit password of the specified application program.
c. Setting the designated application program as a default desktop program through a default starting tag;
d-1, entering a recent task list shielding step, wherein the recent task list shielding step is to start multi-thread monitoring to pop up a recent task list; and if so, the specified application program set as the default desktop program is operated in the foreground.
The recent task list shielding step comprises the following specific processes: judging whether the currently running program class name is the class name of the program displaying the latest task list; if the class name of the currently running program is the class name of the program displaying the latest task list, popping up the latest task list; if the class name of the currently running program is not the class name of the program showing the latest task list, the latest task list is not popped up.
d-2, after the appointed application program is set as a default desktop program, entering a latest task list shielding step, and meanwhile starting multithreading sending and closing system dialog box broadcasting to shield a system pull-down menu and other system dialog boxes which can enable a user to directly quit the appointed application program.
After the default starting label is started, acquiring a command for stopping the limited quitting function at any time, and then closing the default starting label; at this point, the designated application no longer restricts exit.
The instruction for obtaining the restricted exit function indicates that the restricted exit function needs to be started, that is, the default start tag needs to be set and the default start tag needs to be started.
In the above steps, the default start tab for setting the application program as the default desktop program in the specified application program is that: two category labels are set in a configuration file of a specified application program, namely a Home label and a default program label. The Home tag and default program tags are dynamically turned on and off by activating component system functions and activation tags of the system configuration. And adopting multithreading monitoring to judge whether the latest task list is popped up or not through the current task system function and according to the class name of the program of the Android system for displaying the latest task list.
One specific embodiment of the method for limiting the exit of the Android application software is as follows:
in step a, a default starting tag for setting the application program as a default desktop program is set in the specified application program, namely: two category tags, namely, android.
In step a or when the specified application is not required to be restricted from exiting, through the setComponentEnabledSetting system function and android: the enabled tag dynamically turns on and off the android.
In the step d-1, multithread monitoring is adopted to determine whether to pop up the latest task list or not through a getreporting task system function and according to the class name com.
According to the method for limiting the Android application software to quit, a user is prevented from quitting the specified application program through a recent task list, a pull-down system menu and other system dialog boxes which can enable the user to directly quit the specified application program, the default desktop program is set, the specified application program is also prevented from quitting through an HOME key, and a password is set to prevent the user from quitting the specified application program through a return key and an exit key, wherein the function of limiting the quitting is defined as a quit limiting function.
The method for limiting the exit of the Android application software comprises the following steps: the password is set to prevent the user from quitting the designated application program through a return key or an exit key (the user can quit only by inputting the correct password); by setting a default desktop program, when a user presses a HOME key, namely the specified application program is run in the foreground, the user is prevented from quitting the specified application program through the HOME key; setting a default desktop program and monitoring whether a latest task list is popped up or not to prevent a user from quitting a specified application program through the latest task list; stopping a user from exiting the specified application program through a pull-down system menu and other system dialogs which can enable the user to directly exit the specified application program by sending and closing the system dialog broadcast; the exit limiting function is started when the specified application program is required to be limited to exit, and the exit limiting function is closed when the specified application program is not required to be limited to exit, so that the normal application of each program at other times is not influenced; and then, setting a default desktop program to realize the function of opening the limit exit, and closing the default start tag to close the function of the limit exit.
According to the above, various independent applications are realized through the partial steps of the method for limiting the exit of the Android application software:
through the steps a, c and d-1, the user is prevented from quitting the designated application program through the latest task list by setting a default desktop program and monitoring whether the latest task list is popped up or not;
through the steps a and c, when a user presses the HOME key, the default desktop program can be operated in the foreground, and the user can not exit through the HOME key;
through the steps a and b, the user is prevented from quitting the designated application program through a return key or an exit key by setting the password;
through the steps a, c and d-2, the user is prevented from quitting the appointed application program through a system menu which is pulled down and other system dialog boxes which can enable the user to directly quit the appointed application program by sending and closing the system dialog box broadcast;
through the steps a, c, d-1 and d-2, the user is prevented from directly quitting the appointed application program through a latest task list, a pull-down system menu and other system dialog boxes which can enable the user to quit the appointed application program;
the method for limiting the exit of the Android application software has the following functions:
a, step a: the designated application can only be set as the default desktop program by setting and opening the default start tab.
b, step (b): and acquiring and storing the exit password of the application program, namely when exiting through a return key or an exit key, the user needs to input a correct password to exit.
c, step (c): setting the designated application as the default desktop is the basis for preventing the user from exiting through the HOME key, recent task list, pull-down system menu, and other system dialogs that allow the user to directly exit the designated application.
d-1 step: when a latest task list is popped up, immediately foreground running of the specified application program is carried out; the user is prevented from switching programs by selecting the program on the latest task list, so that the designated application program loses focus, the quit limiting function is disabled, and the designated application program is quitted.
d-2 step: a pull-down system menu and other system dialog boxes which can enable a user to directly quit a specified application program are shielded; the user is prevented from exiting the designated application through a drop down system menu or other system dialog box that allows the user to directly exit the designated application.
Corresponding to the method for limiting the exit of the Android application software, the invention also provides a system for displaying the method for limiting the exit of the Android application software, and the system comprises: the system comprises a default starting label setting module, a password setting module, a default desktop program setting module, a recent task list shielding module, a system dialog box shielding module and a label closing module.
And the default starting label setting module acquires the command of starting the quit limiting function, sets a default starting label for setting the application program as a default desktop program in the specified application program, and starts the default starting label.
And after the password setting module opens the default starting tag, acquiring and storing the exit password of the specified application program.
And the default desktop program setting module sets the specified application program as a default desktop program through a default starting tag.
A latest task list shielding module enters a latest task list shielding step; the recent task list shielding step is to start multi-thread monitoring to pop up a recent task list; and if so, the specified application program set as the default desktop program is operated in the foreground.
And after the system dialog box shielding module specifies that the application program is set as a default desktop program, entering a latest task list shielding step, and meanwhile starting multithreading sending and closing system dialog box broadcasting to shield a system pull-down menu and other system dialog boxes which can enable a user to directly quit the specified application program.
After the label closing module opens the default starting label, the instruction for closing the limitation quitting function is obtained at any time, and then the default starting label is closed.
Wherein,
in the recent task list shielding module, the recent task list shielding step specifically comprises the following steps: judging whether the class name of the currently running program is the class name of the program displaying the latest task list; if the class name of the currently running program is the class name of the program displaying the latest task list, popping up the latest task list; if the class name of the currently running program is not the class name of the program showing the latest task list, the latest task list is not popped up.
In the default starting label setting module, a default starting label for setting the application program as a default desktop program is set in the specified application program, namely: two category labels are set in a configuration file of a specified application program, wherein the two category labels are a default program label and a Home key label respectively.
And in the default starting label setting module and the label closing module, dynamically opening and closing a default program label and a Home key label through activating a component system function and an activation label configured by the system.
In the latest task list shielding module, whether the latest task list is popped up is monitored by multithreading according to the current task system function and the class name of the program displaying the latest task list.
The present invention is not limited to the above-described embodiments, and various changes and modifications of the present invention are intended to be included within the scope of the claims and the equivalent technology of the present invention if they do not depart from the spirit and scope of the present invention.

Claims (10)

1. A method for limiting exit of Android application software is characterized by comprising the following steps:
acquiring an instruction for starting a function of restricting quitting, and setting a default starting tag for setting an application program as a default desktop program in a specified application program; opening a default starting label;
setting the designated application program as a default desktop program through a default starting tag;
entering a latest task list shielding step; the recent task list shielding step is to start multi-thread monitoring to pop up a recent task list; and if so, the specified application program set as the default desktop program is operated in the foreground.
2. The method for limiting Android application software exit according to claim 1, characterized in that after a designated application program has been set as a default desktop program, a latest task list shielding step is entered, and meanwhile, a multi-thread sending close system dialog broadcast is started to shield a system pull-down menu and other system dialogs that allow a user to directly exit the designated application program.
3. The method for limiting Android application software to exit according to claim 1, characterized in that the latest task list shielding step comprises the specific processes of: judging whether the class name of the currently running program is the class name of the program displaying the latest task list; if the class name of the currently running program is the class name of the program displaying the latest task list, popping up the latest task list; if the class name of the currently running program is not the class name of the program showing the latest task list, the latest task list is not popped up.
4. The method for limiting Android application software to exit according to claim 1, characterized in that after a default start tag is opened, an exit password of a specified application program is acquired and stored.
5. The method for limiting Android application software exit according to claim 1, wherein a default start tag for setting an application program as a default desktop program is set in a specific application program: two category labels are set in a configuration file of a specified application program, wherein the two category labels are a default program label and a Home key label respectively.
6. The method for limiting Android application software exit of claim 5, characterized in that the default program tag and the Home key tag are dynamically turned on and off by activating component system functions and activation tags of system configuration.
7. The method for limiting Android application software to exit according to claim 3, characterized in that whether to pop up the latest task list is monitored by multithreading according to a current task system function and a class name of a program displaying the latest task list.
8. The method for limiting Android application software to quit according to any one of claims 1 to 7, wherein after a default start-up tag is started, a command for closing a function of limiting quit is obtained at any time, and then the default start-up tag is closed.
9. A system for limiting Android application software exit is characterized by comprising:
the default starting label setting module is used for acquiring an instruction for starting the function of limiting exit, setting a default starting label for setting the application program as a default desktop program in the specified application program, and starting the default starting label;
the default desktop program setting module is used for setting the specified application program as a default desktop program through a default starting tag;
the latest task list shielding module is used for entering the latest task list shielding step; the recent task list shielding step is to start multi-thread monitoring to pop up a recent task list; and if so, the specified application program set as the default desktop program is operated in the foreground.
10. The system for limiting Android application software exit according to claim 9, further comprising:
the password setting module is used for acquiring and storing an exit password of the specified application program after the default starting tag is opened;
the system dialog box shielding module is used for entering a latest task list shielding step after the appointed application program is set as a default desktop program, and meanwhile, starting multithreading sending and closing system dialog box broadcasting to shield a system pull-down menu and other system dialog boxes which can enable a user to directly quit the appointed application program;
and the label closing module is used for closing the default starting label by acquiring a closing limit quitting function instruction at any time after the default starting label is opened.
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
US11854570B2 (en) Electronic device providing response to voice input, and method and computer readable medium thereof
CN106155727B (en) Application program updating method and device and terminal
CN108681662B (en) Method and device for installing program
WO2016200889A1 (en) System, method, and device for remotely operating a server
US10264055B2 (en) Displaying an application in a window in a graphical user interface environment on a computer system
US11287948B2 (en) Method for controlling the execution of a program configurable into a disabled state and enabled state
US9639321B2 (en) Method and system for controlling the playback of multimedia content
CN105468394B (en) A kind of method and system that limitation Android application software exits
DE102018114658A1 (en) Input during an entertainment session
WO2016037553A1 (en) Method and apparatus for closing application program
CN111222044A (en) Information recommendation method and device based on emotion perception and storage medium
DE102018126871A1 (en) Detection of wake-up words
CN105281799A (en) Method and system for setting functions of keys of intelligent interphone
CN106909834A (en) A kind of data processing method and device
US10397296B2 (en) Comment link for shared streaming media content
US9747070B1 (en) Configurable state machine actions
US10031504B2 (en) Method and device for managing and configuring field devices in an automation installation
CN106909413A (en) A kind of data processing method and device
CN106650323B (en) Application program management method and device
CN104410910A (en) Controlling method and device installing application of storage device in intelligent television
WO2014198111A1 (en) Systems and methods for multimedia-processing
CN107229412A (en) A kind of key control method and device of embedded Linux equipment
AU2018329492B2 (en) Fault tolerant services for integrated building automation systems
CN108632069B (en) Client configuration method, system and related equipment
CN111385668A (en) Pop-up advertisement management method and system

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