CN114416220A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114416220A
CN114416220A CN202111679730.5A CN202111679730A CN114416220A CN 114416220 A CN114416220 A CN 114416220A CN 202111679730 A CN202111679730 A CN 202111679730A CN 114416220 A CN114416220 A CN 114416220A
Authority
CN
China
Prior art keywords
page
class
parameter
application program
creating
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
CN202111679730.5A
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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information 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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202111679730.5A priority Critical patent/CN114416220A/en
Publication of CN114416220A publication Critical patent/CN114416220A/en
Pending legal-status Critical Current

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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • 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
    • G06F9/4451User profiles; Roaming
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Abstract

The invention provides a data processing method, a data processing device, electronic equipment and a storage medium. The first parameter can be obtained by the page creation class before the page is created based on the page creation class, so that when the page is created based on the page creation class, the page corresponding to the first parameter can be created based on the page creation class and the first parameter, and the page corresponding to the first parameter is displayed. Therefore, for the application program, the process of creating the home page of the application program first, displaying the home page of the application program, creating the page corresponding to the first parameter, and jumping to the page corresponding to the first parameter is not performed, the process of creating the home page of the application program and displaying the home page of the application program can be omitted, and the page corresponding to the first parameter can be directly created and displayed, so that the number of pages to be created is reduced, system resources are saved, and the efficiency of displaying the page corresponding to the first parameter can be improved.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
Currently, applications are widely used, and in order to enrich the functions of the applications and enable the applications to better provide services for a large number of users, the applications often include a plurality of pages, and each page includes different contents.
After the Application program is started, the page is often required to be displayed, in order to display the page, the global configuration Application is initialized, the start parameters of the top page of the Application program and the like are contained in the global configuration Application, then the Activity class in the Application program is initialized, the page of the Application program is created based on the Activity class and the start parameters of the top page of the Application program, the created page is the top page of the Application program, and the top page of the Application program is displayed.
However, sometimes the application program is started according to the starting parameter of the specific page when the application program is started, for example, the application program is started by scanning the two-dimensional code, the starting parameter of the specific page can be obtained by scanning the two-dimensional code, the starting parameter of the specific page corresponds to a page other than a first page in the application program, and the application program is started by scanning the two-dimensional code, which often requires the application program to display a page corresponding to the starting parameter of the specific page, so that a user can operate or browse information on the page corresponding to the starting parameter of the specific page.
In this case, after the Application is started, the global configuration Application is initialized, the global configuration Application has the start parameters of the top page of the Application, and the like, then the Activity class in the Application is initialized, then the top page of the Application is created based on the Activity class and the start parameters of the top page of the Application, and the top page is displayed. And then acquiring the starting parameter of the specific page based on the Activity class, then creating a page corresponding to the starting parameter of the specific page based on the Activity class and the starting parameter of the specific page, and then jumping to the page corresponding to the starting parameter of the specific page so that a user can operate or browse information on the page corresponding to the starting parameter of the specific page.
However, the inventor has found that, in the above manner, the process from the application program starting to the specific page displaying takes a long time and is operated more, which results in inefficient displaying of the page corresponding to the starting parameter of the specific page and high consumption of system resources.
Disclosure of Invention
The application discloses a data processing method, a data processing device, electronic equipment and a storage medium.
In a first aspect, the present application shows a data processing method applied to a terminal, where an application program is installed in the terminal, the method including:
monitoring whether the application program starts to execute initialization operation of initializing the global configuration class of the application program or not under the condition of receiving starting operation for starting the application program according to the first parameter;
under the condition that the application program is monitored to start executing the initialization operation, suspending the application program to execute the initialization operation of initializing the global configuration class of the application program; the page corresponding to the first parameter is different from the home page of the application program;
initializing a page creation class of the application program;
monitoring whether the application program starts to execute the creating operation of creating the page based on the page creating class;
under the condition that the application program is monitored to start executing the creating operation, the creating operation of creating the page based on the page creating class by the application program is suspended;
acquiring the first parameter of the page creation class according to the starting operation;
passing the first parameter to the global configuration class;
initializing the global class configuration class having the first parameter;
acquiring a first parameter in the global class configuration class with the first parameter based on the page creation class;
and creating a page corresponding to the first parameter based on the page creation class and the first parameter, and displaying the page corresponding to the first parameter.
In an optional implementation, the method further includes:
under the condition that a jump operation for controlling the application program to jump to a page corresponding to a second parameter according to the second parameter is received, acquiring the second parameter according to the jump operation based on the page creation class;
creating a page corresponding to the second parameter based on the page creation class and the second parameter;
and jumping the page displayed by the application program from the page corresponding to the first parameter to the page corresponding to the second parameter.
In an optional implementation manner, the global configuration class includes a sub-configuration class inheriting the global configuration class; the sub-configuration classes comprise callback functions, and the callback functions are used for monitoring whether the application program calls initialization functions for initializing the global configuration classes or not;
the monitoring whether the application program starts to execute an initialization operation of initializing the global configuration class of the application program comprises the following steps:
determining whether a callback event to the callback function in the sub-configuration class is received;
determining that the application program starts to perform an initialization operation of initializing a global configuration class of the application program when a callback event for the callback function in the sub-configuration class is received.
In an optional implementation manner, the page creation class includes a child creation class inheriting the page creation class; the child creation classes comprise callback functions, and the callback functions are used for monitoring whether the application programs call page creation functions for creating pages or not;
the monitoring whether the application program starts to execute the creating operation of creating the page based on the page creating class includes:
determining whether a callback event for the callback function in the child creation class is received;
and determining that the application program starts to execute the creating operation of creating the page based on the page creating class under the condition that a callback event of the callback function in the sub creating class is received.
In a second aspect, the present application shows a data processing apparatus, which is applied to a terminal in which an application is installed, the apparatus including:
the device comprises a first monitoring module, a second monitoring module and a third monitoring module, wherein the first monitoring module is used for monitoring whether the application program starts to execute the initialization operation of initializing the global configuration class of the application program or not under the condition of receiving the starting operation for starting the application program according to a first parameter;
the first suspension module is used for suspending the application program from executing the initialization operation of initializing the global configuration class of the application program under the condition that the application program is monitored to start executing the initialization operation; the page corresponding to the first parameter is different from the home page of the application program;
the first initialization module is used for initializing the page creation class of the application program;
the second monitoring module is used for monitoring whether the application program starts to execute the creation operation of creating the page based on the page creation class;
the second suspension module is used for suspending the creation operation of creating the page based on the page creation class by the application program under the condition that the application program is monitored to start executing the creation operation;
the first acquisition module is used for acquiring the first parameter obtained by the page creation class according to the starting operation;
a transfer module for transferring the first parameter to the global configuration class;
a second initialization module, configured to initialize the global class configuration class with the first parameter;
a second obtaining module, configured to obtain, based on the page creation class, a first parameter in the global class configuration class having the first parameter;
and the first creating module is used for creating a page corresponding to the first parameter based on the page creating class and the first parameter and displaying the page corresponding to the first parameter.
In an optional implementation, the apparatus further comprises:
a third obtaining module, configured to, when a jump operation for controlling the application to jump to a page corresponding to a second parameter according to the second parameter is received, obtain the second parameter according to the jump operation based on the page creation class;
the second creating module is used for creating a page corresponding to the second parameter based on the page creating class and the second parameter;
and the jumping module is used for jumping the page displayed by the application program from the page corresponding to the first parameter to the page corresponding to the second parameter.
In an optional implementation manner, the global configuration class includes a sub-configuration class inheriting the global configuration class; the sub-configuration classes comprise callback functions, and the callback functions are used for monitoring whether the application program calls initialization functions for initializing the global configuration classes or not;
the first listening module comprises:
a first determining unit, configured to determine whether a callback event to the callback function in the sub-configuration class is received;
a second determining unit, configured to determine that the application starts to perform an initialization operation of initializing the global configuration class of the application when a callback event for the callback function in the sub-configuration class is received.
In an optional implementation manner, the page creation class includes a child creation class inheriting the page creation class; the child creation classes comprise callback functions, and the callback functions are used for monitoring whether the application programs call page creation functions for creating pages or not;
the second listening module comprises:
a third determining unit, configured to determine whether a callback event for the callback function in the created subclass is received;
a fourth determining unit, configured to determine that the application starts to perform a creation operation for creating a page based on the page creation class when a callback event for the callback function in the sub creation class is received.
In a third aspect, the present application shows an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the data processing method of the first aspect.
In a fourth aspect, the present application shows a non-transitory computer readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of the first aspect.
In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method according to the first aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
according to the method and the device, the first parameter (which may be a top page of a non-application program) can be obtained by the page creation class before the page is created based on the page creation class, so that when the page is created based on the page creation class, the page corresponding to the first parameter can be created based on the page creation class and the first parameter, and the page corresponding to the first parameter is displayed. Therefore, for the application program, the process of creating the home page of the application program first, displaying the home page of the application program, creating the page corresponding to the first parameter, and jumping to the page corresponding to the first parameter is not performed, the process of creating the home page of the application program and displaying the home page of the application program can be directly performed without creating the home page of the application program and displaying the page corresponding to the first parameter, so that the number of pages to be created is reduced, system resources are saved, and the process of creating the home page of the application program and displaying the home page of the application program is omitted, so that the efficiency of displaying the page corresponding to the first parameter can be improved.
Drawings
FIG. 1 is a flow chart of the steps of a data processing method of the present application.
Fig. 2 is a block diagram of a data processing apparatus according to the present application.
Fig. 3 is a block diagram of an electronic device of the present application.
Fig. 4 is a block diagram of an electronic device of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of a data processing method according to the present application is shown, where the method is applied to a terminal, and an application program is installed in the terminal, and the method specifically includes the following steps:
in step S101, in the case of receiving a start operation for starting an application according to a first parameter, it is monitored whether the application starts to execute an initialization operation for initializing a global configuration class of the application.
The launching operation for launching the application program according to the first parameter includes: and scanning the two-dimensional code of the application program, wherein the two-dimensional code comprises a page identifier of a page of the application program to be displayed, a starting instruction for starting the application program and the like. Therefore, the page identifier and the starting instruction can be obtained through the scanning operation, and the situation that the application program needs to be started and the page corresponding to the page identifier needs to be displayed on the application program is further known.
The first parameter may include at least a page identification, etc.
The page identifier includes a URL (Uniform Resource Locator) or the like.
There may be one global configuration class in an application, and the global configuration class is often initialized when the application is started. For example, the global configuration class includes an Application class, and the Application class is often initialized when an Application program is started.
In an embodiment of the present application, the global configuration class includes a sub-configuration class that inherits the global configuration class. The sub-configuration class may include MyApplicaiton, and the like. The sub-configuration class comprises a callback function which is used for monitoring whether the application program calls an initialization function for initializing the global configuration class.
In this manner, to monitor whether the application begins to perform an initialization operation that initializes the global configuration class of the application, it may be determined whether a callback event is received to a callback function in the sub-configuration class.
When the application program calls an initialization function for initializing the global configuration class, a callback event is triggered to the callback function.
In this manner, in the event that a callback event is received for a callback function in a sub-configuration class, it is determined that the application program starts performing an initialization operation of a global configuration class that initializes the application program.
In step S102, in a case where it is monitored that the application starts to perform the initialization operation, the application is suspended from performing the initialization operation of initializing the global configuration class of the application. The page corresponding to the first parameter is different from the home page of the application program.
Suspending an initialization operation of an application program to execute a global configuration class of an initialization application program may be understood as suspending or preventing the execution of the initialization operation of the global configuration class of the initialization application program, after which the application program may continue to execute operations whose execution order follows the initialization operation, e.g., initializing a page creation class of the application program, etc.
In step S103, the page creation class of the application is initialized.
The page creation class includes an Activity class and the like, which is used to create a page of an application.
In step S104, whether the listening application starts to perform a creation operation of creating a page based on the page creation class.
In one embodiment of the application, the page creation class includes a child creation class that inherits the page creation class. And the child creation class comprises a callback function which is used for monitoring whether the application program calls a page creation function for creating the page or not.
In this manner, to listen whether the application begins to perform a create operation that creates a page based on the page creation class, it may be determined whether a callback event is received to a callback function in the child creation class.
When the application program calls a page creating function for creating a page, a callback event is triggered to the callback function.
In this manner, in the case where a callback event to a callback function in the child creation class is received, it is determined that the application program starts to perform a creation operation of creating a page based on the page creation class.
In step S105, in a case where it is monitored that the application starts to perform the creation operation, the application is suspended from performing the creation operation of creating the page based on the page creation class.
Suspending the application program to perform the creation operation of creating the page based on the page creation class may be understood as suspending or preventing the creation operation of creating the page based on the page creation class from being performed, and then may obtain a first parameter obtained by the page creation class according to the start operation, and the like.
In step S106, a first parameter obtained by the page creation class according to the start operation is obtained.
After initializing the page creation class, the page creation class can obtain the first parameter according to the startup operation. Therefore, the first parameter obtained by the page creation class according to the starting operation can be obtained.
For example, the page creation class has a child creation class inheriting the page creation class, and the child creation class of the page creation class can obtain the first parameter obtained by the page creation class, and then execute step S107.
In step S107, the first parameter is passed to the global configuration class.
For example, the subclass of the page creation class may pass the first parameter to a sub-configuration class in the global configuration class, or the like, to enable passing the first parameter to the global configuration class.
In step S108, a global class configuration class having a first parameter is initialized.
The sub-configuration classes in the global configuration class have initialization functions for initializing the global configuration class, so that the sub-configuration classes in the global configuration class can call the initialization functions for initializing the global configuration class and initialize the global configuration class through the initialization functions for initializing the global configuration class and the first parameters.
Thus, the initialized global configuration class has the first parameter.
In step S109, a first parameter in the global class configuration class having the first parameter is acquired based on the page creation class.
In step S110, a page corresponding to the first parameter is created based on the page creation class and the first parameter, and the page corresponding to the first parameter is displayed.
According to the method and the device, the first parameter can be obtained by the page creation class before the page is created based on the page creation class, so that when the page is created based on the page creation class, the page corresponding to the first parameter can be created based on the page creation class and the first parameter, and the page corresponding to the first parameter is displayed. Therefore, for the application program, the default home page of the application program does not need to be created first, the default home page is displayed, the page corresponding to the first parameter is created, and then the page corresponding to the first parameter is skipped to, so that the page corresponding to the first parameter can be directly created to display the page corresponding to the first parameter, the number of pages needing to be created is reduced, system resources are saved, and the efficiency of displaying the page corresponding to the first parameter is improved.
Further, when the jump operation for controlling the application program to jump to the page corresponding to the second parameter according to the second parameter is received, it is not necessary to suspend the application program to execute the initialization operation of the global configuration class of the initialization application program and suspend the application program to execute the creation operation of creating the page based on the page creation class, and therefore the second parameter can be directly acquired according to the jump operation based on the page creation class; creating a page corresponding to the second parameter based on the page creation class and the second parameter; and jumping the page displayed by the application program from the page corresponding to the first parameter to the page corresponding to the second parameter. So as to improve the efficiency of jumping to the page corresponding to the second parameter, and the like.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
Referring to fig. 2, a block diagram of a data processing apparatus according to the present application, the apparatus being applied to a terminal in which an application is installed, the apparatus including:
a first monitoring module 11, configured to, in a case that a start operation for starting an application according to a first parameter is received, monitor whether the application starts to execute an initialization operation for initializing a global configuration class of the application;
a first suspending module 12, configured to suspend the application program from executing an initialization operation for initializing a global configuration class of the application program when it is monitored that the application program starts to execute the initialization operation; the page corresponding to the first parameter is different from the home page of the application program;
a first initialization module 13, configured to initialize a page creation class of the application program;
a second monitoring module 14, configured to monitor whether the application program starts to perform a creation operation for creating a page based on the page creation class;
a second suspending module 15, configured to suspend, when it is monitored that the application program starts to perform the creation operation, a creation operation of creating a page based on the page creation class by the application program;
a first obtaining module 16, configured to obtain the first parameter according to the starting operation by the page creation class;
a passing module 17, configured to pass the first parameter to the global configuration class;
a second initialization module 18, configured to initialize the global class configuration class with the first parameter;
a second obtaining module 19, configured to obtain, based on the page creation class, a first parameter in the global class configuration class having the first parameter;
a first creating module 20, configured to create a page corresponding to the first parameter based on the page creation class and the first parameter, and display the page corresponding to the first parameter.
In an optional implementation, the apparatus further comprises:
a third obtaining module, configured to, when a jump operation for controlling the application to jump to a page corresponding to a second parameter according to the second parameter is received, obtain the second parameter according to the jump operation based on the page creation class;
the second creating module is used for creating a page corresponding to the second parameter based on the page creating class and the second parameter;
and the jumping module is used for jumping the page displayed by the application program from the page corresponding to the first parameter to the page corresponding to the second parameter.
In an optional implementation manner, the global configuration class includes a sub-configuration class inheriting the global configuration class; the sub-configuration classes comprise callback functions, and the callback functions are used for monitoring whether the application program calls initialization functions for initializing the global configuration classes or not;
the first listening module comprises:
a first determining unit, configured to determine whether a callback event to the callback function in the sub-configuration class is received;
a second determining unit, configured to determine that the application starts to perform an initialization operation of initializing the global configuration class of the application when a callback event for the callback function in the sub-configuration class is received.
In an optional implementation manner, the page creation class includes a child creation class inheriting the page creation class; the child creation classes comprise callback functions, and the callback functions are used for monitoring whether the application programs call page creation functions for creating pages or not;
the second listening module comprises:
a third determining unit, configured to determine whether a callback event for the callback function in the created subclass is received;
a fourth determining unit, configured to determine that the application starts to perform a creation operation for creating a page based on the page creation class when a callback event for the callback function in the sub creation class is received.
According to the method and the device, the first parameter (which may be a top page of a non-application program) can be obtained by the page creation class before the page is created based on the page creation class, so that when the page is created based on the page creation class, the page corresponding to the first parameter can be created based on the page creation class and the first parameter, and the page corresponding to the first parameter is displayed. Therefore, for the application program, the process of creating the home page of the application program first, displaying the home page of the application program, creating the page corresponding to the first parameter, and jumping to the page corresponding to the first parameter is not performed, the process of creating the home page of the application program and displaying the home page of the application program can be directly performed without creating the home page of the application program and displaying the page corresponding to the first parameter, so that the number of pages to be created is reduced, system resources are saved, and the process of creating the home page of the application program and displaying the home page of the application program is omitted, so that the efficiency of displaying the page corresponding to the first parameter can be improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Optionally, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement the processes of the data processing method embodiments described above, and can achieve the same technical effects, and in order to avoid repetition, details are not described here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 3 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 4 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 4, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
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.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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, may be located in one place, or may be 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, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
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 claims.

Claims (10)

1. A data processing method, wherein the method is applied to a terminal in which an application program is installed, and the method comprises:
monitoring whether the application program starts to execute initialization operation of initializing the global configuration class of the application program or not under the condition of receiving starting operation for starting the application program according to the first parameter;
under the condition that the application program is monitored to start executing the initialization operation, suspending the application program to execute the initialization operation of initializing the global configuration class of the application program; the page corresponding to the first parameter is different from the home page of the application program;
initializing a page creation class of the application program;
monitoring whether the application program starts to execute the creating operation of creating the page based on the page creating class;
under the condition that the application program is monitored to start executing the creating operation, the creating operation of creating the page based on the page creating class by the application program is suspended;
acquiring the first parameter of the page creation class according to the starting operation;
passing the first parameter to the global configuration class;
initializing the global class configuration class having the first parameter;
acquiring a first parameter in the global class configuration class with the first parameter based on the page creation class;
and creating a page corresponding to the first parameter based on the page creation class and the first parameter, and displaying the page corresponding to the first parameter.
2. The method of claim 1, further comprising:
under the condition that a jump operation for controlling the application program to jump to a page corresponding to a second parameter according to the second parameter is received, acquiring the second parameter according to the jump operation based on the page creation class;
creating a page corresponding to the second parameter based on the page creation class and the second parameter;
and jumping the page displayed by the application program from the page corresponding to the first parameter to the page corresponding to the second parameter.
3. The method of claim 1, wherein the global configuration class includes a sub-configuration class that inherits the global configuration class; the sub-configuration classes comprise callback functions, and the callback functions are used for monitoring whether the application program calls initialization functions for initializing the global configuration classes or not;
the monitoring whether the application program starts to execute an initialization operation of initializing the global configuration class of the application program comprises the following steps:
determining whether a callback event to the callback function in the sub-configuration class is received;
determining that the application program starts to perform an initialization operation of initializing a global configuration class of the application program when a callback event for the callback function in the sub-configuration class is received.
4. The method of claim 1, wherein the page creation class includes a child creation class that inherits the page creation class; the child creation classes comprise callback functions, and the callback functions are used for monitoring whether the application programs call page creation functions for creating pages or not;
the monitoring whether the application program starts to execute the creating operation of creating the page based on the page creating class includes:
determining whether a callback event for the callback function in the child creation class is received;
and determining that the application program starts to execute the creating operation of creating the page based on the page creating class under the condition that a callback event of the callback function in the sub creating class is received.
5. A data processing apparatus, wherein the apparatus is applied to a terminal in which an application is installed, the apparatus comprising:
the device comprises a first monitoring module, a second monitoring module and a third monitoring module, wherein the first monitoring module is used for monitoring whether the application program starts to execute the initialization operation of initializing the global configuration class of the application program or not under the condition of receiving the starting operation for starting the application program according to a first parameter;
the first suspension module is used for suspending the application program from executing the initialization operation of initializing the global configuration class of the application program under the condition that the application program is monitored to start executing the initialization operation; the page corresponding to the first parameter is different from the home page of the application program;
the first initialization module is used for initializing the page creation class of the application program;
the second monitoring module is used for monitoring whether the application program starts to execute the creation operation of creating the page based on the page creation class;
the second suspension module is used for suspending the creation operation of creating the page based on the page creation class by the application program under the condition that the application program is monitored to start executing the creation operation;
the first acquisition module is used for acquiring the first parameter obtained by the page creation class according to the starting operation;
a transfer module for transferring the first parameter to the global configuration class;
a second initialization module, configured to initialize the global class configuration class with the first parameter;
a second obtaining module, configured to obtain, based on the page creation class, a first parameter in the global class configuration class having the first parameter;
and the first creating module is used for creating a page corresponding to the first parameter based on the page creating class and the first parameter and displaying the page corresponding to the first parameter.
6. The apparatus of claim 5, further comprising:
a third obtaining module, configured to, when a jump operation for controlling the application to jump to a page corresponding to a second parameter according to the second parameter is received, obtain the second parameter according to the jump operation based on the page creation class;
the second creating module is used for creating a page corresponding to the second parameter based on the page creating class and the second parameter;
and the jumping module is used for jumping the page displayed by the application program from the page corresponding to the first parameter to the page corresponding to the second parameter.
7. The apparatus of claim 5, wherein the global configuration class comprises a sub-configuration class that inherits the global configuration class; the sub-configuration classes comprise callback functions, and the callback functions are used for monitoring whether the application program calls initialization functions for initializing the global configuration classes or not;
the first listening module comprises:
a first determining unit, configured to determine whether a callback event to the callback function in the sub-configuration class is received;
a second determining unit, configured to determine that the application starts to perform an initialization operation of initializing the global configuration class of the application when a callback event for the callback function in the sub-configuration class is received.
8. The apparatus of claim 5, wherein the page creation class includes a child creation class that inherits the page creation class; the child creation classes comprise callback functions, and the callback functions are used for monitoring whether the application programs call page creation functions for creating pages or not;
the second listening module comprises:
a third determining unit, configured to determine whether a callback event for the callback function in the created subclass is received;
a fourth determining unit, configured to determine that the application starts to perform a creation operation for creating a page based on the page creation class when a callback event for the callback function in the sub creation class is received.
9. An electronic device, comprising: processor, memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the data processing method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the data processing method according to any one of claims 1 to 4.
CN202111679730.5A 2021-12-31 2021-12-31 Data processing method and device, electronic equipment and storage medium Pending CN114416220A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111679730.5A CN114416220A (en) 2021-12-31 2021-12-31 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111679730.5A CN114416220A (en) 2021-12-31 2021-12-31 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114416220A true CN114416220A (en) 2022-04-29

Family

ID=81271357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111679730.5A Pending CN114416220A (en) 2021-12-31 2021-12-31 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114416220A (en)

Similar Documents

Publication Publication Date Title
EP3188066B1 (en) A method and an apparatus for managing an application
JP6189000B2 (en) Application installation package processing method, apparatus, program, and recording medium
EP3145128B1 (en) Information collection method and apparatus
EP3015965A1 (en) Method and apparatus for prompting device connection
CN107463372B (en) Data-driven page updating method and device
EP2985697A1 (en) Method and device for controlling router plug-in
CN105786561B (en) Method and device for calling process
EP3190555A1 (en) Method for operating a display device and display
CN107256149B (en) User interface updating method and device
CN112087544B (en) Prompting method and device
US11269699B2 (en) Method and device for processing an application
CN110457084B (en) Loading method and device
CN114416220A (en) Data processing method and device, electronic equipment and storage medium
CN114416475A (en) Data processing method and device, electronic equipment and storage medium
CN113934452B (en) Data processing method and device, electronic equipment and storage medium
CN107360315B (en) Information display method and device
CN114489641B (en) Data processing method and device, electronic equipment and storage medium
CN107257384B (en) Service state monitoring method and device
CN106846050B (en) Method, device and system for sending display notification
CN114416218B (en) Data processing method and device, electronic equipment and storage medium
CN111522676B (en) Application program repairing method and device
CN113946346B (en) Data processing method and device, electronic equipment and storage medium
CN111596949B (en) Method and device for developing application program
CN110347394B (en) Software code analysis method and device
CN107992333B (en) Theme acquisition method and device

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