CN106125884B - A kind of processing method and mobile terminal of the background task of mobile terminal - Google Patents
A kind of processing method and mobile terminal of the background task of mobile terminal Download PDFInfo
- Publication number
- CN106125884B CN106125884B CN201610438375.5A CN201610438375A CN106125884B CN 106125884 B CN106125884 B CN 106125884B CN 201610438375 A CN201610438375 A CN 201610438375A CN 106125884 B CN106125884 B CN 106125884B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- screen locking
- module
- wifi module
- detecting
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of processing method of the background task of mobile terminal and mobile terminals, this method comprises: obtaining default screen locking instruction;It is instructed according to the default screen locking, obtains the currently running background task of mobile terminal;Screen locking is carried out to mobile terminal, and being not recorded in pre-stored white list in the background task for task is removed;Whether the WIFI module for detecting the mobile terminal opens and whether the WIFI module successfully links up network;If the WIFI module has turned on, but connects connect to the Net not successfully, then the WIFI module is closed.The solution of the present invention, it can be when user selects to go out and shield, clean up the unnecessary process in backstage, and when detecting that WIFI module cannot connect to effective network, it is turned off, it is easy to operate, it solves the process of running background in the prior art and the WIFI module being not turned off leads to mobile terminal consumption memory, waste electricity, and the cumbersome problem of first cleaning running background task screen locking again.
Description
Technical field
The present invention relates to the processing method of mobile communication technology field more particularly to a kind of background task of mobile terminal and
Mobile terminal.
Background technique
User often opens on mobile phone multiple application programs (APP), and automatic with power key when not using mobile phone
Screen locking, so that mobile phone enters blank screen standby mode.However, the APP started before mobile phone screen locking still can be after screen locking rear
Platform continuous service, to influence the power consumption of mobile phone and the consumption of memory.
In the prior art, user can recall recent task before screen locking sometimes, carry out a key cleaning, all by background process
After turning off, then carry out screen locking.In addition, in some cases user's screen locking when, it is desirable to other processes are all turned off, and leave needs
Process, such as music.User just needs one by one to close background process before screen locking at this time, then carries out screen locking again.
Therefore, the step of method of first cleaning running background task screen locking again increases user's operation, reduces the usage experience of user.
Summary of the invention
The embodiment of the invention provides a kind of processing method of the background task of mobile terminal and mobile terminals, to solve
The process of running background leads to mobile terminal consumption memory, waste electricity in the prior art, and first clears up running background task
The cumbersome problem of screen locking again.
In a first aspect, the embodiment of the invention provides a kind of processing methods of the background task of mobile terminal, comprising:
Obtain default screen locking instruction;
It is instructed according to the default screen locking, obtains the currently running background task of mobile terminal;
Screen locking, and being not recorded in pre-stored white list in the background task for task are carried out to mobile terminal
It removes, wherein the background task in need run after mobile terminal screen locking is recorded in the white list;
Whether the WIFI module for detecting the mobile terminal opens and whether the WIFI module successfully links up network;
If the WIFI module has turned on, but connects connect to the Net not successfully, then the WIFI module is closed.
Second aspect, the embodiment of the invention also provides a kind of mobile terminals, comprising:
First obtains module, for obtaining default screen locking instruction;
Second obtains module, instructs for obtaining the default screen locking that module obtains according to described first, obtains movement
The currently running background task of terminal;
Screen locking and removing module, for carrying out screen locking to mobile terminal, and will be not recorded in advance in the background task
Task in the white list of storage is removed, wherein recorded in the white list it is in need run after mobile terminal screen locking after
Platform task;
First detection module, whether the WIFI module for detecting the mobile terminal opens and the WIFI module is
It is no to successfully link up network;
First closedown module, for detecting that the WIFI module has turned in the first detection module, but it is failed
When company connects to the Net, the WIFI module is closed.
In this way, in the embodiment of the present invention, when getting default screen locking instruction, after acquisition mobile terminal is currently running
Platform task, to be not recorded in pre-stored white list in the background task that will acquire when carrying out screen locking to mobile terminal
In task remove, and whether the WIFI module for detecting mobile terminal opens and whether successfully links up network, and in WIFI
Module has turned on but connects not successfully and is turned off when connecting to the Net.
Therefore, the embodiment of the present invention can clean up the unnecessary process in backstage when user selects to go out and shield, and
When detecting that WIFI module cannot connect to effective network, it is turned off, it is easy to operate, after solving in the prior art
The process of platform operation and the WIFI module being not turned off lead to mobile terminal consumption memory, waste electricity, and first cleaning backstage
The cumbersome problem of operation task screen locking again, improves the usage experience of user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows the flow charts of the processing method of the background task of the mobile terminal of first embodiment of the invention;
Fig. 2 indicates the flow chart of the processing method of the background task of the mobile terminal of second embodiment of the invention;
One of the structural block diagram of mobile terminal of Fig. 3 expression third embodiment of the invention;
Fig. 4 indicates the two of the structural block diagram of the mobile terminal of third embodiment of the invention;
Fig. 5 indicates the structural block diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 6 indicates the structural block diagram of the mobile terminal of fifth embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
As shown in Figure 1, the flow chart of the processing method for the background task of the mobile terminal of first embodiment of the invention, it should
Method includes:
Step 101: obtaining default screen locking instruction.
The embodiment of the present invention is applied to the mobile terminals such as mobile phone, tablet computer, personal digital assistant.Wherein, described pre-
If screen locking instruction can detect that its power key is pressed in mobile terminal, and generation when compressing time reaches preset threshold, or
Mobile terminal detect on its touch screen there is the sliding trace of preset shape when generation, and then execute the embodiment of the present invention
The subsequent step of the processing method of the background task of mobile terminal.
Step 102: being instructed according to the default screen locking, obtain the currently running background task of mobile terminal.
User carries out screen locking after operating a period of time on mobile terminals, is that demand has been met, but at this time with
The certain application programs on mobile terminal opened in the time of family operation mobile terminal are not off, and operate in mobile terminal
Backstage, and the embodiment of the present invention is after getting the default screen locking instruction by step 101, further obtains the shifting
The dynamic currently running background task of terminal, in order to the processing to these background tasks.
Step 103: screen locking being carried out to mobile terminal, and pre-stored white list will be not recorded in the background task
In task remove.
Wherein, the background task in need run after mobile terminal screen locking is recorded in the white list.In the white list
Background task (i.e. application program) can be frequency of use of the mobile terminal according to user to application program, automatically will use frequency
Rate is more than that the application program of the first preset threshold is added or mobile terminal user is manually added.Certainly, in certain a period of time
Between in section, if the frequency of use of a certain application program in white list is reduced to the second preset threshold, mobile terminal can should
Application program is deleted from white list automatically.
For example, mobile terminal detects use of the user to social category software (such as wechat, microblogging) in a certain period of time
Frequency is more than above-mentioned first preset threshold, then the social category software is added in white list automatically.However, being used in mobile terminal
In the subsequent use process at family, if the frequency of use for detecting the social category software is moved lower than above-mentioned second preset threshold
Terminal automatically deletes the social category software from white list.
In addition, the embodiment of the present invention further includes following steps:
It whether detects in the earpiece holes of the mobile terminal inserted with an earphone;
If being inserted into an earphone in the earpiece holes of the mobile terminal, voice applications are added in the white list, and
When detecting that the earphone is removed from the earpiece holes, the voice applications are deleted from the white list.
I.e. mobile terminal also can detect current user's scene, if user inserts earphone, which is added
Enter into white list, so that in mobile terminal screen locking, and when clearing up currently running background task, is unlikely to user
The voice applications for needing to run are removed, and when earphone is removed from earpiece holes, voice applications are deleted from white list.
Wherein, because recording the background task in need run after mobile terminal screen locking in white list, in step
In 103, when to mobile terminal screen locking or to mobile terminal screen locking after, to the currently running background task of the mobile terminal of acquisition
When being cleared up, retain those background tasks being recorded in white list, deletes the backstage that those are not recorded in white list and appoint
Business.
Step 104: whether the WIFI module for detecting the mobile terminal opens and whether the WIFI module successfully connects
It connects to the Net.
WIFI module and mobile data network module are provided on mobile terminal.Wherein, WIFI module can be when opening
With the presence or absence of the WIFI network that can connect at detection mobile terminal present position, and exist the WIFI network that can connect and
When the password of the WIFI network is known or password is not present, it is successfully connected the WIFI network.
Step 105: if the WIFI module has turned on, but connects connect to the Net not successfully, then closing the WIFI module.
In the use process of mobile terminal, after often there is mobile terminal screen locking, WIFI module connects online not successfully
Network, but still run, very expend electricity.Thus, it, can be after getting default screen locking instruction, certainly in the embodiment of the present invention
Whether dynamic detection WIFI module opens and whether successfully links up network, so as to detect that WIFI module has turned on,
But connects when connecting to the Net not successfully, WIFI module is closed, to save electricity.
It can be seen from the above, the embodiment of the present invention, can when user selects to go out and shield, clean up backstage it is unnecessary into
Journey, and when detecting that WIFI module cannot connect to effective network, it is turned off, it is easy to operate, it solves existing
The process of running background and the WIFI module being not turned off lead to mobile terminal consumption memory, waste electricity, Yi Jixian in technology
The cumbersome problem for clearing up the screen locking again of running background task, improves the usage experience of user.
Second embodiment
As shown in Fig. 2, the flow chart of the processing method for the background task of the mobile terminal of second embodiment of the invention, it should
Method includes:
Step 201: obtaining default screen locking instruction.
The embodiment of the present invention is applied to the mobile terminals such as mobile phone, tablet computer, personal digital assistant.Wherein, specifically,
Step 201 includes:
Whether the time that whether power key for detecting the mobile terminal is pressed and the power key is pressed reaches
Preset threshold;
If the power key is pressed, and the time that the power key is pressed reaches the preset threshold, then generates institute
State default screen locking instruction.
For example, mobile terminal then generates a default screen locking and refers to when the duration that user presses power key being more than 1 second
It enables.Wherein it is possible to understand, the acquisition process of default screen locking instruction is not limited thereto, and can also be detected in mobile terminal
When occurring the sliding trace of a preset shape on its touch screen, the default screen locking instruction is generated.Since power key inherently has
Screen locking function, usually short-press can screen locking.The present embodiment utilizes the inherent function of power key, and screen locking instruction is formed after long-pressing
Meanwhile background process is removed, the clearance order i.e. operation of screen locking could be completed without the multiple operating procedures of user, in operation more
It is quick and convenient.
Step 202: being instructed according to the default screen locking, obtain the currently running background task of mobile terminal.
User carries out screen locking after operating a period of time on mobile terminals, is that demand has been met, but at this time with
The certain application programs on mobile terminal opened in the time of family operation mobile terminal are not off, and operate in mobile terminal
Backstage, and the embodiment of the present invention is after getting the default screen locking instruction by step 201, further obtains the shifting
The dynamic currently running background task of terminal, in order to the processing to these background tasks.
Step 203: screen locking being carried out to mobile terminal, and pre-stored white list will be not recorded in the background task
In task remove.
Wherein, the background task in need run after mobile terminal screen locking is recorded in the white list.In the white list
Background task (i.e. application program) can be frequency of use of the mobile terminal according to user to application program, automatically will use frequency
Rate is more than that the application program of the first preset threshold is added or mobile terminal user is manually added.Certainly, in certain a period of time
Between in section, if the frequency of use of a certain application program in white list is reduced to the second preset threshold, mobile terminal can should
Application program is deleted from white list automatically.
For example, mobile terminal detects use of the user to social category software (such as wechat, microblogging) in a certain period of time
Frequency is more than above-mentioned first preset threshold, then the social category software is added in white list automatically.However, being used in mobile terminal
In the subsequent use process at family, if the frequency of use for detecting the social category software is moved lower than above-mentioned second preset threshold
Terminal automatically deletes the social category software from white list.
In addition, the embodiment of the present invention further includes following steps:
It whether detects in the earpiece holes of the mobile terminal inserted with an earphone;
If being inserted into an earphone in the earpiece holes of the mobile terminal, voice applications are added in the white list, and
When detecting that the earphone is removed from the earpiece holes, the voice applications are deleted from the white list.
I.e. mobile terminal also can detect current user's scene, if user inserts earphone, which is added
Enter into white list, so that in mobile terminal screen locking, and when clearing up currently running background task, is unlikely to user
The voice applications for needing to run are removed, and when earphone is removed from earpiece holes, voice applications are deleted from white list.
Wherein, because recording the background task in need run after mobile terminal screen locking in white list, in step
In 203, when to mobile terminal screen locking or to mobile terminal screen locking after, to the currently running background task of the mobile terminal of acquisition
When being cleared up, retain those background tasks being recorded in white list, deletes the backstage that those are not recorded in white list and appoint
Business.
Step 204: whether the WIFI module for detecting the mobile terminal opens and whether the WIFI module successfully connects
It connects to the Net.
WIFI module and mobile data network module are provided on mobile terminal.Wherein, WIFI module can be when opening
With the presence or absence of the WIFI network that can connect at detection mobile terminal present position, and exist the WIFI network that can connect and
When the password of the WIFI network is known or password is not present, it is successfully connected the WIFI network.Mobile data network module can be
When unlatching, it is successfully connected the communication network to match with the SIM card of mobile terminal, such as mobile communications network.
Step 205: if the WIFI module has turned on, but connects connect to the Net not successfully, then closing the WIFI module.
In the use process of mobile terminal, after often there is mobile terminal screen locking, WIFI module connects online not successfully
Network, but still run, very expend electricity.Thus, it, can be after getting default screen locking instruction, certainly in the embodiment of the present invention
Whether dynamic detection WIFI module opens and whether successfully links up network, so as to detect that WIFI module has turned on,
But connects when connecting to the Net not successfully, WIFI module is closed, to save electricity.
Step 206: if the WIFI module is turned off, detect the mobile terminal mobile data network module whether
It opens.
Wherein, the WIFI network that WIFI module is connected for a user, belongs to free nets, and mobile data network
The communication network that module is connected needs user charges that could use.Thus, in order to save and use after mobile terminal screen locking
The cost of use at family can further detect mobile data network module when detecting that WIFI module is turned off by step 204
Whether open.
Step 207: if the mobile data network module has turned on, closing the mobile data network module.
When detecting that mobile data network module is opened by step 206, directly mobile data network module can be closed
It closes to save for mobile terminal user using flow, and then saves cost of use.
It can be seen from the above, in the embodiment of the present invention, in mobile terminal frequency locking, WIFI module and mobile data network mould
The connection status of block is consistent, i.e., if the state of WIFI module remains unchanged after screen locking, mobile data network module
State also remains unchanged.
Step 208: saving a screen locking information.
Wherein, the screen locking information record has the information for the WIFI module closed by screen locking instruction.
In an embodiment of the present invention, the closing difference of WIFI module is turned off manually with user in the case of other, thus, it can
After step 207 closes WIFI module, the closing for recording the WIFI module is screen locking instruction triggers.
Step 209: in the unlocking screen of the mobile terminal, detect the screen locking information, determine WIFI module because
Screen locking instructs after closing, opens the WIFI module.
After recording above-mentioned screen locking information, in the subsequent use process of mobile terminal, if the screen solution of mobile terminal
Lock, then can further detect above-mentioned screen locking information, judge WIFI module in upper primary screen locking, if close because of screen locking operation
It closes, if so, opening WIFI module, facilitates user after mobile terminal screen unlock, the use to network, to further mention
Rise the usage experience of user.
In conclusion the embodiment of the present invention, can not only when user selects to go out and shield, clean up backstage it is unnecessary into
Journey, and when detecting that WIFI module cannot connect to effective network, it is turned off, and can detect mobile data
It when network module is opened, is turned off, to save Internet utilization fee for user, and after mobile terminal unlock, opens automatically
WIFI module is opened, so that user is facilitated to continue to use WIFI network, so, the embodiment of the present invention solves in the prior art
The process of running background and the WIFI module being not turned off lead to mobile terminal consumption memory, waste electricity, and first after cleaning
Platform runs the cumbersome problem of task screen locking again, improves the usage experience of user.
3rd embodiment
As shown in figure 3, the embodiment provides a kind of mobile terminals, comprising:
First obtains module 301, for obtaining default screen locking instruction;
Second obtains module 302, instructs, obtains for obtaining the default screen locking that module 301 obtains according to described first
Take the currently running background task of mobile terminal;
Screen locking and removing module 303, for carrying out screen locking to mobile terminal, and it is pre- by being not recorded in the background task
Task in the white list first stored removes, wherein records and in need runs in the white list after mobile terminal screen locking
Background task;
First detection module 304, whether the WIFI module for detecting the mobile terminal opens and the WIFI mould
Whether block successfully links up network;
First closedown module 305, for detecting that the WIFI module has turned in the first detection module 304, but
Connect when connecting to the Net not successfully, closes the WIFI module.
Preferably, as shown in figure 4, the mobile terminal 300 further include:
Second detection module 306, for when the first detection module 304 detects that the WIFI module is turned off,
Whether the mobile data network module for detecting the mobile terminal opens;
Second closedown module 307, for having detected the mobile data network module when second detection module 306
When unlatching, the mobile data network module is closed.
Preferably, as shown in figure 4, the mobile terminal 300 further include:
Preserving module 308, for saving a screen locking information, screen locking information record has closes because of screen locking instruction
The information of WIFI module;
Opening module 309, in the unlocking screen of the mobile terminal, detecting the screen locking information, in determination
After WIFI module is closed because of screen locking instruction, the WIFI module is opened.
Preferably, as shown in figure 4, the mobile terminal 300 further include:
Third detection module 310, whether inserted with an earphone in the earpiece holes for detecting the mobile terminal;
Processing module 311, for being inserted into when in the earpiece holes that the third detection module 310 detects the mobile terminal
When one earphone, voice applications are added in the white list, and when detecting that the earphone is removed from the earpiece holes, it will
The voice applications are deleted from the white list.
Preferably, as shown in figure 4, the first acquisition module 301 includes:
Detection unit 3011, the power key for detecting the mobile terminal whether be pressed and the power key by by
Under time whether reach preset threshold;
Generation unit 3012, for detecting that the power key is pressed when the detection unit 3011, and the power supply
When the time that key is pressed reaches the preset threshold, the default screen locking instruction is generated.
The mobile terminal 300 of the embodiment of the present invention obtains module 301 by first and obtains default screen locking instruction, to touch
Hair second obtains module 302 and obtains the default screen locking instruction that module 301 obtains according to described first, obtains mobile terminal and works as
The background task of preceding operation so that screen locking and remove module 303 to mobile terminal carry out screen locking, and by background task not
Being recorded in pre-stored white list for task is removed, and the WIFI mould of mobile terminal is detected by first detection module 304
Network is opened and whether successfully linked up to block whether, and connects to the Net detecting that mobile terminal has turned on but connects not successfully
When, the first closedown module 305 of triggering closes WIFI module.Therefore, the mobile terminal 300 of the embodiment of the present invention, can with
Family selection is gone out when shielding, and cleans up the unnecessary process in backstage, and when detecting that WIFI module cannot connect to effective network,
It is turned off, easy to operate, solving the process of running background in the prior art and the WIFI module being not turned off causes
Mobile terminal consumes memory, waste electricity, and the cumbersome problem of first cleaning running background task screen locking again, improves
The market competitiveness.
Fourth embodiment
Fig. 5 is the structural block diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal 500 in Fig. 5
It can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer
Deng.
Mobile terminal 500 in Fig. 5 includes radio frequency (Radio Frequency, RF) circuit 510, memory 520, input
Unit 530, display unit 540, processor 560, voicefrequency circuit 570, WiFi (Wireless Fidelity) module 580 and electricity
Source 590.
Wherein, input unit 530 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 500 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 531.Touch panel 531, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 531 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.
Optionally, touch panel 531 may include both touch detecting apparatus and touch controller.Wherein, inspection is touched
The touch orientation of device detection user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;It touches
Controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives the processor 560, and
The order that processor 560 is sent can be received and executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface
The multiple types such as sound wave realize touch panel 531.In addition to touch panel 531, input unit 530 can also include that other inputs are set
Standby 532, other input equipments 532 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.
Wherein, display unit 540 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 500.Display unit 540 may include display panel 541, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 541.
It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 860 is sent to determine the type of touch event, is followed by subsequent processing device
560 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 560 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 521, and calling storage
Data in second memory 522 execute the various functions and processing data of mobile terminal 500, thus to mobile terminal 500
Carry out integral monitoring.Wherein, it is stored with to predefine to record in second memory 522 and in need be run after mobile terminal screen locking
Background task white list.
In embodiments of the present invention, processor 560 is instructed when obtaining default screen locking instruction according to the default screen locking,
The currently running background task of mobile terminal is obtained, to carry out screen locking to mobile terminal, will not be recorded in the background task
Task in pre-stored white list is removed, and whether the WIFI module for detecting the mobile terminal opens and described
Whether WIFI module successfully links up network, and has turned in the WIFI module, but connects connect to the Net not successfully, described in closing
WIFI module.
Preferably, whether processor 560 is opened and the WIFI module in the WIFI module for detecting the mobile terminal
After whether successfully linking up network, it is also used to:
If the WIFI module is turned off, whether the mobile data network module for detecting the mobile terminal is opened;
If the mobile data network module has turned on, the mobile data network module is closed.
Preferably, processor 560 is also used to after closing the WIFI module:
A screen locking information is saved, the screen locking information record has the information for the WIFI module closed by screen locking instruction;
In the unlocking screen of the mobile terminal, the screen locking information is detected, is determining WIFI module because of screen locking instruction
And after closing, open the WIFI module.
Preferably, processor 560 is also used to:
It whether detects in the earpiece holes of the mobile terminal inserted with an earphone;
If being inserted into an earphone in the earpiece holes of the mobile terminal, voice applications are added in the white list, and
When detecting that the earphone is removed from the earpiece holes, the voice applications are deleted from the white list.
Preferably, processor 560 is specifically used for when obtaining default screen locking instruction:
Whether the time that whether power key for detecting the mobile terminal is pressed and the power key is pressed reaches
Preset threshold;
If the power key is pressed, and the time that the power key is pressed reaches the preset threshold, then generates institute
State default screen locking instruction.
Mobile terminal 500 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 500 of the embodiment of the present invention, therefore, the embodiment of the present invention can be when user selects to go out and shield, clearly
Reason falls the unnecessary process in backstage, and when detecting that WIFI module cannot connect to effective network, is turned off, operation side
Just quick, solving the process of running background in the prior art and the WIFI module being not turned off causes in mobile terminal consumption
It deposits, waste electricity, and the cumbersome problem of first cleaning running background task screen locking again, improve user uses body
It tests, improves the market competitiveness of mobile terminal.
5th embodiment
Fig. 6 is the structural block diagram of the mobile terminal of another embodiment of the present invention.Specifically, mobile terminal shown in fig. 6
600 include: at least one processor 601, memory 602, at least one network interface 604, other users interface 603.It is mobile
Various components in terminal 600 are coupled by bus system 605.It is understood that bus system 605 is for realizing these groups
Connection communication between part.Bus system 605 further includes power bus, control bus and state in addition to including data/address bus
Signal bus.But for the sake of clear explanation, various buses are all designated as bus system 605 in Fig. 6.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 602 of the system and method for description of the embodiment of the present invention is intended to include but is not limited to these
With the memory of any other suitable type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 6022.
In embodiments of the present invention, be stored in memory 602 in the present invention it is pre-stored record it is in need in movement
The white list of the background task run after terminal screen locking.By the program or instruction for calling memory 602 to store, specifically, can
To be the program or instruction stored in application program 6022.
In embodiments of the present invention, processor 601 is instructed when obtaining default screen locking instruction according to the default screen locking,
The currently running background task of mobile terminal is obtained, to carry out screen locking to mobile terminal, will not be recorded in the background task
Task in pre-stored white list is removed;And whether the WIFI module for detecting the mobile terminal opens and described
Whether WIFI module successfully links up network, and has turned in the WIFI module, but connects connect to the Net not successfully, described in closing
WIFI module.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601.
Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing
Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 602, processor 601 reads the information in memory 602, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits
(Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal
Processor, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
Logic Device, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), general place
It manages in device, controller, microcontroller, microprocessor, other electronic units for executing the application function or combinations thereof.
For software implementations, module (such as process, function etc.) Lai Shixian of execution function of the embodiment of the present invention can be passed through
The technology of the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can handled
Portion realizes in device or outside the processor.
Preferably, whether processor 601 is opened and the WIFI module in the WIFI module for detecting the mobile terminal
After whether successfully linking up network, it is also used to:
If the WIFI module is turned off, whether the mobile data network module for detecting the mobile terminal is opened;
If the mobile data network module has turned on, the mobile data network module is closed.
Preferably, processor 601 is also used to after closing the WIFI module:
A screen locking information is saved, the screen locking information record has the information for the WIFI module closed by screen locking instruction;
In the unlocking screen of the mobile terminal, the screen locking information is detected, is determining WIFI module because of screen locking instruction
And after closing, open the WIFI module.
Preferably, processor 601 is also used to:
It whether detects in the earpiece holes of the mobile terminal inserted with an earphone;
If being inserted into an earphone in the earpiece holes of the mobile terminal, voice applications are added in the white list, and
When detecting that the earphone is removed from the earpiece holes, the voice applications are deleted from the white list.
Preferably, processor 601 is specifically used for when obtaining default screen locking instruction:
Whether the time that whether power key for detecting the mobile terminal is pressed and the power key is pressed reaches
Preset threshold;
If the power key is pressed, and the time that the power key is pressed reaches the preset threshold, then generates institute
State default screen locking instruction.
Mobile terminal 600 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 600 of the embodiment of the present invention, can user select go out shield when, clean up backstage it is unnecessary into
Journey, and when detecting that WIFI module cannot connect to effective network, it is turned off, it is easy to operate, it solves existing
The process of running background and the WIFI module being not turned off lead to mobile terminal consumption memory, waste electricity, Yi Jixian in technology
The cumbersome problem for clearing up the screen locking again of running background task, promotes the usage experience of user, improves the city of mobile terminal
Field competitiveness.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, 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.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (8)
1. a kind of processing method of the background task of mobile terminal characterized by comprising
Obtain default screen locking instruction;
It is instructed according to the default screen locking, obtains the currently running background task of mobile terminal;
Screen locking is carried out to mobile terminal, and being not recorded in pre-stored white list in the background task for task is clear
It removes, wherein the background task in need run after mobile terminal screen locking is recorded in the white list;
Whether the WIFI module for detecting the mobile terminal opens and whether the WIFI module successfully links up network;
If the WIFI module has turned on, but connects connect to the Net not successfully, then the WIFI module is closed;
The method also includes:
It whether detects in the earpiece holes of the mobile terminal inserted with an earphone;
If being inserted into an earphone in the earpiece holes of the mobile terminal, voice applications are added in the white list, and are being detected
When being removed from the earpiece holes to the earphone, the voice applications are deleted from the white list.
2. the method according to claim 1, wherein whether the WIFI module of the detection mobile terminal is opened
Open and the step of the WIFI module whether successfully links up network after, the method also includes:
If the WIFI module is turned off, whether the mobile data network module for detecting the mobile terminal is opened;
If the mobile data network module has turned on, the mobile data network module is closed.
3. if the method according to claim 1, wherein the WIFI module has turned on, but connecting not successfully
After the step of connecting to the Net, then closing the WIFI module, the method also includes:
A screen locking information is saved, the screen locking information record has the information for the WIFI module closed by screen locking instruction;
In the unlocking screen of the mobile terminal, detect the screen locking information, determine WIFI module because screen locking instruction due to close
After closing, the WIFI module is opened.
4. the method according to claim 1, wherein described the step of obtaining default screen locking instruction, comprising:
Whether the time that whether power key for detecting the mobile terminal is pressed and the power key is pressed reaches default
Threshold value;
If the power key is pressed, and the time that the power key is pressed reaches the preset threshold, then generates described pre-
If screen locking instructs.
5. a kind of mobile terminal characterized by comprising
First obtains module, for obtaining default screen locking instruction;
Second obtains module, instructs for obtaining the default screen locking that module obtains according to described first, obtains mobile terminal
Currently running background task;
Screen locking and removing module, for carrying out screen locking to mobile terminal, and are stored in advance being not recorded in the background task
White list in task remove, wherein recorded in the white list backstage in need run after mobile terminal screen locking appoint
Business;
First detection module, the WIFI module for detecting the mobile terminal whether open and the WIFI module whether at
Function is even connected to the Net;
First closedown module, for detecting that the WIFI module has turned in the first detection module, but failed connection
When upper network, the WIFI module is closed;
Third detection module, whether inserted with an earphone in the earpiece holes for detecting the mobile terminal;
Processing module, for when being inserted into an earphone in the earpiece holes that the third detection module detects the mobile terminal,
Voice applications are added in the white list, and when detecting that the earphone is removed from the earpiece holes, by the audio
It is deleted using from the white list.
6. mobile terminal according to claim 5, which is characterized in that further include:
Second detection module, for detecting the shifting when the first detection module detects that the WIFI module is turned off
Whether the mobile data network module of dynamic terminal opens;
Second closedown module, for closing when second detection module detects that the mobile data network module has turned on
Close the mobile data network module.
7. mobile terminal according to claim 5, which is characterized in that further include:
Preserving module, for saving a screen locking information, the screen locking information record has the WIFI module closed by screen locking instruction
Information;
Opening module, in the unlocking screen of the mobile terminal, detecting the screen locking information, determine WIFI module because
Screen locking instructs after closing, opens the WIFI module.
8. mobile terminal according to claim 5, which is characterized in that described first, which obtains module, includes:
Detection unit, the time that whether power key for detecting the mobile terminal is pressed and the power key is pressed
Whether preset threshold is reached;
Generation unit, for detecting that the power key is pressed when the detection unit, and the power key be pressed when
Between when reaching the preset threshold, generate the default screen locking instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610438375.5A CN106125884B (en) | 2016-06-16 | 2016-06-16 | A kind of processing method and mobile terminal of the background task of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610438375.5A CN106125884B (en) | 2016-06-16 | 2016-06-16 | A kind of processing method and mobile terminal of the background task of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106125884A CN106125884A (en) | 2016-11-16 |
CN106125884B true CN106125884B (en) | 2019-05-17 |
Family
ID=57469972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610438375.5A Active CN106125884B (en) | 2016-06-16 | 2016-06-16 | A kind of processing method and mobile terminal of the background task of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106125884B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106412335B (en) * | 2016-11-21 | 2019-08-16 | 努比亚技术有限公司 | The cleaning plant and method of garbage files |
CN107094322B (en) * | 2017-04-28 | 2020-07-21 | 维沃移动通信有限公司 | Wireless local area network connection method and mobile terminal |
CN107608498B (en) * | 2017-09-28 | 2020-11-10 | 上海传英信息技术有限公司 | Application program management method and terminal equipment |
CN108377464B (en) * | 2018-02-11 | 2020-08-04 | 中国联合网络通信集团有限公司 | W L AN connection method and device during terminal dormancy |
FR3085770B1 (en) * | 2018-09-11 | 2020-08-07 | Continental Automotive France | PROCESS FOR DETECTION OF A STAIN DISAPPEARANCE |
CN109445567B (en) * | 2018-09-30 | 2021-11-16 | 联想(北京)有限公司 | Information processing method and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521041A (en) * | 2011-12-14 | 2012-06-27 | 华为终端有限公司 | Method for processing application program and wireless handheld device |
CN103164229A (en) * | 2013-04-08 | 2013-06-19 | 北京奇虎科技有限公司 | Method and device for clearing progresses of mobile terminal |
CN103313427A (en) * | 2013-05-08 | 2013-09-18 | 广东欧珀移动通信有限公司 | Method and device for starting data network of mobile terminal and mobile terminal |
CN103744580A (en) * | 2013-12-26 | 2014-04-23 | 宇龙计算机通信科技(深圳)有限公司 | Terminal interface control method and mobile terminal thereof |
CN105306682A (en) * | 2015-09-18 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and device for automatically disconnecting network connection |
CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8510743B2 (en) * | 2007-10-31 | 2013-08-13 | Google Inc. | Terminating computer applications |
-
2016
- 2016-06-16 CN CN201610438375.5A patent/CN106125884B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521041A (en) * | 2011-12-14 | 2012-06-27 | 华为终端有限公司 | Method for processing application program and wireless handheld device |
CN103164229A (en) * | 2013-04-08 | 2013-06-19 | 北京奇虎科技有限公司 | Method and device for clearing progresses of mobile terminal |
CN103313427A (en) * | 2013-05-08 | 2013-09-18 | 广东欧珀移动通信有限公司 | Method and device for starting data network of mobile terminal and mobile terminal |
CN103744580A (en) * | 2013-12-26 | 2014-04-23 | 宇龙计算机通信科技(深圳)有限公司 | Terminal interface control method and mobile terminal thereof |
CN105306682A (en) * | 2015-09-18 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and device for automatically disconnecting network connection |
CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106125884A (en) | 2016-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106125884B (en) | A kind of processing method and mobile terminal of the background task of mobile terminal | |
CN106445392A (en) | Operating method of status bar icon and mobile terminal | |
CN106681623B (en) | A kind of sharing method and mobile terminal of screenshotss image | |
CN106844067B (en) | A kind of processing method and mobile terminal of content | |
CN106570372B (en) | A kind of the starting method and mobile terminal of application program | |
CN106020613A (en) | Operation method and mobile terminal for unread messages | |
CN106775252A (en) | The message treatment method and mobile terminal of a kind of mobile terminal | |
CN106557259B (en) | A kind of operating method and mobile terminal of mobile terminal | |
CN105893130B (en) | A kind of processing method and mobile terminal of application program for mobile terminal | |
CN106959797B (en) | A kind of setting method and mobile terminal notifying footmark | |
CN107679426A (en) | A kind of screen content display method thereof and mobile terminal | |
CN107678666A (en) | A kind of virtual key display methods, mobile terminal and computer-readable recording medium | |
CN106055232B (en) | A kind of processing method and mobile terminal of message | |
CN107193482A (en) | The operating method and mobile terminal of a kind of mobile terminal screen | |
CN107450773A (en) | A kind of false-touch prevention method, terminal and computer-readable recording medium | |
CN106547358B (en) | A kind of display methods and terminal of terminal time information | |
CN106355395A (en) | Payment method and mobile terminal | |
CN105824662A (en) | Application program uninstalling method and electronic equipment | |
CN105825114A (en) | Unlocking method of mobile terminal and mobile terminal | |
CN106326713A (en) | Unlocking method for screen of mobile terminal and mobile terminal | |
CN106557240A (en) | A kind of detection method and mobile terminal | |
CN106354303A (en) | Photographed method of mobile terminal and mobile terminal | |
CN106502545B (en) | A kind of operating method and mobile terminal for sliding control | |
CN106776871A (en) | The storage method and mobile terminal of a kind of multimedia file | |
CN106874046A (en) | The operating method and mobile terminal of a kind of application program |
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 |