CN112825538B - Application starting method and device, terminal equipment and storage medium - Google Patents

Application starting method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112825538B
CN112825538B CN201911139461.6A CN201911139461A CN112825538B CN 112825538 B CN112825538 B CN 112825538B CN 201911139461 A CN201911139461 A CN 201911139461A CN 112825538 B CN112825538 B CN 112825538B
Authority
CN
China
Prior art keywords
application
picture
loading event
terminal
display effect
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
CN201911139461.6A
Other languages
Chinese (zh)
Other versions
CN112825538A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201911139461.6A priority Critical patent/CN112825538B/en
Publication of CN112825538A publication Critical patent/CN112825538A/en
Application granted granted Critical
Publication of CN112825538B publication Critical patent/CN112825538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention is suitable for the technical field of computers, and provides an application starting method, an application starting device and terminal equipment, wherein the application starting method comprises the following steps: calling a first process to detect a picture loading event in response to an application starting instruction; when the first process detects a picture loading event, acquiring a display effect difference between an application and a terminal, and calling a second process to adjust an application picture to be loaded in the picture loading event according to the display effect difference so as to enable the adjusted application picture to be matched with the terminal; and calling the first process to acquire the adjusted application picture from the second process so as to execute the picture loading event according to the adjusted application picture. The method and the device can avoid the problem that the resource loading takes long time because the graph is required to be additionally adjusted in the application starting process, and achieve the effect of optimizing the application starting speed.

Description

Application starting method and device, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to an application starting method and device and terminal equipment.
Background
With the development of networks and technologies towards increasingly wider bands, mobile terminals are changing from simple call tools to an integrated information processing platform, and at present, mobile terminals already have strong processing and storage capabilities, and the number of applications that can be run on mobile terminals is increasing, so that users can implement functions of shopping, chatting, paying bills and the like through various applications, and thus the mobile terminals and the mobile terminal applications become indispensable parts of daily lives of users.
At present, the starting mode of the application program supported by the mobile terminal is as follows: the user clicks an icon corresponding to an application program to be started, the system loads resources such as an application picture of the application program after the icon is clicked, and the application program can be started only after the resources are loaded, wherein the picture may need to be processed first in the loading process of the application picture and can be used in the mobile terminal, and therefore the application picture loading can affect the time consumption of application starting.
Disclosure of Invention
The invention provides an application starting method, an application starting device and terminal equipment, and solves the problem that after an application program is started, the loading of resources such as application pictures and the like increases the application starting time.
A first aspect of an embodiment of the present invention provides an application starting method, including:
calling a first process to detect a picture loading event in response to an application starting instruction;
when the first process detects a picture loading event, acquiring a display effect difference between an application and a terminal, and calling a second process to adjust an application picture to be loaded in the picture loading event according to the display effect difference so as to enable the adjusted application picture to be matched with the terminal;
and calling the first process to acquire the adjusted application picture from the second process so as to execute the picture loading event according to the adjusted application picture.
With reference to the first aspect of the present invention, in the first embodiment of the present invention, the display effect difference includes a size display difference;
when the first process detects a picture loading event, acquiring a display effect difference between an application and a terminal, including:
acquiring the current screen size of the terminal;
acquiring an application picture to be loaded in the picture loading event and a size mark of the application picture;
and calculating a size display difference value according to the screen size and the size mark.
With reference to the first aspect of the present invention, in a second embodiment of the present invention, the display effect difference includes a screen density difference;
when the first process detects a picture loading event, acquiring a display effect difference between an application and a terminal, and further comprising:
acquiring the current screen density of the terminal;
acquiring an application picture to be loaded in the picture loading event and a resolution mark of the application picture;
and calculating a screen density difference value according to the screen density and the resolution mark.
With reference to the first implementation manner and the second implementation manner of the first aspect of the present invention, in a third implementation manner of the present invention, the invoking a second process adjusts an application picture to be loaded in the picture loading event according to the display effect difference, so that the adjusted application picture is matched with the terminal, including:
when the size display difference value is not 0, cutting the application picture to be loaded in the picture loading event so as to enable the size of the cut application picture to be matched with that of the terminal;
when the size display difference value is 0, the size of the cut application picture is the same as that of the original application picture;
or
When the screen density difference value is not 0, reshaping the resolution of the application picture to be loaded in the picture loading event so as to enable the size of the application picture after reshaping to be matched with the terminal;
and when the screen density difference value is 0, the remolded application picture has the same resolution as the original application picture.
With reference to the first aspect of the present invention, in a fourth implementation manner of the present invention, after invoking the first process to obtain the adjusted application picture from the second process, and executing the picture loading event according to the adjusted application picture, the method includes:
and storing the adjusted application picture in a database.
With reference to the first aspect of the present invention, in a fifth implementation manner of the present invention, before the detecting, by the first process, a picture loading event, the method further includes:
detecting whether an application picture to be loaded in the picture loading event is stored in a database;
if the application picture is not stored in the database, when the first process detects a picture loading event, acquiring a display effect difference between an application and a terminal, and calling a second process to adjust the application picture to be loaded in the picture loading event according to the display effect difference;
and if the application picture is stored in the database, acquiring the application picture to be loaded in the picture loading event in the database when the first process detects the picture loading event.
With reference to the fifth implementation manner of the first aspect of the present invention, in a sixth implementation manner of the present invention, before detecting whether an application picture to be loaded in the picture loading event is stored in a database, the method further includes:
detecting latest version information of an application and version information of the application picture;
if the version information of the application picture is lower than the application version information, calling a first starting program to update the application, acquiring the display effect difference between the updated application and the terminal, and calling a second process to adjust the application picture to be loaded in the picture loading event according to the display effect difference;
and if the version information of the application picture is the same as the application version information, detecting whether the application picture to be loaded in the picture loading event is stored in a database.
A second aspect of an embodiment of the present invention provides an application starting apparatus, including:
the application starting instruction detection module is used for responding to an application starting instruction and calling a first process to detect a picture loading event;
the application picture adjusting module is used for acquiring the display effect difference between an application and a terminal when the first process detects a picture loading event, and calling a second process to adjust an application picture to be loaded in the picture loading event according to the display effect difference so as to enable the adjusted application picture to be matched with the terminal;
and the picture loading module is used for calling the first process to acquire the adjusted application picture from the second process so as to execute the picture loading event according to the adjusted application picture.
A third aspect of embodiments of the present invention provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method provided in the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as provided in the first aspect above.
The embodiment of the invention provides an application starting method, which comprises the steps of firstly detecting whether a picture loading event exists in a first process, if the picture loading event exists, obtaining a difference applied to a terminal before a mobile terminal responds to the picture loading event, and adjusting an application picture through a second process, so that the terminal directly obtains the adjusted application picture from the second process when the picture loading event is executed through the first process, the problem that the resource loading consumes long time because the picture needs to be additionally adjusted in the application starting process is solved, the effect of optimizing the application starting speed is achieved, and the user experience is improved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a terminal device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of an application starting method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of an implementation of step S202 in FIG. 2;
FIG. 4 is a schematic diagram of another implementation of step S202 in FIG. 2;
fig. 5 is a schematic flow chart illustrating an implementation of another application starting method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an implementation process of a conventional application starting method;
FIG. 7 is a schematic diagram illustrating an implementation process of the application starting method shown in FIG. 2;
FIG. 8 is a schematic diagram illustrating an implementation process of the application starting method shown in FIG. 5;
fig. 9 is a schematic structural diagram of an application startup device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Suffixes such as "module", "part", or "unit" used to denote elements are used herein only for the convenience of description of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
In the following description, the serial numbers of the embodiments of the invention are merely for description and do not represent the merits of the embodiments.
Fig. 1 shows a block diagram of a hardware configuration of a terminal device. The terminal device unlocking method provided by the embodiment of the present invention may be applied to the terminal device 10 shown in fig. 1, where the terminal device 10 may include, but is not limited to: the mobile terminal supports short-distance wireless communication and needs to be unlocked, such as a smart phone, a notebook, a tablet personal computer and wearable smart equipment.
As shown in fig. 1, the terminal device 10 includes a memory 101, one or more processors 103 (only one is shown), and optionally, may further include a memory controller 102, a peripheral interface 104, a radio frequency module 105, a key module 106, an audio module 107, a touch screen 108, and a short-range wireless communication module 109. These components may communicate with each other via one or more communication buses/signal lines 110.
It is to be understood that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the terminal device. Terminal device 10 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The memory 101 may be configured to store software programs and modules, such as a terminal device unlocking method and program instructions/modules corresponding to the terminal device in the embodiments of the present invention, and the processor 103 executes various functional applications and data processing by running the software programs and modules stored in the memory 101, so as to implement a terminal device unlocking method in the embodiments shown in fig. 2 and 3 described below, or implement a terminal device unlocking method in the embodiments shown in fig. 4 and 5 described below.
Memory 101 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 101 may further include memory located remotely from the processor 103, which may be connected to the terminal device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 101 by the processor 103 and possibly other components may be under the control of the memory controller 102.
The peripheral interface 104 couples various input/output devices to the CPU and to the memory 101. Processor 103 executes various software, instructions within memory 101 to perform various functions of terminal device 10 and to perform data processing.
In some embodiments, the peripheral interface 104, the processor 103, and the memory controller 102 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 105 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf Module 105 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and so forth. The rf module 105 may communicate with various networks such as the internet, an intranet, a preset type of wireless network, or other devices through a preset type of wireless network. The preset types of wireless networks described above may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The Wireless network of the above-mentioned preset type may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.11 n), Voice over Internet protocol (VoIP), world wide web for Wireless Access (Wi-Max), other protocols for email, instant messaging, and short messaging, and any other suitable messaging protocol.
The key module 106 provides an interface for a user to input to the terminal device, and the user can press different keys to cause the terminal device 10 to perform different functions.
Audio module 107 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from the peripheral interface 104, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 104 for further processing. The audio data may be retrieved from the memory 101 or through the radio frequency module 105. In addition, the audio data may also be stored in the memory 101 or transmitted through the radio frequency module 105. In some examples, audio module 107 may also include a headphone jack for providing an audio interface to headphones or other devices.
The touch screen 108 provides both an output and an input interface between the terminal device and the user. In particular, the touch screen 108 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. The touch screen 108 also receives user inputs, such as user clicks, swipes, and other gesture operations, for the user interface objects to respond to these user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen 108 display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.
The short-range wireless Communication module 109 can perform Identification and data exchange with a compatible device in a short range by using a short-range Communication protocol such as NFC (Near Field Communication) or RFID (Radio Frequency Identification).
Further, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be disposed in the terminal device in each of the foregoing embodiments and the following embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 1. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements an application launching method as described in the embodiments of fig. 2-5 below.
As shown in fig. 2, an embodiment of the present invention provides an application starting method, which may be applied to a terminal device shown in fig. 1, and the implementation flow thereof may include, but is not limited to, the following steps:
s201, responding to an application starting instruction, and calling a first process to detect a picture loading event.
In step S201, the terminal device monitors the application start instruction, and when the user opens the application on the terminal device, the terminal device detects the application start instruction.
In a specific application, after the terminal device responds to an application start instruction, a plurality of processes are called in the process of starting the application, and start tasks, such as a process of loading application pictures, a process of network connection, a process of loading audio resources and the like, are executed.
In the embodiment of the present invention, the first process is invoked to detect the picture loading event, and whether the process invoked when the current application is started includes a process for loading picture resources may be detected by an idle process.
S202, when the first process detects a picture loading event, obtaining a display effect difference between an application and a terminal, and calling a second process to adjust an application picture to be loaded in the picture loading event according to the display effect difference so as to enable the adjusted application picture to be matched with the terminal.
In step S202, the second process is called immediately when the first process detects a picture loading event, and the first process does not yet execute the picture loading event when the second process executes the task of "adjusting the application picture to be loaded in the picture loading event according to the display effect difference".
In a specific application, resources to be loaded for application starting include a program and application pictures, and after the application is started, a plurality of resources need to be loaded.
In specific application, the display effect difference includes a difference caused by reasons that the original resource of the application is not matched with the terminal size, the resolution is not matched, the format cannot be identified and the like, and the problem that the display effect difference finally causes a poor display effect when the application is applied to the terminal can be expressed as situations that an application picture or a font displayed by the terminal is not clear, the terminal cannot display a complete picture and the like.
In practical applications, if the difference in display effect between an application and a terminal is large, a result of poor display effect is caused, and therefore, after the terminal responds to an application start instruction, when a process of loading a picture, that is, a picture loading event in the embodiment of the present invention, is executed, it is also necessary to immediately call other processes to adjust the picture to be loaded, so as to increase the resource loading duration.
S203, calling the first process to acquire the adjusted application picture from the second process, and executing the picture loading event according to the adjusted application picture.
In step S203, the first process obtains the adjusted application picture before the first process executes the picture loading event. And the first process should execute other relevant events related to the current application start before obtaining the adjusted application picture.
Then the second process does not interfere with the first process in the embodiments of the present invention.
In a specific application, the first process may be a main line process for starting the application, the second process may be a sub line process for starting the application, and before the first process calls the second process, the second process may be in an idle state or may be executing a task with a low priority level.
In the embodiment of the invention, because the first process can directly acquire the adjusted application picture from the second process, when the first process needs to execute the picture loading event, other programs do not need to be started temporarily to adjust the picture, so that the number of tasks to be executed by the first process is reduced, the resource loading time is shortened, and the application starting speed is increased.
In one embodiment, after the step S202, that is, after the application picture to be loaded in the picture loading event is adjusted according to the display effect difference, the adjusted application picture is further stored in the database. When the applications in the above steps S201 to S203 are started again, the terminal may directly load the adjusted application picture stored in the database, where the application picture has no display effect difference with the terminal, or the display effect difference has a value of 0.
The application starting method provided by the embodiment of the invention comprises the steps of firstly detecting whether a picture loading event exists in a first process, if the picture loading event exists, obtaining the difference applied to the terminal before the mobile terminal responds to the picture loading event, and adjusting the application picture through a second process, so that the terminal directly obtains the adjusted application picture from the second process when the picture loading event is executed through the first process, the problem that the resource loading consumes long time because the picture needs to be additionally adjusted in the application starting process is avoided, the effect of optimizing the application starting speed is achieved, and the user experience is improved.
As shown in fig. 3, an implementation manner of the step S202 is further exemplarily shown in the embodiment of the present invention, the display effect difference includes a size display difference, and then a detailed implementation flow of the step S202 "obtaining the display effect difference between the application and the terminal when the first process detects the picture loading event" includes, but is not limited to, the following steps:
s20211, acquiring the current screen size of the terminal;
s20212, obtaining an application picture to be loaded in the picture loading event and a size mark of the application picture;
s20213, calculating a size display difference value according to the screen size and the size mark.
In a specific application, the application picture is a picture of the application itself, such as an icon, a background picture, a font, an interface picture material, and the like in the application.
In a specific application, the size flag of the application picture is used to indicate a screen size range applicable to the application picture, and if the size flag is 0.75, the size flag is applied to 4: 3 screen size.
In a specific application, the size display difference value may be 0 or not, and when the size display difference value is 0, it indicates that the application is matched with the terminal, and there is no display effect difference.
As shown in fig. 4, another implementation manner of the step S202 is further exemplarily shown in the embodiment of the present invention, the display effect difference includes a screen density difference, and a detailed implementation flow of the step S202 of "obtaining a display effect difference between an application and a terminal when the first process detects a picture loading event" includes, but is not limited to, the following steps:
s20221, acquiring the screen density of the current terminal;
s20222, acquiring an application picture to be loaded in the picture loading event and a resolution mark of the application picture;
s20223, calculating a screen density difference value according to the screen density and the resolution mark.
In a specific application, the resolution mark of the application picture is used for indicating a screen density range corresponding to the application picture, and if the resolution is 1K, the method is applicable to a terminal with a screen density of 480, and if the screen density of the current terminal is 360, the resolution of the application picture should be reshaped, and the applicable screen density value is reduced.
In a specific application, the screen density difference value may be 0 or not, and when the screen density difference value is 0, the screen density difference value is applied to terminal matching, and there is no display effect difference.
Based on the two implementation manners of step S202 provided in the embodiment of the present invention, the embodiment of the present invention further shows a detailed implementation flow of step S203, that is, "the invoking of the second process adjusts the application picture to be loaded in the picture loading event according to the display effect difference, so as to match the adjusted application picture with the terminal," which includes but is not limited to the following steps:
when the size display difference value is not 0, cutting the application picture to be loaded in the picture loading event so as to enable the size of the cut application picture to be matched with that of the terminal;
when the size display difference value is 0, the size of the cut application picture is the same as that of the original application picture;
when the screen density difference value is not 0, reshaping the resolution of the application picture to be loaded in the picture loading event so as to enable the size of the application picture after reshaping to be matched with the terminal;
and when the screen density difference value is 0, the remolded application picture has the same resolution as the original application picture.
In the implementation of the invention, the size display difference is eliminated by a cutting method, and the screen density difference is eliminated by a reshaping method, wherein the functions of size cutting and resolution reshaping of the picture can be preset in the terminal equipment.
It is understood that a size display difference value or a screen density difference value of 0 indicates that the application picture and the terminal matching are not identical in size or resolution, but identical within a certain error tolerance range.
In a specific application, if there are size display difference and screen density difference between an application picture in the application and a terminal, the size display difference and screen density difference can be eliminated simultaneously by the application starting method shown in fig. 2 and the embodiment of the present invention, for example: simultaneously acquiring size display difference and screen density difference between the application and the terminal through two sub-threads of the second process; or the size display difference between the application and the terminal is obtained through the second process, the screen density difference between the application and the terminal is obtained through the third process, and the application picture is adjusted through the second process and/or the third process, so that the problem that the size and the resolution of the application picture are not adaptive to the terminal is solved.
As shown in fig. 5, an application startup method provided in an embodiment of the present invention is an application startup method extended from the application startup method shown in fig. 2, where before step S202 in fig. 2, that is, before the first process detects a picture loading event, the application startup method provided in an embodiment of the present invention further includes the following steps:
s501, detecting whether an application picture to be loaded in the picture loading event is stored in a database;
s502, if the application picture is not stored in the database, when the first process detects a picture loading event, obtaining a display effect difference between an application and a terminal, and calling a second process to adjust the application picture to be loaded in the picture loading event according to the display effect difference;
s503, if the application picture is stored in the database, the first process acquires the application picture to be loaded in the picture loading event from the database when the picture loading event is detected.
In the above steps S501 to S503, if the above steps S201 to S203 are already performed when an application is initially started, the application picture to be loaded by the application may already be stored in the database, and therefore, the application picture loading mode of the first startup program when the picture loading event is performed may be selected by determining whether the application picture to be loaded in the picture loading event is stored in the database, so as to further improve the application startup speed.
In a specific application, if the application picture is not stored in the database, the application may be started for the first time, or the application picture stored in the database after the application is started last time is lost.
In practical applications, when the version of the application is updated, the application picture thereof is also updated, and therefore, when the version of the application is changed, the application picture previously stored in the database may not be applicable any more, and a situation that the display effect difference exists between the application and the terminal still occurs, in the embodiment of the present invention, before the step S501, the method may further include:
detecting latest version information of an application and version information of the application picture;
if the version information of the application picture is lower than the application version information, calling a first starting program to update the application, acquiring the display effect difference between the updated application and the terminal, and calling a second process to adjust the application picture to be loaded in the picture loading event according to the display effect difference;
and if the version information of the application picture is the same as the application version information, detecting whether the application picture to be loaded in the picture loading event is stored in a database.
In a specific application, if the version information of the application picture is lower than the latest version information of the application, it indicates that the current application needs to be updated, at this time, the first process will execute the task of updating the application first, and after the update, obtain the display effect difference between the updated application and the terminal, and then call the second process to adjust the application picture, that is, complete the content in step S502.
As shown in fig. 6 to 8, in the embodiment of the present invention, the application starting method shown in fig. 2 and the application starting method shown in fig. 5 are further compared with an existing application starting method, where fig. 6 is a flowchart of an implementation process of the existing application starting method, fig. 7 is a flowchart of an implementation process of the application starting method shown in fig. 2, and fig. 8 is a flowchart of an implementation process of the application starting method shown in fig. 4. In fig. 7 and 8, if there is a picture loading event in the application starting process, a second process is called to load an application picture, and when the second process loads the application picture, if the picture needs to be adjusted, the adjustment of the application picture is also performed in the second process, so that the first process can directly call the adjusted application picture from the second process to execute the picture loading time, whereas in the existing application starting method shown in fig. 6, the picture loading event is executed in sequence, and the resource loading time is long. It can be seen that the application starting method shown in fig. 7 and 8 can avoid the application starting time increased by the adjustment of the application picture in the picture loading event, and achieve the effect of optimizing the application starting speed.
As shown in fig. 9, an embodiment of the present invention provides an application starting apparatus 90, which includes, but is not limited to, the following functional modules:
the application starting instruction detection module 91 is configured to invoke a first process to detect a picture loading event in response to an application starting instruction;
the application picture adjusting module 92 is configured to, when the first process detects a picture loading event, obtain a display effect difference between an application and a terminal, and invoke the second process to adjust an application picture to be loaded in the picture loading event according to the display effect difference, so that the adjusted application picture is matched with the terminal;
and the picture loading module 93 is configured to invoke the first process to obtain the adjusted application picture from the second process, so as to execute the picture loading event according to the adjusted application picture.
In the embodiment of the invention, the second process is called through the application picture adjusting module, after the picture loading event is detected by the first process, the first process immediately adjusts the application picture to be loaded in the picture loading event according to the display effect difference between the application and the terminal, and the second process is called to adjust the application picture to be loaded in the picture loading event according to the display effect difference, so that the first process can directly acquire the adjusted application picture from the second process.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the foregoing embodiments illustrate the present invention in detail, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. An application startup method, comprising:
responding to an application starting instruction, calling a first process to detect whether a picture loading event exists in the process called when the application is started;
when the first process detects that a picture loading event exists in a process called when the application is started, acquiring a display effect difference between the application and a terminal, and calling a second process to enable the second process to adjust an application picture to be loaded in the picture loading event according to the display effect difference so as to enable the adjusted application picture to be matched with the terminal;
and calling the first process to acquire the adjusted application picture from the second process, so that when the first process executes the picture loading event, the first process executes the picture loading event according to the adjusted application picture.
2. The application startup method according to claim 1, wherein the display effect difference includes a size display difference;
when the first process detects that a picture loading event exists in a process called when the application is started, acquiring a display effect difference between the application and a terminal, wherein the display effect difference comprises the following steps:
acquiring the current screen size of the terminal;
acquiring an application picture to be loaded in the picture loading event and a size mark of the application picture;
and calculating a size display difference value according to the screen size and the size mark.
3. The application startup method according to claim 1, wherein the display effect difference includes a screen density difference;
when the first process detects that a picture loading event exists in a process called when the application is started, obtaining a display effect difference between the application and a terminal, and further comprising:
acquiring the current screen density of the terminal;
acquiring an application picture to be loaded in the picture loading event and a resolution mark of the application picture;
and calculating a screen density difference value according to the screen density and the resolution mark.
4. The application starting method according to any one of claims 2 or 3, wherein the invoking of the second process to enable the second process to adjust the application picture to be loaded in the picture loading event according to the display effect difference to enable the adjusted application picture to be matched with the terminal comprises:
when the size display difference value is not 0, cutting the application picture to be loaded in the picture loading event so as to enable the size of the cut application picture to be matched with that of the terminal;
when the size display difference value is 0, the size of the cut application picture is the same as that of the original application picture;
or
When the screen density difference value is not 0, reshaping the resolution of the application picture to be loaded in the picture loading event so as to enable the size of the application picture after reshaping to be matched with the terminal;
and when the screen density difference value is 0, the remolded application picture has the same resolution as the original application picture.
5. The application starting method according to claim 1, wherein invoking the first process to obtain the adjusted application picture from the second process, so that when the first process executes the picture loading event, after the first process executes the picture loading event according to the adjusted application picture, the method comprises:
and storing the adjusted application picture.
6. The application starting method according to claim 1, wherein before the first process detects that there is a picture loading event in the process called when the application is started, the method further comprises:
detecting whether an application picture to be loaded in the picture loading event is stored in a database;
if the application picture is not stored in the database, when the first process detects that a picture loading event exists in a process called when the application is started, obtaining a display effect difference between the application and a terminal, and calling a second process to enable the second process to adjust the application picture to be loaded in the picture loading event according to the display effect difference;
if the application picture is stored in the database, when the first process detects that a picture loading event exists in a process called when the application is started, obtaining the application picture to be loaded in the picture loading event in the database.
7. The application starting method according to claim 6, wherein before detecting whether the application picture to be loaded in the picture loading event is stored in the database, the method further comprises:
detecting latest version information of an application and version information of the application picture;
if the version information of the application picture is lower than the application version information, calling a first starting program to update the application, acquiring the display effect difference between the updated application and the terminal, and calling the second process so that the second process adjusts the application picture to be loaded in the picture loading event according to the display effect difference;
and if the version information of the application picture is the same as the application version information, detecting whether the application picture to be loaded in the picture loading event is stored in a database.
8. An application startup device, characterized by comprising:
the application starting instruction detection module is used for responding to an application starting instruction, calling a first process and detecting whether a picture loading event exists in the called process when the application is started;
the application picture adjusting module is used for acquiring the display effect difference between the application and the terminal when the first process detects that a picture loading event exists in the process called when the application is started, and calling a second process so as to enable the second process to adjust the application picture to be loaded in the picture loading event according to the display effect difference, so that the adjusted application picture is matched with the terminal;
and the picture loading module is used for calling the first process to acquire the adjusted application picture from the second process, so that when the first process executes the picture loading event, the first process executes the picture loading event according to the adjusted application picture.
9. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the application launching method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A storage medium being a computer readable storage medium having a computer program stored thereon, wherein the computer program, when being executed by a processor, performs the steps of the application launching method as claimed in any one of the claims 1 to 7.
CN201911139461.6A 2019-11-20 2019-11-20 Application starting method and device, terminal equipment and storage medium Active CN112825538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911139461.6A CN112825538B (en) 2019-11-20 2019-11-20 Application starting method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911139461.6A CN112825538B (en) 2019-11-20 2019-11-20 Application starting method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112825538A CN112825538A (en) 2021-05-21
CN112825538B true CN112825538B (en) 2022-04-12

Family

ID=75906777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911139461.6A Active CN112825538B (en) 2019-11-20 2019-11-20 Application starting method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112825538B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639787A (en) * 2009-09-07 2010-02-03 中兴通讯股份有限公司 Method and device for starting application program
CN104699498A (en) * 2014-12-10 2015-06-10 上海斐讯数据通信技术有限公司 Android platform based optimization method for asynchronously loading picture through list control
CN108549562A (en) * 2018-03-16 2018-09-18 阿里巴巴集团控股有限公司 A kind of method and device of image load
CN108572965A (en) * 2017-03-08 2018-09-25 阿里巴巴集团控股有限公司 A kind of resource loading method and device
WO2019205191A1 (en) * 2018-04-25 2019-10-31 网宿科技股份有限公司 Webpage loading method, webpage loading system, and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069662A1 (en) * 2004-09-30 2006-03-30 Citrix Systems, Inc. Method and apparatus for remapping accesses to virtual system resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639787A (en) * 2009-09-07 2010-02-03 中兴通讯股份有限公司 Method and device for starting application program
CN104699498A (en) * 2014-12-10 2015-06-10 上海斐讯数据通信技术有限公司 Android platform based optimization method for asynchronously loading picture through list control
CN108572965A (en) * 2017-03-08 2018-09-25 阿里巴巴集团控股有限公司 A kind of resource loading method and device
CN108549562A (en) * 2018-03-16 2018-09-18 阿里巴巴集团控股有限公司 A kind of method and device of image load
WO2019205191A1 (en) * 2018-04-25 2019-10-31 网宿科技股份有限公司 Webpage loading method, webpage loading system, and server

Also Published As

Publication number Publication date
CN112825538A (en) 2021-05-21

Similar Documents

Publication Publication Date Title
US10659587B2 (en) Incoming call management method and apparatus
JP6526919B2 (en) Method, apparatus and mobile terminal for screen mirroring
US9008633B2 (en) Methods to determine availability of user based on mobile phone status
CN106406940B (en) System upgrading method, device and terminal
US20200278775A1 (en) Managing a Plurality of Free Windows in Drop-Down Menu of Notification Bar
WO2015090178A1 (en) Web page loading methods and devices implementing the same
CN111240768A (en) Configuration parameter configuration method and device and computer storage medium
US11109224B2 (en) Method for determining access method of mobile terminal, storage medium, and mobile terminal
EP3553663A1 (en) Message reminding method for terminal, and terminal
CN107948055B (en) Method, apparatus and computer readable storage medium for masking messages sent by group members
CN104898961A (en) Application rapid starting method and apparatus
CN104735255A (en) Split screen display method and system
CN107871015B (en) Log data processing method and device, terminal and readable storage medium
CN111107518A (en) Display method, vehicle-mounted terminal, display system and computer-readable storage medium
CN106254791A (en) The startup method of photographic head and mobile terminal
US9413399B2 (en) Mobile wireless communications device providing enhanced interference mitigation from wireline transmitter and related methods
CN112997471B (en) Audio channel switching method and device, readable storage medium and electronic equipment
CN105204891B (en) Downloading method and device for shutdown of mobile terminal and mobile terminal
US20130181886A1 (en) Wireless communication system for transmitting hyperlink associated with secondary resource and related methods
CN112330564B (en) Image processing method, device, electronic equipment and readable storage medium
KR102155555B1 (en) Method for providing a hearing aid compatibility and an electronic device thereof
CN112825538B (en) Application starting method and device, terminal equipment and storage medium
JP6141352B2 (en) Electronic equipment and control program
CN112363988A (en) File sharing method, mobile terminal and storage medium
CN107071750B (en) Information transmission method and device, terminal equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant