Summary of the invention
The technical problem to be solved is to provide a kind of mobile terminal based on Android system extensive
Multiple control method, solves current mobile terminal user when clearing up internal memory, and need user to use should
Terminate by being forced property of program, cause user can not normally use required application program, use for user
The problem that mobile terminal brings inconvenience.
In order to solve the problems referred to above, the invention provides what a kind of mobile terminal based on Android system recovered
Control method, including:
By capacitive touch screen being carried out close over the ip intelligent peripherals device on capacitive touch screen
Operation sends and recovers to trigger signal;The system installing corresponding ip intelligent peripherals device in the terminal gets
After described recovery triggers signal, according to the application of protection needed for the user pre-set in the data base of system
The information of program list, monitors the broadcast of each application program of required protection in Android system;
The system of described installation corresponding ip intelligent peripherals device in the terminal receives the required guarantor of monitoring
After the broadcast of each application program protected, by checking the operation shape of the service of each application program of required protection
State, it is judged that if the application program of required protection is not at running status, then start the service of this application program,
Complete the control that mobile terminal based on Android system recovers.
Further, said method may also include that described by close on capacitive touch screen
Ip intelligent peripherals device carries out operation and sends recovery triggering signal capacitive touch screen;It is arranged on mobile terminal
The system of middle corresponding ip intelligent peripherals device gets described after recovering to trigger signal, according to the data base of system
In the information of application program list of the required protection of the user that pre-sets, monitor required in Android system guarantor
The step of the broadcast of each application program protected, including:
Trigger control outside by the screen of the capacitive touch screen of triggering mobile terminal sends and triggers signal,
After this triggering signal is sent to the response control that this trigger control is corresponding, response control and capacitive touch screen
Default recovery corresponding with the system installing the most corresponding ip intelligent peripherals device on surface triggers
Signal area generates inductively signal;Wherein, described trigger control and described response control are arranged at intelligence
On energy external device, ip intelligent peripherals device is close on capacitive touch screen;
The system monitoring of corresponding ip intelligent peripherals device in the terminal is installed to described capacitive touch screen
After the upper inductively signal presetting recovery triggering signal area, according to inductively signal by system
The information of the application program list of the required protection of the user pre-set in data base, monitors in Android system
The broadcast of each application program of required protection.
Further, said method may also include that described trigger control is arranged at the screen of capacitive touch screen
Region outside curtain edge;Described response control is arranged at the screen inner region of capacitive touch screen, and with electricity
Corresponding the presetting of system of corresponding ip intelligent peripherals device in the terminal is installed in appearance formula touch screen surface
Recovering to trigger signal area is that electric coupling couples;Trigger control response control corresponding thereto is noncontact
A seam is there is between the electric coupling induction-coupled of mode, i.e. trigger control response control corresponding thereto
Gap.
Further, said method may also include that the described response control corresponding thereto of described trigger control
The distance in the gap existed between part is more than 0.1mm.
Further, said method may also include that described installation corresponding ip intelligent peripherals dress in the terminal
After the broadcast of each application program that the system put receives the required protection of monitoring, by checking required protection
Each application program service running status after, if also including judging, the application program of required protection is in
Running status, then terminate flow process.
Further, said method may also include that described installation corresponding ip intelligent peripherals dress in the terminal
After the broadcast of each application program that the system put receives the required protection of monitoring, also include: described installation
The system of corresponding ip intelligent peripherals device is by transporting by the way of using service on backstage in the terminal
OK, improving the priority of each program process of required protection, protection mobile terminal is cleaning internal memory behaviour
In work, each program process of required protection is properly functioning.
Further, said method may also include that the process of application program of described Android system is divided into 6
Individual grade, according to priority order is the most successively: foreground process, visual progression, secondary service are entered
Journey, background process, Content supply node and null process, wherein, in Android system, application program
The oom_adj value of process represents the priority of process, the highest priority representing this process of oom_adj value
The lowest.
Further, said method may also include that described installation corresponding ip intelligent peripherals dress in the terminal
After the broadcast of each application program that the system put receives the required protection of monitoring, farther include:
Respectively should of the required protection of system amendment of described installation corresponding ip intelligent peripherals device in the terminal
Use program process attribute, including: arrange in each program process of required protection:
SetPersistent (true) or configuration android:persistent=" true " in Manifest file;?
Service rewrites onStartCommand mode, is guaranteed by the value of write START_STICKY
Service starts after being fallen by kill automatically.
Further, said method may also include that described installation corresponding ip intelligent peripherals dress in the terminal
The system put and guarding of pre-setting in the terminal are served by monitoring mutually, described in be arranged on shifting
If the system of corresponding ip intelligent peripherals device is served by receiving arbitrary required protection with guarding in dynamic terminal
The service of application program be closed after after the emergency broadcast that sends, then the emergency this application program sent
Broadcast and be transmitted to the other side, and start the service of this application program, guarantee required protection by dual monitoring
The service of application program is properly functioning.
Further, said method may also include that described by close on capacitive touch screen
Ip intelligent peripherals device carries out operation and sends the step recovering to trigger signal capacitive touch screen, including: logical
Cross pre-set capacitive touch screen is carried out mode of operation, when this mode of operation is triggered, send
Recovering to trigger signal, wherein pre-set carries out mode of operation to capacitive touch screen and includes: start,
Screen locking or to unlocking screen.
Compared with prior art, apply the present invention, monitor in Android system required by ip intelligent peripherals device
The broadcast of each application program of protection, restarts the need application program to be protected being turned off service,
Enable users to normally use required application program, improve the experience degree of the user of mobile terminal.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
The central scope of the present invention is: Android system memory consumption is than very fast, and system there will be abnormal
Stuck, user often carry out clear up internal memory action, then the process being in background service state can be forced
Property terminate, it is impossible to continue provide service;In practice, the application program (APP) of Android system exists
Several situations can be killed process: user closes and exits application, Android system and automatically reclaims internal memory, quilt
Manslaughter process etc..The present invention is by resetting automatically after platform service is moved to end after application and persistently providing
Service solves above-mentioned only special.Wherein by while listening for multiple broadcast, it is ensured that service can persistently provide.
As it is shown in figure 1, the controlling party that a kind of based on Android system the mobile terminal of the present invention recovers
Method, including:
Step 110, by close over the ip intelligent peripherals device on capacitive touch screen to capacitive touch
Touch screen and carry out operation transmission recovery triggering signal;Install corresponding ip intelligent peripherals device in the terminal is
System gets described after recovering to trigger signal, protects according to needed for the user pre-set in the data base of system
The information of the application program list protected, monitors the broadcast of each application program of required protection in Android system;
Described by close over the ip intelligent peripherals device on capacitive touch screen to capacitive touch screen
Carry out operation and send recovery triggering signal;The system installing corresponding ip intelligent peripherals device in the terminal obtains
After getting described recovery triggering signal, according to protection needed for the user pre-set in the data base of system
The information of application program list, monitors the step of the broadcast of each application program of required protection in Android system
Suddenly, including:
Trigger control outside by the screen of the capacitive touch screen of triggering mobile terminal sends and triggers signal,
After this triggering signal is sent to the described response control that this trigger control is corresponding, described response control and electricity
With corresponding pre-of system installing the most corresponding ip intelligent peripherals device in appearance formula touch screen surface
If recovering to trigger signal area to generate inductively signal;Wherein, described trigger control and described response control
Part is arranged on ip intelligent peripherals device, and ip intelligent peripherals device is close on capacitive touch screen;Install
The system monitoring of corresponding ip intelligent peripherals device is to default extensive on described capacitive touch screen in the terminal
After triggering the inductively signal of signal area again, according to inductively signal by the data base of system
The information of the application program list of the required protection of the user pre-set, monitors required protection in Android system
The broadcast of each application program.This flow process be actually used in idiographic flow, by ip intelligent peripherals device
The trigger control of upper setting and response control, reach to monitor each application program of required protection in Android system
The control of broadcast.
Described trigger control is arranged at the region outside the screen edge of capacitive touch screen;Described response control
It is arranged at the screen inner region of capacitive touch screen, and is arranged on movement eventually on capacitance touch screen surfaces
It is that electric coupling couples that the default recovery that in end, the system of corresponding ip intelligent peripherals device is corresponding triggers signal area;
The trigger control electric coupling induction-coupled that response control is cordless corresponding thereto, i.e. triggers control
A gap is there is between part response control corresponding thereto.
Current mobile terminal occurs in that the phenomenon using all touch screen, and the operation of all touch screen all exists
On touch screen, user sometimes for quickly triggering the demand of specific function in non-display touch area,
But existing touch screen technology cannot realize in the case of not revising chip drives and touch screen sensing layer
Touch controllable function is increased in non-display touch area.Currently occur in that by the touchscreen by combining pad pasting
Realize increasing in non-display touch area touch controllable function etc. structure, but traditional certainly hold coupling owing to it uses
Conjunction mode, needs to leave conduction toggle area in viewing area, so understand when user operation touch screen
Toggle area forms blind zone, causes blind zone touch-control invalid.And trigger control and response control in the present invention
A gap is there is, it is not necessary to leave conduction toggle area in viewing area between part, will not be in user operation
Form blind zone in toggle area during touch screen, bring conveniently to user, improve the use body of user
Degree of testing.
The distance in the gap existed between described trigger control described response control corresponding thereto is big
In 0.1mm.This is the distance in gap obtained in actually used test, this distance trigger control with
The cordless electric coupling induction-coupled of its corresponding response control is effective.
Described by close over the ip intelligent peripherals device on capacitive touch screen to capacitive touch screen
Carry out operation send recover trigger signal step, including: by pre-set to capacitive touch screen
Carry out mode of operation, when this mode of operation is triggered, sends and recover to trigger signal, wherein pre-set
Capacitive touch screen carried out mode of operation include: start, screen locking or to unlocking screen.This flow process is
Concrete trigger action mode in actual use is described, its really start, screen locking or to unlocking screen
Three kinds of modes belong to the operation that mobile terminal is waken up up by user, is in system background at mobile terminal
Under resting state, the operation that will not carry out monitoring controls, even if needing application program to be protected to have been switched off
Service nor affects on the use of user, and only user is when waking up mobile terminal up, and needs are protected by startup system
The monitoring of the application program protected is the embodiment more preferably selected.Another embodiment can be at condenser type
During touch screen is in use, user is touched by the trigger control operation of ip intelligent peripherals device
Screen, now can also send recovery and trigger signal, to the operation needing application program to be protected to monitor
Control.
The system of step 120, described installation corresponding ip intelligent peripherals device in the terminal receives monitoring
Required protection each application program broadcast after, by checking the service of each application program of required protection
Running status, it is judged that if the application program of required protection is not at running status, then start this application journey
The service of sequence, completes the control that mobile terminal based on Android system recovers.
The system of described installation corresponding ip intelligent peripherals device in the terminal receives the required guarantor of monitoring
After the broadcast of each application program protected, by checking the operation shape of the service of each application program of required protection
After state, if also including, the application program judging required protection is in running status, then terminate flow process.This stream
Journey is to supplement flow process, it is judged that if if the application program of required protection is in running status, then terminating flow process.
The system of described installation corresponding ip intelligent peripherals device in the terminal receives the required guarantor of monitoring
After the broadcast of each application program protected, also include: described installation corresponding ip intelligent peripherals dress in the terminal
The system put is by running by the way of using service on backstage, and that improves required protection respectively applies journey
The priority of sequence process, protection mobile terminal each application program of required protection in cleaning internal memory operation enters
Journey is properly functioning.
In reality, use on backstage the mode of service to run, improve the priority of process, reduce quilt
The probability that system is killed, principle is as follows:
Process is divided into 6 grades by Android, they according to priority order the most successively:
Foreground process (FOREGROUND_APP)
Visual progression (VISIBLE_APP)
Secondary service process (SECONDARY_SERVER)
Background process (HIDDEN_APP)
Content supply node (CONTENT_PROVIDER)
Null process (EMPTY_APP)
In Android system, the oom_adj value of process the most just represents its priority.Oom_adj value
It is the highest that to represent this process priority the lowest,
setprop ro.FOREGROUND_APP_ADJ 0
setprop ro.VISIBLE_APP_ADJ 1
setprop ro.SECONDARY_SERVER_ADJ 2
Rop ro.HIDDEN_APP_MIN_ADJ 7 in se
setprop ro.CONTENT_PROVIDER_ADJ 14
setprop ro.EMPTY_APP_ADJ 15
The Low Memory Killer of Android system kill (when Installed System Memory shortage) as required into
Journey discharges its internal memory, and source code is in kernel/drivers/misc/lowmemorykiller.c.Briefly,
It is exactly that the process finding priority relatively low is killed, thus discharges the internal memory that it takies.
The process of the application program of described Android system is divided into 6 grades, and according to priority order is from high to low
Successively: foreground process, visual progression, secondary service process, background process, Content supply node and
Null process, wherein, in Android system, the oom_adj value of the process of application program represents the excellent of process
First level, oom_adj value is the highest, and to represent the priority of this process the lowest.
The system of described installation corresponding ip intelligent peripherals device in the terminal receives the required guarantor of monitoring
After the broadcast of each application program protected, farther include:
Respectively should of the required protection of system amendment of described installation corresponding ip intelligent peripherals device in the terminal
Use program process attribute, including: arrange in each program process of required protection:
SetPersistent (true) or configuration android:persistent=" true " in Manifest file;?
Service rewrites onStartCommand mode, is guaranteed by the value of write START_STICKY
Service starts after being fallen by kill automatically.This flow process protects required protection based on mandatory modification Process Attributes
The service of each application program be not turned off.
In reality, 1) arrange in process: setPersistent (true) or join in Manifest file
Put android:persistent=" true ";
2) rewriteeing onStartCommand method in Service, this method has three return values,
START_STICKY is automatically to start after service is fallen by kill.
Public int onStartCommand (Intent intent, int flags, int startId)
return START_STICKY;
}
Also include: the system of described installation corresponding ip intelligent peripherals device in the terminal with at mobile terminal
In pre-set guard and be served by monitoring mutually, described installation corresponding ip intelligent peripherals in the terminal
If the system of device is closed with guarding the service being served by receiving the application program of arbitrary required protection
After the emergency broadcast sent after closing, then the emergency broadcast sent by this application program is transmitted to the other side, and opens
The service of this application program dynamic, guarantees that by dual monitoring the service of the application program of required protection is normally transported
OK.This flow process ensures that by the way of using finger daemon the service of application program is permissible after being killed
Automatically restarting, promoting the service priority of application program or survival rate even if solving, there is also by
The problem that fail-safe software kills by force.
In reality, can be served by by one new guarding of registration, and corresponding ip intelligent peripherals device
The service of system mutually monitors, and time any of which one service is pent, sends emergency broadcast,
Notice another one service, receives in service to broadcast and respond to broadcast and again beats the killed clothes of startup
Being engaged in, two services are mutually guarded, and improving to greatest extent needs the survival journey of program process to be protected
Degree.
One embodiment of the inventive method is: trigger control and response control are all by transparent conductive material structure
Becoming, both are combined into transparent conductive pattern.Transparent conductive pattern prints on the transparent substrate, is fabricated to class
Like mobile phone protection pad pasting outward appearance one sheet of film (i.e. the ip intelligent peripherals device of indication in the present invention, such as:
Plastic foil (material such as polyurethane, acrylic, polyimides, resin or polyester) or glass-film etc.),
But there is respective identification in each trigger control position.Thin film will be fitted in intelligent mobile terminal touch screen table
Face, thin film itself has the effect of protection intelligent mobile terminal.Install in the terminal system with APP
Application form be arranged in mobile terminal system, it is possible to constantly change by the way of version updating or
Increase new function.APP is to install application program in the terminal.Wherein this thin film also may be used
Being arranged to the touch screen surface with mobile terminal is detachable structure (such as: hand-set lid etc.),
To be the most closely attached to touch screen surface, it is also possible to separate with touch screen, i.e. it is arranged to turn over
The form of lid, then be controlled the touch screen of mobile terminal by trigger control in using, both the above
Mode is only the explanation to embodiment of the present invention, and non-limiting, is using as long as meet thin film
Journey is attached to the any-mode on touch screen surface all within protection scope of the present invention.Mobile terminal makes
The trigger control of thin film is triggered by user, and response control is on capacitance touch screen surfaces APP pair
The predeterminable area answered sends signal, and system opens APP, APP after sensing the signal of predeterminable area can be with
System interacts operation;When system listens to need APP to be protected to be not on running status, then
Start the service of this APP.
The application scenarios example of the present invention, such as: 1) user's background application starts too much, low memory
Time, it is relatively low that Android system removes priority automatically, uses the application that internal memory is too much;2) user's sensory system
When uniting slack-off, manually remove the application being currently running state in internal memory;3) operating system is abnormal, causes
Application process is killed;4) apply self abnormal, state out of service.In above scene, if having
Needing application to be protected to be terminated operation, the system installing corresponding ip intelligent peripherals device in the terminal connects
After the broadcast of each application program receiving the required protection of monitoring, respectively apply journey by protect needed for checking
The running status of the service of sequence, it is judged that if the application program of required protection is not at running status, then start
The service of this application program.
Each embodiment in this specification typically uses the mode gone forward one by one to describe, and each embodiment emphasis is said
Bright is all the difference with other embodiments, the identical mutual coherent of similar part between each embodiment
See.
The application can described in the general context of computer executable instructions,
Such as program module or unit.Usually, program module or unit can include performing particular task or reality
The existing routine of particular abstract data type, program, object, assembly, data structure etc..In general,
Program module or unit can be by software, hardware or both be implemented in combination in.Can also be at distributed meter
Calculate in environment and put into practice the application, in these distributed computing environment, be connected by by communication network
Remote processing devices perform task.In a distributed computing environment, program module or unit can positions
In the local and remote computer-readable storage medium including storage device.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of not having these details.In some instances, not
It is shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.Carry at this
The algorithm of confession and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant.Respectively
Plant general-purpose system to be used together with based on teaching in this.As described above, construct this kind of
Structure required by system is apparent from.Additionally, the present invention is also not for any certain programmed language.
It is understood that, it is possible to use various programming languages realize the content of invention described herein, and above
The description being done language-specific is the preferred forms in order to disclose the present invention.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect one
Or multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention is sometimes
It is grouped together in single embodiment, figure or descriptions thereof.But, should be by the disclosure
Method be construed to reflect an intention that i.e. the present invention for required protection require ratio in each claim
The middle more feature of feature be expressly recited.More precisely, as the following claims reflect
As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows
Claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each right
Requirement itself is all as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly
Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible
Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used
To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in person's unit excludes each other, can use any combination that this specification (is included
Adjoint claim, summary and accompanying drawing) disclosed in all features and so disclosed any method
Or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes
Adjoint claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or
The alternative features of similar purpose replaces.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include it
Some feature included in its embodiment rather than further feature, but the group of the feature of different embodiment
Close and mean to be within the scope of the present invention and formed different embodiments.Such as, in following power
In profit claim, one of arbitrarily can mode making in any combination of embodiment required for protection
With.
The all parts embodiment of the present invention can realize with hardware, or to process at one or more
The software module run on device realizes, or realizes with combinations thereof.Those skilled in the art should
Understand, microprocessor or digital signal processor (DSP) can be used in practice to realize basis
In the webpage of the embodiment of the present invention the some or all parts in the playing device of video some or
Repertoire.The present invention is also implemented as the part for performing method as described herein or complete
The equipment in portion or device program (such as, computer program and computer program).Such reality
The program of the existing present invention can store on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from internet website and obtain, or on carrier signal
There is provided, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment,
And those skilled in the art can design replacement without departing from the scope of the appended claims
Embodiment.In the claims, any reference marks that should not will be located between bracket is configured to right
The restriction required.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.It is positioned at
Word "a" or "an" before element does not excludes the presence of multiple such element.The present invention can be by
In including the hardware of some different elements and realizing by means of properly programmed computer.Enumerating
If in the unit claim of equipment for drying, several in these devices can be by same hardware
Item specifically embodies.Word first, second and third use do not indicate that any order.Can be by
These word explanations are title.