[go: up one dir, main page]

CN105930213B - Application running method and device - Google Patents

Application running method and device Download PDF

Info

Publication number
CN105930213B
CN105930213B CN201610258227.5A CN201610258227A CN105930213B CN 105930213 B CN105930213 B CN 105930213B CN 201610258227 A CN201610258227 A CN 201610258227A CN 105930213 B CN105930213 B CN 105930213B
Authority
CN
China
Prior art keywords
activity
pretrigger
list
application program
pause
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610258227.5A
Other languages
Chinese (zh)
Other versions
CN105930213A (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 OR 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Present disclose provides a kind of application operation method and devices, belong to field of terminal technology.The described method includes: receiving scene switching command, the scene switching instruction, which is used to indicate from first user's switching activity Activity, switches to the 2nd Activity;The first Activity pause is handled;In the pause treatment process of the first Activity, from the local pretrigger process list for reading the 2nd Activity, idle computing resources are based on, start the process in the pretrigger process list of the 2nd Activity.This method avoid the time loss needed for launching process, also avoid obstruction caused by striding course inquiry data to accelerate overall execution speed and improve the speed of service of application.

Description

Using operation method and device
Technical field
This disclosure relates to field of terminal technology more particularly to a kind of application operation method and device.
Background technique
With the development of intelligent terminal, the function of intelligent terminal is stronger and stronger, performance requirement of the user to intelligent terminal Also higher and higher.The performance of intelligent terminal can be embodied in many aspects, most outstanding to be to install application on intelligent terminal Operation on, for example, the frame per second refreshed using application interface when application, loading velocity etc. when starting application, at For the importance for measuring intelligent terminal performance.Therefore, it needs a kind of can be improved and applies operation method using the speed of service.
Summary of the invention
In order to overcome the problems, such as present in the relevant technologies, the disclosure provides a kind of application operation method and device.
According to the first aspect of the embodiments of the present disclosure, it provides a kind of using operation method, comprising:
Scene switching command is received, the scene switching instruction, which is used to indicate from first user's switching activity Activity, cuts Shift to the 2nd Activity;
The first Activity pause is handled;
In the pause treatment process of the first Activity, from the local pretrigger for reading the 2nd Activity Process list is based on idle computing resources, starts the process in the pretrigger process list of the 2nd Activity;
Wherein, the pretrigger process list of the 2nd Activity includes that at least one described 2nd Activity is being gone through The process being activated when the request of data event of striding course occurs in history operational process.
Above-mentioned technical proposal, by scene switching, when carrying out pause processing to the first Activity before switching, Using idle computing resources, it is this processed in pause that pre-cooling is carried out to the process that the scene after switching may use Cheng Zhong starts the mode of at least one subsequent process that may be used using parallel form, so that in next fortune During row, when the data if necessary to be stored to these processes make requests, if it find that this process has been started up, then Booting sequence can be directly skipped, application is directly returned data to by the process having been turned on, is avoided needed for launching process Time loss also avoids obstruction caused by striding course inquiry data to accelerate overall execution speed and improves application The speed of service.
In the first possible implementation of first aspect, before the reception scene switching command, the method is also It include: in the operational process of the 2nd Activity, when the request of data event of striding course occurs, if requested Process not yet starts, then starts and record the requested process, generates the pretrigger process column of the 2nd Activity Table.This process generated according to operational process can make the process of subsequent pretrigger meet the actual use habit of user, It is high that it starts accuracy.
In second of possible implementation of first aspect, the method also includes: when the 2nd Activity institute After the version updating for belonging to application, the operational process of the 2nd Activity according to more new version regenerates described second The pretrigger process list of Activity.Pretrigger process list is regenerated in version updating, and pretrigger can be improved Accuracy.
In the third possible implementation of first aspect, it is based on idle computing resources, starting described second If the process in the pretrigger process list of Activity includes: that the idle computing resources are not able to satisfy described second The starting demand of process in the pretrigger process list of Activity, it is successive according to the starting of each process in the process of running Sequentially, target process in the pretrigger process list of the 2nd Activity is determined;Start the pre- of the 2nd Activity Target process in launching process list.According to starting sequencing, process is started, the accurate of pretrigger is improved Degree, can be improved 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, the method Further include: the first Activity and the 2nd Activity belong to the same application program;Or, described first Activity belongs to the first application program, and the 2nd Activity belongs to the second application program.This method can be adapted for from The scene that one application switching is applied to another can be applicable to the scene using inner boundary switching.
In the 5th kind of possible implementation of first aspect, the first Activity is desktop Activity, described 2nd Activity be any one application program main Activity when, the first Activity pause treatment process and During any application program initializes running environment, executes from local and read the 2nd Activity's Pretrigger process list is based on idle computing resources, starts the process in the pretrigger process list of the 2nd Activity The step of.
According to the second aspect of an embodiment of the present disclosure, it provides a kind of using running gear, comprising:
Receiving module, for receiving scene switching command, the scene switching instruction, which is used to indicate from the first user, to be switched Movable Activity switches to the 2nd Activity;
Suspend module, for handling the first Activity pause;
Read module, for reading described second from local in the pause treatment process of the first Activity The pretrigger process list of Activity;
Starting module, for being based on idle computing resources, in the pretrigger process list for starting the 2nd Activity Process;
Wherein, the pretrigger process list of the 2nd Activity includes that at least one described 2nd Activity is being gone through The process being activated when the request of data event of striding course occurs in history operational process.
In the first possible implementation of second aspect, described device further include: List Generating Module, in institute In the operational process for stating the 2nd Activity, when the request of data event of striding course occurs, if requested process is not yet Starting then starts and records the requested process, generates the pretrigger process list of the 2nd Activity.
In second of possible implementation of second aspect, the List Generating Module is also used to when described second After the version updating applied belonging to Activity, the operational process of the 2nd Activity, gives birth to again according to more new version At the pretrigger process list of the 2nd Activity.
In the third possible implementation of second aspect, the starting module is used for: if idle calculate provides Source is not able to satisfy the starting demand of the process in the pretrigger process list of the 2nd Activity, is transporting according to each process Starting sequencing during row determines target process in the pretrigger process list of the 2nd Activity;Starting institute State the target process in the pretrigger process list of the 2nd Activity.
In the 4th kind of possible implementation of second aspect, the first Activity is desktop Activity, described 2nd Activity is the main Activity of any one application program;Or, the first Activity and described second Activity belongs to the same application program;Or, the first Activity belongs to the first application program, described second Activity belongs to the second application program.
In the 5th kind of possible implementation of second aspect, the read module for being in the first Activity Desktop Activity, when the 2nd Activity is the main Activity of any one application program, described first During the pause treatment process of Activity and any application program initialize running environment, from local reading Take the pretrigger process list of the 2nd Activity.
According to the third aspect of an embodiment of the present disclosure, it provides a kind of using running gear, comprising:
Multi-core processor;
For storing the memory of the executable instruction of the multi-core processor;
Wherein, the multi-core processor is configured as:
Scene switching command is received, the scene switching instruction, which is used to indicate from first user's switching activity Activity, cuts Shift to the 2nd Activity;
The first Activity pause is handled;
In the pause treatment process of the first Activity, from the local pretrigger for reading the 2nd Activity Process list is based on idle computing resources, starts the process in the pretrigger process list of the 2nd Activity;
Wherein, the pretrigger process list of the 2nd Activity includes that at least one described 2nd Activity is being gone through The process being activated when the request of data event of striding course occurs in history operational process.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart using operation method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart using operation method shown according to an exemplary embodiment;
Fig. 3 is a kind of application running gear block diagram shown according to an exemplary embodiment;
Fig. 4 is shown according to an exemplary embodiment another using running gear block diagram;
Fig. 5 is a kind of block diagram using running gear 500 shown according to an exemplary embodiment.
Specific embodiment
To keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
User's switching activity (Activity) is a kind of standard component of Android platform.An actually Activity A single screen in exactly applying, it is inherited from Activity multimedia resource, the UI that it is made of display Views (User Interface, user interface) and response events.
It will be appreciated by those skilled in the art that the life cycle of an application Activity includes: starting one When Activity, after the constructed fuction of Activity () is finished, system calls onCreate () method, is arranged herein Then the global state and resource of Activity calls onStart () method, is finished in this method, Activity exists It is visible in screen.The onResume () method of execution, this when waiting window thing of the Activity in loop circulation Part.When window portion is visible, that is to say, that Activity is not onFreeze () method of Activity at front end Called, this method saves some internal states of Activity.Then window suspends, before Activity is appeared in most again The onResume () method at end, activity is called.If Activity window is invisible, illustrate Activity's OnStop () method is called, and when covering the close of Activity, onRestart () method of activity is opened Begin to call, then repeatedly onStart () method.When system Resource recovery or Activity are called finish () method, Activity stops, the resource for calling onDestroy () release Activity to possess.
Fig. 1 is a kind of flow chart using operation method shown according to an exemplary embodiment, as shown in Figure 1, using Operation method is for including the following steps in terminal.
In a step 101, scene switching command is received, the scene switching instruction, which is used to indicate to switch from the first user, lives Dynamic Activity switches to the 2nd Activity.
In a step 102, the first Activity pause is handled.
In step 103, in the pause treatment process of the first Activity, described second is read from local The pretrigger process list of Activity is based on idle computing resources, starts the pretrigger process column of the 2nd Activity Process in table;
Wherein, the pretrigger process list of the 2nd Activity includes that at least one described 2nd Activity is being gone through The process being activated when the request of data event of striding course occurs in history operational process.
Above-mentioned technical proposal, by scene switching, when carrying out pause processing to the first Activity before switching, Using idle computing resources, pre-cooling is carried out to the process that the scene after switching may use.It is this to be handled in pause In the process, using parallel form, start the mode of at least one subsequent process that may be used, so that next In operational process, when the data if necessary to be stored to these processes make requests, if it find that this process has been started up, Booting sequence then can be directly skipped, application is directly returned data to by the process having been turned on, is avoided needed for launching process Time loss, also avoid striding course inquiry data caused by obstruction improve and answer to accelerate overall execution speed The speed of service.
Fig. 2 is a kind of flow chart using operation method shown according to an exemplary embodiment, as shown in Fig. 2, using Operation method is for including the following steps in terminal.
In step 201, obtain the pretrigger process list of the 2nd Activity, the pretrigger of the 2nd Activity into When Cheng Liebiao includes that the request of data event of striding course occurs during history run at least one described 2nd Activity The process being activated.
Wherein, the 2nd Activity can refer to any of main Activity or any one application of any application Activity, the embodiment of the present disclosure are without limitation.The process of the acquisition pretrigger process list can be and pacify in the application Acquisition when running for the first time after dress is also possible to the acquisition in the follow-up operation of application, can also become in application version Change and obtain, so that terminal side is always maintained at newest pretrigger process list.
The process of the pretrigger process list of the 2nd Activity of the acquisition specifically includes: the 2nd Activity's In operational process, when the request of data event of striding course occurs, if requested process not yet starts, starts and record The requested process generates the pretrigger process list of the 2nd Activity.The list can be carried out it is more It is generated after secondary operation, to guarantee that list generated comprehensively, accurately, can improve the speed of service of application to the greatest extent.
In the embodiments of the present disclosure, it is only said so that pretrigger process list is locally generated and is stored in local as an example It is bright, and in practical applications, which can also be the general pretrigger process provided by network side List is obtained by terminal from network side and is stored in local.
Further, in application operational process, it is also based on practical operation situation, this locally stored pre- is opened Dynamic process list is adjusted, so that pre-boot process is more in line with the actual use habit of user.Wherein, it is obtained from network side Take the opportunity of pretrigger process list can be there are many situation, similar with above-mentioned generation opportunity, the embodiment of the present disclosure does not make this It is specific to limit.
In a kind of possible implementation, application version can update frequently, therefore, in order to guarantee the accurate of pretrigger Property after the version updating applied belonging to the 2nd Activity, according to the 2nd Activity in more new version, regenerates The pretrigger process list of 2nd Activity.For an Activity, new version and original version are common It increases newly in Activity or reduces certain functions, such as reading data etc., so that may increase newly or reduce in operational process The request of data event of striding course in order to realize the demand for accelerating follow-up operation and space and cost, needs in response to this New pretrigger process list is generated for Activity.And since more new version generally can include different function, also The case where being likely to occur may include: certain Activity that (1) more new version does not include original version, in response to this, In order to save space and load cost, need to delete the corresponding pretrigger process list of original Activity.(2) new version packet Containing the new Activity not having in original version, in response to this, in order to realize acceleration follow-up operation, need to be new Activity generates pretrigger process list.(3) more new version and original version some Activity having the same, but this The variation that the process that a little Activity can be used is increased or deleted, therefore, it is necessary to generate pretrigger for new Activity Process list.Certainly, above situation may be concurrent, can be at this time in the application of more new version using above-mentioned corresponding update method Changed Activity regenerates new pretrigger list.
In step 202, scene switching command is received, scene switching instruction is used to indicate from first user's switching activity Activity switches to the 2nd Activity.
In one embodiment of the present disclosure, scene switching instruction can be is answered in system desktop any by user It is triggered with the clicking operation of program icon, the first Activity is desktop Activity, and the 2nd Activity is to appoint The main Activity of one application program.It that is to say, the above-mentioned scene switching instruction received is in fact for starting some Application program.
In one embodiment of the present disclosure, scene switching instruction can be by user on a certain application interface to by The clicking operation of button triggers, and the first Activity and the 2nd Activity belong to the same application program, that is to say, above-mentioned The scene switching instruction received is in fact jumped for carrying out interface in an application program,
In another embodiment of the disclosure, it is right on a certain application interface by user that scene switching instruction can be The skip operation at another application interface triggers, for example, clicking the button for jumping to another application interface on a certain application interface. First Activity belongs to the first application program, and the 2nd Activity belongs to the second application program, generally, is applying journey When being jumped between sequence, the 2nd Activity can refer to the main Activity of application program, and the disclosure, which does not do this, to be had Body limits.
In step 203, the first Activity pause is handled.
The thread for carrying out pause processing can be any one core starting by multi-core terminal.
In step 204, in the pause treatment process of the first Activity, described second is read from local The pretrigger process list of Activity is based on idle computing resources, starts the pretrigger process column of the 2nd Activity Process in table.
Due to being in idle state there may be some in terminal in the pause treatment process of the first Activity Computing resource should can refer in multi-core processor in computing resource of idle state for example, for multi-core terminal The core etc. other than core currently without occupied core, such as in multi-core processor for carrying out pause treatment process, in order to Resource utilization is improved while raising using the speed of service, these idle computing resources can be used, to improve The utilization rate of processor.
Process in above-mentioned pretrigger process list may include that can carry out the process of data storage, run in application Cheng Zhong, very maximum probability may require that the data stored in other processes, other processes may be belong to current process it is same Process in a application, the process being also possible in another application.
Specifically, idle computing resources are based on, the process in the pretrigger process list of the 2nd Activity is started If including: opening for the process that the idle computing resources are not able to satisfy in the pretrigger process list of the 2nd Activity Dynamic demand, according to the starting sequencing of each process in the process of running, determine the pretrigger of the 2nd Activity into Target process in Cheng Liebiao;Start the target process in the pretrigger process list of the 2nd Activity.If in list All processes can not achieve whole startings, then can star a part of process, so as to be calculated to the full extent using idle Resource improves the speed of service of application.
When the first Activity is desktop Activity, the 2nd Activity is the master of any one application program When Activity, after to the first Activity pause processing, application process can also be started, the running environment of application is carried out Initial work, the Activity handoff procedure after which would generally have been started up than application expend the more time, Therefore, during the pause of the first Activity is handled and is initialized to application, the second of step 204 is carried out The pretrigger process list loading procedure of Activity, so that the speed of service promotion effect of subsequent applications is more preferable.
It should be noted that above-mentioned application operation method can be applied to any application, and this loading method is not necessarily to Third-party application is adapted to, and the starting speed and application speed that application is installed in terminal can be greatly improved.
In step 205, in the operational process of the 2nd Activity, when needing to specified process requested data, It detects whether the specified process has been actuated while, if had been turned on, data is obtained by the specified process having been turned on and will be obtained The data got return to application belonging to the 2nd Activity.
In the present embodiment, in the operational process of the 2nd Activity, it may be necessary to start specified process and carry out data Inquiry such as reads at the operation, then can detecte whether the specified process has been turned on, if the specified process be in pre-boot process Activated process, then testing result can be that the specified process has been turned on, then can save the starting institute that process is specified to this The speed of the interface display and starting that take time, therefore improve.
Further, the operation of the specified process can also be stopped, after request data success to avoid to computing resource Excessive occupancy.
Above-mentioned technical proposal, by scene switching, when carrying out pause processing to the first Activity before switching, Using idle computing resources, pre-cooling is carried out to the process that the scene after switching may use.It is this to be handled in pause In the process, using parallel form, start the mode of at least one subsequent process that may be used, so that next In operational process, when the data if necessary to be stored to these processes make requests, if it find that this process has been started up, Booting sequence then can be directly skipped, application is directly returned data to by the process having been turned on, is avoided needed for launching process Time loss, also avoid striding course inquiry data caused by obstruction improve and answer to accelerate overall execution speed The speed of service.
Fig. 3 is a kind of application running gear block diagram shown according to an exemplary embodiment.Referring to Fig. 3, which includes Receiving module 301, pause module 302, read module 303 and starting module 304.
Receiving module 301, for receiving scene switching command, the scene switching instruction, which is used to indicate from the first user, is cut It changes movable Activity and switches to the 2nd Activity;
Suspend module 302, for handling the first Activity pause;
Read module 303, for reading described second from local in the pause treatment process of the first Activity The pretrigger process list of Activity;
Starting module 304 starts the pretrigger process list of the 2nd Activity for being based on idle computing resources In process;
Wherein, the pretrigger process list of the 2nd Activity includes that at least one described 2nd Activity is being gone through The process being activated when the request of data event of striding course occurs in history operational process.It is described in a kind of possible implementation The multimedia resource that at least one described 2nd Activity is used in the process of running includes: the Background of application interface The picture of each interface element or the 2nd Activity are arrived used in user's use process in piece, application interface layout At least one of picture.
In a kind of possible implementation, referring to fig. 4, the structure based on Fig. 3, described device further include: list generates mould Block 305, in the operational process of the 2nd Activity, when the request of data event of striding course occurs, if by The process of request not yet starts, then starts and record the requested process, generates the pretrigger of the 2nd Activity Process list.
In a kind of possible implementation, the List Generating Module 305 is also used to work as belonging to the 2nd Activity After the version updating of application, the operational process of the 2nd Activity according to more new version regenerates described second The pretrigger process list of Activity.
In a kind of possible implementation, the starting module 304 is used for: if the idle computing resources are not able to satisfy The starting demand of process in the pretrigger process list of 2nd Activity, in the process of running according to each process Start sequencing, determines target process in the pretrigger process list of the 2nd Activity;Start described second Target process in the pretrigger process list of Activity.
In a kind of possible implementation, the first Activity is desktop Activity, the 2nd Activity For the main Activity of any one application program;Or, the first Activity and the 2nd Activity belong to it is same Application program;Or, the first Activity belongs to the first application program, the 2nd Activity belongs to second using journey Sequence.
In a kind of possible implementation, the read module 303 is used in the first Activity be desktop When Activity, the 2nd Activity are the main Activity of any one application program, the first Activity's During pause treatment process and any application program initialize running environment, described second is read from local The pretrigger process list of Activity.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 5 is a kind of block diagram using running gear 500 shown according to an exemplary embodiment.For example, device 500 can To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for Body equipment, personal digital assistant etc..
Referring to Fig. 5, device 500 may include following one or more components: processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 502 may include a multi-core processor 520 to execute instruction, To perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, it is convenient for Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, to facilitate more matchmakers Interaction between body component 508 and processing component 502.
Memory 504 is configured as storing the data of various multimedia resource types to support the operation in device 500.These The example of data includes the instruction of any application or method for operating on device 500, contact data, telephone directory Data, message, picture, video etc..Memory 504 can be set by the volatibility or non-volatile memories of any multimedia resource type Standby or their combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor module 514 can detecte the state that opens/closes of equipment 500, and the relative positioning of component, for example, it is described Component is the display and keypad of device 500, and sensor module 514 can be with 500 1 components of detection device 500 or device Position change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and device 500 Temperature change.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, above-mentioned using operation method for executing.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the multi-core processor 520 of device 500 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (13)

1. a kind of apply operation method, which is characterized in that the described method includes:
Scene switching command is received, the scene switching instruction, which is used to indicate from the first Activity, switches to second Activity, the first Activity and the 2nd Activity are a kind of standard components of Android platform;
The first Activity pause is handled;
In the pause treatment process of the first Activity, from the local pretrigger process for reading the 2nd Activity List is based on idle computing resources, starts the process in the pretrigger process list of the 2nd Activity;
Wherein, the pretrigger process list of the 2nd Activity includes that at least one described 2nd Activity is transported in history The process being activated when the request of data event of striding course occurs during row.
2. the method according to claim 1, wherein the method is also before the reception scene switching command Include:
In the operational process of the 2nd Activity, when the request of data event of striding course occurs, if requested Process not yet starts, then starts and record the requested process, generates the pretrigger process column of the 2nd Activity Table.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
After the version updating applied belonging to the 2nd Activity, the fortune of the 2nd Activity according to more new version Row process regenerates the pretrigger process list of the 2nd Activity.
4. starting described second the method according to claim 1, wherein being based on idle computing resources Process in the pretrigger process list of Activity includes:
If the process that the idle computing resources are not able to satisfy in the pretrigger process list of the 2nd Activity opens Dynamic demand, according to the starting sequencing of each process in the process of running, determine the pretrigger of the 2nd Activity into Target process in Cheng Liebiao;
Start the target process in the pretrigger process list of the 2nd Activity.
5. method according to any one of claims 1 to 4, which is characterized in that the first Activity is desktop Activity, the 2nd Activity are the main Activity of any one application program;Or, the first Activity and institute It states the 2nd Activity and belongs to the same application program;Or, the first Activity belongs to the first application program, described second Activity belongs to the second application program.
6. according to the method described in claim 5, it is characterized in that, the first Activity be desktop Activity, it is described 2nd Activity be any one application program main Activity when, the first Activity pause treatment process and During any application program initializes running environment, executes from local and read the 2nd Activity's Pretrigger process list is based on idle computing resources, starts the process in the pretrigger process list of the 2nd Activity The step of.
7. a kind of apply running gear, which is characterized in that described device includes:
Receiving module, for receiving scene switching command, the scene switching instruction, which is used to indicate from the first Activity, to be switched To the 2nd Activity, the first Activity and the 2nd Activity are a kind of standard groups of Android platform Part;
Suspend module, for handling the first Activity pause;
Read module, for reading described second from local in the pause treatment process of the first Activity The pretrigger process list of Activity;
Starting module, for being based on idle computing resources, start in the pretrigger process list of the 2nd Activity into Journey;
Wherein, the pretrigger process list of the 2nd Activity includes that at least one described 2nd Activity is transported in history The process being activated when the request of data event of striding course occurs during row.
8. device according to claim 7, which is characterized in that described device further include: List Generating Module, in institute In the operational process for stating the 2nd Activity, when the request of data event of striding course occurs, if requested process is not yet Starting then starts and records the requested process, generates the pretrigger process list of the 2nd Activity.
9. device according to claim 8, which is characterized in that the List Generating Module is also used to when described second After the version updating applied belonging to Activity, the operational process of the 2nd Activity, gives birth to again according to more new version At the pretrigger process list of the 2nd Activity.
10. device according to claim 7, which is characterized in that the starting module is used for: if idle calculate provides Source is not able to satisfy the starting demand of the process in the pretrigger process list of the 2nd Activity, is transporting according to each process Starting sequencing during row determines target process in the pretrigger process list of the 2nd Activity;Starting institute State the target process in the pretrigger process list of the 2nd Activity.
11. according to the described in any item devices of claim 7 to 10, which is characterized in that the first Activity is desktop Activity, the 2nd Activity are the main Activity of any one application program;Or, the first Activity and institute It states the 2nd Activity and belongs to the same application program;Or, the first Activity belongs to the first application program, described second Activity belongs to the second application program.
12. device according to claim 11, which is characterized in that the read module is used in the first Activity For desktop Activity, when the 2nd Activity is the main Activity of any one application program, described first During the pause treatment process of Activity and any application program initialize running environment, from local reading Take the pretrigger process list of the 2nd Activity.
13. a kind of apply running gear characterized by comprising
Multi-core processor;
For storing the memory of the executable instruction of the multi-core processor;
Wherein, the multi-core processor is configured as:
Scene switching command is received, the scene switching instruction, which is used to indicate from the first Activity, switches to second Activity, the first Activity and the 2nd Activity are a kind of standard components of Android platform;
The first Activity pause is handled;
In the pause treatment process of the first Activity, from the local pretrigger process for reading the 2nd Activity List is based on idle computing resources, starts the process in the pretrigger process list of the 2nd Activity;
Wherein, the pretrigger process list of the 2nd Activity includes that at least one described 2nd Activity is transported in history The process being activated when the request of data event of striding course occurs during row.
CN201610258227.5A 2016-04-22 2016-04-22 Application running 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 Application running method and device

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN105930213A CN105930213A (en) 2016-09-07
CN105930213B true 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 Application running method and device

Country Status (1)

Country Link
CN (1) CN105930213B (en)

Families Citing this family (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
CN108566424B (en) * 2018-04-11 2021-04-20 深圳市腾讯网络信息技术有限公司 Scheduling method, device and system based on server resource consumption prediction
CN108647086B (en) * 2018-05-16 2022-10-21 北京安云世纪科技有限公司 Application switching method and device in android system
CN109189737B (en) * 2018-08-18 2021-11-26 北京合思信息技术有限公司 Method and system for prefetching files in mobile internet according to time segments
CN110757452B (en) * 2019-09-25 2021-02-02 北京爱接力科技发展有限公司 Multi-scene operation method and device in robot and robot
CN110764844B (en) * 2019-10-25 2023-04-11 芜湖盟博科技有限公司 Multi-application window custom layout method on vehicle-mounted system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8296684B2 (en) * 2008-05-23 2012-10-23 Hewlett-Packard Development Company, L.P. Navigating among activities in a computing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN105930213A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN105930213B (en) Application running method and device
CN105955766B (en) Application preloading method and device
US9588805B2 (en) Method and terminal device for controlling background application
CN105955765B (en) Application preloading method and device
CN107037949B (en) A split-screen display method and device
CN104951335B (en) The processing method and processing device of application program installation kit
US20150333971A1 (en) Method and device for managing processes of application program
CN108762839A (en) The interface display method and device of application program
CN107391063A (en) Method for information display, device and computer-readable recording medium
CN112632184A (en) Data processing method and device, electronic equipment and storage medium
EP3232325B1 (en) Method and device for starting application interface
CN113703937A (en) Animation switching method and device and storage medium
CN116048757A (en) Task processing method, device, electronic equipment and storage medium
EP3236355B1 (en) Method and apparatus for managing task of instant messaging application
CN113064739B (en) Inter-thread communication method, device, electronic device and storage medium
CN105653903A (en) Application program authority management method and device
CN115062012B (en) Data processing method, device, storage medium and electronic equipment
CN107329893A (en) Traversal method, device and the storage medium of application interface
CN112214254A (en) Method and device for accelerating application startup, and electronic device
CN105868624A (en) Application program authority management method and device
CN106919679B (en) Log replay method, device and terminal applied to distributed file system
CN104391742B (en) Application optimization method and apparatus
CN113360235A (en) Shortcut processing method and device and storage medium
CN108958824A (en) Starting method, apparatus, electronic equipment and the storage medium of application program
CN116628084B (en) Partition moving methods, apparatus, devices and storage media

Legal Events

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