It is a kind of to realize the method and apparatus that switching is cooperateed between system
Technical field
This application involves electric digital data processing fields, more particularly to a kind of movement for running more than two systems at the same time
The method and apparatus of switching are cooperateed in terminal between realization system.
Background technique
By container technique, more than two operating systems can be run simultaneously on a mobile terminal such as cell phone apparatus.
In general, an operating system in multiple operating systems is security system, the function of support is fewer but safe;Another
System focus not instead of safety, more applications and function abundant.Security-related operation is concentrated mainly on safe behaviour
Make to carry out in system, it is other then can be carried out in non-security system.Multiple systems are run independently of one another.
On the mobile phone that one has run multiple systems, user can form multiple operation calls storehouses in each system.
For example, mobile phone has run two operating systems A and B simultaneously.For example, in system A, user's sequence open interface a1, interface a2,
Interface a3, then presses home key, this sequence of operations forms an allocating stack a.In systemb, sequence open interface b1,
Interface b2, interface b3, this sequence of operations will form a new allocating stack b again.The two allocating stacks are present in respectively
In system, and can gradually it be returned as the return of user operates.It can be returned to for example, being executed on the b3 of interface and returning to operation
B2, the desktop that can return to B system can be returned again to back to b1 by being then returned to.This when, allocating stack b will fail.With
It family can not be back to the interface for leaving A system when being switched to B system from A system.
Summary of the invention
An object of the application is to provide a kind of method that uniformly coordinated user experience is realized between multisystem and/or dress
It sets.
An object of the application realizes the method that switching is cooperateed between system by a kind of, and two of them system above is in same movement
It is run in terminal, this method comprises:
The last calling interface for recording last allocating stack of the first system when being switched to second system, wherein the tune
Correspond to the sequence that user calls interface with storehouse storage;
Interface is called in the starting of the starting allocating stack of second system when record is switched to second system;
When gradually returning to the first calling interface of the allocating stack according to an allocating stack in second system, receiving
Determine that described first calls interface whether identical as the starting calling interface when operating to further return;
Mobile terminal is set to switch back into the first system when determining that the first calling interface calls interface identical with the starting
Unite and show the last calling interface of the first system.
An object of the application also cooperates with the device of switching between system by a kind of realize, two of them system above is in same shifting
It is run in dynamic terminal, which includes:
First logging modle, for recording the last tune of last allocating stack of the first system when being switched to second system
With interface, wherein allocating stack storage corresponds to the sequence that user calls interface;
Second logging modle, the starting of the starting allocating stack of second system is called when being switched to second system for recording
Interface;
Interface determining module, gradually return to the allocating stack according to an allocating stack in second system first call
When interface, receive it is further return to operation when for determine described first call interface whether with starting calling circle
Face is identical;
Return module is shown, for making to move when determining that the first calling interface calls interface identical with the starting
Terminal switches back into the first system and shows the last calling interface of the first system.
Through the invention, if it find that the current allocating stack of second system is formed immediately after carry out system switching
, then this when of user continues to execute return operation and does not just return to the first system.If it find that second system is current
Allocating stack is the storehouse formed at once after having executed the first system to second system switching, then if user needs to continue
It returns, then can return to interface when leaving the first system in the first system this when.
Unless explicitly stated otherwise, singular as used herein " one ", "the" include that plural reference (has " at least one "
The meaning).It will be further understood that terminology used herein " having ", " include " and or " include " show in the presence of described
Feature, step, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, step, behaviour
Work, component, assembly unit and/or combination thereof.Term "and/or" as used in this includes one or more relevant items enumerated
Any and all combination.Unless explicitly stated otherwise, the step of any method disclosed herein need not be accurately according to disclosed sequence
It executes.
Detailed description of the invention
The present invention will more completely be illustrated below with reference to attached drawing and in conjunction with preferred embodiment.
Fig. 1 is the flow chart according to an embodiment of the method for the present invention.
Fig. 2 is the flow chart according to another embodiment of the method for the present invention.
Fig. 3 is the structural schematic diagram according to an embodiment of apparatus of the present invention.
Fig. 4 is the structural schematic diagram according to another embodiment of apparatus of the present invention.
For clarity, these attached drawings are figure that is schematic and simplifying, they are only gived for understanding institute of the present invention
Necessary details, and omit other details.
Specific embodiment
By detailed description given below, the scope of application of the invention will be evident.It will be appreciated, however, that detailed
While thin description and specific example show the preferred embodiment of the present invention, they are provided only for illustration purpose.
Based on container multisystem mobile device such as mobile phone in, container can be independent as equipment in operating system environment
One sub-operating system of operation, sub-operating system possess main interface, startup program, application program and the various small portions of oneself
Part.
In same running of mobile terminal two or more operating system, such as a kind of SyberOS (safety of applicant's exploitation
Mobile operating system), Android and/or other systems, the heap stack sequence for thering is oneself to safeguard between each system.Each
There is no problem when operation among system, but between the systems if it is desired to accomplish smooth naturally switching then need this two
The storehouse of a system is uniformly processed.
In the present specification, storehouse it is corresponding be user the sequence of operation, can be described as operation storehouse or allocating stack.User
Sequence of operations be stored in storehouse, such as user switch application or interface operation.System can be these handover informations
It is saved in storehouse in form first-in last-out.It is then taken out according to opposite direction when returning.So as to opposite suitable
Sequence gradually executes return operation.
Fig. 1 shows an embodiment of the method for the present invention, and this method for running the movement of more than two systems at the same time
Collaboration switching in terminal between realization system.The embodiment runs A system such as Android and B system such as simultaneously with a mobile phone
It is illustrated for SyberOS.In system A, if executing a series of continuous operations in systems into desktop and forming calling
Storehouse a;Sequence of operations is executed in systemb forms allocating stack b.Allocating stack a and b is independent of one another, in A system or B system
Return operation in system can be responded respectively according to allocating stack a or b respectively.The method of the embodiment starts from step S10,
In A system by desktop application or control to B system switch when, record switching when last allocating stack it is last
Interface is called, allocating stack storage corresponds to user and calls the sequence at interface as called the corresponding address information in interface.Later, locate
Reason proceeds to step S20, and when being just switched to B system, interface, starting are called in the starting for recording the starting allocating stack of B system
It calls interface that independent variable can be used to mark, this label can also be added in the information of storehouse.Later, user exists on demand
Various operations are carried out in B system and form respective calls storehouse such as allocating stack b, when return operation is executed in b, first
It is successively returned along the sequence opposite direction of b, finally returns to first calling interface of b storage, returned if at this time continued to execute
Return operation, then processing proceeds to step S30, determine the first calling interface whether with the starting that is recorded when being just switched to B system
Call interface identical.If identical, processing proceeds to step S40, note when mobile phone being made to switch back into A system and show previously switching
The last calling interface of the A system of record.Otherwise, processing proceeds to step S50, cannot return to A system at this time, keeps display B
The first of the allocating stack b of system calls interface.In other words, when return operation is executed in b, first along the sequence of b
Opposite direction successively returns, and finally returns to first callings interface of b record, if user's needs continue to return, it is determined that the of b
It is the state that enters when carrying out system switching by system A that one, which is called interface, if it is, this when can be back to being
Unite in A at the state before system B, can be along the opposite direction of a storehouse of A if user continues to execute return operation
Continue to return.If it is not, then this when of user continue to execute return operation just will not return system A.Such as: in system A
Middle opening wechat application, is switched to system B, executes make a phone call to operate in systemb, and user is by return key after completion.Just
In the case where often, user is desirably from the wechat interface that the operation of making a phone call in B returns in system A.Technology of the invention
This function then may be implemented in scheme, provides user-friendly experience.
Fig. 2 shows another embodiment of the method for the present invention, in addition to all steps of the method shown in Fig. 1, in step S10
Later it is step S15, determines that the manual switching that is switched to from A system to B system is still automatically switched.In the present specification, hand
Dynamic switching is that user triggers manually, such as presses switching push button or special key etc., and manual switching is to can recorde down
Come;Automatic switchover is cell phone event triggering, such as incoming call or alarm clock etc..If it is manual switching, processing proceeds to
Step 20, method then as shown in Figure 1 carries out downwards.A systematic difference is used if it is automatic switchover, such as user
If played a game, surprisingly there is phone incoming call this when, system automatically switches to B system to receive calls, then
Processing proceeds to step S70, so that mobile phone is directly switched back into A system after receiving calls and records when showing automatic switchover
The last calling interface of A system, eliminates the trouble that user returns step by step, because in this case, user is not intentional
Hope is operated in B system, the demand that A system is best suitable for user is returned directly to, to improve efficiency and provide good
User experience.
Fig. 3 shows an embodiment of apparatus of the present invention, and the device for running the movement of more than two systems at the same time
Collaboration switching in terminal between realization system, which includes: the first logging modle 10, is being switched to for recording the first system
The last calling interface of last allocating stack when second system, wherein allocating stack storage, which corresponds to user, calls interface
Sequence as call interface address information;Second logging modle 20, second system when being switched to second system for recording
Interface is called in the starting for originating allocating stack;Interface determining module 30 gradually returns in second system according to an allocating stack
When calling interface to the first of the allocating stack, when receiving further return operation for determining that described first calls boundary
Whether face is identical as starting calling interface;Show return module 40, for determine it is described first call interface with it is described
Starting makes mobile terminal switch back into the first system and shows the last calling interface of the first system when calling interface identical;It is aobvious
Show and keep module 50, for determining that the first calling interface and starting calling interface do not keep showing described the simultaneously
One calls interface.
Fig. 4 shows another embodiment of apparatus of the present invention, and in addition to all modules shown in Fig. 3, which further includes
Switch mode determining module 15, the manual switching that is switched to for determining between system are still automatically switched and auto-returned module
70, it is mobile whole for making after the task execution for causing system to switch when the first system automatically switches to second system
End switches back into the first system and shows the last calling interface.
Some preferred embodiments are illustrated in front, it should be emphasized, however, that the present invention is not limited to this
A little embodiments, but can be realized with the other way within the scope of present subject matter.