CN107341032B - Data loading method, mobile terminal and computer readable storage medium - Google Patents

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

Info

Publication number
CN107341032B
CN107341032B CN201710488267.3A CN201710488267A CN107341032B CN 107341032 B CN107341032 B CN 107341032B CN 201710488267 A CN201710488267 A CN 201710488267A CN 107341032 B CN107341032 B CN 107341032B
Authority
CN
China
Prior art keywords
data
internal memory
application
mobile terminal
copy
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
CN201710488267.3A
Other languages
Chinese (zh)
Other versions
CN107341032A (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.)
Guangdong Yuanyuan Technology Co.,Ltd.
Original Assignee
Guangdong Yuanyuan 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 Guangdong Yuanyuan Technology Co ltd filed Critical Guangdong Yuanyuan Technology Co ltd
Priority to CN201710488267.3A priority Critical patent/CN107341032B/en
Publication of CN107341032A publication Critical patent/CN107341032A/en
Application granted granted Critical
Publication of CN107341032B publication Critical patent/CN107341032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation

Abstract

The embodiment of the invention discloses a data loading method, which is applied to a mobile terminal, wherein a plurality of first applications are installed on the mobile terminal, and the method comprises the following steps: obtaining and executing a data pre-storing instruction, accessing an external memory, and copying application data of a plurality of first applications from the external memory; writing copy data of the application data into an internal memory; acquiring and executing a data loading instruction for instructing loading of target data, accessing an internal memory, and acquiring the target data from copy data stored in the internal memory based on identification information of the target data; and loading the target data. Therefore, when the application data needs to be loaded, the application data can be directly read from the internal memory without being acquired from the external storage space corresponding to each application one by one, and the loading speed of the application data is improved. The embodiment of the invention also discloses a mobile terminal and a computer storage medium.

Description

Data loading method, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a data loading method, a mobile terminal, and a computer-readable storage medium.
Background
With the continuous development of internet technologies and electronic devices, mobile terminals have become necessities in daily life of people, and various applications are often installed on current mobile terminals such as smart phones and tablet computers, and different applications correspond to different application icons.
At present, because application data of each application, such as application icons, are dispersedly stored in an external memory, when a mobile terminal needs to load a plurality of application icons, such as during a system desktop startup process, displaying an application management interface, and the like, a processor of the mobile terminal often needs to sequentially obtain the application icons corresponding to the applications from the data corresponding to the applications stored in the external memory, copy the application icons to a memory, and finally load the application icons from the memory to the system desktop and the application management interface. Therefore, the problem that the application data loading speed is low exists in the existing mobile terminal.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data loading method, a mobile terminal and a computer-readable storage medium to solve at least one problem in the prior art, so as to improve the loading speed of application data.
The technical scheme of the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data loading method, which is applied to a mobile terminal, where a plurality of first applications are installed on the mobile terminal, and the method includes: obtaining and executing a data pre-storing instruction, accessing an external memory, and copying application data of the plurality of first applications from the external memory; writing copy data of the application data into an internal memory; obtaining and executing a data loading instruction indicating loading of target data, accessing the internal memory, and acquiring the target data from the copy data stored in the internal memory based on identification information of the target data; and loading the target data.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where a plurality of first applications are installed on the mobile terminal, and the mobile terminal includes: the device comprises an external memory, a processor and an internal memory, wherein the external memory is used for storing application data of the plurality of first applications; the internal memory is used for storing copy data of the application data; the processor is used for obtaining and executing a data pre-storing instruction, accessing the external memory, and copying the application data of the plurality of first applications from the external memory; writing copy data of the application data into an internal memory; obtaining and executing a data loading instruction indicating loading of target data, accessing the internal memory, and acquiring the target data from the copy data stored in the internal memory based on identification information of the target data; and loading the target data.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, which is applied to a mobile terminal, where a plurality of first applications are installed on the mobile terminal, and the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the following steps: obtaining and executing a data pre-storing instruction, accessing an external memory, and copying application data of the plurality of first applications from the external memory; writing copy data of the application data into an internal memory; obtaining and executing a data loading instruction indicating loading of target data, accessing the internal memory, and acquiring the target data from the copy data stored in the internal memory based on identification information of the target data; and loading the target data.
According to the data loading method, the mobile terminal and the computer readable storage medium provided by the embodiment of the invention, after the mobile terminal obtains the data pre-storing instruction, the mobile terminal executes the data pre-storing instruction, then accesses the external memory, copies the application data of the plurality of first applications installed in the mobile terminal from the external memory, obtains the copy data of the application data of the plurality of first applications, and writes the copy data into the internal memory. Then, after the copy data is written into the internal memory, when the mobile terminal obtains a data loading instruction, the mobile terminal can access the internal memory, then read the required target data from the copy data stored in the internal memory based on the identification information of the target data indicated by the data loading instruction, and finally load the target data. In this way, by storing the copy data of the application data of the plurality of first applications in the internal memory in advance, when the plurality of application data need to be loaded, the copy data can be directly read from the internal memory without being acquired from the external storage space corresponding to each application one by one, so that the loading speed of the application data is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2-1 is a flowchart illustrating a data loading method according to a first embodiment of the invention;
FIG. 2-2 is a schematic diagram illustrating storage of application data according to a first embodiment of the present invention;
2-3 are first schematic diagrams of a system display interface according to a first embodiment of the invention;
FIGS. 2-4 are schematic diagrams of a system display interface according to a first embodiment of the invention;
fig. 3 is a schematic flowchart of a data loading method according to a second embodiment of the present invention;
fig. 4 is a schematic flowchart of a data loading method in the third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal in a fourth embodiment of the present invention.
Detailed Description
It should be understood that the embodiments described herein are only for explaining the technical solutions of the present invention, and are not intended to limit the scope of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: a Radio Frequency (RF) unit 101, a Wi-Fi (Wireless-Fidelity) module 102, an audio output unit 103, an audio/video (a/V) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
Wi-Fi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through a Wi-Fi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the Wi-Fi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the Wi-Fi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the Wi-Fi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Various embodiments of the method of the present invention will be presented below based on the above-mentioned mobile terminal hardware structure.
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Example one
Based on the foregoing embodiments, this embodiment provides a data loading method, where an execution subject of the data loading method is a mobile terminal, and a plurality of first applications are installed on the mobile terminal. In practical application, the mobile terminal may be an electronic device with a display function, such as a smart phone and a tablet computer, or may be other electronic devices, and the embodiment of the present invention is not particularly limited.
Here, the first application may be any type of application that can be installed on the mobile terminal. In practical applications, the first application may be an instant messaging application, such as a short message application, a chat application, or a management application, such as an application store and schedule management, or a shopping application, such as a group purchase application, a travel application, or the like, or may be other applications, such as a contact, a calculator, a notepad, a browser, or the like, which is not limited in the embodiment of the present invention.
The functions implemented by the data loading method can be implemented by calling program codes through a processor in the mobile terminal, and the program codes can be stored in a computer storage medium. In practical application, the data loading method can be applied to various occasions where application data need to be loaded, for example, after a user unlocks the mobile terminal, the mobile terminal is triggered to start a system desktop, or when the user wants to unload and update a first application, the mobile terminal is triggered to open and display an application management interface, and the like.
Then, fig. 2-1 is a schematic flow chart of a data loading method in the first embodiment of the present invention, and referring to fig. 2-1, the method includes:
s201: obtaining and executing a data pre-storing instruction, accessing an external memory, and copying application data of a plurality of first applications from the external memory;
here, after the mobile terminal obtains the data pre-storing instruction, the mobile terminal may execute the data pre-storing instruction, then access the external memory, and copy the application data of each first application from the different storage paths corresponding to each first application in the external memory, so that the mobile terminal may obtain the copy data of the application data of the plurality of first applications.
Specifically, the data pre-storage instruction may be directly generated by a user operation, for example, when the user presses a power-on key to enter a power-on mode when the mobile terminal is in a power-off state. Of course, the application may also be generated in other manners, such as when the application is automatically switched to the restart mode after the application is installed, where the embodiment of the present invention is not specifically limited herein.
Further, the timing for generating the data pre-storing instruction may be set by a user according to needs in a user-defined manner, for example, the user presses a preset key to complete a preset operation, or may be preset by a system of the mobile terminal, for example, the timing is automatically generated every 6:00 a day after the mobile terminal is powered on and started every time, and is determined by a person skilled in the art in specific implementation, and the embodiment of the present invention is not limited specifically.
In a specific implementation process, in order to obtain the data pre-storing instruction, before S201, the method may further include: and after the mobile terminal completes the power-on initialization, generating a data pre-storage instruction.
Specifically, in order to copy the application data of each first application from the external memory to the internal memory in advance, so that the required target data can be quickly obtained when the application data needs to be loaded, in general, it may be set that a data pre-storage instruction is generated after the mobile terminal completes the power-on initialization, so that the mobile terminal may start to copy the application data of a plurality of first applications after the mobile terminal completes the power-on initialization.
In practical applications, the external memory may also be referred to as an external memory, which refers to a memory except for an internal memory of the mobile terminal and a cache of the central processing unit, and generally can still store data after power failure. The internal memory may also be referred to as an internal memory, which is called an internal memory for short, and data stored in the internal memory is lost after the power is off.
In a specific implementation process, the number of the application data of each first application may be one, or may be multiple, such as two, three, and the like. The application data may be an application icon corresponding to the first application, or may also be installation information corresponding to the first application, such as an installation date, an application version, and the like, and of course, may also be other data, where the embodiment of the present invention is not specifically limited herein.
For example, assuming that an a application, a B application, and a C application are installed on the mobile terminal, and as shown in fig. 2-2, an a application icon corresponding to the a application is stored in the folder 221 on the storage path 1 of the external memory 220, a B application icon corresponding to the B application is stored in the folder 222 on the storage path 2, and a C application icon corresponding to the C application is stored in the folder 223 on the storage path 3, so that after the mobile terminal obtains the data pre-storage instruction, it sequentially accesses the storage path 1 to copy the a application icon from the folder 221, then accesses the storage path 2 to copy the B application icon from the folder 222, and finally accesses the storage path 3 to copy the C application icon from the folder 223, so that the mobile terminal obtains copy data of the application icons corresponding to the a application, the B application, and the C application, namely a copy of the a application icon 224, a copy of the B application icon 225, and a copy of the C application icon 226.
S202: writing copy data of the application data into an internal memory;
specifically, in order to facilitate fast reading of the application data of the plurality of first applications, after the mobile terminal obtains the copy data of the application data corresponding to each first application from the external memory, the mobile terminal writes the copy data of the application data of the plurality of first applications into the internal memory, so that, in the working process of the mobile terminal, when the mobile terminal needs to read the application data of the first application, only the copy data of the first application stored in the internal memory is read, and the application data of the first application in the external memory is not cached in the internal memory first and then read from the internal memory.
In practical application, in order to facilitate the subsequent quick search of the required copy data from the internal storage, unique identification information may be generated for each copy data, a mapping relationship between the copy data and the identification information may be generated, and then, based on the mapping relationship between the copy data and the identification information, each copy data may be stored in the internal storage.
Illustratively, the identification information of each copy data may be in the format of "package name + id", such as "a application + number 1", "a application + number 2", "B application + number 1", and the like. Here, the package name may be the name of an application, and the id may be the number of data.
In a specific implementation process, in order to obtain multiple copy data simultaneously, S202 may include: and storing the copy data of the application data to the same storage path in the internal memory.
Specifically, in order to achieve fast acquisition when the mobile terminal needs to obtain the duplicate data of different first applications in the duplicate data of the plurality of first applications at a time, the mobile terminal may store all the duplicate data in the same storage path in the internal memory after obtaining the duplicate data of the plurality of first applications. Therefore, the mobile terminal can access the storage path once without accessing a plurality of storage paths no matter the mobile terminal wants to obtain a plurality of copy data at one time.
For example, still referring to fig. 2-2, assuming that the copy data of the a application icon corresponding to the a application obtained by the mobile terminal is the copy 224 of the a application icon, the copy data of the B application icon corresponding to the B application obtained by the mobile terminal is the copy 225 of the B application icon, and the copy data of the C application icon corresponding to each of the C applications obtained by the mobile terminal is the copy 226 of the C application icon, the mobile terminal may store the three application icons in the same storage path, such as the folders 228 established on the internal memory 227.
In other embodiments of the present invention, after S202, the method may further include: marking copy data stored in an internal memory; acquiring a data cleaning instruction; and executing a data cleaning instruction to delete other data in the internal memory except the marked copy data.
Specifically, the mobile terminal may set a protection flag for duplicate data of application data of a plurality of first applications after writing the duplicate data into an internal memory, for example, mark the duplicate data stored in the internal memory as a system level, so that when the mobile terminal obtains a data cleaning instruction, data cleaning may be selectively performed, for example, only other data in the internal memory except for the marked duplicate data is deleted, and the marked duplicate data is not deleted.
Therefore, the duplicate data stored in the internal memory cannot be deleted in an operation period from power on to power off of the mobile terminal, so that it is ensured that the corresponding duplicate data can be read from the internal memory whenever the mobile terminal needs to read the application data of the first application after copying the application data of the first application from the external memory to the internal memory in an operation period from power on to power off of the mobile terminal, and thus, the mobile terminal can quickly acquire the required data no matter what conditions, such as even if the application is started by adopting a cold start mode.
Here, cold start refers to a process in which the application is not in the background when the application is started. In practical applications, if a user exits an application by pressing a back key or a home key, although the application will be exited, the process of the application will still remain in the background.
In practical application, the mobile terminal generates the data cleaning instruction in occasions such as memory cleaning, garbage cleaning and the like. The data cleaning instruction may be directly generated by a user operation, for example, when the user presses a garbage cleaning button in the management application, and of course, the data cleaning instruction may also be generated in other manners, for example, when a third-party application is invoked to generate and a certain application is not used for a long time, where embodiments of the present invention are not specifically limited.
In addition, in the specific implementation process, according to actual needs, the mobile terminal may also perform operations such as adding, deleting, and modifying the copy data stored in the internal memory.
Illustratively, as can be seen from the foregoing, a plurality of first applications are already installed on the mobile terminal, and on this basis, when the mobile terminal unloads a second application of the plurality of first applications, the mobile terminal may delete the duplicate data of the second application from the duplicate data stored in the internal memory; when the mobile terminal updates a third application in the plurality of first applications, the mobile terminal can delete the original copy data of the third application from the copy data stored in the internal memory, and write new copy data of the third application into the internal memory; when a fourth application other than the plurality of first applications is newly installed in the mobile terminal, the mobile terminal may write the copy data of the application data of the fourth application into the internal memory, that is, the mobile terminal adds the copy data of the fourth application to the internal memory.
S203: acquiring and executing a data loading instruction for instructing loading of target data, accessing an internal memory, and acquiring the target data from copy data stored in the internal memory based on identification information of the target data;
specifically, after the mobile terminal writes the copy data of the application data of the plurality of first applications into the internal memory, and the mobile terminal obtains a data loading instruction for instructing to load target data, the mobile terminal may execute the data loading instruction, directly access the internal memory, then obtain identification information capable of instructing to the target data from the data loading instruction, and then search for the required target data from the copy data of the plurality of first applications stored in the internal memory based on the identification information of the target data.
In a specific implementation process, the time when the mobile terminal obtains the data loading instruction may be when a desktop Launcher (Launcher) performs system desktop startup, such as switching a system theme, restarting an application process due to an unexpected termination, starting up and starting up a first desktop, performing system desktop setting, or may be when an application management interface is started, or may be other times, such as starting up an application, updating an application, or the like, where embodiments of the present invention are not specifically limited herein.
In a specific implementation process, when the mobile terminal stores the duplicate data of the application data of each first application in the same storage path, S203 may further include: and when the data loading instruction carries a plurality of identification information, accessing the storage path, and simultaneously reading target data corresponding to the plurality of identification information from copy data of the application data stored under the storage path.
In practical application, in order to further improve the loading speed of application data and facilitate quick and simultaneous finding of required target data, the mobile terminal stores the copy data of the application data of each first application in the same storage path, so that when a data loading instruction obtained by the mobile terminal carries multiple identification information, the storage path can be accessed once, and then, from the multiple copy data stored in the storage path, the target data corresponding to the multiple identification information can be read simultaneously without adopting a single read target data to access the storage path for multiple times to obtain the multiple target data, thereby improving the data reading speed.
S204: and loading the target data.
Specifically, after the mobile terminal reads the required target data from the internal memory, the mobile terminal loads the target data.
In practical application, according to different occasions for triggering generation of the data loading instruction, the modes of the mobile terminal for loading the target data are different, for example, when the mobile terminal starts a system interface, the mobile terminal obtains the data loading instruction, and then the mobile terminal loads the target data to a system desktop; when the application management is started at the mobile terminal, the mobile terminal obtains a data loading instruction, and then the mobile terminal loads the target data to the application management interface.
Exemplarily, assuming that the original system desktop is as shown in fig. 2-3, after the switching operation of the user for the system theme is completed, the mobile terminal obtains and executes a data loading instruction, obtains target data of each first application corresponding to the current theme, loads the target data on the system desktop, and finally controls the system desktop to be switched from the original system display interface as shown in fig. 2-3 to the new system display interface as shown in fig. 2-4.
At this point, the data loading process is complete.
In the data loading method provided in this embodiment, after the mobile terminal obtains the data pre-storing instruction, the mobile terminal executes the data pre-storing instruction, then accesses the external memory, copies the application data of the plurality of first applications installed in the mobile terminal from the external memory, obtains the copy data of the application data of the plurality of first applications, and writes the copy data into the internal memory. Then, after the copy data is written into the internal memory, when the mobile terminal obtains a data loading instruction, the mobile terminal can access the internal memory, then read the required target data from the copy data stored in the internal memory based on the identification information of the target data indicated by the data loading instruction, and finally load the target data. In this way, by storing the duplicate data of the application data of the plurality of first applications in the internal memory in advance, the mobile terminal can directly acquire the duplicate data of one of the plurality of first applications from the internal memory for loading each time the mobile terminal needs to load the application data of the one of the plurality of first applications, and does not need to copy the application data of the one of the plurality of first applications from the external memory, write the duplicate data of the application data of the one of the plurality of first applications into the internal memory, and finally read the duplicate data from the internal memory for loading each time the application data of the one of the plurality of first applications is needed to be loaded. Thus, the loading speed of the application data is improved.
Example two
Based on the foregoing embodiments, this embodiment provides a data loading method, which is applied to the following scenarios: in order to ensure that the mobile terminal can directly read the required target data from the internal memory whenever the mobile terminal needs to load data in a running period from power-on to power-off of the mobile terminal, the mobile terminal sets a security flag for duplicate data of a plurality of first application data stored in the internal memory.
Then, fig. 3 is a schematic flow chart of a data loading method in the second embodiment of the present invention, and as shown in fig. 3, the method includes:
s301: after the mobile terminal completes power-on initialization, generating a data pre-storage instruction;
s302: executing a data pre-storing instruction, accessing an external memory, and copying application data of a plurality of first applications from the external memory;
s303: writing copy data of the application data into an internal memory;
s304: marking copy data stored in an internal memory;
s305: acquiring a data cleaning instruction;
s306: executing a data cleaning instruction, and deleting other data except the marked copy data in the internal memory;
s307: acquiring and executing a data loading instruction for instructing loading of target data, accessing an internal memory, and acquiring the target data from copy data stored in the internal memory based on identification information of the target data;
s308: and loading the target data.
According to the data loading method provided by the implementation, after the mobile terminal is electrified and initialized, the mobile terminal writes the duplicate data of the application data of the plurality of first applications into the internal memory in advance, marks the duplicate data stored in the internal memory, and ensures that the duplicate data cannot be deleted when the mobile terminal performs memory cleaning and garbage cleaning, so that when the subsequent mobile terminal needs to load the application data of the plurality of first applications, the corresponding duplicate data can be directly obtained from the internal memory, and therefore the speed of loading the application data is improved, and the user experience is improved.
EXAMPLE III
Based on the foregoing embodiments, this embodiment provides a data loading method, which is applied to the following scenarios: in order to ensure that the mobile terminal can load the application data more quickly when the mobile terminal needs to load the application data, when the mobile terminal stores the duplicate data of the application data of the first applications in the internal memory in advance, the mobile terminal can store the duplicate data in the same storage path.
Then, fig. 4 is a schematic flowchart of a data loading method in the third embodiment of the present invention, and as shown in fig. 4, the method includes:
s401: obtaining and executing a data pre-storing instruction, accessing an external memory, and copying application data of a plurality of first applications from the external memory;
s402: storing the copy data of the application data to the same storage path in the internal memory;
s403: obtaining a data load instruction indicating to load target data;
s404: executing a data loading instruction, accessing a storage path, and simultaneously reading target data corresponding to a plurality of identification information from copy data of application data stored in the storage path based on a plurality of identification information carried in the data loading instruction;
s405: and loading the target data.
In the data loading method provided by this embodiment, the mobile terminal stores the copy data of the application data of the plurality of first applications in the same storage path, so that when the mobile terminal needs to load a plurality of target data, the mobile terminal can directly obtain the plurality of target data from the storage path at the same time based on the identification information of the plurality of target data, and load the target data. Therefore, the loading speed of the application data is greatly improved, and the user experience is improved.
Example four
Based on the same inventive concept, the present embodiment provides a mobile terminal on which a plurality of first applications are installed. Fig. 5 is a schematic structural diagram of a mobile terminal in a fourth embodiment of the present invention, and referring to fig. 5, the mobile terminal 50 includes: an external memory 501, an internal memory 502, and a processor 503, wherein the external memory 501 is used for storing application data of a plurality of first applications; an internal memory 502 for storing copy data of the application data; a processor 503, configured to obtain and execute a data pre-storing instruction, access the external memory 501, and copy application data of a plurality of first applications from the external memory 501; writing copy data of the application data to the internal memory 502; obtaining and executing a data load instruction instructing to load target data, accessing the internal memory 502, and obtaining the target data from the copy data stored in the internal memory 502 based on identification information of the target data; and loading the target data.
Further, a processor for marking the copy data stored in the internal memory; acquiring a data cleaning instruction; and executing a data cleaning instruction to delete other data in the internal memory except the marked copy data.
Further, the processor is used for storing the copy data of the application data to the same storage path in the internal memory; and the data processing device is further used for accessing the storage path when the data loading instruction carries a plurality of identification information, and simultaneously reading target data corresponding to the plurality of identification information from copy data of the application data stored in the storage path.
Further, the processor is configured to generate a data pre-storage instruction after the mobile terminal completes power-on initialization.
Further, the processor is configured to obtain an uninstall instruction that indicates to uninstall a second application of the plurality of first applications; and executing the uninstalling instruction, uninstalling the second application, and deleting the copy data of the application data of the second application from the copy data stored in the internal memory.
In practical applications, the external Memory and the internal Memory may be implemented by a Random Access Memory (RAM), a Flash Memory (Flash Memory), or the like. The Processor may be implemented by a Central Processing Unit (CPU), a GPU, a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Here, it should be noted that: the above description of the embodiment of the mobile terminal is similar to the above description of the method, and has the same beneficial effects as the embodiment of the method, and therefore, the detailed description thereof is omitted. For technical details that are not disclosed in the embodiment of the mobile terminal of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention to understand that, for brevity, detailed description is omitted here.
EXAMPLE five
Based on the same inventive concept, the present embodiment provides a computer-readable storage medium, which can be applied to the mobile terminal in one or more embodiments described above, where the mobile terminal has a plurality of first applications installed thereon; the computer readable storage medium stores one or more programs, which are executable by one or more processors, to implement the steps of: obtaining and executing a data pre-storing instruction, accessing an external memory, and copying application data of a plurality of first applications from the external memory; writing copy data of the application data into an internal memory; acquiring and executing a data loading instruction for instructing loading of target data, accessing an internal memory, and acquiring the target data from copy data stored in the internal memory based on identification information of the target data; loading target data
Further, after the writing of the copy of the application data to the internal memory, the one or more programs may be further executable by the one or more processors to perform the steps of: marking copy data stored in an internal memory; acquiring a data cleaning instruction; and executing a data cleaning instruction to delete other data in the internal memory except the marked copy data.
Further, the step of writing the copy data of the application data into the internal memory may be further executed by the one or more processors to implement the following steps: storing the copy data of the application data to the same storage path in the internal memory; accordingly, the step of obtaining the target data from the copy data stored in the internal memory based on the identification information of the target data may be further executed by the one or more processors to implement the following steps: and when the data loading instruction carries a plurality of identification information, accessing the storage path, and simultaneously reading target data corresponding to the plurality of identification information from copy data of the application data stored under the storage path.
Further, the step of obtaining the data pre-storage instructions may be further executed by the one or more processors to implement the following steps: and after the mobile terminal completes the power-on initialization, generating a data pre-storage instruction.
Further, the one or more programs may be executable by the one or more processors to perform the steps of: obtaining an uninstall instruction indicating to uninstall a second application of the plurality of first applications; and executing the uninstalling instruction, uninstalling the second application, and deleting the copy data of the application data of the second application from the copy data stored in the internal memory.
Here, it should be noted that:
it should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (7)

1. A data loading method is applied to a mobile terminal, and is characterized in that a plurality of first applications are installed on the mobile terminal, and the method comprises the following steps:
obtaining and executing a data pre-storing instruction, accessing an external memory, and copying application data of the plurality of first applications from the external memory;
writing copy data of the application data into an internal memory;
in response to the pre-storage instruction, adding, deleting or modifying the copy data of the plurality of first applications stored in the internal memory;
obtaining and executing a data loading instruction indicating loading of target data, accessing the internal memory, and acquiring the target data from the copy data stored in the internal memory based on identification information of the target data;
loading the target data;
after the writing of the copy data of the application data to the internal memory, the method further comprises:
marking the replica data stored in the internal memory; acquiring a data cleaning instruction; and executing the data cleaning instruction to delete other data in the internal memory except the marked copy data.
2. The method of claim 1, wherein the step of writing the copy of the application data to an internal memory comprises:
storing the copy data of the application data to the same storage path in the internal memory;
accordingly, the step of acquiring the target data from the replica data stored in the internal memory based on the identification information of the target data includes:
and when the data loading instruction carries a plurality of identification information, accessing the storage path, and simultaneously reading target data corresponding to the plurality of identification information from copy data of the application data stored in the storage path.
3. The method of claim 1, wherein the step of obtaining data pre-storage instructions comprises:
and after the mobile terminal completes power-on initialization, generating the data pre-storage instruction.
4. The method of claim 1, further comprising:
obtaining an uninstall instruction indicating to uninstall a second application of the plurality of first applications;
and executing the uninstalling instruction, uninstalling the second application, and deleting the duplicate data of the application data of the second application from the duplicate data stored in the internal memory.
5. A mobile terminal having a plurality of first applications installed thereon, the mobile terminal comprising: an external memory, an internal memory, and a processor, wherein,
the external memory is used for storing application data of the plurality of first applications;
the internal memory is used for storing copy data of the application data;
the processor is used for obtaining and executing a data pre-storing instruction, accessing the external memory, and copying the application data of the plurality of first applications from the external memory; writing copy data of the application data into an internal memory; obtaining and executing a data loading instruction indicating loading of target data, accessing the internal memory, and acquiring the target data from the copy data stored in the internal memory based on identification information of the target data; loading the target data;
the processor is further configured to add, delete or modify the copy data of the plurality of first applications stored in the internal memory in response to the pre-storing instruction;
the processor is further configured to mark the duplicate data stored in the internal memory; acquiring a data cleaning instruction; and executing the data cleaning instruction to delete other data in the internal memory except the marked copy data.
6. The mobile terminal of claim 5, wherein the processor is configured to store the duplicate data of the application data in the internal memory under a same storage path; and when the data load instruction carries multiple identification information, accessing the storage path, and simultaneously reading target data corresponding to the multiple identification information from copy data of the application data stored in the storage path.
7. A computer-readable storage medium applied to a mobile terminal, wherein a plurality of first applications are installed on the mobile terminal, the computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
obtaining and executing a data pre-storing instruction, accessing an external memory, and copying application data of the plurality of first applications from the external memory;
writing copy data of the application data into an internal memory;
in response to the pre-storage instruction, adding, deleting or modifying the copy data of the plurality of first applications stored in the internal memory;
obtaining and executing a data loading instruction indicating loading of target data, accessing the internal memory, and acquiring the target data from the copy data stored in the internal memory based on identification information of the target data;
loading the target data;
after said writing copy data of the application data to internal memory, the one or more programs are further executable by the one or more processors to perform the steps of:
marking the replica data stored in the internal memory; acquiring a data cleaning instruction; and executing the data cleaning instruction to delete other data in the internal memory except the marked copy data.
CN201710488267.3A 2017-06-23 2017-06-23 Data loading method, mobile terminal and computer readable storage medium Active CN107341032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710488267.3A CN107341032B (en) 2017-06-23 2017-06-23 Data loading method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710488267.3A CN107341032B (en) 2017-06-23 2017-06-23 Data loading method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107341032A CN107341032A (en) 2017-11-10
CN107341032B true CN107341032B (en) 2020-12-18

Family

ID=60221528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710488267.3A Active CN107341032B (en) 2017-06-23 2017-06-23 Data loading method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107341032B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319432A (en) * 2018-01-23 2018-07-24 维沃移动通信有限公司 A kind of application operation method and terminal
CN109889656B (en) * 2018-12-29 2021-04-20 深圳Tcl新技术有限公司 Data reading method, device, equipment and storage medium
CN110287148B (en) * 2019-07-01 2021-10-29 中原银行股份有限公司 Data interaction method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890634A (en) * 2011-07-19 2013-01-23 联想(北京)有限公司 Terminal device and method for starting operation system of terminal device
CN102970413A (en) * 2012-10-26 2013-03-13 广东欧珀移动通信有限公司 Operation method of smart phone
CN104090796A (en) * 2014-07-08 2014-10-08 成都万维图新信息技术有限公司 Embedded device program updating method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10337171A1 (en) * 2003-08-13 2005-03-17 Airbus Deutschland Gmbh Method for exchanging programs in aircraft computers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890634A (en) * 2011-07-19 2013-01-23 联想(北京)有限公司 Terminal device and method for starting operation system of terminal device
CN102970413A (en) * 2012-10-26 2013-03-13 广东欧珀移动通信有限公司 Operation method of smart phone
CN104090796A (en) * 2014-07-08 2014-10-08 成都万维图新信息技术有限公司 Embedded device program updating method and system

Also Published As

Publication number Publication date
CN107341032A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
CN110752980B (en) Message sending method and electronic equipment
JP2021525430A (en) Display control method and terminal
CN110837327B (en) Message viewing method and terminal
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
US20220004357A1 (en) Audio signal outputting method and terminal device
KR102557125B1 (en) Electronic device and control method thereof
US11543935B2 (en) Information processing method and terminal device
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
WO2017215635A1 (en) Sound effect processing method and mobile terminal
US20220043564A1 (en) Method for inputting content and terminal device
JP2023500390A (en) Icon movement method and electronic device
JP7324949B2 (en) Application sharing method, first electronic device and computer readable storage medium
CN109862172B (en) Screen parameter adjusting method and terminal
CN107341032B (en) Data loading method, mobile terminal and computer readable storage medium
CN110879680A (en) Icon management method and electronic equipment
CN111562959A (en) Icon management method and electronic equipment
CN109126127B (en) Game control method, dual-screen mobile terminal and computer-readable storage medium
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN108366106B (en) Communication information updating method, management method, modification method and related equipment
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN109361807A (en) Information access control method, mobile terminal and computer readable storage medium
CN109284146A (en) A kind of light application open method and mobile terminal
CN109947617B (en) Method, terminal and readable storage medium for monitoring display content of application interface
CN109947323B (en) Terminal display method and terminal

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Zou Zhihui

Inventor after: Guan Nanzhu

Inventor after: Zheng Xiaojuan

Inventor before: Zheng Xiaojuan

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201124

Address after: 518057 Skyworth innovation Valley b0713, No.8, Tangtou No.1 Road, Tangtou community, Shiyan street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: Guangdong Yuanyuan Technology Co.,Ltd.

Address before: 518000 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant