CN105930213A - Application running method and apparatus - Google Patents

Application running method and apparatus Download PDF

Info

Publication number
CN105930213A
CN105930213A CN201610258227.5A CN201610258227A CN105930213A CN 105930213 A CN105930213 A CN 105930213A CN 201610258227 A CN201610258227 A CN 201610258227A CN 105930213 A CN105930213 A CN 105930213A
Authority
CN
China
Prior art keywords
activity
list
pretrigger
application program
application
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.)
Granted
Application number
CN201610258227.5A
Other languages
Chinese (zh)
Other versions
CN105930213B (en
Inventor
王舒捷
孙念
吴俊洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610258227.5A priority Critical patent/CN105930213B/en
Publication of CN105930213A publication Critical patent/CN105930213A/en
Application granted granted Critical
Publication of CN105930213B publication Critical patent/CN105930213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Abstract

The invention provides an application running method and apparatus, and belongs to the technical field of terminals. The method comprises the steps of receiving a scene switching instruction, wherein the scene switching instruction is used for instructing switching from a first user switching Activity to a second Activity; performing pause processing on the first Activity; and in the process of performing the pause processing on the first Activity, locally reading a pre-starting process list of the second Activity, and starting a process in the pre-starting process list of the second Activity based on idle computing resources. According to the method, the time consumption required by the starting process is avoided and the blockage caused by cross-process data query is avoided, so that the overall executive speed and the application running speed are increased.

Description

Application operation method and device
Technical field
It relates to field of terminal technology, particularly relate to a kind of application operation method and device.
Background technology
Along with the development of intelligent terminal, the function of intelligent terminal from strength to strength, user's property to intelligent terminal Can require more and more higher.The performance of intelligent terminal can be embodied in many aspects, and the most prominent is intelligence Being installed in the operation of application in terminal, such as, the frame per second that when using application, application interface refreshes, starting should Loading velocity of used time etc., all has become as the importance weighing intelligent terminal performance.Therefore, need badly A kind of application operation method that can improve the application speed of service.
Summary of the invention
In order to overcome problem present in correlation technique, the disclosure provides one application operation method and device.
First aspect according to disclosure embodiment, it is provided that a kind of application operation method, including:
Receiving scene switching command, described scene switching command is for indicating from first user switching activity Activity switches to the 2nd Activity;
A described Activity time-out is processed;
In the time-out processing procedure of a described Activity, read the pre-of described 2nd Activity from this locality Start process list, based on idle computing resources, start in the pretrigger process list of described 2nd Activity Process;
Wherein, the pretrigger process list of described 2nd Activity includes at least one described 2nd Activity The process being activated during the request of data event of striding course is there is during history run.
Technique scheme, by when scene switches, carrying out the Activity before switching at time-out During reason, utilize idle computing resources, to switching after scene institute may use to process carry out pre-cooling This suspending in processing procedure, using parallel form, starting at least one and follow-up may use The mode of process so that in ensuing running, if needing the data being stored these processes When making requests on, if it find that this process has been started up, then can directly skip Booting sequence, directly by The process having been turned on returns data to application, it is to avoid the time loss needed for startup process, it also avoid The obstruction that striding course inquiry data are caused, thus accelerate overall execution speed, improve the operation of application Speed.
In the first possible implementation of first aspect, before described reception scene switching command, described Method also includes: in the running of described 2nd Activity, when the request of data event that striding course occurs Time, if requested process not yet starts, then start and record described requested process, generate described The pretrigger process list of the 2nd Activity.This process generated according to running, so that follow-up The process of pretrigger meets the actually used custom of user, and it is high that it starts the degree of accuracy.
In the possible implementation of the second of first aspect, described method also includes: as described 2nd Activity After the version updating of affiliated application, according to the more running of the 2nd Activity described in redaction, again give birth to Become the pretrigger process list of described 2nd Activity.Pretrigger process row are regenerated when version updating Table, can improve the degree of accuracy of pretrigger.
In the third possible implementation of first aspect, based on idle computing resources, start described second Process in the pretrigger process list of Activity includes: if described idle computing resources can not meet described The startup demand of the process in the pretrigger process list of the 2nd Activity, according to each process at running In startup sequencing, determine target process in the pretrigger process list of described 2nd Activity;Start Target process in the pretrigger process list of described 2nd Activity.According to starting sequencing, to process Start, improve the degree of accuracy of pretrigger, it is possible to increase the speed of service of application.
Based on any of the above-described kind of possible implementation, in the 4th kind of possible implementation of first aspect, institute Method of stating also includes: a described Activity and described 2nd Activity belongs to same application program;Or, A described Activity belongs to the first application program, and described 2nd Activity belongs to the second application program.Should Method goes for switching to the scene of another application from an application, it is also possible to be applicable to apply interior boundary The scene of face switching.
In the 5th kind of possible implementation of first aspect, a described Activity is desktop Activity, When described 2nd Activity is the main Activity of any one application program, temporary at a described Activity Stop processing procedure and described arbitrary application program running environment is carried out initialized during, perform from this locality Read the pretrigger process list of described 2nd Activity, based on idle computing resources, start described second The step of the process in the pretrigger process list of Activity.
Second aspect according to disclosure embodiment, it is provided that a kind of application running gear, including:
Receiver module, is used for receiving scene switching command, and described scene switching command is used from first for instruction Family switching activity Activity switches to the 2nd Activity;
Suspend module, for a described Activity time-out is processed;
Read module, in the time-out processing procedure of a described Activity, reads described the from this locality The pretrigger process list of two Activity;
Start module, for based on idle computing resources, starting the pretrigger process row of described 2nd Activity Process in table;
Wherein, the pretrigger process list of described 2nd Activity includes at least one described 2nd Activity The process being activated during the request of data event of striding course is there is during history run.
In the first possible implementation of second aspect, described device also includes: List Generating Module, In the running at described 2nd Activity, when there is the request of data event of striding course, if Requested process not yet starts, then start and record described requested process, generating described 2nd Activity Pretrigger process list.
The second in second aspect may be in implementation, and described List Generating Module is additionally operable to when described the After the version updating of application belonging to two Activity, according to the more operation of the 2nd Activity described in redaction Journey, regenerates the pretrigger process list of described 2nd Activity.
In the third possible implementation of second aspect, described startup module is used for: if the described free time Calculating resource can not meet the startup demand of the process in the pretrigger process list of described 2nd Activity, presses According to each process startup sequencing in running, determine the pretrigger process of described 2nd Activity Target process in list;Start the target process in the pretrigger process list of described 2nd Activity.
In the 4th kind of possible implementation of second aspect, a described Activity is desktop Activity, Described 2nd Activity is the main Activity of any one application program;Or, a described Activity and institute State the 2nd Activity and belong to same application program;Or, a described Activity belongs to the first application program, Described 2nd Activity belongs to the second application program.
In the 5th kind of possible implementation of second aspect, described read module is for described first Activity is desktop Activity, when described 2nd Activity is the main Activity of any one application program, Running environment is carried out initially by time-out processing procedure and described arbitrary application program at a described Activity During change, read the pretrigger process list of described 2nd Activity from this locality.
The third aspect according to disclosure embodiment, it is provided that a kind of application running gear, including:
Polycaryon processor;
For storing the memory of the executable instruction of described polycaryon processor;
Wherein, described polycaryon processor is configured to:
Receiving scene switching command, described scene switching command is for indicating from first user switching activity Activity switches to the 2nd Activity;
A described Activity time-out is processed;
In the time-out processing procedure of a described Activity, read the pre-of described 2nd Activity from this locality Start process list, based on idle computing resources, start in the pretrigger process list of described 2nd Activity Process;
Wherein, the pretrigger process list of described 2nd Activity includes at least one described 2nd Activity The process being activated during the request of data event of striding course is there is during history run.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, The disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in specification and constitutes the part of this specification, it is shown that meet the disclosure Embodiment, and for explaining the principle of the disclosure together with specification.
Fig. 1 is according to a kind of flow chart applying operation method shown in an exemplary embodiment;
Fig. 2 is according to a kind of flow chart applying operation method shown in an exemplary embodiment;
Fig. 3 is according to a kind of application running gear block diagram shown in an exemplary embodiment;
Fig. 4 is according to the another kind of application running gear block diagram shown in an exemplary embodiment;
Fig. 5 is according to a kind of block diagram applying running gear 500 shown in an exemplary embodiment.
Detailed description of the invention
For making the purpose of the disclosure, technical scheme and advantage clearer, below in conjunction with accompanying drawing to the disclosure Embodiment is described in further detail.
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element. Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the disclosure Formula.On the contrary, they only with describe in detail in appended claims, the disclosure some in terms of mutually one The example of the apparatus and method caused.
User's switching activity (Activity) is a kind of standard package of Android platform.Actually one Activity is exactly a single screen in application, and it is inherited from Activity multimedia resource, and it will be aobvious Show the UI (User Interface, user interface) and response events being made up of Views.
It will be appreciated by those skilled in the art that the life cycle of an application Activity includes: start one During Activity, after the constructed fuction of Activity () is finished, system calls onCreate () method, at this In global state and the resource of Activity are set, then call onStart () method, performed in this method Finishing, Activity is visible in screen.Performing onResume () method, this time, Activity was at a loop Wait window events in circulation.When seen from window portion, say, that Activity is not foremost time, The onFreeze () method of Activity is called, and this method preserves some internal states of Activity.Then window Mouth suspends, until Activity occurs in again foremost, the onResume () method of activity is called.As Really Activity window is invisible, then illustrate that the onStop () method of Activity is called, until covering Activity Close time, the onRestart () method of activity starts to call, and then repeats onStart () method.When System Resource recovery or Activity be called finish () method time, Activity stop, calling onDestroy () The resource that release Activity has.
Fig. 1 is according to a kind of flow chart applying operation method shown in an exemplary embodiment, such as Fig. 1 institute Showing, application operation method, in terminal, comprises the following steps.
In a step 101, receiving scene switching command, described scene switching command is used from first for instruction Family switching activity Activity switches to the 2nd Activity.
In a step 102, a described Activity time-out is processed.
In step 103, in the time-out processing procedure of a described Activity, read described the from this locality The pretrigger process list of two Activity, based on idle computing resources, starts the pre-of described 2nd Activity Start the process in process list;
Wherein, the pretrigger process list of described 2nd Activity includes at least one described 2nd Activity The process being activated during the request of data event of striding course is there is during history run.
Technique scheme, by when scene switches, carrying out the Activity before switching at time-out During reason, utilize idle computing resources, to switching after scene institute may use to process carry out pre-cooling. This suspending in processing procedure, using parallel form, starting at least one and follow-up may use The mode of process so that in ensuing running, if needing the data being stored these processes When making requests on, if it find that this process has been started up, then can directly skip Booting sequence, directly by The process having been turned on returns data to application, it is to avoid the time loss needed for startup process, it also avoid The obstruction that striding course inquiry data are caused, thus accelerate overall execution speed, improve the operation of application Speed.
Fig. 2 is according to a kind of flow chart applying operation method shown in an exemplary embodiment, such as Fig. 2 institute Showing, application operation method, in terminal, comprises the following steps.
In step 201, obtaining the pretrigger process list of the 2nd Activity, the 2nd Activity's is pre- Start process list and include that at least one described 2nd Activity occurs striding course during history run The process being activated during request of data event.
Wherein, appointing during the 2nd Activity may refer to the main Activity of arbitrary application or any one application One Activity, disclosure embodiment is without limitation.The process of this acquisition pretrigger process list, can Obtain during to be to run for the first time after this application is installed, it is also possible to be to obtain when the follow-up operation of application, Can also be in the acquisition that changes of application version, so that end side is always maintained at up-to-date pretrigger process List.
The process of the pretrigger process list of this acquisition the 2nd Activity specifically includes: described second In the running of Activity, when there is the request of data event of striding course, if requested process is still Not actuated, then start and record described requested process, generating the pretrigger process of described 2nd Activity List.This list can be to have generated after having carried out being run multiple times, comprehensive, accurate to ensure the list generated Really, it is possible to farthest improve the speed of service of application.
In the disclosed embodiments, only it is locally generated and is stored in as a example by this locality by pretrigger process list Row explanation, and in actual applications, this pretrigger process list can also is that one by leading to that network side provides Pretrigger process list, terminal from network side obtain and be stored in this locality.
Further, in application running, it is also possible to based on practical operation situation, this this locality is deposited The pretrigger process list of storage is adjusted, so that pre-boot process more conforms to the actually used habit of user Used.Wherein, can there is multiple situation, with above-mentioned generation the opportunity from network side acquisition pretrigger process list Opportunity is similar to, and this is not especially limited by disclosure embodiment.
In a kind of possible implementation, application version can update frequently, therefore, in order to ensure to open in advance Dynamic accuracy, when after the version updating of application belonging to the 2nd Activity, according in more redaction this second Activity, regenerates the pretrigger process list of the 2nd Activity.For an Activity, The Activity that redaction is common with original version increases newly or decreases some function, such as digital independent etc., Make running may increase newly or reduce the request of data event of striding course, for this situation, for Realize accelerating follow-up operation and space and the demand of cost, need to generate new pretrigger for Activity and enter Cheng Liebiao.And typically can comprise different functions due to more redaction, thereby it is also possible to situation about occurring can To include: (1) more redaction does not comprise some Activity of original version, for this situation, in order to save About space and loading cost, needs to delete pretrigger process list corresponding for original Activity.(2) new edition Originally the new Activity not having in original version is comprised, for this situation, in order to realize accelerating follow-up operation, Need to generate pretrigger process list for new Activity.(3) more redaction and original version have identical one A little Activity, but the process that can use of these Activity there occurs the change increasing or deleting, therefore, Need to generate pretrigger process list for new Activity.Certainly, above-mentioned situation may be concurrent, now can answer It is that in the application of more redaction, the Activity that changes regenerates new pre-by the update method of above-mentioned correspondence Start list.
In step 202., receiving scene switching command, this scene switching command is for indicating from first user Switching activity Activity switches to the 2nd Activity.
In an embodiment of the disclosure, this scene switching command can be by user in system desktop right Arbitrary application program image target clicking operation triggers, and a described Activity is desktop Activity, and described the Two Activity are the main Activity of any one application program.That is to say, the above-mentioned scene switching received refers to Order is in fact used for starting some application program.
In an embodiment of the disclosure, this scene switching command can be at a certain application interface by user On the clicking operation of button is triggered, an Activity and the 2nd Activity belongs to same application journey Sequence, that is to say, the above-mentioned scene switching command received is in fact for carrying out boundary in an application program Face redirects,
In another embodiment of the disclosure, this scene switching command can be in a certain application circle by user On face, the skip operation to Another Application interface triggers, and such as, clicks on and jump to separately on a certain application interface The button of one application interface.Oneth Activity belongs to the first application program, and the 2nd Activity belongs to Two application programs, usually, when redirecting among applications, the 2nd Activity may refer to should With the main Activity of program, this is not specifically limited by the disclosure.
In step 203, an Activity time-out is processed.
This thread carrying out time-out process can be to be started by any one core of multi-core terminal.
In step 204, in the time-out processing procedure of a described Activity, read described the from this locality The pretrigger process list of two Activity, based on idle computing resources, starts the pre-of described 2nd Activity Start the process in process list.
Owing to, in the time-out processing procedure of a described Activity, there may be some in terminal and being in idle The calculating resource of state, such as, for multi-core terminal, this calculating resource being in idle state is permissible Refer in polycaryon processor currently without occupied core, such as polycaryon processor being used for carry out time-out process Core etc. beyond the core of process, in order to improve resource utilization while improving the application speed of service, permissible These idle computing resources are used, in order to improve the utilization rate of processor.
Process in above-mentioned pretrigger process list can include the process that can carry out data storage, in application In running, the biggest probability may require that the data stored in other processes, these other processes be probably with Current process belongs to the process in same application, it is also possible to be the process in Another Application.
Specifically, based on idle computing resources, start in the pretrigger process list of described 2nd Activity Process includes: if described idle computing resources can not meet the pretrigger process list of described 2nd Activity In the startup demand of process, according to each process startup sequencing in running, determine described Target process in the pretrigger process list of the 2nd Activity;The pretrigger starting described 2nd Activity is entered Target process in Cheng Liebiao.If all processes can not realize all starting in list, then can start one Partial Process such that it is able to utilize idle computing resources to the full extent, improves the speed of service of application.
When an Activity is desktop Activity, described 2nd Activity is any one application program During main Activity, after an Activity time-out is processed, it is also possible to start the application process fortune to application Row environment carries out initial work, and the Activity after this initial work would generally have been started up than application switches Process expends the more time, and therefore, the time-out at a described Activity processes and initializes application During, carry out the pretrigger process list loading procedure of the 2nd Activity of step 204 so that follow-up It is more preferable that the speed of service of application promotes effect.
It should be noted that above-mentioned application operation method can apply to any one application, and this loading side Method carries out adaptation without third-party application, can be greatly improved in terminal and is installed the toggle speed of application and answer Use speed.
In step 205, in the running of the 2nd Activity, when needs are to specifying process requested number According to time, detecting whether this appointment process has been actuated while, if had been turned on, then being entered by the appointment that has been turned on Journey obtains to be fetched data and the data got is returned to apply belonging to the 2nd Activity.
In the present embodiment, in the running of the 2nd Activity, it may be necessary to start appointment process and carry out Data query, reading etc. operate, then can detect whether this appointment process has been turned on, if this appointment process Be the process having been started up in pre-boot process, then testing result can be that this appointment process has been turned on, the most permissible Save the startup required time to this appointment process, the interface display therefore improved and the speed of startup.
Further, it is also possible to after request data success, stop the operation of this appointment process, right to avoid Calculate excessively taking of resource.
Technique scheme, by when scene switches, carrying out the Activity before switching at time-out During reason, utilize idle computing resources, to switching after scene institute may use to process carry out pre-cooling. This suspending in processing procedure, using parallel form, starting at least one and follow-up may use The mode of process so that in ensuing running, if needing the data being stored these processes When making requests on, if it find that this process has been started up, then can directly skip Booting sequence, directly by The process having been turned on returns data to application, it is to avoid the time loss needed for startup process, it also avoid The obstruction that striding course inquiry data are caused, thus accelerate overall execution speed, improve the operation of application Speed.
Fig. 3 is according to a kind of application running gear block diagram shown in an exemplary embodiment.With reference to Fig. 3, this dress Put and include receiver module 301, suspend module 302, read module 303 and start module 304.
Receiver module 301, is used for receiving scene switching command, and described scene switching command is for indicating from first User switching activity Activity switches to the 2nd Activity;
Suspend module 302, for a described Activity time-out is processed;
Read module 303, in the time-out processing procedure of a described Activity, reads institute from this locality State the pretrigger process list of the 2nd Activity;
Starting module 304, for based on idle computing resources, the pretrigger starting described 2nd Activity is entered Process in Cheng Liebiao;
Wherein, the pretrigger process list of described 2nd Activity includes at least one described 2nd Activity The process being activated during the request of data event of striding course is there is during history run.In a kind of possible reality In existing mode, the multimedia resource that at least one described 2nd Activity described arrives used in running Including: the picture or described second of each interface element in the background picture of application interface, application interface layout Activity used in user's use process to picture at least one.
In a kind of possible implementation, seeing Fig. 4, structure based on Fig. 3, described device also includes: row Table generation module 305, in the running of described 2nd Activity, when the data that striding course occurs During request event, if requested process not yet starts, then start and record described requested process, Generate the pretrigger process list of described 2nd Activity.
In a kind of possible implementation, described List Generating Module 305 is additionally operable to as described 2nd Activity After the version updating of affiliated application, according to the more running of the 2nd Activity described in redaction, again give birth to Become the pretrigger process list of described 2nd Activity.
In a kind of possible implementation, described startup module 304 is used for: if described idle computing resources The startup demand of process in the pretrigger process list of described 2nd Activity can not be met, enter according to each Journey startup sequencing in running, determines mesh in the pretrigger process list of described 2nd Activity Mark process;Start the target process in the pretrigger process list of described 2nd Activity.
In a kind of possible implementation, a described Activity is desktop Activity, described 2nd Activity Main Activity for any one application program;Or, a described Activity belongs to described 2nd Activity In same application program;Or, a described Activity belongs to the first application program, described 2nd Activity Belong to the second application program.
In a kind of possible implementation, described read module 303 is used at a described Activity being desktop Activity, when described 2nd Activity is the main Activity of any one application program, described first The time-out processing procedure of Activity and described arbitrary application program running environment is carried out initialized during, The pretrigger process list of described 2nd Activity is read from this locality.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation relevant The embodiment of the method is described in detail, explanation will be not set forth in detail herein.
Fig. 5 is according to a kind of block diagram applying running gear 500 shown in an exemplary embodiment.Such as, Device 500 can be mobile phone, computer, digital broadcast terminal, messaging devices, and game controls Platform, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Fig. 5, device 500 can include following one or more assembly: processes assembly 502, memory 504, power supply module 506, multimedia groupware 508, audio-frequency assembly 510, the interface of input/output (I/O) 512, sensor cluster 514, and communications component 516.
Process assembly 502 and generally control the integrated operation of device 500, such as with display, call, number The operation being associated according to communication, camera operation and record operation.Process assembly 502 and can include a multinuclear Processor 520 performs instruction, to complete all or part of step of above-mentioned method.Additionally, process group Part 502 can include one or more module, it is simple to process between assembly 502 and other assemblies is mutual. Such as, process assembly 502 and can include multi-media module, to facilitate multimedia groupware 508 and to process assembly Mutual between 502.
Memory 504 is configured to the data storing various multimedia resource type to support the behaviour at device 500 Make.The example of these data includes any application program for operating on device 500 or the instruction of method, Contact data, telephone book data, message, picture, video etc..Memory 504 can be by any many matchmakers The volatibility of body resource-type or non-volatile memory device or combinations thereof realize, such as static random-access Memory (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic is deposited Reservoir, flash memory, disk or CD.
The various assemblies that power supply module 506 is device 500 provide electric power.Power supply module 506 can include electricity Management system, one or more power supplys, and other generate, manage and distribute electric power phase with for device 500 The assembly of association.
The screen of one output interface of offer that multimedia groupware 508 is included between described device 500 and user Curtain.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).As Really screen includes that touch panel, screen may be implemented as touch-screen, to receive the input signal from user. Touch panel includes that one or more touch sensor is with the gesture on sensing touch, slip and touch panel. Described touch sensor can not only sense touch or the border of sliding action, but also detects and described touch Or slide relevant duration and pressure.In certain embodiments, multimedia groupware 508 includes one Individual front-facing camera and/or post-positioned pick-up head.When device 500 is in operator scheme, such as screening-mode or video During pattern, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each preposition take the photograph As head and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom energy Power.
Audio-frequency assembly 510 is configured to output and/or input audio signal.Such as, audio-frequency assembly 510 includes One microphone (MIC), when device 500 is in operator scheme, such as call model, logging mode and voice During recognition mode, microphone is configured to receive external audio signal.The audio signal received can be entered One step is stored in memory 504 or sends via communications component 516.In certain embodiments, audio-frequency assembly 510 also include a loudspeaker, are used for exporting audio signal.
I/O interface 512 provides interface, above-mentioned peripheral interface for processing between assembly 502 and peripheral interface module Module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: home button, sound Amount button, start button and locking press button.
Sensor cluster 514 includes one or more sensor, for providing various aspects for device 500 State estimation.Such as, what sensor cluster 514 can detect equipment 500 opens/closed mode, assembly Relative positioning, the most described assembly is display and the keypad of device 500, and sensor cluster 514 is also The position that can detect device 500 or 500 1 assemblies of device changes, user and depositing that device 500 contacts Or do not exist, device 500 orientation or acceleration/deceleration and the temperature change of device 500.Sensor cluster 514 Proximity transducer can be included, be configured to when there is no any physical contact depositing of object near detection ?.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, is used for Imaging applications uses.In certain embodiments, this sensor cluster 514 can also include that acceleration passes Sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 516 is configured to facilitate the logical of wired or wireless mode between device 500 and other equipment Letter.Device 500 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or they Combination.In one exemplary embodiment, communication component 516 receives wide from outside via broadcast channel The broadcast singal of broadcast management system or broadcast related information.In one exemplary embodiment, described communication unit Part 516 also includes near-field communication (NFC) module, to promote junction service.Such as, can in NFC module Based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) skill Art, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 500 can by one or more application specific integrated circuits (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), Field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are real Existing, it is used for performing above-mentioned application operation method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage medium including instruction is additionally provided Matter, such as, include the memory 504 of instruction, and above-mentioned instruction can be performed by the polycaryon processor 520 of device 500 To complete said method.Such as, described non-transitory computer-readable recording medium can be ROM, random Access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art, after considering specification and putting into practice invention disclosed herein, will readily occur to these public affairs Other embodiment opened.The application is intended to any modification, purposes or the adaptations of the disclosure, These modification, purposes or adaptations are followed the general principle of the disclosure and include that the disclosure is not disclosed Common knowledge in the art or conventional techniques means.Description and embodiments is considered only as exemplary , the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure is not limited to accurate knot described above and illustrated in the accompanying drawings Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by appended Claim limits.

Claims (13)

1. an application operation method, it is characterised in that described method includes:
Receiving scene switching command, described scene switching command is for indicating from first user switching activity Activity switches to the 2nd Activity;
A described Activity time-out is processed;
In the time-out processing procedure of a described Activity, read the pre-of described 2nd Activity from this locality Start process list, based on idle computing resources, start in the pretrigger process list of described 2nd Activity Process;
Wherein, the pretrigger process list of described 2nd Activity includes at least one described 2nd Activity The process being activated during the request of data event of striding course is there is during history run.
Method the most according to claim 1, it is characterised in that before described reception scene switching command, Described method also includes:
In the running of described 2nd Activity, when there is the request of data event of striding course, if Requested process not yet starts, then start and record described requested process, generating described 2nd Activity Pretrigger process list.
Method the most according to claim 2, it is characterised in that described method also includes:
When after the version updating of application belonging to described 2nd Activity, according to more described in redaction second The running of Activity, regenerates the pretrigger process list of described 2nd Activity.
Method the most according to claim 1, it is characterised in that based on idle computing resources, starts institute The process stated in the pretrigger process list of the 2nd Activity includes:
If described idle computing resources can not meet in the pretrigger process list of described 2nd Activity The startup demand of process, according to each process startup sequencing in running, determines described second Target process in the pretrigger process list of Activity;
Start the target process in the pretrigger process list of described 2nd Activity.
5. according to the method described in any one of Claims 1-4, it is characterised in that a described Activity It is the main Activity of any one application program for desktop Activity, described 2nd Activity;Or, described One Activity and described 2nd Activity belongs to same application program;Or, a described Activity belongs to In the first application program, described 2nd Activity belongs to the second application program.
Method the most according to claim 5, it is characterised in that a described Activity is desktop Activity, when described 2nd Activity is the main Activity of any one application program, described first The time-out processing procedure of Activity and described arbitrary application program running environment is carried out initialized during, Perform to read from this locality the pretrigger process list of described 2nd Activity, based on idle computing resources, start The step of the process in the pretrigger process list of described 2nd Activity.
7. an application running gear, it is characterised in that described device includes:
Receiver module, is used for receiving scene switching command, and described scene switching command is used from first for instruction Family switching activity Activity switches to the 2nd Activity;
Suspend module, for a described Activity time-out is processed;
Read module, in the time-out processing procedure of a described Activity, reads described the from this locality The pretrigger process list of two Activity;
Start module, for based on idle computing resources, starting the pretrigger process row of described 2nd Activity Process in table;
Wherein, the pretrigger process list of described 2nd Activity includes at least one described 2nd Activity The process being activated during the request of data event of striding course is there is during history run.
Device the most according to claim 7, it is characterised in that described device also includes: list generates Module, in the running of described 2nd Activity, when there is the request of data event of striding course, If requested process not yet starts, then start and record described requested process, generating described second The pretrigger process list of Activity.
Device the most according to claim 8, it is characterised in that described List Generating Module is additionally operable to work as After the version updating of application belonging to described 2nd Activity, according to more the 2nd Activity described in redaction Running, regenerates the pretrigger process list of described 2nd Activity.
Device the most according to claim 7, it is characterised in that described startup module is used for: if Described idle computing resources can not meet opening of the process in the pretrigger process list of described 2nd Activity Dynamic demand, according to each process startup sequencing in running, determines described 2nd Activity's Target process in pretrigger process list;Start the target in the pretrigger process list of described 2nd Activity Process.
11. according to the device described in any one of claim 7 to 10, it is characterised in that a described Activity It is the main Activity of any one application program for desktop Activity, described 2nd Activity;Or, described One Activity and described 2nd Activity belongs to same application program;Or, a described Activity belongs to In the first application program, described 2nd Activity belongs to the second application program.
12. devices according to claim 11, it is characterised in that described read module is for described Oneth Activity is desktop Activity, and described 2nd Activity is the main Activity of any one application program Time, at the beginning of running environment is carried out by the time-out processing procedure of a described Activity and described arbitrary application program During beginningization, read the pretrigger process list of described 2nd Activity from this locality.
13. 1 kinds of application running gears, it is characterised in that including:
Polycaryon processor;
For storing the memory of the executable instruction of described polycaryon processor;
Wherein, described polycaryon processor is configured to:
Receiving scene switching command, described scene switching command is for indicating from first user switching activity Activity switches to the 2nd Activity;
A described Activity time-out is processed;
In the time-out processing procedure of a described Activity, read the pre-of described 2nd Activity from this locality Start process list, based on idle computing resources, start in the pretrigger process list of described 2nd Activity Process;
Wherein, the pretrigger process list of described 2nd Activity includes at least one described 2nd Activity The process being activated during the request of data event of striding course is there is during history run.
CN201610258227.5A 2016-04-22 2016-04-22 Using operation method and device Active CN105930213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610258227.5A CN105930213B (en) 2016-04-22 2016-04-22 Using operation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610258227.5A CN105930213B (en) 2016-04-22 2016-04-22 Using operation method and device

Publications (2)

Publication Number Publication Date
CN105930213A true CN105930213A (en) 2016-09-07
CN105930213B CN105930213B (en) 2019-06-14

Family

ID=56837067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610258227.5A Active CN105930213B (en) 2016-04-22 2016-04-22 Using operation method and device

Country Status (1)

Country Link
CN (1) CN105930213B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874043A (en) * 2017-01-18 2017-06-20 环球智达科技(北京)有限公司 A kind of prioritization scheme of android applications cold start-up
CN108228335A (en) * 2016-12-21 2018-06-29 阿里巴巴集团控股有限公司 A kind of software running method, device, system and electronic equipment
CN108566424A (en) * 2018-04-11 2018-09-21 深圳市腾讯网络信息技术有限公司 Dispatching method, device and system based on server resource consumption forecast
CN108647086A (en) * 2018-05-16 2018-10-12 北京安云世纪科技有限公司 Application switching method in Android system and device
CN109189737A (en) * 2018-08-18 2019-01-11 王梅 The method and system that file prefetches are carried out in mobile Internet according to time slice
CN110757452A (en) * 2019-09-25 2020-02-07 北京爱接力科技发展有限公司 Multi-scene operation method and device in robot and robot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090293007A1 (en) * 2008-05-23 2009-11-26 Palm, Inc. Navigating among activities in a computing device
CN103559035A (en) * 2013-10-31 2014-02-05 青岛海信移动通信技术股份有限公司 Event processing method and device applied to Android platform
CN105431822A (en) * 2013-06-12 2016-03-23 微软技术许可有限责任公司 Managing a succession of deployments of an application programming interface (api) server configuration in the software lifecycle development

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090293007A1 (en) * 2008-05-23 2009-11-26 Palm, Inc. Navigating among activities in a computing device
CN105431822A (en) * 2013-06-12 2016-03-23 微软技术许可有限责任公司 Managing a succession of deployments of an application programming interface (api) server configuration in the software lifecycle development
CN103559035A (en) * 2013-10-31 2014-02-05 青岛海信移动通信技术股份有限公司 Event processing method and device applied to Android platform

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228335A (en) * 2016-12-21 2018-06-29 阿里巴巴集团控股有限公司 A kind of software running method, device, system and electronic equipment
CN106874043A (en) * 2017-01-18 2017-06-20 环球智达科技(北京)有限公司 A kind of prioritization scheme of android applications cold start-up
CN108566424A (en) * 2018-04-11 2018-09-21 深圳市腾讯网络信息技术有限公司 Dispatching method, device and system based on server resource consumption forecast
CN108566424B (en) * 2018-04-11 2021-04-20 深圳市腾讯网络信息技术有限公司 Scheduling method, device and system based on server resource consumption prediction
CN108647086A (en) * 2018-05-16 2018-10-12 北京安云世纪科技有限公司 Application switching method in Android system and device
CN109189737A (en) * 2018-08-18 2019-01-11 王梅 The method and system that file prefetches are carried out in mobile Internet according to time slice
CN110757452A (en) * 2019-09-25 2020-02-07 北京爱接力科技发展有限公司 Multi-scene operation method and device in robot and robot

Also Published As

Publication number Publication date
CN105930213B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN105955766A (en) Method and device for application preloading
CN105117187B (en) Multimedia messages methods of exhibiting and device
CN105930213A (en) Application running method and apparatus
KR101706359B1 (en) Method and device for controlling background application
CN105955765B (en) Application preloading method and device
CN105677460A (en) Application processing method and apparatus
CN104951335B (en) The processing method and processing device of application program installation kit
EP3133874B1 (en) Method and apparatus for starting energy saving mode
CN105069073A (en) Contact information recommendation method and device
US20170060599A1 (en) Method and apparatus for awakening electronic device
CN107370772A (en) Account login method, device and computer-readable recording medium
CN107423063A (en) Multiwindow processing method, device and equipment
CN104407924A (en) Method and device for optimizing internal memory
CN106357910A (en) Terminal working mode switching method and device
EP3232323A1 (en) Method and apparatus for displaying status information of application
EP3499350A1 (en) Display interface control method and device
CN105912204A (en) Method and device for starting up application interface
CN106021072A (en) Information display method and device
CN106162845A (en) Data transmission method and device
CN106201611B (en) Run the method and device of application
CN105786561B (en) Method and device for calling process
CN109074303A (en) A kind of Caton detection method and device
CN105975305A (en) Operating system event processing method and device as well as terminal
CN107632835B (en) Application installation method and device
CN105607979A (en) Network interconnection control method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant