CN105022955B - A kind of locking means and mobile terminal of application program - Google Patents

A kind of locking means and mobile terminal of application program Download PDF

Info

Publication number
CN105022955B
CN105022955B CN201410164412.9A CN201410164412A CN105022955B CN 105022955 B CN105022955 B CN 105022955B CN 201410164412 A CN201410164412 A CN 201410164412A CN 105022955 B CN105022955 B CN 105022955B
Authority
CN
China
Prior art keywords
destination application
page
mobile terminal
application
station identification
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.)
Active
Application number
CN201410164412.9A
Other languages
Chinese (zh)
Other versions
CN105022955A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410164412.9A priority Critical patent/CN105022955B/en
Publication of CN105022955A publication Critical patent/CN105022955A/en
Application granted granted Critical
Publication of CN105022955B publication Critical patent/CN105022955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of locking means of application program characterized by comprising when the page of mobile terminal switching display, judges the page to be shown whether belonging to destination application;If the page is not belonging to the destination application, non-preceding station identification is set for the destination application, wherein the non-preceding station identification is used to indicate application program and is in the state that non-foreground is shown;If the page belongs to the destination application, and the destination application is provided with the non-preceding station identification, then: locking the destination application according to the lock mode of user preset.Technical solution provided by the invention can provide safeguard for the privacy of user in the application.

Description

A kind of locking means and mobile terminal of application program
Technical field
The present invention relates to application domains, and in particular to a kind of application program locking method and mobile terminal.
Background technique
Currently, mobile terminal (such as mobile phone, tablet computer) has possessed stronger processing capacity, people pass through mobile whole Various application programs (English abbreviation APP) are installed in end, instant messaging, video playing, photography and vedio recording and net may be implemented The functions such as page browsing, this makes mobile terminal be increasingly becoming people's life, work and entertain essential a part.
For the APP for needing user to carry out Account Logon operation certain in mobile terminal, in order to simplify the login behaviour of user Make, if user passes through Account Logon APP and still keeps the state of Account Logon before exiting the APP, user opens subsequent It just no longer needs to carry out Account Logon when moving the APP, which can be automatically performed login according to the log-on message of previous user.
Undoubtedly, above scheme can simplify the register of user, but also bring hidden danger for privacy of user, for example, Assuming that user's first passes through some APP of Account Logon in mobile terminal S, and Account Logon is still kept before exiting the AAP State.When other users (such as user's second, user's third gradegrade C) start the APP by mobile terminal S, which can be according to user The log-on message of first is automatically performed login, at this point, above-mentioned other users can see all individuals of user's first in the APP Information.It needs to solve as it can be seen that how further to protect the privacy of user to become in the case where simplifying the scene of register of user The problem of.
Summary of the invention
The present invention provides a kind of application program locking method and mobile terminal, for the privacy for user in the application It provides safeguard.
First aspect present invention provides a kind of locking means of application program, comprising:
When the page of mobile terminal switching display, judge whether the page to be shown is belonged into destination application;
If the page is not belonging to the destination application, non-preceding station identification is set for the destination application, Wherein, the non-preceding station identification is used to indicate application program and is in the state that non-foreground is shown;
If the page belongs to the destination application, and the destination application is provided with the non-foreground Mark, and the destination application has enabled lock function, then:
The destination application is locked according to the lock mode of user preset.
Second aspect of the present invention provides a kind of mobile terminal, comprising:
First judging unit, for when the mobile terminal switching display the page when, judge be by the page to be shown It is no to belong to destination application;
Setting unit, for judging that the page is not belonging to the destination application when first judging unit When, non-preceding station identification is set for the destination application, wherein the non-preceding station identification is used to indicate application program and is in non- The state that foreground is shown;
Lock cell, for judging that the page belongs to the destination application when first judging unit, and The destination application is provided with the non-preceding station identification, and when the destination application has enabled lock function, The destination application is locked according to the lock mode of user preset.
From above-mentioned technical proposal of the present invention it is found that the present invention is in the page of mobile terminal switching display, by combining page The life cycle in face and non-preceding station identification, judge whether destination application jumps to foreground from non-foreground and show, and in target Application program jumps to foreground from non-foreground and shows, and when destination application enabling lock function, according to the lock of user preset Mode lock onto target application program is determined, so that needing specific use when destination application jumps to foreground from non-foreground and shows Family (such as, it is known that the user of unlocking pin) locking of destination application could be released and using destination application, for Privacy of the family in destination application provides guarantee.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1-a is a kind of locking means one embodiment flow diagram of application program provided by the invention;
Fig. 1-b is the Life Cycle Process schematic diagram of the page provided by the invention;
Fig. 2 is a kind of mobile terminal one embodiment structural schematic diagram provided by the invention;
Fig. 3 is a kind of another example structure schematic diagram of mobile terminal provided by the invention;
Fig. 4 is a kind of another example structure schematic diagram of mobile terminal provided by the invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
The embodiment of the present invention provides a kind of locking means of application program, and the above method includes: when mobile terminal switching is aobvious When the page shown, judge whether the page to be shown is belonged into destination application;It is answered if the above-mentioned page is not belonging to above-mentioned target With program, then non-preceding station identification is set for above-mentioned destination application, wherein above-mentioned non-preceding station identification is used to indicate application program The state shown in non-foreground;If the above-mentioned page belongs to above-mentioned destination application, and above-mentioned destination application is currently set It is equipped with above-mentioned non-preceding station identification, and above-mentioned destination application has enabled lock function, then: according to the lock mode of user preset Lock above-mentioned destination application.The embodiment of the present invention also provides corresponding mobile terminal.It is described in detail separately below.
Please refer to Fig. 1-a, the locking means of the application program in the embodiment of the present invention, comprising:
101, when the page of mobile terminal switching display, judge whether the page to be shown is belonged into target application journey Sequence;
In the embodiment of the present invention, the application program (including destination application) of mobile terminal includes at least one page, Each page of application program has identical life cycle substantially, comprising: and creation starting, restores, pause, stops and destroy, Corresponding to 4 kinds of states: active state, halted state, halted state and inactive state.For a page, creates, opens Process that is dynamic and restoring corresponds to page switching to the process of active state, and active state is also referred to as operating status, in activity The page of state is located at top layer's (in movable component (i.e. Activity) stack top in Android system) in user interface, should The page is shown in interface front end, can be seen by the user completely, and can interact with user, in certain scenes, place The page of foreground process is also referred to as in the page of active state;The process of pause corresponds to page switching to the mistake of halted state Journey, the page for being switched to halted state will lose focus, which is at least partially obscured, and be no longer on the top layer of user interface, And it cannot be interacted with user, but the page placed in a suspend state still maintains vigour and (such as keeps all state, Cheng Yuanxin Breath keeps connecting with window manager);The process of stopping corresponds to page switching to the process of halted state, in stopping shape The window of the page of state is hidden, therefore the page cannot be seen by the user completely on interface, but the page still keeps living Power (such as keeps all state, information about firms, keep connecting with window manager);The process of destruction is arrived corresponding to page switching The process of inactive state, the page in inactive state will be deleted, and to discharge Installed System Memory, the deleted page is no longer It maintains vigour.
Specifically, the Life Cycle Process schematic diagram of the page is as shown in Fig. 1-b, as shown in Fig. 1-b, normally shows in terminal When the page, two kinds can be executed and judge process:
The first judges that process is that the page that judges whether to have been friends in the past needs to stop, when judging that no old page needs to stop When, the state of the normal display page is kept, when the page of judging to have been friends in the past needs to stop, stopping the old page (that is, by the old page It is switched to halted state), and the page that further judges whether to have been friends in the past needs to destroy, when the page of judging to have been friends in the past needs to destroy, The old page (that is, by old page switching to inactive state) is destroyed, the state of the normal display page is returned to, it is not old when judging When the page needs to destroy, then the old page is not destroyed, return to the state of the normal display page.
Judge that process is to judge whether to need to be switched to new page second, when judging without switch to new page When, keep the state of the normal display page to suspend the old page (that is, the old page is cut when judging to need to be switched to new page Change to halted state), and further determine whether to need to create new page, if judging to need to create new page, execute wound It builds new page, starting new page, restore the process of new page and the normal display page, if judging not needing creation new page, Then show that new page had been created before this, need to only execute starting new page at this time, restore new page and normally show the page Process.
In the embodiment of the present invention, when the page of mobile terminal switching display, judge whether belong to the page to be shown Destination application executes step 102, when the page belongs to above-mentioned mesh when the page is not belonging to above-mentioned destination application When marking application program, step 103 is executed.
Since the process of the page of mobile terminal switching display includes: the creation starting page or restores the process of the page and is stopped Therefore the only process of the page optionally, when mobile terminal restores the page, judges the page to be shown whether belonging to target (i.e. the process of " recovery new page " shown in Fig. 1-b triggers step 101) to application program, when the page is not belonging to above-mentioned target When application program, step 102 is executed, when the page belongs to above-mentioned second application program, executes step 103;Alternatively, when movement When terminal creates the page, judge whether to belong to the page to be shown into destination application that (i.e. " creation is newly shown in Fig. 1-b The process of the page " triggers step 101), when the page is not belonging to above-mentioned destination application, step 102 is executed, when the page When belonging to above-mentioned second application program, step 103 is executed, alternatively, judging when mobile terminal stops the page by page to be shown Whether face belongs to destination application, and (process for " stopping the old page " shown in Fig. 1-b triggers step 101), when the page When being not belonging to above-mentioned destination application, step 102 is executed, when the page belongs to above-mentioned second application program, executes step 103。
Optionally, when the page of mobile terminal switching display, acquisition for mobile terminal believes the attribute of the page to be shown Breath (process name, the process number of process such as where the page), judge whether the page belongs to according to the attribute information of the page on State destination application.Specifically, mobile terminal can get the current page restored or create by the common interface of system The attribute information in face.
Since in certain operating systems (such as Android operation system), each page that can see is substantially one Therefore Activity optionally, counts the Activity inside destination application, show when mobile terminal switches The page when, judge whether the quantity of current Activity inside destination application is 0, if working as inside destination application The quantity of preceding Activity is 0, then determines the page to be shown being not belonging to above-mentioned destination application, if target application journey The quantity of current Activity is not 0 inside sequence, then determines the page to be shown belonging to above-mentioned destination application.
Certainly, the embodiment of the present invention can also judge the page to be shown whether belonging to target application by other methods Program is not construed as limiting herein.
It should be noted that the destination application in the embodiment of the present invention is the application program for having lock function, on It states lock function and refers to application program from when being switched to foreground from the background, to the application program into line-locked function.
102, non-preceding station identification is set for above-mentioned destination application;
When step 101 is judged currently to restore or the page of creation is not belonging to destination application, answered for above-mentioned target Non- preceding station identification is set with program, wherein above-mentioned non-preceding station identification is used to indicate application program and is in the state that non-foreground is shown.
Optionally, front and back flag bit is set for above-mentioned destination application, by the value for changing the front and back flag bit Non- preceding station identification or preceding station identification are indicated, for example, setting when the front and back flag bit takes 1, indicates non-preceding station identification, when this When front and back flag bit takes 0, station identification before indicating, in another example, it sets when the front and back flag bit takes 0, indicates non-preceding logo Know, when the front and back flag bit takes 1, station identification before indicating.When the page that step 101 is judged currently to restore or be created does not belong to When destination application, which is written as value corresponding to non-preceding station identification.
103, judge whether above-mentioned destination application is currently provided with non-preceding station identification;
When step 101 is judged currently to restore or the page of creation belongs to destination application, mobile terminal is further Judge whether above-mentioned destination application is currently provided with non-preceding station identification, is restored with the above-mentioned destination application of determination currently Or whether belong to the state that non-foreground is shown before the creation page.
When judging that above-mentioned destination application is provided with non-preceding station identification, step 104 is executed, on judging When stating the current not set non-preceding station identification of destination application, return step 101, alternatively, immediately or wait predetermined instant or Terminate this process under predeterminable event triggering.
104, judge whether above-mentioned destination application has enabled lock function;
For having the application program of lock function, user can choose whether to enable the lock function of the application program, Therefore, at step 104, further whether above-mentioned destination application has enabled lock function to mobile terminal.
Optionally, locking marker is arranged to application program, for having enabled the application program of lock function, this applies journey The locking marker of sequence is arranged to virtual value, does not support for not enabled lock function or the application program of lock function, should The locking marker of application program is arranged to invalid bit, then specifically, mobile terminal is according to the screen locking mark of destination application Know position and judge whether destination application has enabled lock function, if the screen locking marker of destination application is set as effective Value then determines that destination application has enabled lock function, step 105 is executed, if the screen locking marker of destination application is set It is set to invalid value, then determines destination application not enabled lock function, return step 101.
Optionally, the process triggering that step 104 " restores new page " shown in Fig. 1-b, certainly, step 104 can also be with Other processes triggerings shown in Fig. 1-b, for example, step 104 " creation new page " shown in Fig. 1-b or " starting is new The process of the page " triggers, and is not construed as limiting herein.
105, above-mentioned destination application is locked according to the lock mode of user preset;
In the embodiment of the present invention, the lock mode of above-mentioned user preset can be gesture password lock mode, then works as user When the locking password of destination application is arranged, mobile terminal shows gesture input interface, so that user inputs for unlocking The gesture of above-mentioned destination application, when the above-mentioned destination application of mobile terminal locking, mobile terminal monitoring users are upper It states the gesture inputted in the locking interface of destination application, and the gesture listened to and mobile terminal records before is used for The gesture for unlocking above-mentioned destination application is compared, when the gesture listened to and mobile terminal records before are for unlocking When the gesture of above-mentioned destination application matches, mobile terminal releases the locking to above-mentioned destination application, restores above-mentioned Destination application uses interface, and above-mentioned destination application can be used normally in user at this time.Certainly, above-mentioned user preset Lock mode be also possible to other way, such as be also possible to simple digital password locking mode, then when user is in setting mesh When marking the locking password of application program, mobile terminal shows simple digital input interface, so that user's input is above-mentioned for unlocking The number combination of destination application, when the above-mentioned destination application of mobile terminal locking, mobile terminal monitoring users are upper The number combination inputted in the locking interface of destination application is stated, and the number combination listened to is remembered with mobile terminal before Digital combine for unlocking above-mentioned destination application of record is compared, when the number combination and movement before that listen to are whole When the number combination for unlocking above-mentioned destination application of end record matches, mobile terminal is released to above-mentioned target application The locking of program, that restores above-mentioned destination application uses interface, and above-mentioned target application journey can be used normally in user at this time Sequence.The embodiment of the present invention is not defined specific lock mode.
Further, to avoid when the different pages of destination application are when switching over, mobile terminal to lock, which sets the goal, is answered With program, when the page to be shown is belonged to above-mentioned destination application, and above-mentioned destination application be provided with it is above-mentioned Non- preceding station identification, and when above-mentioned destination application has enabled lock function, mobile terminal removes above-mentioned destination application Non- preceding station identification.
Optionally, front and back flag bit is set for above-mentioned destination application, by the value for changing the front and back flag bit Non- preceding station identification is removed, for example, setting when the front and back flag bit takes 1, indicates non-preceding station identification, when the front and back mark When position takes 0, station identification before indicating, then mobile terminal is by setting 0 for the front and back flag bit of above-mentioned destination application, i.e., The non-preceding station identification of above-mentioned destination application can be removed, in another example, it sets when the front and back flag bit takes 0, before indicating non- Station identification, when the front and back flag bit takes 1, station identification before indicating, mobile terminal is by will be before above-mentioned destination application Backstage flag bit is set as 1, can remove the non-preceding station identification of above-mentioned destination application.Specifically, mobile terminal can root According to the set-up mode of above-mentioned non-preceding station identification, the non-preceding station identification of above-mentioned destination application is removed using other way, herein It is not construed as limiting.
Optionally, when above-mentioned mobile terminal is in screen lock state, above-mentioned non-foreground is set for above-mentioned destination application Mark, after screen lock state unlock, to lock above-mentioned destination application in above-mentioned mobile terminal.
Optionally, when above-mentioned mobile terminal restarts, above-mentioned non-preceding station identification is set for above-mentioned destination application, In above-mentioned mobile terminal-opening, to lock above-mentioned destination application.
It should be noted that the mobile terminal in the embodiment of the present invention includes but is not limited to smart phone, tablet computer etc..
From above-mentioned technical proposal of the present invention it is found that the present invention is in the page of mobile terminal switching display, by combining page The life cycle in face and non-preceding station identification, when judging whether destination application jumps to foreground display from non-foreground, and in mesh When mark application program jumps to foreground display from non-foreground, according to the lock mode lock onto target application program of user preset, make Proper destination application from non-foreground jump to foreground show when, need specific user (such as, it is known that the use of unlocking pin Family) locking of destination application could be released and use destination application, it is privacy of the user in destination application Guarantee is provided, further, the page to be shown is belonged into above-mentioned destination application, and above-mentioned destination application is currently set It is equipped with above-mentioned non-preceding station identification, and when above-mentioned destination application has enabled lock function, mobile terminal removes target application journey The non-preceding station identification of sequence does not trigger to guarantee to switch over when the different pages of destination application to destination application Locking.
The embodiment of the present invention also provides a kind of mobile terminal, retouches below to the mobile terminal in the embodiment of the present invention It states, referring to Fig. 2, the mobile terminal 200 in the embodiment of the present invention, comprising:
First judging unit 201, for judging the page to be shown when the page of the switching display of mobile terminal 200 Whether destination application is belonged to, wherein above-mentioned destination application includes at least one page;
Setting unit 202, for judging that the above-mentioned page is not belonging to above-mentioned destination application when the first judging unit 201 When, non-preceding station identification is set for above-mentioned destination application, wherein above-mentioned non-preceding station identification is used to indicate application program and is in non- The state that foreground is shown;
Lock cell 203, for judging that the above-mentioned page belongs to above-mentioned destination application when the first judging unit 201, And above-mentioned destination application is provided with above-mentioned non-preceding station identification, and the destination application has enabled lock function When, above-mentioned destination application is locked according to the lock mode of user preset;
Optionally, the first judging unit 201 is specifically used for when mobile terminal 200 restores the page, and judgement will be to be shown Whether the page belongs to destination application.
Optionally, on the basis of the embodiment described in Fig. 2, as described in Figure 3, mobile terminal 300 further include: clearing cell 204, for judging that the above-mentioned page belongs to above-mentioned destination application, and above-mentioned target application journey when the first judging unit 201 When sequence is provided with above-mentioned non-preceding station identification, the above-mentioned non-preceding station identification of above-mentioned destination application is removed.
Optionally, on the basis of Fig. 2 or embodiment illustrated in fig. 3, mobile terminal further include: acquiring unit, for working as When stating the page of mobile terminal switching display, obtain the attribute information of the page to be shown;First judging unit 201 is specifically used Judge whether the above-mentioned page belongs to above-mentioned mesh in the attribute information by the page to be shown got according to above-mentioned acquiring unit Mark application program.
Optionally, the first judging unit 201 is specifically used for judging above-mentioned when the page of the switching display of mobile terminal 200 Whether the quantity of current movable component Activity is 0 inside destination application;If working as inside above-mentioned destination application The quantity of preceding Activity is 0, then determines the page to be shown being not belonging to above-mentioned destination application;If above-mentioned target is answered Quantity with Activity current inside program is not 0, then determines the page to be shown belonging to above-mentioned destination application.
Optionally, on the basis of Fig. 2 or embodiment illustrated in fig. 3, mobile terminal further include: second judgment unit is used for When the first judging unit 201 is judged the page to be shown belonging to above-mentioned destination application, according to above-mentioned target application The screen locking marker of program judges whether above-mentioned destination application has enabled lock function;If the lock of above-mentioned destination application Screen marker is virtual value, then determines that above-mentioned destination application has enabled lock function;If the lock of above-mentioned destination application Screen marker is invalid value, then determines above-mentioned destination application not enabled lock function.
Optionally, setting unit 202 is also used to: being above-mentioned target application journey when mobile terminal 200 is in screen lock state Above-mentioned non-preceding station identification is arranged in sequence.
Optionally, setting unit 202 is also used to: when mobile terminal 200 restarts, being set for above-mentioned destination application Set above-mentioned non-preceding station identification.
It should be noted that the mobile terminal in the embodiment of the present invention includes but is not limited to smart phone, tablet computer etc.. Mobile terminal in the embodiment of the present invention can be used to implement the above method such as the mobile terminal in above method embodiment The function of whole technical solutions in embodiment, each functional module can be specific according to the method in above method embodiment It realizes, specific implementation process can refer to the associated description in above-described embodiment, and details are not described herein again.
From above-mentioned technical proposal of the present invention it is found that the present invention is in the page of mobile terminal switching display, by combining page The life cycle in face and non-preceding station identification, when judging whether destination application jumps to foreground display from non-foreground, and in mesh When mark application program jumps to foreground display from non-foreground, according to the lock mode lock onto target application program of user preset, make Proper destination application from non-foreground jump to foreground show when, need specific user (such as, it is known that the use of unlocking pin Family) locking of destination application could be released and use destination application, it is privacy of the user in destination application Guarantee is provided, further, the page to be shown is belonged into above-mentioned destination application, and above-mentioned destination application is currently set It is equipped with above-mentioned non-preceding station identification, and when above-mentioned destination application has enabled lock function, mobile terminal removes target application journey The non-preceding station identification of sequence does not trigger to guarantee to switch over when the different pages of destination application to destination application Locking.
The embodiment of the present invention also provides another mobile terminal, retouches below to the mobile terminal in the embodiment of the present invention It states, referring to Fig. 4, the mobile terminal 400 in the embodiment of the present invention includes: one or more computer readable storage mediums Memory 401, input unit 402, display unit 403, one or more than one processing core processor 404 and The components such as power supply 405.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 4 is not constituted to mobile whole The restriction at end may include perhaps combining certain components or different component layouts than illustrating more or fewer components. Wherein:
Memory 401 can be used for storing software program and module, and processor 404 is stored in memory 401 by operation Software program and module, thereby executing various function application and data processing.Memory 401 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area can be stored to be created according to using for mobile terminal 400 Data (such as audio data, phone directory etc.) etc..In addition, memory 401 may include high-speed random access memory, may be used also To include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memory 401 can also include Memory Controller, to provide processor 404 and 402 pairs of input unit storages The access of device 401.
Input unit 402 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 402 includes touch-sensitive Surface 4021 and other input equipments 4022.Touch sensitive surface 4021, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 4021 or near touch sensitive surface 4021), and corresponding attachment device is driven according to preset formula.It can Choosing, touch sensitive surface 4021 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects The touch orientation of user, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touching It touches and receives touch information in detection device, and be converted into contact coordinate, then give processor 404, and processor can be received 404 orders sent simultaneously are executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Type realizes touch sensitive surface 4021.In addition to touch sensitive surface 4021, input unit 402 can also include other input equipments 4022.Tool Body, other input equipments 4022 can include but is not limited to physical keyboard, function key (for example press by volume control button, switch Key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Display unit 403 can be used for showing information input by user or the information and mobile terminal that are supplied to user 400 various graphical user interface, these graphical user interface can by figure, text, icon, video and any combination thereof Lai It constitutes.Display unit 403 may include display panel 4031, optionally, can use liquid crystal display (LCD, Liquid Crystal Display), the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) match Set display panel 4031.Further, touch sensitive surface 4021 can cover display panel 4031, when touch sensitive surface 4021 detects After touch operation on or near it, processor 404 is sent to determine the type of touch event, is followed by subsequent processing 404 basis of device The type of touch event provides corresponding visual output on display panel 4031.Although in Fig. 4, touch sensitive surface 4021 and aobvious Show that panel 4031 is to realize input and input function as two independent components, but it in some embodiments it is possible to will Touch sensitive surface 4021 and display panel 4031 integrate and realize and output and input function.
Processor 404 is the control centre of mobile terminal 400, utilizes each of various interfaces and connection whole mobile phone Part by running or execute the software program and/or module that are stored in memory 401, and calls and is stored in memory Data in 401 execute the various functions and processing data of mobile terminal 400, to carry out integral monitoring to mobile phone.It is optional , processor 404 may include one or more processing cores;Preferably, processor 404 can integrate application processor and modulatedemodulate Adjust processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor Main processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 404.
Mobile terminal 400 further includes the power supply 405 (such as battery) powered to all parts, it is preferred that power supply can lead to Cross power-supply management system and processor 404 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 405 can also include one or more direct current or AC power source, recharging system, electricity The random components such as source fault detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile terminal 400 can also include RF (Radio Frequency, radio frequency) circuit, sensor, Voicefrequency circuit, Wireless Fidelity (WiFi, wireless fidelity) module, camera, bluetooth module etc., details are not described herein. Specifically in the present embodiment, mobile terminal 400 further includes that one or more than one program are stored in memory 401, and are passed through Configuration with by one or the execution of more than one processor 404 to state one or more than one program include for carrying out following grasp The instruction of work:
When the page of mobile terminal switching display, judge whether the page to be shown is belonged into destination application, In, above-mentioned destination application includes at least one page;
If the above-mentioned page is not belonging to above-mentioned destination application, non-preceding station identification is set for above-mentioned destination application, Wherein, above-mentioned non-preceding station identification is used to indicate application program and is in the state that non-foreground is shown;
If the above-mentioned page belongs to above-mentioned destination application, and above-mentioned destination application is provided with above-mentioned non-foreground Mark, and above-mentioned destination application has enabled lock function, then:
Above-mentioned destination application is locked according to the lock mode of user preset.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, if the above-mentioned page belongs to the destination application, and above-mentioned destination application is worked as Before be provided with above-mentioned non-preceding station identification, and above-mentioned destination application has enabled lock function, then, removes above-mentioned target application journey The above-mentioned non-preceding station identification of sequence.
Assuming that above-mentioned is second of possible embodiment, then it is possible in the first possible embodiment or second Embodiment based on and provide the third possible embodiment in, when mobile terminal restore the page when, judge by Whether the page to be shown belongs to destination application.
Assuming that above-mentioned is second of possible embodiment, then it is possible in the first possible embodiment or second Embodiment based on and in the 4th kind of possible embodiment providing, obtain and believe the attribute of the page to be shown Breath;Judge whether the above-mentioned page belongs to above-mentioned destination application according to by the attribute information of the page to be shown.
Assuming that above-mentioned is second of possible embodiment, then it is possible in the first possible embodiment or second Embodiment based on and in the 5th kind of possible embodiment providing, judge current inside above-mentioned destination application The quantity of movable component Activity whether be 0;If the quantity of current Activity is inside above-mentioned destination application 0, then determine the page to be shown being not belonging to above-mentioned destination application;If inside above-mentioned destination application currently The quantity of Activity is not 0, then determines the page to be shown belonging to above-mentioned destination application.
Assuming that above-mentioned is second of possible embodiment, then it is possible in the first possible embodiment or second Embodiment based on and provide the 6th kind of possible embodiment in, when the above-mentioned page belongs to above-mentioned target application journey When sequence, judge whether above-mentioned destination application has enabled lock function according to the screen locking marker of above-mentioned destination application; If the screen locking marker of above-mentioned destination application is provided with valid value, determine that above-mentioned destination application has enabled locking function Energy;If the screen locking marker of above-mentioned destination application is set as invalid value, above-mentioned destination application not enabled lock is determined Determine function.
Assuming that above-mentioned is second of possible embodiment, then it is possible in the first possible embodiment or second Embodiment based on and provide the 7th kind of possible embodiment in, if above-mentioned mobile terminal is in screen lock state, Above-mentioned non-preceding station identification then is set for above-mentioned destination application.
Assuming that above-mentioned is second of possible embodiment, then it is possible in the first possible embodiment or second Embodiment based on and provide the 8th kind of possible embodiment in, if above-mentioned mobile terminal restart, for Above-mentioned non-preceding station identification is arranged in above-mentioned destination application.
It should be noted that the mobile terminal in the embodiment of the present invention includes but is not limited to smart phone, tablet computer etc.. Mobile terminal in the embodiment of the present invention can be used to implement the above method such as the mobile terminal in above method embodiment The function of whole technical solutions in embodiment, each functional module can be specific according to the method in above method embodiment It realizes, specific implementation process can refer to the associated description in above-described embodiment, and details are not described herein again.
From above-mentioned technical proposal of the present invention it is found that the present invention is in the page of mobile terminal switching display, by combining page The life cycle in face and non-preceding station identification, when judging whether destination application jumps to foreground display from non-foreground, and in mesh When mark application program jumps to foreground display from non-foreground, according to the lock mode lock onto target application program of user preset, make Proper destination application from non-foreground jump to foreground show when, need specific user (such as, it is known that the use of unlocking pin Family) locking of destination application could be released and use destination application, it is privacy of the user in destination application Guarantee is provided, further, the page to be shown is belonged into above-mentioned destination application, and above-mentioned destination application is currently set It is equipped with above-mentioned non-preceding station identification, and when above-mentioned destination application has enabled lock function, mobile terminal removes target application journey The non-preceding station identification of sequence does not trigger to guarantee to switch over when the different pages of destination application to destination application Locking.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are the descriptions to a kind of application program locking method provided by the present invention and mobile terminal, for this field Those skilled in the art, thought according to an embodiment of the present invention has change in specific embodiments and applications Place, to sum up, the contents of this specification are not to be construed as limiting the invention.

Claims (17)

1. a kind of locking means of application program characterized by comprising
When the page of mobile terminal switching display, judge whether the page to be shown is belonged into destination application, wherein institute Stating destination application includes at least one page;
If the page is not belonging to the destination application, non-preceding station identification is set for the destination application, wherein The non-preceding station identification is used to indicate application program and is in the state that non-foreground is shown;
If the page belongs to the destination application, and the destination application is provided with the non-preceding logo Know, and the destination application has enabled lock function, then:
The destination application is locked according to the lock mode of user preset.
2. the method according to claim 1, wherein the method also includes:
If the page belongs to the destination application, and the destination application is provided with the non-preceding logo Know, and the destination application has enabled lock function, then:
Remove the non-preceding station identification of the destination application.
3. method according to claim 1 or 2, which is characterized in that
When the page shown when mobile terminal switching, judge whether the page to be shown is belonged to destination application, has Body are as follows:
When mobile terminal restores the page, judge whether the page to be shown is belonged into destination application.
4. method according to claim 1 or 2, which is characterized in that
Whether the page to be shown is belonged to destination application by the judgement, specifically:
It obtains the attribute information of the page to be shown;
Judge whether the page belongs to the destination application according to the attribute information of the page.
5. method according to claim 1 or 2, which is characterized in that
Whether the page to be shown is belonged to destination application by the judgement, specifically:
Whether the quantity for judging movable component Activity current inside the destination application is 0;
If the quantity of Activity current inside the destination application is 0, determining will be described in be shown be not belonging to Destination application;
If the quantity of Activity current inside the destination application is not 0, determining will be described in be shown belongs to Destination application.
6. method according to claim 1 or claim 2, which is characterized in that the method also includes:
When the page belongs to the destination application, according to the judgement of the screen locking marker of the destination application Whether destination application has enabled lock function;
If the screen locking marker of the destination application is provided with valid value, determine that the destination application has enabled lock Determine function;
If the screen locking marker of the destination application is set as invalid value, the destination application not enabled lock is determined Determine function.
7. method according to claim 1 or 2, which is characterized in that the method also includes:
If the mobile terminal is in screen lock state, the non-preceding station identification is set for the destination application.
8. method according to claim 1 or 2, which is characterized in that the method also includes:
If the mobile terminal restarting, is arranged the non-preceding station identification for the destination application.
9. a kind of mobile terminal characterized by comprising
First judging unit, for judging whether belong to the page to be shown when the page of mobile terminal switching display In destination application, wherein the destination application includes at least one page;
Setting unit, for being when first judging unit judges that the page is not belonging to the destination application Non- preceding station identification is arranged in the destination application, wherein the non-preceding station identification is used to indicate application program and is in non-foreground The state of display;
Lock cell, for judging that the page belongs to the destination application when first judging unit, and it is described Destination application is provided with the non-preceding station identification, and when the destination application has enabled lock function, according to The lock mode of user preset locks the destination application.
10. mobile terminal according to claim 9, which is characterized in that the mobile terminal further include:
Clearing cell, for judging that the page belongs to the destination application when first judging unit, and it is described Destination application is provided with the non-preceding station identification, and when the destination application has enabled lock function, removes The non-preceding station identification of the destination application.
11. mobile terminal according to claim 9 or 10, which is characterized in that
First judging unit is specifically used for judging whether belong to the page to be shown when mobile terminal restores the page Destination application.
12. mobile terminal according to claim 9 or 10, which is characterized in that
The mobile terminal further include: acquiring unit, for when the page of mobile terminal switching display, acquisition will to be shown The attribute information of the page shown;
First judging unit is specifically used for the attribute information according to the information acquired by the acquisition unit by the page to be shown, Judge whether the page belongs to the destination application.
13. mobile terminal according to claim 9 or 10, which is characterized in that
First judging unit is specifically used for judging the target application journey when the page of mobile terminal switching display Whether the quantity of current movable component Activity is 0 inside sequence;If inside the destination application currently The quantity of Activity is 0, then determines the page to be shown being not belonging to the destination application;If the target application journey The quantity of current Activity is not 0 inside sequence, then determines the page to be shown belonging to the destination application.
14. mobile terminal according to claim 9 or 10, which is characterized in that the mobile terminal further include: the second judgement Unit, for when first judging unit judges that the page belongs to the destination application, according to the target The screen locking marker of application program judges whether the destination application has enabled lock function;If the destination application Screen locking marker be virtual value, then determine that the destination application has enabled lock function;If the destination application Screen locking marker be invalid value, then determine the destination application not enabled lock function.
15. mobile terminal according to claim 9 or 10, which is characterized in that
The setting unit is also used to: when the mobile terminal is in screen lock state, institute is arranged for the destination application State non-preceding station identification.
16. mobile terminal according to claim 9 or 10, which is characterized in that
The setting unit is also used to: when mobile terminal restarting, being arranged for the destination application described non- Preceding station identification.
17. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction Collection is loaded by processor and is executed the locking means to realize application program a method as claimed in any one of claims 1-8.
CN201410164412.9A 2014-04-22 2014-04-22 A kind of locking means and mobile terminal of application program Active CN105022955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410164412.9A CN105022955B (en) 2014-04-22 2014-04-22 A kind of locking means and mobile terminal of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410164412.9A CN105022955B (en) 2014-04-22 2014-04-22 A kind of locking means and mobile terminal of application program

Publications (2)

Publication Number Publication Date
CN105022955A CN105022955A (en) 2015-11-04
CN105022955B true CN105022955B (en) 2019-05-24

Family

ID=54412918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410164412.9A Active CN105022955B (en) 2014-04-22 2014-04-22 A kind of locking means and mobile terminal of application program

Country Status (1)

Country Link
CN (1) CN105022955B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472147A (en) * 2015-11-23 2016-04-06 努比亚技术有限公司 Application lock processing method based on eye print identification and apparatus thereof
CN106371977A (en) * 2016-09-02 2017-02-01 中科信息安全共性技术国家工程研究中心有限公司 Method for detecting whether current application positioned on foreground or not
CN106648855B (en) * 2016-11-21 2020-04-10 武汉斗鱼网络科技有限公司 Method and device for controlling application program of terminal
CN107608726A (en) * 2017-08-10 2018-01-19 珠海市君天电子科技有限公司 Monitoring method, device, electronic equipment and storage medium
CN111382025A (en) * 2018-12-28 2020-07-07 北京微播视界科技有限公司 Method and device for judging foreground and background states of application program and electronic equipment
CN111459581B (en) * 2019-01-22 2024-04-16 阿里巴巴集团控股有限公司 Page switching method, device, electronic equipment and computer readable medium
CN110290269A (en) * 2019-06-26 2019-09-27 努比亚技术有限公司 Display control method, mobile terminal and computer readable storage medium
CN113656606B (en) * 2021-08-05 2024-06-07 上海钧正网络科技有限公司 Code query method, device and equipment of application program and storage medium
CN114968413A (en) * 2022-06-21 2022-08-30 四三九九网络股份有限公司 Method for collecting Android application starting event

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438062A (en) * 2010-09-29 2012-05-02 联想移动通信科技有限公司 Method, device and mobile terminal for switching multiple tasks
CN102842007A (en) * 2012-07-16 2012-12-26 腾讯科技(深圳)有限公司 Access control method and system of mobile terminal application program
CN102984383A (en) * 2010-02-05 2013-03-20 华为终端有限公司 Preview method, device and mobile phone

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140027828A (en) * 2012-08-27 2014-03-07 삼성전자주식회사 Operation method of lock function and electronic device operating the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984383A (en) * 2010-02-05 2013-03-20 华为终端有限公司 Preview method, device and mobile phone
CN102438062A (en) * 2010-09-29 2012-05-02 联想移动通信科技有限公司 Method, device and mobile terminal for switching multiple tasks
CN102842007A (en) * 2012-07-16 2012-12-26 腾讯科技(深圳)有限公司 Access control method and system of mobile terminal application program

Also Published As

Publication number Publication date
CN105022955A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN105022955B (en) A kind of locking means and mobile terminal of application program
US10754938B2 (en) Method for activating function using fingerprint and electronic device including touch display supporting the same
CN104796275B (en) Abnormal state processing method, system and device
CN107087053B (en) A kind of screen backlight control method and mobile terminal
CN108132735B (en) Terminal and application control method
EP2713254A1 (en) Touch event reporting method, device and mobile terminal
CN106933468A (en) A kind of user interface switching method and terminal
CN105045514A (en) Application process management method and terminal
CN108984095A (en) gesture interaction method, device, storage medium and electronic equipment
CN104901805B (en) A kind of identification authentication methods, devices and systems
CN109062467A (en) Split screen application switching method, device, storage medium and electronic equipment
CN103809871A (en) Processing method and mobile terminal for icon of application program
CN106650490B (en) The login method and device of cloud account
CN104104656B (en) Give the method and device of account number for change
CN106055455B (en) The anti-interference method and device of a kind of button
CN104424431A (en) Method and device for resetting virtual machine user login password
CN103164432A (en) Method of recovering mistakenly-deleted files and mobile terminal
CN104077184B (en) A kind of course control method and computer system of application program
CN110007822A (en) A kind of interface display method and terminal device
CN109416615A (en) Handle the method for touch event and the electronic device suitable for this method
CN108681427A (en) A kind of method and terminal device of access privilege control
CN103500052A (en) Touch assistant system and achieving method of touch assistant system
CN110147186A (en) A kind of control method and terminal device of application
CN107329812B (en) A kind of method and apparatus for running association's journey
CN108804915A (en) Virus method for cleaning, storage device and electric terminal

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