CN108536481A - A kind of application program launching method, mobile terminal and computer storage media - Google Patents

A kind of application program launching method, mobile terminal and computer storage media Download PDF

Info

Publication number
CN108536481A
CN108536481A CN201810167432.XA CN201810167432A CN108536481A CN 108536481 A CN108536481 A CN 108536481A CN 201810167432 A CN201810167432 A CN 201810167432A CN 108536481 A CN108536481 A CN 108536481A
Authority
CN
China
Prior art keywords
destination application
target resource
resource
sub
identification information
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.)
Pending
Application number
CN201810167432.XA
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810167432.XA priority Critical patent/CN108536481A/en
Publication of CN108536481A publication Critical patent/CN108536481A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The embodiment of the invention discloses a kind of application program launching method, mobile terminal and computer storage media, which includes:When detecting the enabled instruction of destination application, start sub-line journey corresponding with the destination application;The corresponding identification information of the destination application is obtained by the sub-line journey;The corresponding target resource of the destination application is obtained according to the identification information;The target resource is loaded in the buffer in advance;Start the destination application according to the target resource loaded.The embodiment of the present invention obtains the related resource of application program by starting sub-line journey, and pre-loaded related resource reduces period of reservation of number, the user experience is improved to accelerate the start-up course of application program.

Description

A kind of application program launching method, mobile terminal and computer storage media
Technical field
The present invention relates to a kind of electronic technology field more particularly to application program launching method, mobile terminal and calculating Machine storage medium.
Background technology
At this stage, with the continuous development of mobile terminal, by installing a variety of different application programs, mobile terminal is available In a variety of different functions of realization.
Since the various application programs that developed are increasingly complicated, when mobile terminal starts application program, start Time is often longer, and user needs to wait for long period, experience poor.
Invention content
A kind of application program launching method of offer of the embodiment of the present invention, mobile terminal and computer storage media, can Realize the quick startup of application program.
First aspect of the embodiment of the present invention provides a kind of application program launching method, is applied to mobile terminal, including:
When detecting the enabled instruction of destination application, start sub-line journey corresponding with the destination application;
The corresponding identification information of the destination application is obtained by the sub-line journey;
The corresponding target resource of the destination application is obtained according to the identification information;
The target resource is loaded in the buffer in advance;
Start the destination application according to the target resource loaded.
Optionally, described when detecting the enabled instruction of destination application, start and the destination application pair Before the sub-line journey answered, further include:
When the destination application starts for the first time, the money loaded in the destination application start-up course is obtained Source information;
If there is the resource for meeting default size in the resource information, the resource pair of default size is met described in acquisition The identification information answered;
Preserve the identification information.
Optionally, the resource information includes picture, and the default size is 900*900 pixels.
Optionally, described when detecting the enabled instruction of destination application, start and the destination application pair The sub-line journey answered, including:
When detecting the enabled instruction of destination application, main thread, the main line are opened according to the enabled instruction Journey is for starting the destination application;
Sub-line journey corresponding with the destination application is opened in background service, wherein the sub-line journey and the master Thread parallel is run.
Optionally, described that the corresponding identification information of the destination application is obtained by the sub-line journey, including:
The parameter information of the destination application is obtained, the parameter information includes:Title, attribute and path;
It is searched and the matched identification information of the parameter information according to the parameter information.
Optionally, described that the corresponding target resource of the destination application is obtained according to the identification information, including:
Parse the identification information;
According to the identification information obtain the target resource memory directory information;
The directory information is accessed to obtain the target resource.
Optionally, described to load the target resource in the buffer in advance, including:
By the target resource from the memory copy to caching, the address of the target resource in the buffer is recorded Information;
The main thread calls described address information to load the target resource.
Optionally, described to load the target resource in the buffer in advance, including:
By the target resource from the memory copy to caching, the address of the target resource in the buffer is recorded Information;
The sub-line journey calls described address information to load the target resource.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, and the mobile terminal includes processor and storage Device;
The memory is for storing executable program;
The processor is for executing the executable program to realize application program launching method described above.
The third aspect of the embodiment of the present invention provides a kind of computer storage media, is stored on the computer storage media There is executable program, application program launching method described above is realized when the executable program is performed.
Implement the embodiment of the present invention, has the advantages that:
Application program launching method, mobile terminal in the embodiment of the present invention and computer storage media, pass through startup Sub-line journey obtains the related resource of application program, and pre-loaded related resource, to accelerate the start-up course of application program, Reduce period of reservation of number, the user experience is improved.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the wireless communication system of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram of application program launching method first embodiment provided in an embodiment of the present invention.
Fig. 4 is a kind of method flow diagram of application program launching method second embodiment provided in an embodiment of the present invention.
Fig. 5 is a kind of method flow diagram of application program launching method 3rd embodiment provided in an embodiment of the present invention.
Fig. 6 is a kind of method flow diagram of application program launching method fourth embodiment provided in an embodiment of the present invention.
Fig. 7 is a kind of method flow diagram of the 5th embodiment of application program launching method provided in an embodiment of the present invention.
Fig. 8 show a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention. In subsequent description, using the suffix of such as " module ", " component " or " unit " for indicating element only for being conducive to The explanation of the present invention, itself does not have specific meaning.Therefore, " module ", " component " or " unit " can be used mixedly.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer The fixed terminals such as dynamic terminal, and number TV, desktop computer.It will be said by taking mobile terminal as an example in subsequent descriptions It is bright, it will be appreciated by those skilled in the art that other than being used in particular for the element of mobile purpose, embodiment party according to the present invention The construction of formula can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 is with can providing the IP of UE201 Location is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Fig. 3 is a kind of method flow diagram of application program launching method first embodiment provided in an embodiment of the present invention.It should Application program launching method is applied to mobile terminal, and the mobile terminal can be as shown in Figure 1 or 2, and in the present embodiment, this is answered Start method with program and includes the following steps S301-S305.
In step S301, when detecting the enabled instruction of destination application, start and the destination application Corresponding sub-line journey.
Specifically, in the embodiment of the present invention, it is first determined whether detecting the enabled instruction of destination application.The mesh Mark application program can be mounted in one of various application programs on mobile terminal, for example can be social class application program, It can be audio and video class application program.The enabled instruction can be generated after the corresponding control for receiving user, the use The control at family can be by touch screen input, voice input or key-press input etc., and the embodiment of the present invention is not limited thereto.
Optionally, after receiving enabled instruction, mobile terminal can carry out opening for the application program by main thread Dynamic instruction further, starts sub-line journey corresponding with application program in the present embodiment.It is understood that the sub-line Journey is run parallel with main thread, and the two is not interfere with each other.Optionally, the sub-line journey can be running background, on display circle Face is not in that user will not be allowed to perceive, convenient for promoting the experience of user.
In step s 302, the corresponding identification information of the destination application is obtained by the sub-line journey.
Specifically, after starting sub-line journey, the corresponding identification information of destination application is obtained by sub-line journey.This It in embodiment, can be searched by attributes such as the titles of destination application, judge whether corresponding mark letter Breath, and if it exists, then enter step in S303.It in other embodiments, may if the application program is to start for the first time Appearance does not have the case where identification information, can close the sub-line journey at this time.
In step S303, the corresponding target resource of the destination application is obtained according to the identification information.
Specifically, after obtaining identification information, the resource corresponding with identification information is obtained, the resource is mesh The corresponding target resource of application program is marked, the target resource includes that the destination application needs to load in start-up course Related resource.The target resource may include:Picture, music, word etc..In other embodiments, the target money Source can also be that acquisition, newer relevant information, the embodiment of the present invention are not limited thereto from network in real time.
In step s 304, the target resource is loaded in the buffer in advance.
Specifically, after getting target resource, the pre-loaded target resource in the caching of mobile terminal, after being convenient for It is continuous to call.
In step S305, the destination application is started according to the target resource loaded.
Specifically, since target resource has loaded, when starting intended application, load target resource is saved Time, thus the time of meeting start quickly,
It is above-mentioned it is found that application program launching method in the embodiment of the present invention, pass through and start sub-line journey and obtain application program Related resource, and pre-loaded related resource, to accelerate the start-up course of application program, when reducing user and waiting for Between, the user experience is improved.
Fig. 4 is a kind of method flow diagram of application program launching method second embodiment provided in an embodiment of the present invention.It is right Than first embodiment shown in Fig. 3, in the present embodiment, the step of preserving identification information, the application program are further comprised Startup method includes the following steps S401-S408.
In step S401, when the destination application starts for the first time, obtains the destination application and start The resource information loaded in the process.
Specifically, when intended application starts for the first time, due to being to start for the first time at this time, opened according to normal pattern It is dynamic, the resource information of destination application load is obtained in start-up course.
In step S402, if there is the resource for meeting default size in the resource information, meet described in acquisition pre- If the corresponding identification information of the resource of size.
Specifically, parsing the resource information, judge in resource information with the presence or absence of the resource for meeting default size.If depositing Then obtaining the corresponding identification information of the resource for meeting default size.
Optionally, the resource information includes picture, described to meet default size to refer to that picture size is more than preset big It is small.In the present embodiment, the preset picture size is 900*900 pixels, i.e., is comprised more than when in the resource information When the picture of 900*900, then the corresponding identification information of the picture is obtained.
Optionally, the resource information can also be audio and video, and the default size of the audio and video can also carry out in advance Setting.
Optionally, the default size of the resource information can be pre-set, can also be according to the processing energy of mobile terminal Power is configured, and the embodiment of the present invention is not limited thereto.
In step S403, the identification information is preserved.
Specifically, after getting the identification information, the identification information is preserved.
In step s 404, when detecting the enabled instruction of destination application, start and the destination application Corresponding sub-line journey.
In step S405, the corresponding identification information of the destination application is obtained by the sub-line journey.
In step S406, the corresponding target resource of the destination application is obtained according to the identification information.
In step S 407, the target resource is loaded in the buffer in advance.
In step S408, the destination application is started according to the target resource loaded.
It is above-mentioned it is found that application program launching method in the embodiment of the present invention, pass through and start sub-line journey and obtain application program Related resource, and pre-loaded related resource, to accelerate the start-up course of application program, when reducing user and waiting for Between, the user experience is improved.
Fig. 5 is a kind of method flow diagram of application program launching method 3rd embodiment provided in an embodiment of the present invention.It is right Than first embodiment shown in Fig. 3, in the present embodiment, the step of how starting sub-line journey is further comprised, this applies journey Sequence starts method and includes the following steps S501-S506.It is understood that how to start the step of sub-line journey in the embodiment of the present invention Suddenly can also be applied in second embodiment shown in Fig. 4.
In step S501, when detecting the enabled instruction of destination application, is opened and led according to the enabled instruction Thread.
Specifically, when detecting enabled instruction, main thread is opened according to enabled instruction, wherein the main thread is used for Start the destination application.
Optionally, the enabled instruction can be generated after the corresponding control for receiving user, the control of the user Touch screen input, voice input or key-press input etc. can be passed through.
In step S502, sub-line journey corresponding with the destination application is opened in background service.
Specifically, after opening main thread, the startup of application program is carried out by main thread, at the same time, on backstage Sub-line journey corresponding with destination application is opened in service, wherein the sub-line journey is run parallel with the main thread.
In step S503, the corresponding identification information of the destination application is obtained by the sub-line journey.
In step S504, the corresponding target resource of the destination application is obtained according to the identification information.
In step S505, the target resource is loaded in the buffer in advance.
In step S506, the destination application is started according to the target resource loaded.
It is above-mentioned it is found that application program launching method in the embodiment of the present invention, pass through and start sub-line journey and obtain application program Related resource, and pre-loaded related resource, to accelerate the start-up course of application program, when reducing user and waiting for Between, the user experience is improved.
Fig. 6 is a kind of method flow diagram of application program launching method fourth embodiment provided in an embodiment of the present invention.It is right Than first embodiment shown in Fig. 3, in the present embodiment, the step of obtaining identification information, the application program are further comprised Startup method includes the following steps S601-S606.It is understood that the step of acquisition identification information in the embodiment of the present invention It can also be applied in Fig. 4-second, third embodiment shown in fig. 5.
In step s 601, when detecting the enabled instruction of destination application, start and the destination application Corresponding sub-line journey.
In step S602, the parameter information of the destination application is obtained by the sub-line journey.
Specifically, after starting sub-line journey, the parameter information of destination application, the parameter are obtained by sub-line journey Information includes:Title, attribute and path, the title refer to the title of application program, and the attribute refers to application program pair The call parameters answered, the path refer to respective path of the application program in mobile terminal storage inside.
In step S603, searched and the matched identification information of the parameter information according to the parameter information.
Specifically, after getting parameter information, further searched therewith according to parameter information in sub-line journey Matched identification information.The identification information has been saved in before being in the storage inside of mobile terminal.If intended application Program has not been to start for the first time at this time, then the mark of the destination application respective resources can be preserved inside mobile terminal Information can find the identification information according to parameter information at this time, consequently facilitating subsequent calling.
In step s 604, the corresponding target resource of the destination application is obtained according to the identification information.
In step s 605, the target resource is loaded in the buffer in advance.
In step S606, the destination application is started according to the target resource loaded.
It is above-mentioned it is found that application program launching method in the embodiment of the present invention, pass through and start sub-line journey and obtain application program Related resource, and pre-loaded related resource, to accelerate the start-up course of application program, when reducing user and waiting for Between, the user experience is improved.
Fig. 7 is a kind of method flow diagram of the 5th embodiment of application program launching method provided in an embodiment of the present invention.It is right Than fourth embodiment shown in fig. 6, the present embodiment further comprise obtain target resource and load target resource the step of, This approach includes the following steps S701-S709.It is understood that the acquisition target resource in the present embodiment and load target The step of resource, can also be applied in Fig. 3-embodiments shown in fig. 5, and the embodiment of the present invention is not limited thereto.
In step s 701, when detecting the enabled instruction of destination application, start and the destination application Corresponding sub-line journey.
In step S702, the parameter information of the destination application is obtained by the sub-line journey.
In step S703, searched and the matched identification information of the parameter information according to the parameter information.
In step S704, the identification information is parsed.
Specifically, after getting identification information, the identification information is parsed.Optionally, the mobile terminal is adopted With Android system, the identification information is parsed by the corresponding assembly of Android system.
In step S705, according to the identification information obtain the target resource memory directory information.
Specifically, obtaining the directory information of target resource according to analysis result.
In step S706, the directory information is accessed to obtain the target resource.
Specifically, obtaining target resource according to directory information.
In step S707, by the target resource from the memory copy to caching, the target resource is recorded Address information in the buffer.
Specifically, target resource is copied in caching, it is convenient for subsequent calls.Since mobile terminal accessing is cached than accessing Target resource faster, is copied to caching by storage inside in advance, can accelerate the speed of target resource described in subsequent load, to Start quickly speed.
In step S708, the main thread calls described address information to load the target resource.
Specifically, being called by main thread, to realize the load of target resource.
Optionally, in other embodiments, described address information can also be called to load the mesh by sub-line journey Resource is marked, the embodiment of the present invention is not limited thereto.
In step S709, the destination application is started according to the target resource loaded.
It is above-mentioned it is found that application program launching method in the embodiment of the present invention, pass through and start sub-line journey and obtain application program Related resource, and pre-loaded related resource, to accelerate the start-up course of application program, when reducing user and waiting for Between, the user experience is improved.
Fig. 8 show a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.As shown in figure 8, mobile whole End include processor 801 (quantity of the processor 801 in terminal can one or more, Fig. 8 is by taking a processor as an example) with And memory 802.In an embodiment of the present invention, processor 801, memory 802 can be connected by bus or other means, In, in Fig. 8 for being connected by bus.
Wherein, executable program is stored in memory 802, processor 801 executes the executable program to realize such as Lower step:
When detecting the enabled instruction of destination application, start sub-line journey corresponding with the destination application;
The corresponding identification information of the destination application is obtained by the sub-line journey;
The corresponding target resource of the destination application is obtained according to the identification information;
The target resource is loaded in the buffer in advance;
Start the destination application according to the target resource loaded.
Optionally, the processor 801 when detecting the enabled instruction of destination application, with the target answer by startup Before the corresponding sub-line journey of program, further include:
When the destination application starts for the first time, the money loaded in the destination application start-up course is obtained Source information;
If there is the resource for meeting default size in the resource information, the resource pair of default size is met described in acquisition The identification information answered;
Preserve the identification information.
Optionally, the resource information includes picture, and the default size is 900*900 pixels.
Optionally, the processor 801 when detecting the enabled instruction of destination application, with the target answer by startup With the corresponding sub-line journey of program, including:
When detecting the enabled instruction of destination application, main thread, the main line are opened according to the enabled instruction Journey is for starting the destination application;
Sub-line journey corresponding with the destination application is opened in background service, wherein the sub-line journey and the master Thread parallel is run.
Optionally, the processor 801 obtains the corresponding identification information of the destination application by the sub-line journey, Including:
The parameter information of the destination application is obtained, the parameter information includes:Title, attribute and path;
It is searched and the matched identification information of the parameter information according to the parameter information.
Optionally, the processor 801 obtains the corresponding target of the destination application according to the identification information and provides Source, including:
Parse the identification information;
According to the identification information obtain the target resource memory directory information;
The directory information is accessed to obtain the target resource.
Optionally, the processor 801 loads the target resource in the buffer in advance, including:
By the target resource from the memory copy to caching, the address of the target resource in the buffer is recorded Information;
The main thread calls described address information to load the target resource.
Optionally, the processor 801 loads the target resource in the buffer in advance, including:
By the target resource from the memory copy to caching, the address of the target resource in the buffer is recorded Information;
The sub-line journey calls described address information to load the target resource.
It is above-mentioned it is found that mobile terminal in the embodiment of the present invention, passes through and starts the related money that sub-line journey obtains application program Source, and pre-loaded related resource reduce period of reservation of number, improve to accelerate the start-up course of application program User experience.
The embodiment of the present invention additionally provides a kind of computer storage media, and the computer storage media is stored with executable Program, the executable program realize following steps when being performed:
When detecting the enabled instruction of destination application, start sub-line journey corresponding with the destination application;
The corresponding identification information of the destination application is obtained by the sub-line journey;
The corresponding target resource of the destination application is obtained according to the identification information;
The target resource is loaded in the buffer in advance;
Start the destination application according to the target resource loaded.
Optionally, the executable program can also be used to execute to realize such as the application program launching sides shown in Fig. 7 Fig. 3- Method, this will not be repeated here.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of application program launching method is applied to mobile terminal, which is characterized in that including:
When detecting the enabled instruction of destination application, start sub-line journey corresponding with the destination application;
The corresponding identification information of the destination application is obtained by the sub-line journey;
The corresponding target resource of the destination application is obtained according to the identification information;
The target resource is loaded in the buffer in advance;
Start the destination application according to the target resource loaded.
2. application program launching method as described in claim 1, which is characterized in that described to detect destination application When enabled instruction, before starting sub-line journey corresponding with the destination application, further include:
When the destination application starts for the first time, the resource letter loaded in the destination application start-up course is obtained Breath;
If there is the resource for meeting default size in the resource information, the resource that default size is met described in acquisition is corresponding Identification information;
Preserve the identification information.
3. application program launching method as claimed in claim 2, which is characterized in that the resource information includes picture, described Default size is 900*900 pixels.
4. application program launching method as claimed in claim 1 or 2, which is characterized in that described to detect intended application journey When the enabled instruction of sequence, start sub-line journey corresponding with the destination application, including:
When detecting the enabled instruction of destination application, main thread is opened according to the enabled instruction, the main thread is used In the startup destination application;
Sub-line journey corresponding with the destination application is opened in background service, wherein the sub-line journey and the main thread Parallel operation.
5. application program launching method as claimed in claim 4, which is characterized in that described by described in sub-line journey acquisition The corresponding identification information of destination application, including:
The parameter information of the destination application is obtained, the parameter information includes:Title, attribute and path;
It is searched and the matched identification information of the parameter information according to the parameter information.
6. application program launching method as claimed in claim 5, which is characterized in that described to obtain institute according to the identification information The corresponding target resource of destination application is stated, including:
Parse the identification information;
According to the identification information obtain the target resource memory directory information;
The directory information is accessed to obtain the target resource.
7. application program launching method as claimed in claim 6, which is characterized in that described to load the mesh in the buffer in advance Resource is marked, including:
By the target resource from the memory copy to caching, the address letter of the target resource in the buffer is recorded Breath;
The main thread calls described address information to load the target resource.
8. application program launching method as claimed in claim 6, which is characterized in that described to load the mesh in the buffer in advance Resource is marked, including:
By the target resource from the memory copy to caching, the address letter of the target resource in the buffer is recorded Breath;
The sub-line journey calls described address information to load the target resource.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor and memory;
The memory is for storing executable program;
The processor is for executing the executable program to realize that claim 1-8 any one of them application programs such as open Dynamic method.
10. a kind of computer storage media, which is characterized in that be stored with executable program, institute on the computer storage media It states when executable program is performed to realize such as claim 1-8 any one of them application program launching methods.
CN201810167432.XA 2018-02-28 2018-02-28 A kind of application program launching method, mobile terminal and computer storage media Pending CN108536481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810167432.XA CN108536481A (en) 2018-02-28 2018-02-28 A kind of application program launching method, mobile terminal and computer storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810167432.XA CN108536481A (en) 2018-02-28 2018-02-28 A kind of application program launching method, mobile terminal and computer storage media

Publications (1)

Publication Number Publication Date
CN108536481A true CN108536481A (en) 2018-09-14

Family

ID=63485810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810167432.XA Pending CN108536481A (en) 2018-02-28 2018-02-28 A kind of application program launching method, mobile terminal and computer storage media

Country Status (1)

Country Link
CN (1) CN108536481A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582385A (en) * 2018-11-07 2019-04-05 Oppo广东移动通信有限公司 Application program launching method and device, storage medium and electronic equipment
CN109618225A (en) * 2018-12-25 2019-04-12 百度在线网络技术(北京)有限公司 Video takes out frame method, device, equipment and medium
CN109669738A (en) * 2018-12-29 2019-04-23 北京明朝万达科技股份有限公司 A kind of starting method and device of application program
CN109814941A (en) * 2018-11-27 2019-05-28 努比亚技术有限公司 A kind of application starting method, terminal and computer readable storage medium
CN109933253A (en) * 2019-01-23 2019-06-25 努比亚技术有限公司 Method for controlling application starting, terminal and computer readable storage medium
CN110083402A (en) * 2019-03-28 2019-08-02 努比亚技术有限公司 Using starting method, terminal and computer readable storage medium
CN110139118A (en) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 Function operation method, device, electronic equipment and the storage medium of application program
CN110543337A (en) * 2019-09-02 2019-12-06 联想(北京)有限公司 application program loading processing method, electronic device and medium
CN111078316A (en) * 2019-12-16 2020-04-28 惠州Tcl移动通信有限公司 Layout file loading method and device, storage medium and electronic equipment
CN111198730A (en) * 2018-10-30 2020-05-26 广州腾讯科技有限公司 Method, device, terminal and computer storage medium for starting sub-application program
CN111273965A (en) * 2020-02-17 2020-06-12 支付宝(杭州)信息技术有限公司 Container application starting method, system and device and electronic equipment
CN111666113A (en) * 2020-04-24 2020-09-15 北京奇艺世纪科技有限公司 Application program starting management method and device, electronic equipment and storage medium
CN112162796A (en) * 2020-10-10 2021-01-01 Oppo广东移动通信有限公司 Application starting method and device, terminal equipment and storage medium
CN112379933A (en) * 2019-07-29 2021-02-19 腾讯科技(深圳)有限公司 Application program starting method, device, medium and electronic equipment
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN113835782A (en) * 2021-09-23 2021-12-24 掌阅科技股份有限公司 Application starting method, electronic equipment and storage medium
CN114003308A (en) * 2021-10-28 2022-02-01 上海米哈游璃月科技有限公司 Project text resource loading method and device, electronic equipment and storage medium
CN116541102A (en) * 2023-06-27 2023-08-04 荣耀终端有限公司 File preloading method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6611915B1 (en) * 1999-05-27 2003-08-26 International Business Machines Corporation Selective loading of client operating system in a computer network
CN104142896A (en) * 2013-05-10 2014-11-12 阿里巴巴集团控股有限公司 Cache control method and system
CN104281472A (en) * 2014-09-18 2015-01-14 青岛海信移动通信技术股份有限公司 Method and device for preloading resources
CN105955766A (en) * 2016-04-22 2016-09-21 北京小米移动软件有限公司 Method and device for application preloading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6611915B1 (en) * 1999-05-27 2003-08-26 International Business Machines Corporation Selective loading of client operating system in a computer network
CN104142896A (en) * 2013-05-10 2014-11-12 阿里巴巴集团控股有限公司 Cache control method and system
CN104281472A (en) * 2014-09-18 2015-01-14 青岛海信移动通信技术股份有限公司 Method and device for preloading resources
CN105955766A (en) * 2016-04-22 2016-09-21 北京小米移动软件有限公司 Method and device for application preloading

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198730A (en) * 2018-10-30 2020-05-26 广州腾讯科技有限公司 Method, device, terminal and computer storage medium for starting sub-application program
CN111198730B (en) * 2018-10-30 2023-05-23 广州腾讯科技有限公司 Method, device, terminal and computer storage medium for starting sub-application program
CN109582385A (en) * 2018-11-07 2019-04-05 Oppo广东移动通信有限公司 Application program launching method and device, storage medium and electronic equipment
CN109814941A (en) * 2018-11-27 2019-05-28 努比亚技术有限公司 A kind of application starting method, terminal and computer readable storage medium
CN109618225A (en) * 2018-12-25 2019-04-12 百度在线网络技术(北京)有限公司 Video takes out frame method, device, equipment and medium
CN109669738A (en) * 2018-12-29 2019-04-23 北京明朝万达科技股份有限公司 A kind of starting method and device of application program
CN109933253A (en) * 2019-01-23 2019-06-25 努比亚技术有限公司 Method for controlling application starting, terminal and computer readable storage medium
CN110083402A (en) * 2019-03-28 2019-08-02 努比亚技术有限公司 Using starting method, terminal and computer readable storage medium
CN110139118A (en) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 Function operation method, device, electronic equipment and the storage medium of application program
CN112379933A (en) * 2019-07-29 2021-02-19 腾讯科技(深圳)有限公司 Application program starting method, device, medium and electronic equipment
CN110543337A (en) * 2019-09-02 2019-12-06 联想(北京)有限公司 application program loading processing method, electronic device and medium
CN111078316A (en) * 2019-12-16 2020-04-28 惠州Tcl移动通信有限公司 Layout file loading method and device, storage medium and electronic equipment
CN111273965A (en) * 2020-02-17 2020-06-12 支付宝(杭州)信息技术有限公司 Container application starting method, system and device and electronic equipment
CN111273965B (en) * 2020-02-17 2021-10-29 支付宝(杭州)信息技术有限公司 Container application starting method, system and device and electronic equipment
CN111666113A (en) * 2020-04-24 2020-09-15 北京奇艺世纪科技有限公司 Application program starting management method and device, electronic equipment and storage medium
CN112162796A (en) * 2020-10-10 2021-01-01 Oppo广东移动通信有限公司 Application starting method and device, terminal equipment and storage medium
CN112732365A (en) * 2021-01-28 2021-04-30 北京字跳网络技术有限公司 Method and device for starting pre-installed application program, electronic equipment and storage medium
CN113835782A (en) * 2021-09-23 2021-12-24 掌阅科技股份有限公司 Application starting method, electronic equipment and storage medium
CN114003308A (en) * 2021-10-28 2022-02-01 上海米哈游璃月科技有限公司 Project text resource loading method and device, electronic equipment and storage medium
CN116541102A (en) * 2023-06-27 2023-08-04 荣耀终端有限公司 File preloading method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108536481A (en) A kind of application program launching method, mobile terminal and computer storage media
CN107688607A (en) The method and mobile terminal of a kind of database access, computer-readable recording medium
CN109814941A (en) A kind of application starting method, terminal and computer readable storage medium
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN108196750A (en) The method, apparatus and computer readable storage medium of screen interface sectional drawing
CN107657583A (en) A kind of screenshot method, terminal and computer-readable recording medium
CN109947248A (en) Vibration control method, mobile terminal and computer readable storage medium
CN110187943A (en) A kind of record screen method, terminal and computer readable storage medium
CN107729103A (en) A kind of method for switching theme, mobile terminal and computer-readable storage medium
CN108762631A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN108418948A (en) A kind of based reminding method, mobile terminal and computer storage media
CN108241752A (en) Photo display methods, mobile terminal and computer readable storage medium
CN110180181A (en) Screenshot method, device and the computer readable storage medium of Wonderful time video
CN108833690A (en) authority control method, terminal and computer readable storage medium
CN108536490A (en) A kind of application program launching method, mobile terminal and computer storage media
CN107688429A (en) Management method, mobile terminal and the computer-readable recording medium of application controls
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109729267A (en) Filter selection method, mobile terminal and computer readable storage medium
CN108776600A (en) Application program pretrigger method, mobile terminal and computer readable storage medium
CN109299039A (en) A kind of file management method, equipment and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN107818022A (en) Application programming interfaces merging method, mobile terminal and computer-readable recording medium
CN107247560A (en) Date storage method and mobile terminal
CN108771870A (en) Voice transmission method, terminal based on game and computer readable storage medium
CN108228301A (en) The method, apparatus and computer readable storage medium of the long sectional drawing of screen interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180914