CN109697088A - Application interface loading method, mobile terminal and computer readable storage medium - Google Patents

Application interface loading method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN109697088A
CN109697088A CN201811409870.9A CN201811409870A CN109697088A CN 109697088 A CN109697088 A CN 109697088A CN 201811409870 A CN201811409870 A CN 201811409870A CN 109697088 A CN109697088 A CN 109697088A
Authority
CN
China
Prior art keywords
interface
activity
data
application program
interface data
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
CN201811409870.9A
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 CN201811409870.9A priority Critical patent/CN109697088A/en
Publication of CN109697088A publication Critical patent/CN109697088A/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/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of application interface loading methods, mobile terminal and computer readable storage medium, by after terminal has detected new process initiation, determine the current display interface of the application program, the interface data of next stage display interface is loaded according to the content of current display interface, and after getting touch control operation, the interface data that the junior's display interface being loaded previously into is transferred according to the identification information of touch control operation and application program is shown, by way of pre-loaded transfer, substantially reduce the time delay duration that existing primary triggering once loads, to improve the starting speed at next interface, also improve the usage experience of user.

Description

Application interface loading method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to field of terminal technology, more specifically to a kind of application interface loading method, mobile terminal and Computer readable storage medium.
Background technique
With the development of intelligent terminal, the function of intelligent terminal is stronger and stronger, performance requirement of the user to intelligent terminal Also higher and higher.The performance of intelligent terminal can be embodied in many aspects, most outstanding to be to install application on intelligent terminal Operation on, for example, the frame per second refreshed using application interface when application, loading velocity etc. when starting application, at For measure intelligent terminal performance importance, and at present for end application data load and display interface switching During load is realized, when being all based on each triggering starting Activity of user currently, terminal just goes triggering to load corresponding number According to type, regenerates example and be shown in interface, and the load of this mode is more and more with terminal function and application, In the case where a large amount of occupied terminal spaces and memory, final load can be made to be delayed larger, card machine occur so as to cause terminal The phenomenon that, so that the usage experience of user is extremely bad.
Summary of the invention
The technical problem to be solved in the present invention is that: cause to show for the mode of existing starting Activity load data Show that delay is excessive, the problem of terminal card machine occur and influence the usage experience of user, for the technical problem, provides a kind of application Interface loading method, mobile terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of application interface loading method, which comprises
It detects terminal to increase with the presence or absence of new process, the new process is the starting of application program;
If it exists, then the current display interface of the application program of the new process is obtained;
Its junior's display interface is determined according to the current display interface, and loads the interface number of junior's display interface According to the interface data includes user's switching activity Activity and display data;
Obtain touch control operation of the user in the current display interface of the application program;
Corresponding junior's display interface is transferred according to the identification information of the touch control operation and the application program Interface data shown.
Optionally, the detection terminal includes: with the presence or absence of new process increase
Whether there is new process to increase in process list by detecting the terminal;
If it exists, it is determined that whether the new process is currently to show the application program used for the terminal.
Optionally, described that its junior's display interface is determined according to the current display interface, and load the junior and show The data at interface include:
Detect the Activity in the current display interface with junior's display interface;
Its corresponding interface data is preloaded according to the Activity.
Optionally, after preloading its corresponding interface data according to the Activity, further includes:
Obtain the identification information of the application program, the identification information include the packet name of application program, application program ID, At least one of Activity mark;
The corresponding relationship between the identification information and interface data is established, an interface data cache list is generated.
Optionally, described according to the touch control operation and the application if the identification information is application program ID The interface data that the identification information of program transfers corresponding junior's display interface carries out display
Determine the Activity mark of the corresponding Activity of the touch control operation;
It is inquired from the interface data cache list according to the application program ID corresponding with Activity mark Interface data;
The display of the current display interface is replaced according to the interface data.
Optionally, it is described inquired from the interface data cache list according to the application program ID with it is described Activity identifies corresponding interface data
Corresponding interface data cache list is determined according to the application program ID;
It inquires in the interface data cache list with the presence or absence of interface data corresponding with Activity mark;
If it exists, then corresponding interface data directly is loaded from the interface data cache list;
If it does not exist, then corresponding interface data is regenerated according to the Activity.
Optionally, the corresponding relationship established between the identification information and interface data generates an interface data Cache list, further includes:
Based on the idle computing resources of the terminal, start at least one thread, the institute that the Activity is preloaded State the global resource cache pool that the interface data in interface data cache list is loaded onto the terminal.
Optionally, the identification information according to the touch control operation and the application program is transferred corresponding described The interface data of junior's display interface carries out display
Determine the Activity mark of the corresponding Activity of the touch control operation;
It is inquired from the global resource cache pool according to the application program ID corresponding with Activity mark Interface data;
The display of the current display interface is replaced according to the interface data.
Further, the present invention also provides a kind of mobile terminal, the mobile terminal includes reason device, memory and communication Bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize such as any one of aforementioned institute The step of application interface loading method stated.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of described in any item application interface loading methods as describe above.
Beneficial effects of the present invention:
The present invention provides a kind of application interface loading method, mobile terminal and computer readable storage medium, is directed to mesh The defect of preceding data load, the present invention provides a kind of schemes by pre-loaded interface data to realize shortening time delay, Specifically after terminal has detected new process initiation, the current display interface of the application program is determined, according to current display circle The interface data of the content load next stage display interface in face, and after getting touch control operation, according to touch control operation and application The interface data that the identification information of program transfers the junior's display interface being loaded previously into is shown, is transferred by pre-loaded Mode, substantially reduce it is existing it is primary trigger the time delay duration that once loads, to improve the starting speed at next interface Degree, also improves the usage experience of user.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the application interface loading method basic flow chart that first embodiment of the invention provides;
Fig. 3 is the refined flow chart for the application interface loading method that second embodiment of the invention provides;
Fig. 4 is the display figure of main interface provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram for the mobile terminal that third embodiment of the invention provides.
Specific embodiment
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, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic 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, the mobile terminal structure figure in Fig. 1 are that the present invention is implemented One of example structure can suitably increase or decrease some modules in practical applications.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
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 wireless communication.Any communication can be used in above-mentioned wireless 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 provides wireless broadband internet access for user.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 omit within the scope of not changing the essence of the 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, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 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 in image capture mode by image capture apparatus (such as camera) 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 where telephone calling model. Microphone 1042 can be implemented 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, it can detect that size and the direction of gravity 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 can 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 setting 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 the touch operation of user on it or nearby (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 stick etc. It is one or more, specifically herein without limitation.
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 the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it 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 transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area 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, it 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 Managing 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.
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the method for the present invention is proposed.
First embodiment
Application interface loading method provided in an embodiment of the present invention is suitable for various mobile terminals, including PC, mobile phone, flat The terminals such as plate, notebook, user's switching activity (Activity) are a kind of standard components of Android platform.Actually one Activity is exactly a single screen in applying, it is inherited from Activity multimedia resource, it will show by Views The UI (UserInterface, user interface) and response events of composition.
It will be appreciated by those skilled in the art that the life cycle of an application Activity includes: starting one When Activity, after the constructed fuction of Activity () is finished, system calls onCreate () method, is arranged herein Then the global state and resource of Activity calls onStart () method, is finished in this method, Activity exists It is visible in screen.The onResume () method of execution, this when waiting window thing of the Activity in loop circulation Part.When window portion is visible, that is to say, that Activity is not onFreeze () method of Activity at front end Called, this method saves some internal states of Activity.Then window suspends, before Activity is appeared in most again The onResume () method at end, activity is called.If Activity window is invisible, illustrate Activity's OnStop () method is called, and when covering the close of Activity, onRestart () method of activity is opened Begin to call, then repeatedly onStart () method.When system Resource recovery or Activity are called finish () method, Activity stops, the resource for calling onDestroy () release Activity to possess.
Fig. 2 is a kind of flow chart of the application interface loading method provided according to an exemplary embodiment, and this method includes With step:
S201, detection terminal increase with the presence or absence of new process.
In this step, it can specifically be accomplished by the following way:
Whether there is new process to increase in process list by detecting the terminal, the new process is opening for application program It is dynamic;
If it exists, it is determined that whether the new process is currently to show the application program used for the terminal.
Specifically, by detection terminal on process list in whether have letter process increase, be detection terminal on whether There is new application program to be activated either initial start-up, and if it exists, to then follow the steps S202, otherwise continue to execute step S201, until having detected new opplication starting.
In practical applications, new process here is also understood that as another situation, is the boundary that terminal is currently shown Whether application interface shown by face and the application interface of last display consistent, if unanimously, it is also assumed that be have newly into Cheng Zengjia;It, specifically can be according to practical feelings as the replacement difference or the starting of application program itself for being on earth selection interface Condition is configured.
S202, and if it exists, then obtain the current display interface of the application program of the new process.
S203 determines its junior's display interface according to the current display interface, and loads junior's display interface Interface data.
In this step, the interface data include user's switching activity Activity and display data, specifically include with Lower realization step:
Detect the Activity in the current display interface with junior's display interface;
Its corresponding interface data is preloaded according to the Activity.
In other words, when determining junior's display interface according to current display interface, current display interface is specifically detected In with the presence or absence of there is user's switching activity of junior's display interface, and if it exists, then illustrate that there is current display interface junior to show Interface switches user live respectively after detection identifies user's switching activity Activity all in current display interface It moves corresponding junior's display interface to be preloaded, specifically the display data in load junior's display interface, if aobvious in junior Show in interface there is also when user switching activity Activity, also needs to load Activity when loading interface data.
Further, under load Activity in grade display interface when, can also be to the corresponding junior of Activity The data of display interface are preloaded, described in example specific as follows, if terminal current display interface is aobvious using specific three-level When showing interface, and the main interface (being level-one display interface) that terminal screen is currently shown, and in main interface there are three Activity is Activity1, Activity2, Activity3 and corresponding display data respectively, and master is being determined After three Activity and display data at interface, and application is also in the stage just started, and terminal is automatically pre- by automatic trigger Load the corresponding second level display interface of three Activity;And when user switches to second level display interface, by switching touch-control Operation, the data that terminal calls directly preloading carry out display switching.
In practical applications, it is also possible that in main interface, while loading second level display interface, second level is also identified Whether there is also the Activity of three-level display interface on display interface, and if it exists, then loads the number of three-level display interface simultaneously According to, but since main interface is currently shown, and the data at three-level interface not can determine that, it is therefore preferable that can be selection Feature fixed in interface is preloaded, as the part of variation, is carrying out pre-add after terminal switches to second level display interface It carries.
S204 obtains touch control operation of the user in the current display interface of the application program.
In the present embodiment, touch control operation here is understood as user in current display interface on interface The operation such as click, sliding of Activity is the display switching command for obtaining user on terminal touching display screen.
It is aobvious to transfer the corresponding junior according to the identification information of the touch control operation and the application program by S205 Show that the interface data at interface is shown.
In the present embodiment, after preloading its corresponding interface data according to the Activity, further includes:
Obtain the identification information of the application program;
The corresponding relationship between the identification information and interface data is established, an interface data cache list is generated.
Specifically, the identification information include the packet name of application program, application program ID, Activity mark at least It is a kind of.
In practical applications, interface data can be using the corresponding cache list of an application program, and delays Deposit the corresponding display interface of each Activity in the display interface for being stored with pre-loaded good application in list, caching column The data that the display interface of Activity at the same level can be only stored in table, are also possible to display circle of Activity not at the same level The data in face.
Further, it can also be the data of the display interface of the Activity of the application program of all startings of terminal It is stored in a cache list, is distinguished by application program ID and Activity mark.
In the present embodiment, described according to the touch control operation, Yi Jisuo if the identification information is application program ID State application program identification information transfer corresponding junior's display interface interface data carry out display include:
Determine the Activity mark of the corresponding Activity of the touch control operation;
It is inquired from the interface data cache list according to the application program ID corresponding with Activity mark Interface data;
The display of the current display interface is replaced according to the interface data.
In the present embodiment, have for inquiry acquisition with the Activity mode for identifying corresponding interface data following Several, one is can directly inquire from cache list;Two kinds are obtained from the caching resource pond of terminal;Three kinds be One and two kind in when all cannot get preloading data, obtained by the way of existing ready-made load.
It is specifically for a kind of acquisition modes: corresponding interface data caching column is determined according to the application program ID Table;
It inquires in the interface data cache list with the presence or absence of interface data corresponding with Activity mark;
If it exists, then corresponding interface data directly is loaded from the interface data cache list.
Acquisition modes for two kinds are specifically:
In the corresponding relationship established between the identification information and interface data, an interface data cache list is generated In step further include:
Based on the idle computing resources of the terminal, start at least one thread, the institute that the Activity is preloaded State the global resource cache pool that the interface data in interface data cache list is loaded onto the terminal.
The identification information according to the touch control operation and the application program is transferred the corresponding junior and is shown The interface data at interface carries out display
Determine the Activity mark of the corresponding Activity of the touch control operation;
It is inquired from the global resource cache pool according to the application program ID corresponding with Activity mark Interface data;
The display of the current display interface is replaced according to the interface data.
Acquisition modes for three kinds are specifically:
According to application program ID when a kind of or two kinds are all inquired less than corresponding interface data is identified with Activity, then Corresponding interface data is regenerated according to the Activity.
In practical applications, the mode for two kinds, that is in addition to preload junior's display interface data while The operation resource to occupied terminal is also needed to calculate, by reading the preloading data of the Activity from list, It is based on terminal current idle computing resource according to data, starts at least one thread, by the preloading data of the Activity The operation of multimedia resource is carried out, and is loaded onto the global resource cache pool.Wherein, the Activity includes at least one The multimedia resource that the Activity is used in the process of running, that is to say can also be the current aobvious of application program Show that the corresponding interface data of all Activity on interface all carries out calculating multimedia resource load, and caches to global resource In cache pool.
Application interface record method provided in this embodiment is determined through this after terminal has detected new process initiation The current display interface of the application program loads the interface data of next stage display interface according to the content of current display interface, And after getting touch control operation, the junior being loaded previously into is transferred according to the identification information of touch control operation and application program and is shown The interface data at interface is shown, by way of pre-loaded transfer, is passed to the interface data by cache list and is answered With using, to accelerate overall execution speed, the time of required consumption when real these interface datas of load is saved, has been improved The speed of service of application.
Second embodiment
Fig. 3 is the application interface loading method refined flow chart that second embodiment of the invention provides, and the present embodiment combines tool The scene of body is described in detail application interface loading method of the invention, below using current display interface as main interface, together When pre-loaded interface there was only secondary interface for method provided by the invention is described further, be to detect Using the main Activity class of secondary interface is preloaded after starting, can be skipped when secondary interface Activity on startup The loading procedure of Activity class, to improve the starting speed of Activity, it is specific method includes the following steps:
S301, the application that detection terminal is currently up.
S302 finds out and can star predominant secondary interface A ctivity using main interface.
Specifically as shown in figure 4, in the display of main interface, there are three Activity with secondary interface.
S303, after main interface starting display, thread is opened on backstage, removes the predominant secondary in load 1 by packet name, class name Interface A ctivity class, and cache.
In this step, also according to the mark of the face Activity on the packet name of application, ID and interface while caching Etc. information establish corresponding relationship, and form a list.
S304 starts the interface second level Activity in application main interface.
It is to receive the operations such as click of the user in main interface.
S305, by the packet name, class name is matched, and is obtained corresponding data cached.
In this step, by packet name list of matches, if there is the Activity class loaded in caching, just directly Example is generated with this Activity class and goes load data display interface, otherwise, walks normal Activity load procedure Procedure, this In normal flow refer to it is existing by Activity triggering just progress real time data load treatment process.
S306 shows the interface second level Activity.
The loaded and displayed that application interface is carried out by above-mentioned mode, due to carrying out data before getting touch control operation Preloading caching, after user's trigger action, transferred and be loaded previously into according to the identification information of touch control operation and application program The interface data of junior's display interface shown, by way of pre-loaded transfer, substantially reduce existing primary It triggers the time delay duration once loaded and also improves the usage experience of user to improve the starting speed at next interface.
3rd embodiment
Referring to FIG. 5, Fig. 5 is a kind of structural schematic diagram for mobile terminal that third embodiment of the invention provides, the movement Terminal includes: processor 41, memory 42 and communication bus 43, and the communication between processor 41 and memory 42 passes through described logical Believe that bus 43 is realized.
Processor 41 usually controls the overall operation of the server belonging to itself.For example, processor 41 execute calculate and really The operation such as recognize.Wherein, processor 41 can be central processing unit (CPU).In the present embodiment, processor 41 at least needs to have Such function:
Terminal is detected to increase with the presence or absence of new process;If it exists, then the current aobvious of the application program of the new process is obtained Show interface;Its junior's display interface is determined according to the current display interface, and loads the interface number of junior's display interface According to the interface data includes user's switching activity Activity and display data;Obtain user's working as in the application program Touch control operation on preceding display interface;It is transferred according to the identification information of the touch control operation and the application program corresponding The interface data of junior's display interface is shown.
In the present embodiment, the new process is the starting of application program, is whether to have new application in detection terminal Program is activated either initial start-up;Further, it can also be application interface shown by interface that terminal is currently shown Whether the application interface of display is consistent with the last time, if unanimously, it is also assumed that being to there is new process to increase.
In practical applications, for whether being that the application newly started can specifically be realized by following steps:
Whether there is new process to increase in process list by detecting the terminal;
If it exists, it is determined that whether the new process is currently to show the application program used for the terminal.
If so, determining using interface currently displayed at the terminal, the Activity in interface is specifically determined, it should Activity refers to the Activity with junior's display interface, specific:
Detect the Activity in the current display interface with junior's display interface;
Its corresponding interface data is preloaded according to the Activity.
Further, after preloading its corresponding interface data according to the Activity, further includes:
Obtain the identification information of the application program, the identification information include the packet name of application program, application program ID, At least one of Activity mark;
The corresponding relationship between the identification information and interface data is established, an interface data cache list is generated.
It is described according to the touch control operation and the application program if the identification information is application program ID The interface data that identification information transfers corresponding junior's display interface carries out display
Determine the Activity mark of the corresponding Activity of the touch control operation;
It is inquired from the interface data cache list according to the application program ID corresponding with Activity mark Interface data;
The display of the current display interface is replaced according to the interface data.
Described inquired from the interface data cache list according to the application program ID identifies with the Activity Corresponding interface data includes:
Corresponding interface data cache list is determined according to the application program ID;
It inquires in the interface data cache list with the presence or absence of interface data corresponding with Activity mark;
If it exists, then corresponding interface data directly is loaded from the interface data cache list;
If it does not exist, then corresponding interface data is regenerated according to the Activity.
In practical applications, the above-mentioned processing step realized for processor 41 can specifically be realized by setting and be corresponded to The software code of function realizes, optionally, software generation that 42 storage processor of memory is 41 readable, processor 41 is executable Code, it includes the instructions (i.e. software execution function) that function described above is executed for control processor 41.In the present embodiment In, memory 42, which at least needs to be stored with, realizes that processor 41 executes the current display that the program that above-mentioned function needs realizes terminal The acquisition of the corresponding application program in interface and interface, user touch control operation at the terminal, position of touch etc. information.
Memory 42, generally uses semiconductor memory cell, including random access memory (RAM), read-only memory (ROM), And cache (CACHE), RAM are most important one memories.Memory 42 is one of the ost important components in computer, It is the bridge linked up with CPU, and the operation of all programs all carries out in memory in computer, and effect is to be used for The temporarily operational data in storage CPU, and the data exchanged with external memories such as hard disks, as long as computer is in operation, CPU will be transferred to the data for needing operation in memory and carry out operation, and CPU again sends out result after the completion of operation, interior The operation deposited also determines the stable operation of computer.
It further include sensor 44 in mobile terminal provided in this embodiment, and the sensor 44 is mainly used for induction and uses The touch control operation of family on mobile terminals specifically can be click, and sliding, gesture etc., which has detected touch-control After operation, processor 41 obtains corresponding Activity on position of touch, obtains corresponding identification information and corresponding application Program ID determines the specific data of junior's display interface according to application program ID and identification information.
In the present embodiment, in order to further increase the operation loading velocity of terminal, the present embodiment is described in the foundation Corresponding relationship between identification information and interface data, when generating an interface data cache list, further includes:
Based on the idle computing resources of the terminal, start at least one thread, the institute that the Activity is preloaded State the global resource cache pool that the interface data in interface data cache list is loaded onto the terminal.
It is also to need the operation resource to occupied terminal to count while preloading the data of junior's display interface It calculates, by reading the preloading data of the Activity from list, is based on terminal current idle computing resource according to data, Start at least one thread, the preloading data of the Activity is carried out to the operation of multimedia resource, and is loaded onto described Global resource cache pool.Wherein, the Activity includes that at least one described Activity is used in the process of running Multimedia resource, that is to say the corresponding interface all Activity that can also be in the current display interface by application program Data all carry out calculating multimedia resource load, and cache into global resource cache pool.
At this moment, the identification information according to the touch control operation and the application program transfer it is corresponding it is described under The interface data of grade display interface carries out display
Determine the Activity mark of the corresponding Activity of the touch control operation;
It is inquired from the global resource cache pool according to the application program ID corresponding with Activity mark Interface data;
The display of the current display interface is replaced according to the interface data.
Through this after terminal has detected new process initiation, the current display interface of the application program is determined, according to working as The interface data of the content load next stage display interface of preceding display interface, and after getting touch control operation, it is grasped according to touch-control The interface data for making to transfer the junior's display interface being loaded previously into the identification information of application program is shown, by preparatory The mode transferred is loaded, is passed to the interface data using saving to accelerate overall execution speed by cache list The about real time for loading required consumption when these interface datas, improve the speed of service of application.
The present embodiment additionally provides a kind of computer readable storage medium, and the computer-readable recording medium storage has one A or multiple programs, one or more of programs can be executed by one or more processor, to perform the steps of
It detects terminal to increase with the presence or absence of new process, the new process is the starting of application program;
If it exists, then the current display interface of the application program of the new process is obtained;
Its junior's display interface is determined according to the current display interface, and loads the interface number of junior's display interface According to the interface data includes user's switching activity Activity and display data;
Obtain touch control operation of the user in the current display interface of the application program;
Corresponding junior's display interface is transferred according to the identification information of the touch control operation and the application program Interface data shown.
In conclusion application interface loading method, mobile terminal and computer readable storage medium provided by the invention, needle For the defect of current data load, the present invention provides a kind of schemes by pre-loaded interface data to shorten to realize Time delay determines the current display interface of the application program specifically after terminal has detected new process initiation, according to current aobvious The interface data for showing the content load next stage display interface at interface, and after getting touch control operation, according to touch control operation and The interface data that the identification information of application program transfers the junior's display interface being loaded previously into is shown, by pre-loaded The mode transferred substantially reduces the time delay duration that existing primary triggering once loads, to improve opening for next interface Dynamic speed, also improves the usage experience of user.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include 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 being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a 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 to 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 interface loading method, which is characterized in that the described method includes:
It detects terminal to increase with the presence or absence of new process, the new process is the starting of application program;
If it exists, then the current display interface of the application program of the new process is obtained;
Its junior's display interface is determined according to the current display interface, and loads the interface data of junior's display interface, The interface data includes user's switching activity Activity and display data;
Obtain touch control operation of the user in the current display interface of the application program;
The boundary of corresponding junior's display interface is transferred according to the identification information of the touch control operation and the application program Face data is shown.
2. application interface loading method according to claim 1, which is characterized in that the detection terminal with the presence or absence of newly into Cheng Zengjia includes:
Whether there is new process to increase in process list by detecting the terminal;
If it exists, it is determined that whether the new process is currently to show the application program used for the terminal.
3. application interface loading method according to claim 1, which is characterized in that described according to the current display interface Determine its junior's display interface, and the data for loading junior's display interface include:
Detect the Activity in the current display interface with junior's display interface;
Its corresponding interface data is preloaded according to the Activity.
4. application interface loading method according to claim 3, which is characterized in that preloaded according to the Activity After its corresponding interface data, further includes:
Obtain the identification information of the application program, the identification information include the packet name of application program, application program ID, At least one of Activity mark;
The corresponding relationship between the identification information and interface data is established, an interface data cache list is generated.
5. application interface loading method according to claim 4, which is characterized in that if the identification information is application program When ID, the identification information according to the touch control operation and the application program transfers the corresponding junior and shows boundary The interface data in face carries out display
Determine the Activity mark of the corresponding Activity of the touch control operation;
Boundary corresponding with Activity mark is inquired from the interface data cache list according to the application program ID Face data;
The display of the current display interface is replaced according to the interface data.
6. application interface loading method according to claim 6, which is characterized in that it is described according to the application program ID from Interface data corresponding with Activity mark is inquired in the interface data cache list includes:
Corresponding interface data cache list is determined according to the application program ID;
It inquires in the interface data cache list with the presence or absence of interface data corresponding with Activity mark;
If it exists, then corresponding interface data directly is loaded from the interface data cache list;
If it does not exist, then corresponding interface data is regenerated according to the Activity.
7. application interface loading method according to claim 4, which is characterized in that described to establish the identification information and boundary Corresponding relationship between face data generates an interface data cache list, further includes:
Based on the idle computing resources of the terminal, start at least one thread, the boundary that the Activity is preloaded Interface data in face data cache list is loaded onto the global resource cache pool of the terminal.
8. application interface loading method according to claim 7, which is characterized in that it is described according to the touch control operation, with And the identification information of the application program transfer corresponding junior's display interface interface data carry out display include:
Determine the Activity mark of the corresponding Activity of the touch control operation;
Interface corresponding with Activity mark is inquired from the global resource cache pool according to the application program ID Data;
The display of the current display interface is replaced according to the interface data.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between the processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of application interface loading method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in application interface loading method the step of.
CN201811409870.9A 2018-11-23 2018-11-23 Application interface loading method, mobile terminal and computer readable storage medium Pending CN109697088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811409870.9A CN109697088A (en) 2018-11-23 2018-11-23 Application interface loading method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811409870.9A CN109697088A (en) 2018-11-23 2018-11-23 Application interface loading method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109697088A true CN109697088A (en) 2019-04-30

Family

ID=66230164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811409870.9A Pending CN109697088A (en) 2018-11-23 2018-11-23 Application interface loading method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109697088A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258694A (en) * 2020-01-15 2020-06-09 广州虎牙科技有限公司 Interface loading method and device, user side and storage medium
CN111947680A (en) * 2020-09-22 2020-11-17 北京百度网讯科技有限公司 Method, device, equipment and storage medium for displaying data
CN112351321A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Remote control response method, electronic equipment and computer readable storage medium
WO2021114357A1 (en) * 2019-12-11 2021-06-17 惠州Tcl移动通信有限公司 Application program optimization method, apparatus, storage medium, and electronic device
CN113221052A (en) * 2021-05-27 2021-08-06 网易传媒科技(北京)有限公司 Data prefetching method and device, electronic equipment and storage medium
CN113971057A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Page component information caching method, device, equipment and storage medium
CN114092167A (en) * 2020-08-10 2022-02-25 北京京东尚科信息技术有限公司 Interface display method and device
WO2022206709A1 (en) * 2021-03-30 2022-10-06 华为技术有限公司 Component loading method for application and related apparatus
WO2023016205A1 (en) * 2021-08-11 2023-02-16 Tcl通讯(宁波)有限公司 Application initialization display method and device, intelligent terminal, and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179717A (en) * 2007-12-04 2008-05-14 深圳市茁壮网络技术有限公司 Method of implementing OC application
CN101207806A (en) * 2007-12-04 2008-06-25 深圳市茁壮网络技术有限公司 Method for implementing OC application
CN101990128A (en) * 2010-10-15 2011-03-23 深圳市同洲电子股份有限公司 Object carousel method and device as well as object carousel downloading method and device
CN102595190A (en) * 2012-02-17 2012-07-18 四川长虹电器股份有限公司 Quick starting method of downloaded applications of digital television
CN107450928A (en) * 2017-08-02 2017-12-08 四川长虹电器股份有限公司 A kind of mixed developing method based on caching technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179717A (en) * 2007-12-04 2008-05-14 深圳市茁壮网络技术有限公司 Method of implementing OC application
CN101207806A (en) * 2007-12-04 2008-06-25 深圳市茁壮网络技术有限公司 Method for implementing OC application
CN101990128A (en) * 2010-10-15 2011-03-23 深圳市同洲电子股份有限公司 Object carousel method and device as well as object carousel downloading method and device
CN102595190A (en) * 2012-02-17 2012-07-18 四川长虹电器股份有限公司 Quick starting method of downloaded applications of digital television
CN107450928A (en) * 2017-08-02 2017-12-08 四川长虹电器股份有限公司 A kind of mixed developing method based on caching technology

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351321A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Remote control response method, electronic equipment and computer readable storage medium
WO2021114357A1 (en) * 2019-12-11 2021-06-17 惠州Tcl移动通信有限公司 Application program optimization method, apparatus, storage medium, and electronic device
CN111258694A (en) * 2020-01-15 2020-06-09 广州虎牙科技有限公司 Interface loading method and device, user side and storage medium
CN113971057A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Page component information caching method, device, equipment and storage medium
CN114092167A (en) * 2020-08-10 2022-02-25 北京京东尚科信息技术有限公司 Interface display method and device
CN111947680A (en) * 2020-09-22 2020-11-17 北京百度网讯科技有限公司 Method, device, equipment and storage medium for displaying data
CN111947680B (en) * 2020-09-22 2022-08-19 阿波罗智联(北京)科技有限公司 Method, device, equipment and storage medium for displaying data
WO2022206709A1 (en) * 2021-03-30 2022-10-06 华为技术有限公司 Component loading method for application and related apparatus
CN113221052A (en) * 2021-05-27 2021-08-06 网易传媒科技(北京)有限公司 Data prefetching method and device, electronic equipment and storage medium
WO2023016205A1 (en) * 2021-08-11 2023-02-16 Tcl通讯(宁波)有限公司 Application initialization display method and device, intelligent terminal, and readable storage medium

Similar Documents

Publication Publication Date Title
CN109697088A (en) Application interface loading method, mobile terminal and computer readable storage medium
CN109960584A (en) CPU frequency modulation control method, terminal and computer readable storage medium
CN107861817A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread block
CN107967177B (en) Memory optimization method based on core process, mobile terminal and readable storage medium
CN107590057A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN107577332A (en) A kind of power consumption control method, mobile terminal and computer-readable recording medium
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN108073458A (en) Method for recovering internal storage, mobile terminal and computer readable storage medium
CN109101363A (en) Abnormal restoring method, device, smart machine and storage medium based on android system
CN108111676A (en) A kind of application control method and mobile terminal
CN108052390A (en) Memory method for cleaning, mobile terminal and readable storage medium storing program for executing based on thread block
US20150043312A1 (en) Sound playing method and device thereof
CN107704363A (en) Freeze screen monitoring method, mobile terminal and computer-readable recording medium
CN108762814A (en) Bright screen method and relevant device
CN107861826B (en) Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium
CN107239275A (en) Using operation method, terminal and computer-readable recording medium
CN111651030A (en) Sensor detection method and device, storage medium and mobile terminal
CN108052391A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread deadlock
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN107908478A (en) Memory method for cleaning, mobile terminal and computer-readable recording medium
CN110096213A (en) Terminal operation method, mobile terminal and readable storage medium storing program for executing based on gesture
CN108089935B (en) Application program management method and mobile terminal
CN109361807A (en) Information access control method, mobile terminal and computer readable storage medium
CN109814797A (en) Touch-control control method and mobile terminal, computer readable storage medium
CN107341032B (en) Data loading method, mobile terminal and computer readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190430