Active data loading method and device of Android application, processor and electronic equipment
By obtaining and loading the application's startup diagram and activity data on the Android device, and creating the target window to load the activity data in the main interface page, it solves the problem of application jumping lag caused by the low mobile version of the user, and improves the user experience .
Patent Information
- Application Number
- CN202311000436.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-09
- Publication Date
- 2025-02-18
AI Technical Summary
When a user opens an application on an Android device, due to the lower version of the mobile phone, the user clicks the skip button in the activity data and jumps to the main interface of the application, resulting in a poor user experience.
When the target application start instruction is received, the target application start diagram and activity data are obtained, and the startup diagram is loaded in the startup page. After the startup diagram is loaded, jump from the startup page to the main interface page and create a target window on the main interface page. Load active data in the target window. If a closing command is detected, the control target window closes and displays the main interface page.
By passing the activity data of the startup page to the main interface page, the problem of jumping between different pages after the user clicks the skip button of the activity data in the mobile device is avoided, which causes the mobile device to stutter after clicking the skip button of the activity data in the mobile device, which improves the problem of stuttering in the mobile device. The smoothness of user operations improves the user experience.
Smart Images

Figure CN119473453A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology or other fields, and specifically, to a method, device, processor and electronic device for loading activity data of an Android application. Background Art
[0002] In the prior art, when a user opens an Android application on a mobile device, the first thing that comes into view is its startup image, and then the Android application loads the activity data of the application, and after a few seconds of display, the activity data enters the homepage of the application. Displaying a refreshing activity data in an Android application can bring about a high triggering and high exposure effect, which can attract the user's attention, thereby achieving the effect of the application launching a product or activity.
[0003] At present, the activity data of Android applications are basically implemented in the splash page (Splash Activity). When displaying the activity data of Android applications, the view (View) of the splash page will generally continue to be used, and the background image of the view will be modified at this view level, as well as the humanized countdown component and skip button. If the user clicks the skip button in the activity data at this time, it will jump to the main interface page (Home Activity), and the rendering of the main interface page will start at the same time, which will take a certain amount of time. The time taken by the rendering process has little impact on high-version models, but there will be obvious freezes on some low-version mobile phones, making the user's operation of the Android application not smooth, resulting in a poor user experience of the Android application.
[0004] Regarding the problem in the related technology that when a user opens an application on an Android device, due to the lower version of the phone, there is a noticeable lag when the user clicks the skip button in the activity data to jump to the main interface of the application, resulting in a poor user experience. No effective solution has been proposed yet. Summary of the invention
[0005] The main purpose of the present application is to provide a method, device, processor and electronic device for loading activity data of an Android application, so as to solve the problem in the related art that when a user opens an application in an Android device, due to the lower version of the mobile phone, there is a noticeable lag when the user clicks the skip button in the activity data to jump to the main interface of the application, resulting in a poor user experience.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for loading activity data of an Android application is provided, the method comprising: upon receiving a startup instruction of a target application, obtaining a startup image and activity data of the target application, wherein the startup image refers to an image displayed on a device screen when the target application is started, and the activity data refers to advertising information or product information delivered by the target application; creating a startup page of the target application, and loading the startup image in the startup page; after the startup image is loaded in the startup page, jumping from the startup page to the main interface page of the target application, and creating a target window in the main interface page; loading the activity data in the target window; if a closing instruction for the target window is detected, controlling the target window to close, and displaying the main interface page.
[0007] Furthermore, jumping from the startup page to the main interface page of the target application includes: creating the main interface page of the target application; and jumping from the startup page to the main interface page through an Intent object.
[0008] Furthermore, creating a target window in the main interface page includes: creating a first window in the main interface page through the PopupWindow class; creating a skip button identifier in the first window, and configuring a preset display duration of the first window, wherein the skip button is used to control the display duration of the first window; and determining the target window based on the first window, the preset duration and the skip button identifier.
[0009] Furthermore, loading the activity data in the target window includes: packaging the activity data through a Bundle function to obtain target data; transferring the target data from the startup page to the main interface page; and loading the target data in the main interface page in the target window.
[0010] Furthermore, after jumping from the startup page to the main interface page of the target application, the method further includes: acquiring the main interface data of the target application; after loading the activity data in the target window, the method further includes: loading the main interface data in the main interface page.
[0011] Furthermore, obtaining the startup image and activity data of the target application includes: generating a data request instruction, wherein the data request instruction is used to request the startup image and the activity data; sending the data request instruction to the back-end interface of the target application; the back-end interface responds to the data request instruction and returns the startup image and the activity data.
[0012] Furthermore, the triggering condition of the close instruction is one of the following conditions: the display time of the target window reaches the preset time, and the mark of the skip button is clicked.
[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, there is provided an activity data loading device for an Android application, the device comprising: an acquisition unit, for acquiring a startup image and activity data of the target application upon receiving a startup instruction of the target application, wherein the startup image refers to an image displayed on the device screen when the target application is started, and the activity data refers to advertising information or product information delivered by the target application; a creation unit, for creating a startup page of the target application and loading the startup image in the startup page; a jump unit, for jumping from the startup page to the main interface page of the target application after the startup image is loaded in the startup page, and creating a target window in the main interface page; a loading unit, for loading the activity data in the target window; and a control unit, for controlling the target window to be closed and displaying the main interface page if a closing instruction to the target window is detected.
[0014] Furthermore, the jump unit includes: a first creation subunit, used to create a main interface page of the target application; and a jump subunit, used to jump from the startup page to the main interface page through an Intent object.
[0015] Furthermore, the jump unit also includes: a second creation sub-unit, used to create a first window in the main interface page through the PopupWindow class; a configuration sub-unit, used to create a skip button identifier in the first window and configure a preset display time of the first window, wherein the skip button is used to control the display time of the first window; a determination sub-unit, used to determine the target window based on the first window, the preset time and the skip button identifier.
[0016] Furthermore, the loading unit includes: a processing subunit, used to package the activity data through a Bundle function to obtain target data; a transmission subunit, used to transfer the target data from the startup page to the main interface page; and a loading subunit, used to load the target data in the main interface page into the target window.
[0017] Furthermore, the device also includes: after jumping from the startup page to the main interface page of the target application, obtaining the main interface data of the target application; the loading unit also includes: after loading the active data in the target window, loading the main interface data in the main interface page.
[0018] Furthermore, the acquisition unit includes: a generating subunit, used to generate a data request instruction, wherein the data request instruction is used to request the startup graph and the activity data; a sending subunit, used to send the data request instruction to the back-end interface of the target application; and a returning subunit, used for the back-end interface to respond to the data request instruction and return the startup graph and the activity data.
[0019] Furthermore, the triggering condition of the close instruction is one of the following conditions: the display time of the target window reaches the preset time, and the mark of the skip button is clicked.
[0020] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a processor is provided, and the processor is used to run a program, wherein when the program is running, any one of the above-mentioned methods for loading active data of an Android application is executed.
[0021] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned methods for loading active data of an Android application.
[0022] Through this application, the following steps are adopted: when receiving the start-up instruction of the target application, the start-up image and activity data of the target application are obtained, wherein the start-up image refers to the image displayed on the device screen when the target application is started, and the activity data refers to the advertising information or product information placed by the target application; the start-up page of the target application is created, and the start-up image is loaded in the start-up page; after the start-up image is loaded in the start-up page, the start-up page is jumped to the main interface page of the target application, and a target window is created in the main interface page; the activity data is loaded in the target window; if the closing instruction of the target window is detected, the target window is controlled to be closed, and the main interface page is displayed, which solves the problem in the related art that when the user opens the application in the Android device, due to the lower version of the mobile phone, the user clicks the skip button in the activity data to jump to the main interface of the application, and there is obvious jamming, resulting in poor user experience. By transferring the activity data of the start-up page to the main interface page, the problem of jamming of the mobile device caused by jumping between different pages after the user clicks the skip button of the activity data in the mobile device is avoided, the fluency of the user operation is improved, and the effect of improving the user experience is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0024] Figure 1 is a flowchart of a method for loading activity data of an Android application provided in Embodiment 1 of the present application;
[0025] Figure 2 This is a schematic diagram of an optional method for loading activity data of an Android application provided in Example 1 of the present application. Figure 1 ;
[0026] Figure 3 This is a schematic diagram of an optional method for loading activity data of an Android application provided in Example 1 of the present application. Figure 2 ;
[0027] Figure 4 This is a schematic diagram of an optional method for loading activity data of an Android application provided in Example 1 of the present application. Figure 3 ;
[0028] Figure 5 is a schematic diagram of an activity data loading device for an Android application provided in Embodiment 2 of the present application;
[0029] Figure 6 This is a schematic diagram of loading activity data of an Android application into an electronic device according to Embodiment 5 of the present application. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] It should be noted that the processing methods, devices, processors and electronic devices of the present application document can be used in the financial technology field to improve the response speed of the Android application when the user clicks the skip button of the activity data in the Android application. It can also be used in any field except the financial technology field. The application fields of the processing methods, devices, processors and electronic devices of the present application document are not limited.
[0032] It should be noted that the user information (including but not limited to user device information, user personal information, user application information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, user input data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] Embodiment 1
[0036] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for loading activity data of an Android application provided in Embodiment 1 of the present application. Figure 1 As shown, the method comprises the following steps:
[0037] Step S101, upon receiving a start instruction of a target application, obtain a start image and activity data of the target application, wherein the start image refers to an image displayed on a device screen when the target application is started, and the activity data refers to advertising information or product information delivered by the target application.
[0038] In the first embodiment, the target application refers to an application installed in a mobile device, such as a shopping application, a browser application, an instant messaging application, an office application, a social platform application, etc. The mobile device may be any electronic device with a display screen, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like.
[0039] A launch image is an image that is displayed on the device screen when the target application is launched. It is usually used to display the application logo, application name, or other relevant information of the target application. Figure 2 This is a schematic diagram of the startup diagram in this scheme. Figure 2 The triangle in the figure indicates the target application’s graphical logo. Figure 2 The center outer boxes represent the device screen of a mobile device.
[0040] Activity data refers to the advertising information or product information displayed to the device user when the target application is launched. Figure 3 is a schematic diagram of the activity data in this scheme. Figure 3 The words "discount information" and "product A" in the target application indicate the discount information of the target application, that is, the advertising information of the target application. Figure 3 The outermost boxes in the represent the device screen of a mobile device.
[0041] Step S102: Create a startup page for the target application and load a startup image into the startup page.
[0042] In the first embodiment, when the target application is started, a startup page is created in the mobile device, and a startup image is loaded in the startup page, and the startup image of the target application is displayed to the user.
[0043] The startup page refers to an instance of the Activity component in an Android application, which is used to display the startup image of the target application. The Activity component is a component used when developing Android applications. Each page (Activity) corresponds to a window on the device screen, which is responsible for displaying data, interacting with users, and responding to user input. An application usually consists of multiple pages (Activities), which can realize different functions and user interfaces by starting and closing each other, and they can also switch between different interfaces by jumping between each other.
[0044] Step S103, after the startup image is loaded in the startup page, jump from the startup page to the main interface page of the target application, and create a target window on the main interface page.
[0045] In the first embodiment, when the startup image of the startup page is loaded, it will jump to the main interface page of the target application and create a target window in the main interface page to display activity data through the target window of the main interface page.
[0046] Step S104, loading the activity data into the target window.
[0047] In the prior art, a startup image and activity data are generally loaded on a startup page, so when a user clicks a skip button of the activity data, the user needs to jump from the startup page to the main interface page. If the Android version of the mobile device used by the user is low, it will take a long time to render the main interface page during the jump, causing the mobile device to freeze and reducing the user experience.
[0048] In the first embodiment, the activity data is no longer loaded through the startup page, but directly jumps to the main interface page, and the activity data is displayed through the target window of the main interface page to avoid the lag of the mobile device.
[0049] Step S105: If a closing instruction for the target window is detected, the target window is controlled to be closed and the main interface page is displayed.
[0050] In the first embodiment, when the user clicks the skip button of the activity data, there is no need to jump between pages. The user only needs to close the target window to see the home page data in the main interface page.
[0051] Home page data refers to the data displayed on the home page of the target application. Figure 4 This is a schematic diagram of the main interface page of the target application in this solution. Figure 4 The “Search” in the figure represents the search bar on the homepage of the target application, “Module 1” to “Module 4” represent the area modules that display different data on the homepage of the target application, and “A”, “B”, “C” and “D” represent different menu functions on the homepage of the target application.
[0052] In summary, the method for loading activity data of an Android application provided in the first embodiment of the present application obtains the startup image and activity data of the target application when receiving the startup instruction of the target application, wherein the startup image refers to the image displayed on the device screen when the target application is started, and the activity data refers to the advertising information or product information placed by the target application; creates a startup page of the target application, and loads the startup image in the startup page; after the startup image is loaded in the startup page, jumps from the startup page to the main interface page of the target application, and creates a target window on the main interface page; loads activity data in the target window; if a closing instruction to the target window is detected, the target window is controlled to close, and the main interface page is displayed, which solves the problem in the related art that when a user opens an application in an Android device, due to the lower version of the mobile phone, there is obvious lag when the user clicks the skip button in the activity data to jump to the main interface of the application, resulting in a poor user experience. By transferring the activity data of the startup page to the main interface page, the problem of lag in the mobile device caused by jumping between different pages after the user clicks the skip button of the activity data in the mobile device is avoided, the fluency of the user operation is improved, and the effect of improving the user experience is achieved.
[0053] Optionally, in the activity data loading method for an Android application provided in Example 1 of the present application, jumping from the startup page to the main interface page of the target application includes: creating the main interface page of the target application; and jumping from the startup page to the main interface page through an Intent object.
[0054] In the first embodiment, in order to realize the jump between different pages (ie, the jump from the startup page to the main interface page of the target application), the main interface page can be created first, and then the Intent object is used to jump from the startup page to the main interface page.
[0055] Intent object is a mechanism in Android for transmitting messages between different components (e.g., Activity component, Service component, Broadcast Receiver component, etc.) Specifically, a new Intent object A1 can be created, and the class name of the Intent object A1 can be set, and then the startActivity() method can be called to realize page jump.
[0056] The Intent object can be used to jump from the startup page to the main interface page, separating the page jump logic from the target page implementation, improving the readability and maintainability of the code.
[0057] Optionally, in the activity data loading method for an Android application provided in Example 1 of the present application, creating a target window in the main interface page includes: creating a first window in the main interface page through the PopupWindow class; creating a skip button identifier in the first window, and configuring a preset display duration of the first window, wherein the skip button is used to control the display duration of the first window; determining the target window based on the first window, the preset duration and the skip button identifier.
[0058] In the first embodiment, in order to display activity data to the user in the main interface page, a pop-up window (i.e., the first window mentioned above) can be created in the main interface page through the PopupWindow class, and a skip button and a countdown component with a preset duration can be configured in the first window.
[0059] The skip button logo refers to the image logo of the skip button in the first window. The preset duration indicates the display duration of the first window. For example, when the preset duration is 5 seconds, it means that the first window will be automatically closed after being displayed for 5 seconds. The user can also click the skip button during the display of the first window to close the first window in advance.
[0060] The PopupWindow class is an Android class used to create a popup window in an Android application page. It can be displayed on top of a running application to provide additional information or interactive options. PopupWindow can be displayed anywhere on the screen and can contain any layout, view, or component. It is often used to implement drop-down menus, floating windows, prompt boxes, and other functions.
[0061] It should be noted that the size of the first window should be the same as the screen size of the mobile device, and the position of the first window should be configured to float just above the main interface page of the target application.
[0062] Compared with creating the first window through other class functions (for example, Dialog class, etc.), creating the first window through the PopupWindow class can create and manage the first window more efficiently. At the same time, when the skip button is clicked in the first window, there is no need to jump between pages, thereby avoiding the problem of mobile device lag and achieving the effect of improving user experience.
[0063] Optionally, in the activity data loading method of the Android application provided in Example 1 of the present application, loading the activity data in the target window includes: packaging the activity data through the Bundle function to obtain target data; passing the target data from the startup page to the main interface page; and loading the target data in the main interface page in the target window.
[0064] In this first embodiment, in order to load activity data as quickly as possible and improve user experience, activity data can be obtained when the startup page of the target application is started, and then the activity data is passed from the startup page to the main interface page through the Bundle function, so that the activity data is displayed to the user in the main interface page.
[0065] The Bundle function is often used in Android application development to bundle multiple data items together and pass data between different Activities. The Bundle function can package different types of data items (for example, strings, integers, Boolean values, etc.) into a unified data package for transmission or storage in the program.
[0066] By obtaining the activity data in advance and then passing the activity data from the startup page to the main interface page through the Bundle function, users can see the activity data immediately after seeing the startup page, avoiding the problem of mobile device lag caused by jumping to the main interface page and then obtaining the activity data, thereby achieving the effect of improving user experience.
[0067] Optionally, in the activity data loading method for an Android application provided in Example 1 of the present application, after jumping from the startup page to the main interface page of the target application, the method further includes: obtaining the main interface data of the target application; after loading the activity data in the target window, the method further includes: loading the main interface data on the main interface page.
[0068] In the first embodiment of the present invention, in order to ensure that the user can use the target application smoothly, the main interface data that needs to be displayed on the main interface page can be obtained after jumping to the main interface page, that is, the main interface data is loaded when the user browses the active data in the target window, and the main interface data of the main interface page is loaded after the target window has loaded the active data, thereby avoiding loading the main interface data after the user jumps over the active data displayed in the target window, causing the target application to freeze and resulting in a poor user experience, thereby achieving the effect of improving the user experience.
[0069] Optionally, in the activity data loading method for Android applications provided in Example 1 of the present application, obtaining the startup image and activity data of the target application includes: generating a data request instruction, wherein the data request instruction is used to request the startup image and activity data; sending the data request instruction to the back-end interface of the target application; and the back-end interface responds to the data request instruction and returns the startup image and activity data.
[0070] In the first embodiment, in order to obtain the activity data displayed to the user in the page, a data request instruction for requesting the activity data and the startup image can be generated, and then the data request instruction is sent to the back-end interface of the target application. The back-end code obtains the startup image and activity data, and returns the obtained startup image and activity data to the startup page. The image data and activity data of the startup image can be stored in the local folder of the target application, and can also be obtained through a network http request. In addition, when obtaining the main interface data of the main interface page, it can also be obtained by generating a data request instruction and a back-end interface.
[0071] The startup image and activity data can be obtained from the local data or network data of the target application through the backend interface, which is beneficial for loading the startup image on the startup page and loading the activity data on the main interface page.
[0072] Optionally, in the activity data loading method for an Android application provided in Embodiment 1 of the present application, the triggering condition for the close instruction is one of the following conditions: the display time of the target window reaches a preset time, and the skip button mark is clicked.
[0073] In the first embodiment of the present invention, when the target application displays the activity data of the target window to the user, the closing instruction of the target window can be triggered by two conditions: one condition is that the display time of the target window reaches a preset time (for example, 2 seconds, 3 seconds, 5 seconds, etc.), and the other condition is that the user clicks the skip button in the target window.
[0074] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0075] Embodiment 2
[0076] The second embodiment of the present application also provides an activity data loading device for an Android application. It should be noted that the activity data loading device for an Android application in the second embodiment of the present application can be used to execute the activity data loading method for an Android application provided in the first embodiment of the present application. The activity data loading device for an Android application provided in the second embodiment of the present application is introduced below.
[0077] Figure 5 Schematic diagram of an activity data loading device for an Android application according to Embodiment 2 of the present application. Figure 5 As shown, the device includes: an acquisition unit 501, a creation unit 502, a jump unit 503, a loading unit 504 and a control unit 505.
[0078] Specifically, the acquisition unit 501 is used to obtain the startup image and activity data of the target application when receiving the startup instruction of the target application, wherein the startup image refers to the image displayed on the device screen when the target application is started, and the activity data refers to the advertising information or product information delivered by the target application.
[0079] The creation unit 502 is used to create a startup page of the target application and load a startup image into the startup page.
[0080] The jump unit 503 is used to jump from the startup page to the main interface page of the target application after the startup image is loaded in the startup page, and create a target window on the main interface page.
[0081] The loading unit 504 is used to load the activity data into the target window.
[0082] The control unit 505 is used to control the target window to close and display the main interface page if a closing instruction to the target window is detected.
[0083] The activity data loading device for an Android application provided in the second embodiment of the present application obtains the startup image and activity data of the target application through the acquisition unit 501 when receiving the startup instruction of the target application, wherein the startup image refers to the image displayed on the device screen when the target application is started, and the activity data refers to the advertising information or product information delivered by the target application; the creation unit 502 creates the startup page of the target application and loads the startup image in the startup page; the jump unit 503 jumps from the startup page to the main interface page of the target application after the startup image is loaded in the startup page, and creates a target window on the main interface page; the loading unit 504 loads the activity data in the target window; the control unit 505 controls the target window to close and displays the main interface page if a closing instruction to the target window is detected, thereby solving the problem in the related art that when a user opens an application in an Android device, due to the lower version of the mobile phone, there is a significant lag when the user clicks the skip button in the activity data to jump to the main interface of the application, resulting in a poor user experience. By passing the activity data of the startup page to the main interface page, the problem of mobile device lag caused by users jumping between different pages after clicking the skip button of the activity data on the mobile device is avoided, which improves the smoothness of user operation and achieves the effect of improving user experience.
[0084] Optionally, in the active data loading device for Android applications provided in Example 2 of the present application, the above-mentioned jump unit 503 includes: a first creation sub-unit, used to create the main interface page of the target application; and a jump sub-unit, used to jump from the startup page to the main interface page through an Intent object.
[0085] Optionally, in the active data loading device for the Android application provided in Example 2 of the present application, the above-mentioned jump unit 503 also includes: a second creation sub-unit, used to create a first window in the main interface page through the PopupWindow class; a configuration sub-unit, used to create an identifier of a skip button in the first window, and configure a preset display time of the first window, wherein the skip button is used to control the display time of the first window; a determination sub-unit, used to determine the target window based on the first window, the preset time and the identifier of the skip button.
[0086] Optionally, in the activity data loading device for the Android application provided in Example 2 of the present application, the above-mentioned loading unit 504 includes: a processing subunit, used to package the activity data through the Bundle function to obtain target data; a transmission subunit, used to transfer the target data from the startup page to the main interface page; and a loading subunit, used to load the target data in the main interface page into the target window.
[0087] Optionally, in the activity data loading device for an Android application provided in Example 2 of the present application, the above-mentioned device also includes: after jumping from the startup page to the main interface page of the target application, obtaining the main interface data of the target application; the loading unit 504 also includes: after loading the activity data in the target window, loading the main interface data on the main interface page.
[0088] Optionally, in the activity data loading device for the Android application provided in Example 2 of the present application, the above-mentioned acquisition unit 501 includes: a generating subunit, used to generate a data request instruction, wherein the data request instruction is used to request a startup image and activity data; a sending subunit, used to send a data request instruction to the back-end interface of the target application; and a returning subunit, used for the back-end interface to respond to the data request instruction and return the startup image and activity data.
[0089] Optionally, in the activity data loading device for an Android application provided in Embodiment 2 of the present application, the triggering condition of the above-mentioned close instruction is one of the following conditions: the display time of the target window reaches a preset time, and the skip button icon is clicked.
[0090] The activity data loading device of the Android application includes a processor and a memory. The above-mentioned acquisition unit 501, creation unit 502, jump unit 503, loading unit 504 and control unit 505 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0091] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the user experience of Android applications can be improved by adjusting kernel parameters.
[0092] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0093] Embodiment 3 of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a method for loading activity data of an Android application is implemented.
[0094] A fourth embodiment of the present invention provides a processor, which is used to run a program, wherein the activity data loading method of an Android application is executed when the program is running.
[0095] like Figure 6 As shown, embodiment 5 of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: upon receiving a startup instruction of a target application, obtaining a startup image and activity data of the target application, wherein the startup image refers to an image displayed on the device screen when the target application is started, and the activity data refers to advertising information or product information delivered by the target application; creating a startup page of the target application, and loading the startup image in the startup page; after the startup image is loaded in the startup page, jumping from the startup page to the main interface page of the target application, and creating a target window on the main interface page; loading activity data in the target window; if a closing instruction for the target window is detected, controlling the target window to close, and displaying the main interface page.
[0096] When the processor executes the program, the following steps are also implemented: jumping from the startup page to the main interface page of the target application includes: creating the main interface page of the target application; jumping from the startup page to the main interface page through the Intent object.
[0097] When the processor executes the program, the following steps are also implemented: creating a target window in the main interface page includes: creating a first window in the main interface page through the PopupWindow class; creating a skip button identifier in the first window, and configuring a preset display duration of the first window, wherein the skip button is used to control the display duration of the first window; determining the target window based on the first window, the preset duration and the skip button identifier.
[0098] When executing the program, the processor also implements the following steps: loading the active data in the target window includes: packaging the active data through the Bundle function to obtain the target data; transferring the target data from the startup page to the main interface page; loading the target data in the main interface page in the target window.
[0099] When the processor executes the program, the following steps are also implemented: after jumping from the startup page to the main interface page of the target application, the method also includes: obtaining the main interface data of the target application; after loading the active data in the target window, the method also includes: loading the main interface data in the main interface page.
[0100] When the processor executes the program, the following steps are also implemented: obtaining the startup image and activity data of the target application includes: generating a data request instruction, wherein the data request instruction is used to request the startup image and activity data; sending the data request instruction to the back-end interface of the target application; the back-end interface responds to the data request instruction and returns the startup image and activity data.
[0101] When the processor executes the program, the following steps are also implemented: the triggering condition of the close instruction is one of the following conditions: the display time of the target window reaches a preset time, and the mark of the skip button is clicked.
[0102] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0103] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: upon receiving a startup instruction of a target application, obtaining a startup image and activity data of the target application, wherein the startup image refers to an image displayed on the device screen when the target application is started, and the activity data refers to advertising information or product information delivered by the target application; creating a startup page of the target application, and loading the startup image in the startup page; after the startup image is loaded in the startup page, jumping from the startup page to the main interface page of the target application, and creating a target window in the main interface page; loading activity data in the target window; if a closing instruction for the target window is detected, controlling the target window to close, and displaying the main interface page.
[0104] When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: jumping from the startup page to the main interface page of the target application includes: creating the main interface page of the target application; jumping from the startup page to the main interface page through an Intent object.
[0105] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: creating a target window on the main interface page includes: creating a first window on the main interface page through the PopupWindow class; creating a skip button identifier in the first window, and configuring a preset display duration of the first window, wherein the skip button is used to control the display duration of the first window; determining the target window based on the first window, the preset duration and the skip button identifier.
[0106] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: loading active data in a target window includes: packaging the active data through a Bundle function to obtain target data; transferring the target data from the startup page to the main interface page; and loading the target data in the main interface page in the target window.
[0107] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: after jumping from a startup page to a main interface page of a target application, the method further includes: obtaining main interface data of the target application; after loading active data in a target window, the method further includes: loading main interface data in the main interface page.
[0108] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: obtaining the startup image and activity data of the target application includes: generating a data request instruction, wherein the data request instruction is used to request the startup image and activity data; sending the data request instruction to the back-end interface of the target application; the back-end interface responds to the data request instruction and returns the startup image and activity data.
[0109] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: the trigger condition of the close instruction is one of the following conditions: the display time of the target window reaches a preset time, and the skip button mark is clicked.
[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0112] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0114] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0115] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0116] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0117] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0119] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for loading activity data of an Android application, characterized in that: include: Upon receiving a start instruction of a target application, obtaining a start image and activity data of the target application, wherein the start image refers to an image displayed on a device screen when the target application is started, and the activity data refers to advertising information or product information delivered by the target application; Creating a startup page for the target application, and loading the startup image into the startup page; After the startup image is loaded in the startup page, jump from the startup page to the main interface page of the target application, and create a target window on the main interface page; Loading the activity data in the target window; If a closing instruction for the target window is detected, the target window is controlled to be closed and the main interface page is displayed.
2. The method according to claim 1, characterized in that Jumping from the startup page to the main interface page of the target application includes: Creating a main interface page of the target application; Jump from the startup page to the main interface page through the Intent object.
3. The method according to claim 1, characterized in that Creating a target window on the main interface page includes: Create a first window in the main interface page through the PopupWindow class; Creating a skip button identifier in the first window and configuring a preset duration for displaying the first window, wherein the skip button is used to control the display duration of the first window; The target window is determined according to the first window, the preset duration and an identifier of a skip button.
4. The method according to claim 1, characterized in that: Loading the activity data in the target window includes: The activity data is packaged by a Bundle function to obtain target data; Transferring the target data from the startup page to the main interface page; The target data in the main interface page is loaded into the target window.
5. The method according to claim 1, characterized in that After jumping from the startup page to the main interface page of the target application, the method further includes: acquiring the main interface data of the target application; After the activity data is loaded in the target window, the method further includes: loading the main interface data in the main interface page.
6. The method according to claim 1, characterized in that Obtaining the startup image and activity data of the target application includes: Generate a data request instruction, wherein the data request instruction is used to request the startup image and the activity data; Sending a data request instruction to the back-end interface of the target application; The backend interface responds to the data request instruction and returns the startup image and the activity data.
7. The method according to claim 3, characterized in that The triggering condition of the close instruction is one of the following conditions: the display time of the target window reaches the preset time, and the mark of the skip button is clicked.
8. An activity data loading device for an Android application, characterized in that: include: an acquisition unit, configured to acquire a startup image and activity data of the target application upon receiving a startup instruction of the target application, wherein the startup image refers to an image displayed on a device screen when the target application is started, and the activity data refers to advertising information or product information delivered by the target application; A creation unit, configured to create a startup page of the target application and load the startup image into the startup page; A jump unit, configured to jump from the startup page to the main interface page of the target application after the startup image is loaded in the startup page, and to create a target window on the main interface page; A loading unit, used for loading the activity data into the target window; The control unit is used to control the target window to close and display the main interface page if a closing instruction to the target window is detected.
9. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the method for loading active data for an Android application as described in any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the active data loading method for Android applications as described in any one of claims 1 to 7.