CN112148399B - Application icon switching method and device and storage medium - Google Patents

Application icon switching method and device and storage medium Download PDF

Info

Publication number
CN112148399B
CN112148399B CN201910580226.6A CN201910580226A CN112148399B CN 112148399 B CN112148399 B CN 112148399B CN 201910580226 A CN201910580226 A CN 201910580226A CN 112148399 B CN112148399 B CN 112148399B
Authority
CN
China
Prior art keywords
application icon
switching
icon
virtual
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910580226.6A
Other languages
Chinese (zh)
Other versions
CN112148399A (en
Inventor
张志根
林钊武
黄国强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910580226.6A priority Critical patent/CN112148399B/en
Publication of CN112148399A publication Critical patent/CN112148399A/en
Application granted granted Critical
Publication of CN112148399B publication Critical patent/CN112148399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The embodiment of the invention discloses a switching method, a switching device and a storage medium of application icons, wherein the triggering conditions corresponding to operation events of the application icons and operation events of the application icons are obtained; when the operation event of the application icon meets the triggering condition, generating a switching request of the application icon; according to the application icon switching request, an operation application icon with operation information to be switched is called; and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon. Therefore, when the operation event of the application icon meets the triggering condition, the switching request of the application icon is initiated, the operation application icon with operation information to be switched is correspondingly called, the operation application icon with operation information to be switched and the currently displayed application icon are rapidly switched in a noninductive manner, the waiting time of switching the operation application icon is reduced, and the switching efficiency of the application icon is greatly improved.

Description

Application icon switching method and device and storage medium
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for switching application icons, and a storage medium.
Background
With the continuous popularization and development of the terminal, users are more and more dependent on the terminal, and various applications can be installed on the terminal to facilitate the life of the users, wherein after the application is installed, unique application icons of the applications are displayed on the desktop of the terminal, and the users can click the application icons to open corresponding applications.
In the prior art, the application icon of each application is set unchanged by an application developer, and in the actual use process, because a special date is reached or a special activity is held, the special application icon needs to be displayed to transmit more information to a user, at the moment, a new version of application can be released, so that after the terminal is installed by downloading a corresponding installation package of the new version of application, the display of the application icon is changed into a required application icon.
In the research and practice process of the prior art, the inventor discovers that in the prior art, although a method for changing the application icon is provided, a new application version is required to be released for the application icon to be updated after the terminal downloads each time of changing the application icon, the process is complex, and the switching efficiency of the application icon is low.
Disclosure of Invention
The embodiment of the invention provides a switching method and device of application icons and a storage medium, aiming at improving the switching efficiency of the application icons.
In order to solve the technical problems, the embodiment of the invention provides the following technical scheme:
a switching method of application icons comprises the following steps:
Acquiring a triggering condition corresponding to an operation event of an application icon and the operation event of the application icon;
When the operation event of the application icon meets the triggering condition, generating a switching request of the application icon;
according to the application icon switching request, an operation application icon with operation information to be switched is called;
and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
An application icon switching device, comprising:
the acquisition unit is used for acquiring the triggering conditions corresponding to the operation event of the application icon and the operation event of the application icon;
The switching generation unit is used for generating a switching request of the application icon when the operation event of the application icon meets the triggering condition;
the calling unit is used for calling the operation application icon with operation information to be switched according to the application icon switching request;
and the switching unit is used for performing noninductive switching on the operation application icon with the operation information to be switched and the application icon.
In some embodiments, the time determination subunit is specifically configured to:
Triggering a virtual icon switching request according to the application icon switching request;
Determining a corresponding virtual movable object according to the virtual icon switching request;
modifying display attribute information of the virtual activity object to obtain a virtual switching activity request corresponding to the virtual activity object;
and determining a corresponding virtual time node according to the virtual switching activity request.
In some embodiments, the time determination subunit is further specifically configured to:
Triggering a virtual icon switching request according to the application icon switching request;
Determining a corresponding virtual movable object according to the virtual icon switching request;
modifying display attribute information of the virtual activity object to obtain a virtual switching activity request corresponding to the virtual activity object;
When detecting that a switching activity request exists in the system, adding the virtual switching activity request into a first processing queue corresponding to the switching activity request for processing;
When detecting that a switching activity request does not exist in the system, creating a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request;
the point in time when the virtual switch activity request processing is completed is determined as a virtual time node.
In some embodiments, the switching subunit is specifically further configured to:
And calling an operation application icon with operation information to be switched according to the switching notification message, generating an operation icon switching request, and creating a target processing queue corresponding to the operation icon switching request.
In some embodiments, the switching unit is specifically further configured to:
Adding the operation icon switching request into the target processing queue;
Before the target processing queue processes the operation icon switching request, the switching request is added into the target processing queue to perform unified processing, and the application icon is switched into the operation application icon.
In some embodiments, the switching subunit is specifically further configured to:
And according to the switching notification message, calling an operation application icon with operation information to be switched, generating an operation icon switching request, and starting to calculate a time point, wherein the response time of the operation icon switching request is a first preset time threshold.
In some embodiments, the switching unit is specifically further configured to:
loading the switching request when the time point reaches a second preset time threshold value, wherein the second preset time threshold value is smaller than the first preset time threshold value;
and when the time point reaches a first preset time threshold, responding to the operation icon switching request and the switching request, and switching the application icon into an operation application icon.
In some embodiments, the processing device further comprises:
the configuration unit is used for configuring a plurality of application icon active object labels for the application, and each application icon active object label corresponds to a different application icon;
The first setting unit is used for setting the display attribute of the application icon active object label corresponding to the displayed first application icon as a first parameter so as to display the first application icon;
And the second setting unit is used for setting the display attribute of the application icon active object label corresponding to the second application icon which is not displayed as a second parameter so as to hide the second application icon.
In some embodiments, the switching unit is specifically further configured to:
before the operation icon switching request is executed, loading the switching request, and determining an operation application icon active object label corresponding to an operation application icon;
modifying the display attribute of the application icon active object label corresponding to the currently displayed application icon into a second parameter so as to hide the currently displayed application icon;
and modifying the display attribute of the operation application icon active object label into a first parameter so as to display the operation application icon.
A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the above-described application icon switching method.
According to the embodiment of the invention, the triggering conditions corresponding to the operation event of the application icon and the operation event of the application icon are obtained; when the operation event of the application icon meets the triggering condition, generating a switching request of the application icon; according to the application icon switching request, an operation application icon with operation information to be switched is called; and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon. Therefore, when the operation event of the application icon meets the triggering condition, the switching request of the application icon is initiated, the operation application icon with operation information to be switched is correspondingly called, the operation application icon with operation information to be switched and the currently displayed application icon are rapidly switched in a noninductive manner, the waiting time of switching the operation application icon is reduced, and the switching efficiency of the application icon is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of an application icon switching system according to an embodiment of the present invention;
fig. 2 is a flow chart of a method for switching application icons according to an embodiment of the present invention;
fig. 3 is another flow chart of a method for switching application icons according to an embodiment of the present invention;
fig. 4a is a schematic diagram of a switching scenario of an application icon according to an embodiment of the present invention;
fig. 4b is another schematic diagram of a switching scenario of an application icon according to an embodiment of the present invention;
fig. 5a is a schematic structural diagram of a switching device for application icons according to an embodiment of the present invention;
Fig. 5b is another schematic structural diagram of an application icon switching device according to an embodiment of the present invention;
fig. 5c is another schematic structural diagram of an application icon switching device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The embodiment of the invention provides a switching method and device of application icons and a storage medium.
Referring to fig. 1, fig. 1 is a schematic view of a system for switching application icons according to an embodiment of the present invention, including: terminal a and the server (the processing system may also include other terminals besides terminal a, the specific number of which is not limited herein) may be connected through a communication network between terminal a and the server, where the communication network may include a wireless network and a wired network, and the wireless network includes one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal area network. The network includes network entities such as routers, gateways, etc., which are not shown. The terminal A can interact with the server through a communication network, for example, the terminal A can download a corresponding installation package of an application through the server for installation and use, after the application is installed, a corresponding application icon can be displayed on a desktop of the terminal A, and a user can open the application for use by clicking the application icon. When an application developer needs to issue a certain activity, the icon needs to be changed into a corresponding activity icon, so that the effect of notifying the user is achieved unknowingly, the server can send a switching request to the terminal A, and the terminal A responds to the switching request to switch the application icon into an operation application icon in a non-sense manner.
The application icon switching system may include an application icon switching device, which may be specifically integrated in a terminal, and in fig. 1, the server may store an application corresponding installation package, user data information, application use data information, and the like.
The system for switching the application icons can further comprise a terminal A, wherein the terminal A can install various applications required by users, such as a browser application, a cleaning application, an instant messaging application and the like, after receiving a switching request sent by a server, the terminal A acquires triggering conditions corresponding to operation events of the application icons and operation events of the application icons, and generates the switching request of the application icons when the operation events of the application icons meet the triggering conditions; according to the application icon switching request, an operation application icon with operation information to be switched is called; and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
It should be noted that, the schematic view of the scenario of the application icon switching system shown in fig. 1 is only an example, and the application icon switching system and scenario described in the embodiments of the present invention are for more clearly describing the technical solution of the embodiments of the present invention, and do not constitute a limitation on the technical solution provided by the embodiments of the present invention, and as one of ordinary skill in the art can know, along with the evolution of the application icon switching system and the appearance of a new service scenario, the technical solution provided by the embodiments of the present invention is equally applicable to similar technical problems.
The following will describe in detail. The numbers of the following examples are not intended to limit the preferred order of the examples.
Embodiment 1,
In this embodiment, description will be made in terms of a switching device of application icons, which may be integrated in a terminal having a storage unit and a microprocessor mounted therein and having arithmetic capability.
A switching method of application icons comprises the following steps: acquiring triggering conditions corresponding to the operation event of the application icon and the operation event of the application icon; when the operation event of the application icon meets the triggering condition, generating a switching request of the application icon; according to the application icon switching request, an operation application icon with operation information to be switched is called; and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for switching application icons according to an embodiment of the invention. The application icon switching method comprises the following steps:
In step 101, a trigger condition corresponding to an operation event of an application icon and an operation event of the application icon is obtained.
It will be appreciated that before describing the embodiments of the present application, a brief description of an application background of the embodiments of the present application is provided, and a desktop application is provided: the operating system is also provided with an application for displaying the installed applications after the application is installed, the application is called as a desktop application, a desktop displayed after a user clicks a Home key of the terminal is an interface of the desktop application, and for personalized display, corresponding application icons of the same application on the desktop can also have various forms, such as different application icons in different holidays or specific application icons when special activities are held, so that the desktop application icons need to be dynamically changed into desktop application icons corresponding to operation events under different operation events, a user is visually influenced, and the user is reminded of clicking the application icons to process related events, and the active use efficiency of the application is improved.
The activity object is one of four most basic and common components in the application components of the operating system, the operating system may be an android (android) system, and the activity object is an application component, and a user may interact with a screen provided by the application component to perform operations such as dialing a call, taking a photograph, sending an email, or viewing a map. Each activity object gets a window for drawing its user interface. The window is usually full of the screen, but can be smaller than the screen and float above other windows, so that the application icon of the desktop can display the corresponding target picture by designating the picture attribute of the application portal activity object to the corresponding target picture.
In order to realize the change of the desktop application icon, besides downloading a new application version for updating, the embedded icon is actively switched, that is, the specific function, such as the activity-alias tag function, the activity-alias tag, is used as the name meaning, that is, the alias of the activity object. See here, what is what aliases of activity objects it would want to be? When creating an activity object, we must statically declare the activity object in the application manifest AndroidManifest, and configure properties such as android: name, android: label, and android: icon, and also configure an intent filter (intent-filter). For activity-alias tags, it has an attribute called android TARGETACTIVITY, which is used to set the target activity for the tag, or it is the alias of the target activity object. By now it has been appreciated that activity-alias tags do not represent a separate activity object, but rather are aliases created for an existing activity object.
After knowing the concept of activity-alias tags, then what is its function? The activity-alias tag is used as an alias of the existing activity object, and then the target activity object can be quickly opened through the alias tag. Thus activity-alias can be used to set a shortcut entry for an activity that can be placed on a desktop or quickly called up by other components through the alias. The activity-alias tag supports some configurations such as attributes and content-filters, so that some functional logic different from the target activity object can be triggered, although the same activity object is opened. For a simple example, if the main interface needs to be opened before and then a certain activity object can be clicked, if a shortcut entry is configured for the activity object by using activity-interfaces, an icon can be generated even for the activity object on a desktop, then the activity object can be directly clicked by clicking the desktop icon, and the function can meet certain requirements of needing to quickly reach the function interface.
It is known that an operating system supports that a unified activity object may have a plurality of aliases, that is, an application portal activity object of an application may be configured with a plurality of different activity-activity labels, where each activity-activity label corresponds to a separate application icon, and the plurality of different activity-activity labels may point to the same android TARGETACTIVITY, that is, the plurality of different activity-activity labels open the same target activity object, that is, open a main interface (target activity) of the same application, that is, a function of opening a main interface of the same application through a plurality of application icons is implemented.
In the normal use process, only one default application icon is required to be displayed on the desktop, and in one embodiment, whether the desktop is instantiated or not is determined through android: enabled attribute values false and true, so that the desktop can be selectively determined to display the portal.
In this embodiment, the operation event may be a holiday operation event, where the holiday operation event is an operation event under a specific time, for example, a holiday operation event under a spring festival time corresponding to an application icon, and a holiday operation event corresponding to a consumer equity day of 3 months and 15 days corresponding to the application icon. The operation event may also be an event operation event, where the event operation event is an operation event under a specific event, such as a buffer cleaning operation event corresponding to an application icon, and when the operation event is an operation event under a specific event, a corresponding trigger condition is a buffer threshold, and when a buffer of an application corresponding to an application icon exceeds 1 gigabyte (Gigabyte, GB), in order to satisfy a trigger condition of the buffer cleaning operation event, the operation event of the application icon and the trigger condition corresponding to the application icon may be set by a developer or an application service provider according to the user, which is not specifically limited herein. Therefore, the terminal can acquire the triggering condition corresponding to the operation event of the application icon and the operation event of the application icon according to the preset frequency.
In step 102, when the operation event of the application icon satisfies the trigger condition, a request for switching the application icon is generated.
When the server needs to dynamically operate a certain application icon displayed on the desktop of the terminal, a trigger condition can be sent to the terminal to inform the terminal to switch the currently displayed application icon to an operation application icon, so that the effect of dynamically operating the application icon is achieved.
Further, when the terminal detects that the operation event of the application icon meets the triggering condition, if the operation event of the application icon is a cache cleaning operation event and the triggering condition is that the cache exceeds 1GB, when the terminal detects that the cache of the application corresponding to the application icon exceeds 1GB, it is determined that the operation event of the application icon meets the triggering condition, dynamic operation of the application icon is performed, and a switching request of the application icon is generated for starting to execute the switching process of the application icon.
In step 103, the operation application icon with operation information to be switched is retrieved according to the application icon switching request.
After generating the application icon switching request, the terminal may call the application icon with operation information to be switched according to the application icon switching request, where the application icon with operation information may be an application icon that is sent by the server together when sending a trigger condition, or may be an application icon that is pre-stored in a storage space by the terminal, where the operation application icon may display corresponding operation information, for example, a "315" digital style is displayed to prompt the user that an application corresponding to the application icon includes an activity related to a consumer's interest day, and the user may directly jump to an application page including the activity related to the consumer's interest day through a preset click, for example, by double clicking or long pressing the operation application icon, where the operation application icon may also display a text style, for example, "to be cleaned", to prompt the user that the application corresponding to the application icon is too large in cache, and the user needs to clean in time, and then may directly execute the function of cleaning the cache through a preset click, for example, by double clicking or long pressing the operation icon.
In some embodiments, the step of retrieving the operation application icon with operation information to be switched according to the application icon switching request may include:
(1) Triggering a virtual icon switching request according to the application icon switching request, and determining a corresponding virtual time node according to the virtual icon switching request;
(2) When the current time point reaches the virtual time node, generating a switching notification message;
(3) And calling the operation application icon with operation information to be switched according to the switching notification message and generating an operation icon switching request.
The virtual icon switching request may be triggered according to the application icon switching request, where the virtual icon switching request is a switching request of a virtual icon on the user interface, the virtual icon switching request may specifically be a virtual active object, where the virtual active object may be an activity object, and the virtual active object may be a component virtual on the user interface, that is, a user may not perceive a change of the virtual active object that results in a change of the virtual active object, that is, the virtual active object may have no substantial effect for determining a virtual time node.
Further, the virtual time node is a starting point of a system for intensively processing all requests of the activity objects, in an existing operating system, in order to avoid consuming system resources caused by frequently responding to the activity objects to implement application icon switching, a default time, for example, 10 seconds, is set in the operating system, and when a first new activity object task is received, timing is started, and all activity object tasks within the next 10 seconds are intensively processed. That is, when the first activity object task is received, there is a waiting time of 10 seconds, and in this waiting time of 10 seconds, if the application icon is switched, the icon switching request needs to arrive at the waiting time of 10 seconds, and then the application icon can be switched in response to execution, that is, there is a preparation time of 0 to 10 seconds, and in the preparation time, the application icon is clicked to generate an invalid phenomenon, and if the icon switching request is immediately validated by immediately killing the application, the application flash is also caused.
According to the embodiment of the application, the virtual icon switching request is triggered according to the application icon switching request, and the attribute information of the virtual active object corresponding to the virtual icon switching request can be modified. After the display attribute information is modified, a virtual switching activity request is obtained, and if other switching activity requests exist in the current operating system, namely, a waiting time of 10 seconds exists, the virtual switching activity request is added into a waiting queue to be processed with other switching activity requests in a delayed batch mode; if no other switching activity request exists in the current operating system, a new 10 second wait time is started and waited, and when the 10 second wait time arrives, the operating system processes the virtual switching activity request.
Correspondingly, when the operating system finishes processing the virtual activity request, namely, the state switching of the virtual activity object is completed, the operating system is in a window-free state, at the moment, the operating system is free without any switching activity request, and correspondingly, for the accuracy of the switching of the subsequent application icons, the current time is determined to be the virtual time node which is not corresponding. When the current time point reaches the virtual time node, the operating system can intensively process all switching activity requests including the virtual switching activity request, so that the operating system is in an idle stage, at this time, the operating system can uniformly broadcast prompt information to the outside, namely generate a switching notification message, the broadcast prompt information is used for notifying the virtual icon switching request that the processing is completed, namely the current time point is a reference point, an operation icon switching request can be generated immediately based on the reference point, and an operation application icon with operation information to be switched can be called, and the operation icon switching request can be an empty instruction, only the system response is triggered, and specific operation is not executed. Further, when the operation icon switching request is received by the operating system, a system processing queue is correspondingly established, the operation icon switching request can be executed only when the default time of the system is required to be up to 10 seconds, and other switching activity requests can be added into the system processing queue within the waiting time of 10 seconds until the time is up, so that the processing is unified. The operation icon switching request is used for triggering a timing mechanism, which is obtained by triggering and detecting the virtual icon switching request, and is clear, accurate and controllable from the starting point to the ending point, unlike the prior art.
In some embodiments, the step of determining a corresponding virtual time node according to the virtual icon switching request may include:
(1.1) determining a corresponding virtual active object according to the virtual icon switching request;
(1.2) modifying display attribute information of the virtual active object to obtain a virtual switching active request corresponding to the virtual active object;
(1.3) determining a corresponding virtual time node based on the virtual switch activity request.
The corresponding virtual active object is determined according to the virtual icon switching request, and the virtual active object corresponds to a virtual component, such as a transparent component, on the user interface, that is, no matter whether the virtual active object is in a display state or not, the user cannot perceive the change of the interface. Therefore, the display attribute information of the virtual active object, namely the android: enabled attribute values false and true, can be modified to false if the current display attribute information of the virtual active object is true, and can be modified to true if the current display attribute information of the virtual active object is false, so that the virtual switching active request corresponding to the virtual active object is generated due to the change of the display attribute information.
Further, the virtual switching activity request is processed, if other switching activity requests exist in the current operating system, a waiting queue is added to process the virtual switching activity request simultaneously with other switching activity requests, if other switching activity requests do not exist in the current operating system, a default time of the system is started and waited for to arrive, the virtual switching activity request is processed, and a time point when the virtual switching activity is completed is determined to be a virtual time node.
In some embodiments, the step of determining a corresponding virtual time node according to the virtual switch activity request may include:
(2.1) when detecting that a switching activity request exists in the system, adding the virtual switching activity request into a first processing queue corresponding to the switching activity request for processing;
(2.2) when detecting that the switching activity request does not exist in the system, creating a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request;
(2.3) determining a point in time when the virtual handover activity request process is completed as a virtual time node.
When the operating system detects that other switching activity requests exist in the system, it indicates that a waiting processing task with a default time of 10 seconds exists in the operating system currently, the virtual switching activity request needs to be added to a first processing queue corresponding to other switching activities to wait for unified processing, the waiting time is uncertain, for example, when the virtual switching activity request is added to the first processing queue, the first processing queue has been waiting for 5 seconds, then after 5 seconds, all switching activity requests can be processed in a unified manner, for example, when the virtual switching activity request is added to the first processing queue, the first processing queue has been waiting for 8 seconds, and then after 2 seconds, all switching activity requests can be processed in a unified manner. When the operating system detects that other switching activity requests do not exist in the system, the operating system indicates that no waiting processing task exists in the operating system currently, correspondingly, a second processing queue corresponding to the virtual switching activity request can be created, the waiting processing task with the default time of 10 seconds is started, and during the period, other switching activity requests are added into the second processing queue together, and the waiting time of 10 seconds arrives to be processed uniformly.
Further, when the operating system responds to the virtual switching activity request, that is, when the state switching of the virtual activity object is completed, it is indicated that all switching activity requests including the virtual switching activity request within the last 10 seconds are processed, the operating system is necessarily in an empty window (also can be understood as an idle) stage, and the time point when the processing of the virtual switching activity request is completed is the reference point or the starting point (i.e., the virtual time node) of the subsequent processing.
In step 104, the operation application icon with operation information to be switched is switched with the application icon without sense.
If the switching request is directly loaded according to the prior art, there is a waiting time of 10 seconds by default, that is, the switching request has a waiting period of 0 to 10 seconds, and in the waiting period, the current phenomenon that the click of the application icon is invalid occurs, which causes inconvenience to the user.
Therefore, in executing the switch request, it is definitely desirable to shorten the waiting time by 10 seconds, for example, loading the switch request in the very short time before the system gathers the switch task, so that the switch request can be directly executed by waiting only for the very short time, that is, the time when the current icon click is invalidated is shortened by very short time, such as 0.2 seconds, and the invalidating experience can be basically ignored.
In some embodiments, the step of performing the non-inductive switching between the operation application icon with the operation information to be switched and the application icon may include: before the operation icon switching request is executed, the switching request is loaded, and the application icon is switched to the operation application icon.
The embodiment of the application acquires a clear and accurate timing mechanism, and the timing mechanism is clear and accurate from a starting point of operation icon switching request generation to an ending point of operation icon switching request execution, so that the switching request is loaded only in a very short time before the operation icon switching request response is executed, for example, before 0.2 seconds or 0.5 seconds and the like before the operation icon switching request response is executed, so that the switching request can be processed simultaneously with the operation icon switching request only by waiting for 0.2 seconds or 0.5 seconds, that is, the currently applied icon only has invalid time of 0.2 seconds or 0.5 seconds, and the application icon can be switched into the operation application icon.
In some embodiments, the step of loading the switching request and switching the application icon to the operation application icon before the operation icon switching request is executed may include:
(1) Adding the operation icon switching request into the target processing queue;
(2) Before the target processing queue processes the operation icon switching request, the switching request is added into the target processing queue for unified processing, and the application icon is switched into the operation application icon.
When a target processing queue is created, an operation icon switching request is added to the target processing queue first, and processing is performed when a default time of 10 seconds arrives.
Furthermore, the switching request is added to the target processing queue in a very short time, such as 0.2 seconds or 0.5 seconds, before the target processing queue reaches the default time of 10 seconds to process the operation icon switching request, so that after 0.2 seconds or 0.5 seconds, the target processing queue can directly process the operation icon switching request and the switching request in a unified way, the application icon is switched to the operation application icon, and the original application icon only experiences the phenomenon of invalid click in a short time, so that the use of a user is not affected at all.
As can be seen from the above, in the embodiment of the present application, the triggering condition corresponding to the operation event of the application icon and the operation event of the application icon is obtained; when the operation event of the application icon meets the triggering condition, generating a switching request of the application icon; according to the application icon switching request, an operation application icon with operation information to be switched is called; and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon. Therefore, when the operation event of the application icon meets the triggering condition, the switching request of the application icon is initiated, the operation application icon with operation information to be switched is correspondingly called, the operation application icon with operation information to be switched and the currently displayed application icon are rapidly switched in a noninductive manner, the waiting time of switching the operation application icon is reduced, and the switching efficiency of the application icon is greatly improved.
Embodiment II,
The method described in accordance with embodiment one is described in further detail below by way of example.
In this embodiment, a description will be given of an example in which the switching device of the application icon is specifically integrated in the server.
Referring to fig. 3, fig. 3 is another flow chart of a method for switching application icons according to an embodiment of the application. The method flow may include:
in step 201, the terminal configures a plurality of application icon active object labels for applications, each application icon active object label corresponding to a different application icon.
The activity object tag of the application icon may be an activity-alias tag, where the activity-alias tag is an alias of the activity object, and the activity-alias tag may have various attribute information, such as:
and android, an enabling attribute information, wherein the attribute is used for determining whether a target activity object can be instantiated by a system through an alias, and defaults to true. It should be noted that application also has enable attribute information, which can determine which activity-alias tag is displayed on the desktop by the android, only when they are true at the same time.
Android, icon attribute information, which allows for custom icon, may be different from the icon of the application itself on the desktop. If a shortcut portal needs to be created on the desktop, the product may require a different icon to be changed, i.e., in the embodiment of the present application.
According to the method, the device and the system, the attribute information of the android is TARGETACTIVITY, the attribute information designates a target activity object, namely, which is the activity object called by the activity-activity label, and in the method, the android TARGETACTIVITY of all the activity-activity labels are pointed to the same target activity object, so that all the activity-activity labels open the same application interface.
Based on the above, the terminal can configure a plurality of activity-alias tags, and the icon attribute information is utilized to correspond to different application icons for each application icon active object tag.
In step 202, the terminal sets a display attribute of an application icon active object tag corresponding to a displayed first application icon as a first parameter, so that the first application icon is displayed, and sets a display attribute of an application icon active object tag corresponding to a non-displayed second application icon as a second parameter, so that the second application icon is hidden.
The android attribute information is a display attribute in the embodiment of the present application, when a parameter of the display attribute is true, a corresponding activity-alias tag is instantiated and displayed, and when the parameter of the display attribute is false, the corresponding activity-alias tag is not instantiated and hidden.
Further, the terminal may set the display attribute of the activity-alias tag corresponding to the first application icon to be displayed as true, so that the first application icon is displayed on the desktop, and the display attribute of the activity-alias tag corresponding to the second application icon that is not required to be displayed is set as false, so that the second application icon is hidden.
As shown in the left part of fig. 4a, the display attribute of the activity-alias tag corresponding to the first application icon 101 on the desktop of the terminal 100 is set to true, so that the first application icon 101 is displayed on the desktop.
In step 203, the terminal obtains a triggering condition corresponding to the operation event of the application icon and the operation event of the application icon.
The operation time may be a holiday operation event and an operation event under a specific event, for example, a holiday operation event of a consumer interest day corresponding to an application icon and an operation event of a cache cleaning event corresponding to the application icon, when the holiday operation event of the consumer interest day is the operation event, the corresponding trigger condition is time, and when the time reaches 3 months and 15 days, the trigger condition is satisfied. When the operation event is a cache cleaning event, the corresponding trigger condition is the cache of the application, and when the cache of the application exceeds 1GB, the trigger condition is satisfied. Therefore, the terminal can acquire the triggering condition corresponding to the operation event of the application icon and the operation event of the application icon according to the preset frequency.
In step 204, when the operation event of the application icon satisfies the trigger condition, the terminal generates a request for switching the application icon.
When the terminal detects that the current time reaches 3 months and 15 days, the operation time of holidays is judged to meet the trigger condition, or when the terminal detects that the cache of the application exceeds 1GB, the operation event of the cache cleaning time is judged to meet the trigger condition, and a switching request of the application icon is generated.
In step 205, the terminal triggers a virtual icon switching request according to the application icon switching request, determines a corresponding virtual active object according to the virtual icon switching request, and modifies display attribute information of the virtual active object to obtain a virtual switching activity request corresponding to the virtual active object.
The terminal triggers a virtual icon switching request according to the application icon switching request, determines a virtual active object corresponding to the virtual icon according to the virtual icon switching request, wherein the virtual active object is an activity object, the virtual active object can be a virtual component on an interface, and the virtual component is transparent, that is, the virtual component cannot be perceived by a user regardless of setting the android: active attribute information of the virtual active object, so the terminal can modify the android: active display attribute information of the virtual active object, change true into false or change false into true to obtain the virtual switching active request corresponding to the virtual active object, and the role of the virtual active object is to determine a virtual time node, so that the virtual active object has no substantial role.
In step 206, the terminal detects whether a handover activity request exists in the system.
In the existing operating system, in order to avoid consuming system resources caused by frequent response of the activity object to implement switching of the application icon, a default time, for example, 10 seconds, is set in the operating system, and when a first new activity object task is received, timing is started, and all activity object tasks of the next 10 seconds are centrally processed, so after obtaining the virtual switching activity request, the terminal needs to detect whether a switching activity request already exists in the system, and when the terminal detects that a switching activity request exists in the system, step 207 is executed. When the terminal detects that there is no handover activity request in the system, step 208 is performed.
In step 207, the terminal adds the virtual switching activity request to the first processing queue corresponding to the switching activity request for processing.
Wherein when the terminal detects that a handover activity request already exists in the system, the virtual handover activity request needs to be added to the first processing queue where the handover activity request already exists for processing, and the waiting time is uncertain and depends on the time when the first processing queue exists, for example, the waiting time is 4 seconds or the waiting time is 1 second when the first processing queue already exists for 6 seconds, and the waiting time is 9 seconds. All switching activity requests are added to the first processing queue within 10 seconds of the existence of the first processing queue, and unified processing is performed until the first processing queue is full of 10 seconds.
In step 208, the terminal creates a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request.
When the terminal detects that the switching activity request does not exist in the system, the terminal can create a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request, in this case, the waiting time of the second processing queue is determined to be 10 seconds as default time of the system, during this period, all the switching activity requests are added into the second processing queue, and until the second processing queue is full of 10 seconds, unified processing is performed.
In step 209, the terminal determines a point in time when the virtual handover activity request process is completed as a virtual time node.
The result of the virtual switching activity request is processed, when the virtual switching activity request processing is completed, it means that all switching activity requests including the virtual switching activity request within 10 seconds before the current time point, i.e. the virtual time node, may be called a starting point or a reference point, are processed completely.
In step 210, the terminal generates a handover notification message when the current point in time arrives at the virtual time node.
When the current time point reaches the virtual time node, the terminal processes all the switching activity requests including the virtual switching activity request in a centralized manner, so that the operating system is in an idle stage, at this time, a system function (packagedinager. SetcomponentEnabledSetting) of the terminal may uniformly send a Broadcast prompt message (Broadcast) to a switching icon service of the terminal, that is, a switching notification message, where the Broadcast prompt message is used to notify that the switching icon service is completed when the virtual activity object has been processed, that is, the current time point is a reference point, and preparation for switching an operation application icon may be started based on the reference point.
In step 211, the terminal retrieves the operation application icon with operation information to be switched and generates an operation icon switching request according to the switching notification message, and starts calculating the time point.
When receiving the broadcast prompt information, the switching icon service of the terminal indicates that the current system service (PACKAGEMANAGERSERVICE) of the terminal is in an idle state, and the switching icon service can immediately generate an operation icon switching request and send the operation icon switching request to the system service and call an operation application icon with operation information to be switched, wherein the operation icon switching request can be an idle instruction and only triggers the system service to respond to operation without executing specific display component change.
Further, after receiving the operation icon switching request, the system service of the terminal starts to calculate a time point, and can execute the operation icon switching request when waiting for the system default time to arrive for 10 seconds, and after joining the system service, other switching activity requests such as the switching request and the like need to be uniformly processed when the operation icon switching request arrives for 10 seconds within the waiting time of 10 seconds, wherein the system default time is the first preset time threshold value.
In step 212, when the terminal detects that the time point reaches the second preset time threshold, the handover request is loaded.
In the prior art, when the switching request is executed, the display attribute value of the activity-alias tag corresponding to the currently displayed application icon is changed, so that the currently displayed application icon cannot be clicked to fail, the time of the failure is related to the interval from generation to execution of the switching request of the operation application icon, if the switching request and the switching request of the operation icon are loaded simultaneously, the switching request needs to wait for the default time of the system for 10 seconds, and the user clicks the application icon within the waiting 10 seconds. If the switch request is generated 5 seconds after the operation icon switch request is generated, the target application switch activity request only needs to wait for 5 seconds, and the user clicks the application icon within the waiting 5 seconds can correspondingly fail. Therefore, it can be seen that, when the time for loading the switching request is closer to the first preset time threshold, the time for the user to click on the application icon to fail is shorter.
Further, the second preset time threshold may be set, and the second preset time threshold is infinitely close to the first preset time threshold for 10 seconds, such as 9.8 seconds, 9.9 seconds, and the like, under the condition that the second preset time threshold is smaller than the first preset time threshold, which is illustrated by taking 9.8 seconds as an example. When the terminal detects that the time point reaches the second preset time threshold value of 9.8 seconds, the switching request is loaded, and after 0.2 seconds, the system service can process the received switching request and the operation application icon switching request at the same time, so that the application icon only fails for 0.2 seconds correspondingly and cannot be perceived by a user.
In step 213, when the terminal detects that the time point reaches the first preset time threshold, the operation icon switching request and the switching request are responded.
When the terminal detects that the time point reaches the default time of the system for 10 seconds, the system service centrally responds to the processing switching request and the operation application icon switching request so as to change the current application icon into the operation application icon.
In step 214, the terminal determines an operation application icon active object tag corresponding to the operation application icon.
The terminal determines an activity-alias tag corresponding to the operation application icon corresponding to the switching request, wherein the activity-alias tag corresponding to the activity-alias tag is an operation application icon, and the activity-alias tag corresponding to the operation application icon is a false, namely a hidden state.
In step 215, the terminal modifies the display attribute of the application icon active object label corresponding to the currently displayed application icon to the second parameter, so as to hide the currently displayed application icon.
The terminal changes the android attribute information of the activity-alias tag corresponding to the currently displayed application icon from a first parameter true to a second parameter false, so that the currently displayed application icon is subjected to hiding processing.
In step 216, the terminal modifies the display attribute of the operation application icon active object label to be a first parameter, so that the operation application icon is displayed.
The terminal changes the android attribute information of the activity-alias tag corresponding to the operation application icon from the second parameter false to the first parameter true, so that the hidden operation application icon is displayed.
As shown in fig. 4a and 4b, the terminal 100 may quickly change the currently displayed application icon 101 to the operation application icon 102 or the operation application icon 103 according to different scenes, and a case where the currently displayed application icon 101 is not clicked is not valid may not occur.
In step 217, the terminal obtains a click event on the operation application icon, and when receiving the click event on the operation application icon, opens the application and jumps to a page associated with the operation information or performs a function associated with the operation information.
As shown in fig. 4a and 4b, the operation application icon 102 is an operation event corresponding to a cache cleaning event, when a user double-clicking the operation application icon 102 is detected, a function of cleaning the cache is executed, when an operation application icon 103 is a holiday operation event of a consumer interest day, when a user double-clicking the operation application icon 103 is detected, an application is started and jumps to an application page associated with the consumer interest day.
As can be seen from the foregoing, in the embodiment of the present application, a plurality of application icon active object labels are configured for an application through a terminal, each application icon active object label corresponds to a different application icon, a displayed first application icon active object label is set as a first parameter, and is displayed, a display attribute of a non-displayed second application icon active object label is set as a second parameter, and is hidden, when an operation event of an application icon meets a trigger condition, a switching request of the application icon is generated, and a virtual icon switching request is triggered, and corresponding virtual active object is determined according to the virtual icon switching request, display attribute information of the virtual active object is modified, so as to obtain a virtual switching active request corresponding to the virtual active object, a virtual time node is determined according to a completion time of the virtual switching active request, broadcast information is generated, an operation icon switching request is generated according to the broadcast information, a time point is calculated, when the time point is detected to reach a second preset time threshold close to the first preset time threshold, when the time point reaches the first preset time threshold, the switching request and the operation icon switching request is processed in batch, and the current application icon is displayed, and the operation icon is hidden. Therefore, when the operation event of the application icon meets the triggering condition, the switching request of the application icon is initiated, the operation application icon with operation information to be switched is correspondingly called, the operation application icon with operation information to be switched and the currently displayed application icon are rapidly switched in a noninductive manner, the waiting time of switching the operation application icon is reduced, and the switching efficiency of the application icon is greatly improved.
Third embodiment,
In order to facilitate better implementation of the application icon switching method provided by the embodiment of the application, the embodiment of the application also provides a device based on the application icon switching method. The meaning of the noun is the same as that in the above application icon switching method, and specific implementation details can be referred to the description in the method embodiment.
Referring to fig. 5a, fig. 5a is a schematic structural diagram of an application icon switching device according to an embodiment of the present application, where the application icon switching device may include an obtaining unit 301, a switching generating unit 302, a calling unit 303, a switching unit 304, and so on.
An acquiring unit 301, configured to acquire a triggering condition corresponding to an operation event of an application icon and an operation event of the application icon.
In this embodiment, the operation event may be a holiday operation event, where the holiday operation event is an operation event under a specific time, for example, a holiday operation event under a spring festival time corresponding to an application icon, and a holiday operation event corresponding to a consumer equity day of 3 months and 15 days corresponding to the application icon. The operation event may also be an event operation event, where the event operation event is an operation event under a specific event, such as a buffer cleaning operation event corresponding to an application icon, and when the operation event is an operation event under a specific event, a corresponding trigger condition is a buffer threshold, and when a buffer of an application corresponding to an application icon exceeds 1 gigabyte (Gigabyte, GB), in order to satisfy a trigger condition of the buffer cleaning operation event, the operation event of the application icon and the trigger condition corresponding to the application icon may be set by a developer or an application service provider according to the user, which is not specifically limited herein. Therefore, the acquiring unit 301 may acquire the trigger condition corresponding to the operation event of the application icon and the operation event of the application icon according to the preset frequency.
And the switching generation unit 302 is configured to generate a switching request of the application icon when the operation event of the application icon meets the trigger condition.
When the server needs to dynamically operate a certain application icon displayed on the desktop of the terminal, a trigger condition can be sent to the terminal to inform the terminal to switch the currently displayed application icon to an operation application icon, so that the effect of dynamically operating the application icon is achieved.
Further, when the switching generation unit 302 detects that the operation event of the application icon meets the triggering condition, if the operation event of the application icon is a cache cleaning operation event and the triggering condition is that the cache exceeds 1GB, when the terminal detects that the cache of the application corresponding to the application icon exceeds 1GB, it is determined that the operation event of the application icon meets the triggering condition, dynamic operation of the application icon is performed, and a switching request of the application icon is generated, so as to start executing the switching process of the application icon.
The retrieving unit 303 is configured to retrieve the operation application icon with operation information to be switched according to the application icon switching request.
After the switch generating unit 302 generates the switch request of the application icon, the invoking unit 303 invokes the application icon with operation information to be switched according to the application icon switch request, where the application icon with operation information may be an application icon sent by the server together when sending a trigger condition, or may be an application icon pre-stored in a storage space by the terminal, where the operation application icon may display corresponding operation information, for example, a "315" digital style is displayed to prompt the user that an application corresponding to the application icon includes an activity related to a consumer's interest day, and the user may directly jump to an application page including the activity related to the consumer's interest day by a preset click, for example, by double clicking or long clicking the operation application icon, where the operation application icon may also display a word style to prompt the user that the application corresponding to the application icon is too large, and the user needs to clean in time.
In some embodiments, as shown in fig. 5b, the retrieving unit 303 may include:
a time determining subunit 3031, configured to trigger a virtual icon switching request according to the application icon switching request, and determine a corresponding virtual time node according to the virtual icon switching request;
a notification generation subunit 3032, configured to generate a handover notification message when the current time point reaches the virtual time node;
And the switching subunit 3033 is configured to invoke the operation application icon with the operation information to be switched according to the switching notification message and generate an operation icon switching request.
In some embodiments, the time determination subunit 3031 is specifically configured to: triggering a virtual icon switching request according to the application icon switching request; determining a corresponding virtual movable object according to the virtual icon switching request; modifying display attribute information of the virtual activity object to obtain a virtual switching activity request corresponding to the virtual activity object; and determining a corresponding virtual time node according to the virtual switching activity request.
In some embodiments, the time determination subunit 3031 is specifically further configured to: triggering a virtual icon switching request according to the application icon switching request; determining a corresponding virtual movable object according to the virtual icon switching request; modifying display attribute information of the virtual activity object to obtain a virtual switching activity request corresponding to the virtual activity object; when detecting that a switching activity request exists in the system, adding the virtual switching activity request into a first processing queue corresponding to the switching activity request for processing; when detecting that a switching activity request does not exist in the system, creating a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request; the point in time when the virtual switch activity request processing is completed is determined as a virtual time node.
In some embodiments, the switching subunit 3033 is specifically further configured to: and calling an operation application icon with operation information to be switched according to the switching notification message, generating an operation icon switching request, and creating a corresponding target processing queue of the operation icon switching request.
In some embodiments, the switching subunit 3033 is specifically further configured to: and according to the switching notification message, calling an operation application icon with operation information to be switched, generating an operation icon switching request, and starting to calculate a time point, wherein the response time of the operation icon switching request is a first preset time threshold.
And the switching unit 304 is used for performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
If the switching request is directly loaded according to the prior art, there is a waiting time of 10 seconds by default, that is, the switching request has a waiting period of 0 to 10 seconds, and in the waiting period, the current phenomenon that the click of the application icon is invalid occurs, which causes inconvenience to the user.
Therefore, in executing the switch request, it is definitely desirable to shorten the waiting time by 10 seconds, for example, the switch unit 304 loads the switch request in the very short time before the system gathers the switch task, so that the switch request can be directly executed by waiting for the very short time, that is, the time when the current icon click is invalidated is shortened by a very short time, such as 0.2 seconds, and basically ignores the invalidated experience.
In some embodiments, the switching unit 304 is specifically configured to: before the operation icon switching request is executed, the switching request is loaded, and the application icon is switched to the operation application icon.
In some embodiments, the switching unit 304 is specifically further configured to: adding the operation icon switching request into the target processing queue; before the target processing queue processes the operation icon switching request, the switching request is added into the target processing queue for unified processing, and the application icon is switched into the operation application icon.
In some embodiments, the switching unit 304 is specifically further configured to:
Loading the switching request when the time point reaches a second preset time threshold value, wherein the second preset time threshold value is smaller than the first preset time threshold value; and when the time point reaches a first preset time threshold, responding to the operation icon switching request and the switching request, and switching the application icon into an operation application icon.
In some embodiments, as shown in fig. 5c, the processing apparatus further comprises a configuration unit 305, a first setting unit 306, a second setting unit 307, a click acquisition unit 308, and an execution unit 309, as follows:
A configuration unit 305 is configured to configure a plurality of application icon active object labels for applications, where each application icon active object label corresponds to a different application icon.
The first setting unit 306 is configured to set a display attribute of an application icon active object tag corresponding to the displayed first application icon as a first parameter, so that the first application icon is displayed.
And a second setting unit 307, configured to set a display attribute of an application icon active object label corresponding to a second application icon that is not displayed as a second parameter, so as to hide the second application icon.
The click acquisition unit 308 is configured to acquire a click event on the operation application icon.
And the execution unit 309 is configured to, when receiving a click event on the operation application icon, open an application and jump to a page associated with the operation information or execute a function associated with the operation information.
The specific implementation of each unit can be referred to the previous embodiments, and will not be repeated here.
As can be seen from the foregoing, in the embodiment of the present application, the acquiring unit 301 acquires the triggering condition corresponding to the operation event of the application icon and the operation event of the application icon; the switching generation unit 302 generates a switching request of the application icon when the operation event of the application icon meets the triggering condition; the retrieving unit 303 retrieves the operation application icon with operation information to be switched according to the application icon switching request; the switching unit 304 performs the non-inductive switching between the operation application icon and the application icon with the operation information to be switched. Therefore, when the operation event of the application icon meets the triggering condition, the switching request of the application icon is initiated, the operation application icon with operation information to be switched is correspondingly called, the operation application icon with operation information to be switched and the currently displayed application icon are rapidly switched in a noninductive manner, the waiting time of switching the operation application icon is reduced, and the switching efficiency of the application icon is greatly improved.
Fourth embodiment,
Embodiments of the present application also provide a terminal, as shown in fig. 6, which may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more computer readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi, wireless Fidelity) module 607, a processor 608 including one or more processing cores, and a power supply 609. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 6 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The RF circuit 601 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 601 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), universal packet Radio Service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message Service (SMS, short MESSAGING SERVICE), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 may execute various functional applications and information processing by executing the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 by the processor 608 and the input unit 603.
The input unit 603 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 603 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 608, and can receive commands from the processor 608 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may comprise other input devices in addition to a touch sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 604 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video and any combination thereof. The display unit 604 may include a display panel, which may optionally be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 6 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the terminal are not described in detail herein.
Audio circuitry 606, speakers, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 606 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 606 and converted into audio data, which are processed by the audio data output processor 608 for transmission to, for example, another terminal via the RF circuit 601, or which are output to the memory 602 for further processing. The audio circuit 606 may also include an ear bud jack to provide communication of the peripheral ear bud with the terminal.
The WiFi belongs to a short-distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 607, so that wireless broadband internet access is provided for the user. Although fig. 6 shows a WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 608 is a control center of the terminal, and connects various parts of the entire handset using various interfaces and lines, performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 602, and invoking data stored in the memory 602. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may be logically connected to the processor 608 via a power management system so as to provide for managing charging, discharging, and power consumption by the power management system. The power supply 609 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the processor 608 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 608 executes the application programs stored in the memory 602, so as to implement various functions:
Acquiring triggering conditions corresponding to the operation event of the application icon and the operation event of the application icon; when the operation event of the application icon meets the triggering condition, generating a switching request of the application icon; according to the application icon switching request, an operation application icon with operation information to be switched is called; and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of an embodiment that are not described in detail in the foregoing embodiments may be referred to in the foregoing detailed description of the information processing method, which is not repeated herein.
As can be seen from the above, the terminal in the embodiment of the present application may obtain the triggering condition corresponding to the operation event of the application icon and the operation event of the application icon; when the operation event of the application icon meets the triggering condition, generating a switching request of the application icon; according to the application icon switching request, an operation application icon with operation information to be switched is called; and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon. Therefore, when the operation event of the application icon meets the triggering condition, the switching request of the application icon is initiated, the operation application icon with operation information to be switched is correspondingly called, the operation application icon with operation information to be switched and the currently displayed application icon are rapidly switched in a noninductive manner, the waiting time of switching the operation application icon is reduced, and the switching efficiency of the application icon is greatly improved.
Fifth embodiment (V),
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions that can be loaded by a processor to perform steps in any of the application icon switching methods provided in the embodiment of the present application. For example, the instructions may perform the steps of:
Acquiring triggering conditions corresponding to the operation event of the application icon and the operation event of the application icon; when the operation event of the application icon meets the triggering condition, generating a switching request of the application icon; according to the application icon switching request, an operation application icon with operation information to be switched is called; and performing non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in the method for switching any application icon provided by the embodiment of the present application can be executed by the instructions stored in the storage medium, so that the beneficial effects that can be achieved by any method for switching application icon provided by the embodiment of the present application can be achieved, and detailed descriptions of the previous embodiments are omitted.
The foregoing describes in detail a method, an apparatus, and a storage medium for switching application icons provided by the embodiments of the present application, and specific examples are applied to illustrate the principles and implementations of the present application, where the foregoing description of the embodiments is only for helping to understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (13)

1. The application icon switching method is characterized by comprising the following steps of:
Acquiring a triggering condition corresponding to an operation event of an application icon and the operation event of the application icon;
When the operation event of the application icon meets the triggering condition, generating a switching request of the application icon;
triggering a virtual icon switching request according to the application icon switching request, and determining a corresponding virtual time node according to the virtual icon switching request;
generating a switching notification message when the current time point reaches the virtual time node;
According to the switching notification message, calling an operation application icon with operation information to be switched and generating an operation icon switching request, wherein the virtual icon switching request is a switching request of a last virtual icon, and the virtual time node is a starting point of a request for intensively processing all virtual active objects;
and before the operation icon switching request is executed, loading the switching request and switching the application icon into an operation application icon.
2. The handover method according to claim 1, further comprising:
Acquiring a clicking event of the operation application icon;
And when a clicking event of the operation application icon is received, opening an application and jumping to a page associated with the operation information or executing a function related to the operation information.
3. The switching method according to claim 2, wherein the step of determining the corresponding virtual time node according to the virtual icon switching request includes:
Determining a corresponding virtual movable object according to the virtual icon switching request;
modifying display attribute information of the virtual activity object to obtain a virtual switching activity request corresponding to the virtual activity object;
and determining a corresponding virtual time node according to the virtual switching activity request.
4. A handover method according to claim 3, wherein said step of determining a corresponding virtual time node from said virtual handover activity request comprises:
When detecting that a switching activity request exists in the system, adding the virtual switching activity request into a first processing queue corresponding to the switching activity request for processing;
When detecting that a switching activity request does not exist in the system, creating a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request;
the point in time when the virtual switch activity request processing is completed is determined as a virtual time node.
5. The handover method according to claim 2, wherein the steps of retrieving an operation application icon with operation information to be handed over and generating an operation icon handover request according to the handover notification message include:
And calling an operation application icon with operation information to be switched according to the switching notification message, generating an operation icon switching request, and creating a target processing queue corresponding to the operation icon switching request.
6. The switching method according to claim 5, wherein the step of loading the switching request to switch the application icon to the operation application icon before the operation icon switching request is executed, comprises:
Adding the operation icon switching request into the target processing queue;
Before the target processing queue processes the operation icon switching request, the switching request is added into the target processing queue to perform unified processing, and the application icon is switched into the operation application icon.
7. The handover method according to claim 2, wherein the steps of retrieving an operation application icon with operation information to be handed over and generating an operation icon handover request according to the handover notification message include:
And according to the switching notification message, calling an operation application icon with operation information to be switched, generating an operation icon switching request, and starting to calculate a time point, wherein the response time of the operation icon switching request is a first preset time threshold.
8. The switching method according to claim 7, wherein the step of loading the switching request to switch the application icon to the operation application icon before the operation icon switching request is executed, comprises:
loading the switching request when the time point reaches a second preset time threshold value, wherein the second preset time threshold value is smaller than the first preset time threshold value;
and when the time point reaches a first preset time threshold, responding to the operation icon switching request and the switching request, and switching the application icon into an operation application icon.
9. The handover method according to any one of claims 1 to 8, wherein, before the step of obtaining the trigger condition corresponding to the operation event of the application icon and the operation event of the application icon, the handover method further includes:
configuring a plurality of application icon active object labels for the application, wherein each application icon active object label corresponds to a different application icon;
setting the display attribute of the application icon active object label corresponding to the displayed first application icon as a first parameter so as to display the first application icon;
And setting the display attribute of the application icon active object label corresponding to the second application icon which is not displayed as a second parameter so as to hide the second application icon.
10. The switching method according to claim 9, wherein the step of switching the application icon to the operation application icon includes:
determining an operation application icon active object label corresponding to the operation application icon;
modifying the display attribute of the application icon active object label corresponding to the currently displayed application icon into a second parameter so as to hide the currently displayed application icon;
and modifying the display attribute of the operation application icon active object label into a first parameter so as to display the operation application icon.
11. An application icon switching device is characterized by comprising:
the acquisition unit is used for acquiring the triggering conditions corresponding to the operation event of the application icon and the operation event of the application icon;
The switching generation unit is used for generating a switching request of the application icon when the operation event of the application icon meets the triggering condition;
The calling unit comprises a time determination subunit, a notification generation subunit and a switching subunit:
The time determining subunit is used for triggering a virtual icon switching request according to the application icon switching request, determining a corresponding virtual time node according to the virtual icon switching request, wherein the virtual icon switching request is a switching request of a last virtual icon, and the virtual time node is a starting point for intensively processing all requests of the virtual active objects;
a notification generation subunit, configured to generate a handover notification message when the current time point reaches the virtual time node;
The switching subunit is used for calling the operation application icon with operation information to be switched according to the switching notification message and generating an operation icon switching request;
And the switching unit is used for loading the switching request before the operation icon switching request is executed, and switching the application icon into the operation application icon.
12. The switching device of claim 11, further comprising:
The click acquisition unit is used for acquiring a click event of the operation application icon;
And the execution unit is used for starting an application and jumping to a page associated with the operation information or executing a function associated with the operation information when receiving a click event of the operation application icon.
13. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the method of switching application icons according to any one of claims 1 to 10.
CN201910580226.6A 2019-06-28 2019-06-28 Application icon switching method and device and storage medium Active CN112148399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910580226.6A CN112148399B (en) 2019-06-28 2019-06-28 Application icon switching method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910580226.6A CN112148399B (en) 2019-06-28 2019-06-28 Application icon switching method and device and storage medium

Publications (2)

Publication Number Publication Date
CN112148399A CN112148399A (en) 2020-12-29
CN112148399B true CN112148399B (en) 2024-05-14

Family

ID=73891396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910580226.6A Active CN112148399B (en) 2019-06-28 2019-06-28 Application icon switching method and device and storage medium

Country Status (1)

Country Link
CN (1) CN112148399B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978185A (en) * 2015-05-19 2015-10-14 腾讯科技(深圳)有限公司 Icon processing method and device thereof
CN108322593A (en) * 2017-12-21 2018-07-24 努比亚技术有限公司 Application icon dynamic update display methods, terminal and computer readable storage medium
CN108388428A (en) * 2018-01-23 2018-08-10 北京五八信息技术有限公司 Switch method, apparatus, electronic equipment and the storage medium of application software icon

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978185A (en) * 2015-05-19 2015-10-14 腾讯科技(深圳)有限公司 Icon processing method and device thereof
CN108322593A (en) * 2017-12-21 2018-07-24 努比亚技术有限公司 Application icon dynamic update display methods, terminal and computer readable storage medium
CN108388428A (en) * 2018-01-23 2018-08-10 北京五八信息技术有限公司 Switch method, apparatus, electronic equipment and the storage medium of application software icon

Also Published As

Publication number Publication date
CN112148399A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
JP6511541B2 (en) Message updating method, apparatus and terminal
WO2016150331A1 (en) Method and device for operating game client
CN107066268B (en) Display position switching method and device for widget application
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
CN106775828B (en) Application program installation method and device and computer equipment
CN111459355A (en) Content sharing method and electronic equipment
CN106713608B (en) Application function state modification method and device and terminal
CN110020293B (en) Multimedia data display method, device and storage medium
US10796087B2 (en) Method and apparatus for obtaining web content
CN108073647B (en) Webpage display method and device
CN110457621B (en) Page display method, device and medium for hybrid application
WO2015010466A1 (en) Information display method and apparatus, and mobile terminal
CN114565070B (en) Label binding method and device and mobile terminal
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN107357651B (en) Application acceleration method and device and terminal
CN106095423B (en) Method, terminal and server for providing browsing service
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN116594616A (en) Component configuration method and device and computer readable storage medium
CN107908527B (en) Application icon display method and device
CN110677456A (en) Resource allocation method and equipment
CN106933626B (en) Application association 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
GR01 Patent grant
GR01 Patent grant