CN112148399A - 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
CN112148399A
CN112148399A CN201910580226.6A CN201910580226A CN112148399A CN 112148399 A CN112148399 A CN 112148399A CN 201910580226 A CN201910580226 A CN 201910580226A CN 112148399 A CN112148399 A CN 112148399A
Authority
CN
China
Prior art keywords
application icon
switching
icon
request
virtual
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.)
Granted
Application number
CN201910580226.6A
Other languages
Chinese (zh)
Other versions
CN112148399B (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/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 method, a device and a storage medium for switching application icons, wherein the embodiment of the invention obtains the operation event of an application icon and the trigger condition corresponding to the operation event of the application icon; when the operation event of the application icon meets the trigger condition, generating a switching request of the application icon; calling an operation application icon to be switched with operation information according to the application icon switching request; and carrying out 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 trigger condition, the switching request of the application icon is initiated, the operation application icon to be switched with the operation information is called correspondingly, the operation application icon to be switched with the operation information and the currently displayed application icon are switched quickly and noninductively, the waiting time for switching the operation application icon is shortened, and the switching efficiency of the application icon is greatly improved.

Description

Application icon switching method and device and storage medium
Technical Field
The invention relates to the technical field of information, in particular to a method and a device for switching application icons and a storage medium.
Background
With the continuous popularization and development of terminals, users increasingly rely on the terminals, various applications can be installed on the terminals to facilitate the lives of the users, unique application icons of the applications can be displayed on a desktop of the terminals after the applications are installed, and the users can click the application icons to open corresponding applications.
In the prior art, the application icon of each application is set by the application developer and is not changed, and in the actual use process, the special application icon needs to be displayed and more information needs to be transmitted to the user due to the fact that a special date is reached or a special event is held, at the moment, the new version of the application can be released, so that after the terminal is installed by downloading the corresponding installation package of the new version of the application, the display of the application icon is changed into the required application icon.
In the research and practice process of the prior art, the inventor of the present invention finds that, in the prior art, although a method for changing an application icon is provided, each time an application icon is changed, a new application version needs to be issued for the terminal to download and then update the application icon, the process is complicated, and the switching efficiency of the application icon is low.
Disclosure of Invention
The embodiment of the invention provides a method and a device for switching application icons and a storage medium, and aims to improve the switching efficiency of the application icons.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
a switching method of application icons comprises the following steps:
acquiring an operation event of an application icon and a trigger condition corresponding to the operation event of the application icon;
when the operation event of the application icon meets the trigger condition, generating a switching request of the application icon;
calling an operation application icon to be switched with operation information according to the application icon switching request;
and carrying out non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
An apparatus for switching application icons, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an operation event of an application icon and a trigger condition corresponding to 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 trigger condition;
the calling unit is used for calling the operation application icon to be switched with the operation information according to the application icon switching request;
and the switching unit is used for carrying out non-inductive 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 moving object according to the virtual icon switching request;
modifying the 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 moving object according to the virtual icon switching request;
modifying the 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 no switching activity request exists in the system, creating a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request;
a point in time when the virtual switching activity request processing is completed is determined as a virtual time node.
In some embodiments, the switching subunit is further specifically configured to:
and calling an operation application icon to be switched with operation information 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 further specifically configured to:
adding the operation icon switching request into the target processing queue;
before the target processing queue processes the operation icon switching request, adding the switching request into the target processing queue for uniform processing, and switching the application icon into the operation application icon.
In some embodiments, the switching subunit is further specifically configured to:
calling an operation application icon to be switched with operation information according to the switching notification message, 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 further specifically configured to:
when the time point reaches a second preset time threshold, loading the switching request, wherein the second preset time threshold is smaller than the first preset time threshold;
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 the 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 moving 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 moving object label corresponding to the second non-displayed application icon as a second parameter so as to hide the second application icon.
In some embodiments, the switching unit is further specifically configured to:
before the operation icon switching request is executed, loading the switching request, and determining an operation application icon moving object label corresponding to an operation application icon;
modifying the display attribute of the application icon moving 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 moving object label into a first parameter so as to display the operation application icon.
A storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the application icon switching method.
The embodiment of the invention obtains the operation event of the application icon and the trigger condition corresponding to the operation event of the application icon; when the operation event of the application icon meets the trigger condition, generating a switching request of the application icon; calling an operation application icon to be switched with operation information according to the application icon switching request; and carrying out 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 trigger condition, the switching request of the application icon is initiated, the operation application icon to be switched with the operation information is called correspondingly, the operation application icon to be switched with the operation information and the currently displayed application icon are switched quickly and noninductively, the waiting time for switching the operation application icon is shortened, and the switching efficiency of the application icon is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
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 flowchart illustrating a method for switching an application icon according to an embodiment of the present invention;
fig. 3 is another schematic flowchart of a method for switching an application icon according to an embodiment of the present invention;
FIG. 4a is a schematic diagram of a switching scenario of application icons according to an embodiment of the present invention;
FIG. 4b is another schematic diagram of a switching scenario of application icons according to an embodiment of the present invention;
fig. 5a is a schematic structural diagram of an application icon switching apparatus according to an embodiment of the present invention;
FIG. 5b is a schematic structural diagram of an application icon switching apparatus according to an embodiment of the present invention;
FIG. 5c is a schematic structural diagram of an application icon switching apparatus 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 technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an application icon switching method, an application icon switching device and a storage medium.
Referring to fig. 1, fig. 1 is a schematic view of a scene of an application icon switching system according to an embodiment of the present invention, including: the terminal a and the server (the processing system may also include other terminals besides the terminal a, and the specific number of the terminals is not limited herein), the terminal a and the server may be connected through a communication network, which may include a wireless network and a wired network, wherein 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 in the figure. The terminal a may perform information interaction with the server through a communication network, for example, the terminal a may download a corresponding installation package of a certain application through the server for installation and use, after the application installation is completed, a corresponding application icon may be displayed on a desktop of the terminal a, and a user may open the application for use by clicking the application icon. When an application developer needs to release a certain activity, the icon needs to be changed into a corresponding activity icon, so that the effect of informing a user is realized unconsciously, and the server can send a switching request to the terminal A, so that the terminal A responds to the switching request and switches the application icon into the operation application icon without sense.
The switching system of the application icon may include a switching device of the application icon, and the switching device of the application icon may be specifically integrated in the terminal, and in fig. 1, the server may store an installation package corresponding to the application, data information of a user, data information used by the application, and the like.
The switching system of the application icon also comprises a terminal A, wherein the terminal A can be used for installing various applications required by users, such as browser application, cleaning application, instant messaging application and the like, the terminal A acquires the operation event of the application icon and the trigger condition corresponding to the operation event of the application icon after receiving the switching request sent by the server, and generates the switching request of the application icon when the operation event of the application icon meets the trigger condition; calling an operation application icon to be switched with operation information according to the application icon switching request; and carrying out 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 scene schematic diagram of the application icon switching system shown in fig. 1 is only an example, and the application icon switching system and the scene described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The first embodiment,
In the present embodiment, the switching device of the application icon will be described from the perspective of the switching device of the application icon, which can be specifically integrated in a terminal having a storage unit and a microprocessor mounted thereon and having an arithmetic capability.
A switching method of application icons comprises the following steps: acquiring an operation event of an application icon and a trigger condition corresponding to the operation event of the application icon; when the operation event of the application icon meets the trigger condition, generating a switching request of the application icon; calling an operation application icon to be switched with operation information according to the application icon switching request; and carrying out 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 present invention. The switching method of the application icons comprises the following steps:
in step 101, a trigger condition corresponding to the operation event of the application icon and the operation event of the application icon is acquired.
It is understood that before the embodiments of the present application are described, a brief introduction is made to the background of the application of the embodiments of the present application, and the desktop application: after the application is installed, the operating system also has an application responsible for displaying the installed applications, the application is called desktop application, the desktop displayed after clicking the Home key of the terminal is the interface of the desktop application, and for personalized display, the application icons corresponding to the same application on the desktop can also have various forms, for example, different application icons are used in different festivals, or specific application icons are used when a special activity is held, so that the desktop application icons need to be dynamically changed into the desktop application icons corresponding to the operation events under different operation events, the user is visually influenced and is reminded to click the application icons to process related events, and the active use efficiency of the application is improved.
The activity object is one of the four most common components in an operating system application component, the operating system may be an android (android) system, and the activity object is an application component, and a user can interact with a screen provided by the activity object to perform operations such as making a call, taking a picture, sending an email, viewing a map, and the like. Each activity object gets a window for drawing its user interface. The window usually fills the screen, but may also 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 specifying the picture attribute of the application portal activity object to the corresponding target picture.
In order to change the desktop application icon, in addition to downloading a new application version for updating, the embedded icon is actively switched, that is, the specific function, such as an activity-alias tag function and an activity-alias tag, may be used to change the desktop application icon. See here, will one think of what is the alias of which activity object? When an activity object is created, the activity object needs to be statically declared in an application list android manifest, attributes such as android: name, android: label and android: icon are configured, and an intent-filter (intent-filter) can be configured. For an activity-activity tag, it has an attribute called android: targetActivity, which is used to set the target activity for the tag, or it is an alias of the target activity object. By now we have appreciated that the activity-alias tag does not represent an independent activity object, but rather an alias created for an already existing activity object.
Knowing the concept of an activity-alias tag, then what is its function? If the activity-alias tag is used as an alias of an existing activity object, the target activity object should be opened quickly by the alias tag declaration. Therefore, activity-alias can be used to set a shortcut entry for an activity, which can be placed on the desktop or quickly invoked by other components through the alias. The activity-alias tag supports some attributes, intent-filter and other configurations, so that some function logics different from the target activity object can be triggered, although the same activity object is opened. For example, if a main interface needs to be opened before a certain activity object can be clicked, if activity-alias is used to configure a shortcut entry for the activity object, an icon may even be generated on the desktop for the activity object, and then the desktop icon is clicked to directly enter the activity object, which may meet some requirements for quickly reaching a function interface.
To this end, it is known that an operating system supports that a plurality of activity objects may have a plurality of aliases, that is, an application entry activity object of an application may configure a plurality of different activity-activity tags, each activity-activity tag corresponds to a separate application icon, and the plurality of different activity-activity tags may point to the same android: targetActivity, that is, the plurality of different activity-activity tags open the same target activity object, for example, open a main interface (target activity) of the same application, that is, a function of opening a main interface of the same application by a plurality of application icons is realized.
In the normal use process, only one default application icon needs to be ensured to be displayed on the desktop, and in one embodiment, whether the application icon is instantiated or not is determined through android, enabled attribute values false and true, so that the entry can be selectively determined to be displayed on the desktop.
In this embodiment, the operation event may be a holiday operation event, which is an operation event at a specific time, such as a holiday operation event at a spring festival time corresponding to an application icon, and a holiday operation event at a consumer's right benefit day at 3 months and 15 days corresponding to an application icon, where when the operation event is a holiday operation event, the corresponding trigger condition is time, such as time being in spring festival time, that is a trigger condition meeting the holiday operation event at the spring festival event, such as time being in 3 months and 15 days, that is a trigger condition meeting the consumer's right benefit day. 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 cache cleaning operation event corresponding to an application icon, and when the operation event is an operation event under a specific event, the corresponding trigger condition is a cache threshold, and when the cache of the application corresponding to the application icon exceeds 1 Gigabyte (GB), in order to meet the trigger condition for cleaning the operation event by running the cache, 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, which is not specifically limited herein. Therefore, the terminal can acquire the operation event of the application icon and the trigger condition corresponding to 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 switching request of 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 into 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 satisfies the trigger condition, if the operation event of the application icon is a cache cleaning operation event and the trigger 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 satisfies the trigger condition, dynamic operation of the application icon is performed, and a switching request of the application icon is generated for starting a switching process of the application icon.
In step 103, the operation application icon with the operation information to be switched is called according to the application icon switching request.
After the terminal generates the switching request of the application icon, the application icon to be switched with the operation information is called according to the switching request of the application icon, the application icon with the operation information can be an application icon which is sent by the server together when sending the trigger condition, or an application icon of which the storage space is pre-stored in the terminal, the operation application icon can display the corresponding operation information, for example, a '315' digital pattern is displayed to prompt a user that the application corresponding to the application icon contains activities related to the rights and benefits of consumers, the user can directly jump to an application page containing the activities related to the rights and benefits of the consumers through pre-clicking, for example, double-clicking or long-pressing the operation application icon, and the operation application icon can also display a 'to-be-cleaned' text pattern to prompt the user that the cache of the application corresponding to the application icon is too large, the user needs to clean in time, and the user can directly execute the function of cleaning the cache through preset clicking, such as double clicking or long-time pressing of the operation application icon.
In some embodiments, the step of calling the operation application icon to be switched with the operation information 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) calling the operation application icon with the 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 a user interface, the virtual icon switching request may specifically correspond to a virtual active object, the virtual active object may be an activity object, and the virtual active object may be a virtual component on the user interface, that is, a user cannot perceive a change in a main interface caused by the change in the virtual active object, that is, the virtual active object is used to determine a virtual time node, and there may be no substantial effect.
Further, the virtual time node is a starting point of the system for collectively processing all activity object requests, and in order to avoid consuming system resources due to frequent response of activity objects to implement application icon switching in the existing operating system, 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 collectively processed. That is, when the first activity object task is received, there is a waiting time of 10 seconds, and within the waiting time of 10 seconds, if the application icon is switched, the icon switching request also needs to arrive at the waiting time of 10 seconds to be executed in response, so as to implement the switching of the application icon, that is, there is a preparation time of 0 to 10 seconds, and in the preparation time, the phenomenon of invalidation occurs when the application icon is clicked, and if the icon switching request is made to take effect immediately by killing the application immediately, the application will also be flashed off.
In the embodiment of the present 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 may 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 subjected to delayed batch processing with other switching activity requests; if no other switch activity request exists in the current operating system, a new 10-second waiting time is started and waited, and when the 10-second waiting time is reached, the virtual switch activity request is processed by the operating system.
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 blank window state, at the moment, the operating system does not have any switching activity request and is in an idle state, and correspondingly, the current time is determined to be a virtual time node which does not correspond to the current time for the accuracy of the subsequent switching of the application icon. When the current time point reaches the virtual time node, the operating system can process all the switching activity requests including the virtual switching activity requests in a centralized manner, so that the operating system is in an idle stage, at the time, the operating system can broadcast prompt information to the outside in a unified manner, namely, a switching notification message is generated, the broadcast prompt information is used for notifying that the processing of the virtual icon switching request is completed, namely, the current time point is a reference point, an operation icon switching request and an operation application icon to be switched and with operation information are generated immediately based on the reference point, the operation icon switching request can be an idle instruction, only system response is triggered, and specific operation is not executed. Further, when the operating system receives the operation icon switching request, a system processing queue is correspondingly established, the processing queue needs to wait for the system default time to reach 10 seconds before executing the operation icon switching request, and within the waiting 10 seconds, other switching activity requests are added into the system processing queue until the time reaches, and are processed uniformly. The operation icon switching request is used for triggering a timing mechanism, and different from the prior art, the timing mechanism is obtained by triggering and detecting through a virtual icon switching request, and is clear, accurate and controllable from a starting point to an ending point.
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 moving object according to the virtual icon switching request;
(1.2) modifying the display attribute information of the virtual activity object to obtain a virtual switching activity request corresponding to the virtual activity object;
and (1.3) determining a corresponding virtual time node according to the virtual switching activity request.
The 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, the user does not perceive the change of the interface. Therefore, by modifying the display attribute information of the virtual activity object, namely android, enabled attribute values false and true, if the current display attribute information of the virtual activity object is true, the current display attribute information of the virtual activity object is modified into false, and if the current display attribute information of the virtual activity object is false, the current display attribute information of the virtual activity object is modified into true, and due to the change of the display attribute information, a virtual switching activity request corresponding to the virtual activity object is generated.
Further, the virtual switching activity request is processed, if other switching activity requests already exist in the current operating system, the virtual switching activity request is added into a waiting queue and is processed simultaneously with other switching activity requests, if other switching activity requests do not exist in the current operating system, the system is started and waits for the default time of the system to arrive, the virtual switching activity request is processed, and the time point when the virtual switching activity is completed is determined as a virtual time node.
In some embodiments, the step of determining a corresponding virtual time node from the virtual handover activity request may include:
(2.1) when the 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 it is detected that no switching activity request exists in the system, creating a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request;
and (2.3) determining a time point when the virtual switching activity request process is completed as a virtual time node.
When the operating system detects that there are other switching activity requests in the system, it is described that there is a waiting processing task of default time 10 seconds currently in the operating system, the virtual switching activity request needs to join in the first processing queue corresponding to other switching activities for waiting for unified processing, and the waiting time is uncertain, for example, when joining in the first processing queue, the first processing queue has waited for 5 seconds, then after 5 seconds, all switching activity requests can be processed uniformly, for example, when joining in the first processing queue, the first processing queue has waited for 8 seconds, then after 2 seconds, all switching activity requests can be processed uniformly. When the operating system detects that no other switching activity request exists in the system, it indicates that no task waiting for processing currently exists in the operating system, and accordingly, a second processing queue corresponding to the virtual switching activity request can be created, and a task waiting for processing within 10 seconds of the default time is started, during which other switching activity requests are also added into the second processing queue, and the processing is performed uniformly after the time of 10 seconds is reached.
Further, when the operating system responds to and processes the virtual switching activity request, that is, completes the state switching of the virtual activity object, it indicates that all switching activity requests including the virtual switching activity request in the last 10 seconds are processed, the operating system must be in an empty window (which may also be understood as an idle) stage, and a time point when the processing of the virtual switching activity request is completed is a reference point or a starting point (that is, a virtual time node) of subsequent processing.
In step 104, the operation application icon with operation information to be switched and the application icon are switched in a non-sensitive manner.
If the switching request is directly loaded according to the prior art, a system default waiting time of 10 seconds exists, that is, the switching request has a waiting period of 0 to 10 seconds, and in the waiting period, the current application icon is clicked and invalidated, which causes inconvenience to the user.
Therefore, when executing the switching request, it is certainly desirable to shorten the waiting time of 10 seconds as much as possible, for example, the switching request is loaded in the very short time before the system collects the switching task, and then the switching request can be directly executed only by waiting for the very short time, that is, the time for invalidating the current icon click is shortened by the very short time, such as 0.2 seconds, and the invalid experience can be basically ignored.
In some embodiments, the step of switching the operation application icon to be switched with the operation information and the application icon without sensing 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 obtains a clear and accurate timing mechanism, and the timing mechanism is clear and accurate from the starting point of the generation of the operation icon switching request to the end point of the execution of the operation icon switching request, so that the switching request is loaded only in a very short time before the response execution of the operation icon switching request, for example, before 0.2 second or 0.5 second and the like before the response execution of the operation icon switching request, so that the switching request can be processed simultaneously with the operation icon switching request only by waiting for 0.2 second or 0.5 second, that is, the currently applied icon only has an invalid time of 0.2 second or 0.5 second, and the application icon can be switched to the operation application icon.
In some embodiments, the step of loading the switching request and switching the application icon into 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 to the operation application icon.
When a target processing queue is created, an operation icon switching request is added to the target processing queue, and processing is performed when the default time is up to 10 seconds.
Further, the switching request is added to the target processing queue within a very short time before the target processing queue processes the operation icon switching request within 10 seconds of the default time, such as 0.2 seconds or 0.5 seconds, so that after 0.2 seconds or 0.5 seconds, the target processing queue can directly and uniformly process the operation icon switching request and the switching request, the application icon is switched to the operation application icon, and the original application icon only experiences a short-time click invalidation phenomenon, so that the use of a user is not influenced at all.
As can be seen from the above, in the embodiment of the application, the trigger 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 trigger condition, generating a switching request of the application icon; calling an operation application icon to be switched with operation information according to the application icon switching request; and carrying out 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 trigger condition, the switching request of the application icon is initiated, the operation application icon to be switched with the operation information is called correspondingly, the operation application icon to be switched with the operation information and the currently displayed application icon are switched quickly and noninductively, the waiting time for switching the operation application icon is shortened, and the switching efficiency of the application icon is greatly improved.
Example II,
The method described in the first embodiment is further illustrated by way of example.
In this embodiment, the switching device of the application icon is specifically integrated in the server as an example.
Referring to fig. 3, fig. 3 is another schematic flow chart of a method for switching application icons according to an embodiment of the present application. The method flow can comprise the following steps:
in step 201, the terminal configures a plurality of application icon active object tags for the application, where each application icon active object tag corresponds to a different application icon.
The application icon active object tag may be an activity-alias tag, and the activity-alias tag may have various attribute information, such as:
android enable property information, which is used to decide whether a target activity object can be instantiated by the system via an alias, and is true by default. It should be noted that application also has enable attribute information, and the enable of activity-alias is only valid when they are true at the same time, and it is possible to determine which activity-alias tag is displayed on the desktop by the android attribute information.
Icon attribute information, which allows customization of the icon, may be different from the icon of the application itself on the desktop. If a shortcut entry needs to be created on the desktop, perhaps the product may require a different icon, i.e., in this application embodiment.
The android: targetActivity attribute information specifies a target activity object, namely points to an application interface, namely which is the activity object called by the activity-activity label, and in the application, the android: targetActivity of all the activity-activity labels point to the same target activity object, so that all the activity-activity labels open the same application interface.
Based on the method, the terminal can configure a plurality of activity-alias tags, and the icon attribute information corresponds to different application icons for each application icon active object tag.
In step 202, the terminal sets the display attribute of the application icon active object tag corresponding to the displayed first application icon as a first parameter so as to display the first application icon, and sets the display attribute of the application icon active object tag corresponding to the second application icon that is not displayed as a second parameter so as to hide the second application icon.
The android attribute information is the display attribute in the embodiment of the application, when the parameter of the display attribute is true, the corresponding activity-alias tag is instantiated and displayed, the parameter of the display attribute is false, and 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 that needs to be displayed to true, so that the first application icon is displayed on the desktop, and set the display attributes of the activity-alias tags corresponding to the second application icon that does not need to be displayed to 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 acquires the trigger 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, such as a holiday operation event of a consumer's right-to-benefit day corresponding to the application icon and an operation event of a cache cleaning event corresponding to the application icon, when the holiday operation event of the consumer's right-to-benefit day is the operation time, 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 of the cache clearing event is performed, the corresponding trigger condition is the cache of the application, and when the cache of the application exceeds 1GB, the trigger condition is met. Therefore, the terminal can acquire the operation event of the application icon and the trigger condition corresponding to the operation event of the application icon according to the preset frequency.
In step 204, the terminal generates a switching request of the application icon when the operation event of the application icon satisfies the trigger condition.
When the terminal detects that the current time reaches 3 months and 15 days, the operation time of the holiday meets the trigger condition, or when the terminal detects that the cache of the application exceeds 1GB, the operation event of the cache clearing time meets the trigger condition, and the switching request of the application icon is generated.
In step 205, the terminal triggers the 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 the display attribute information of the virtual active object to obtain a virtual switching active request corresponding to the virtual active object.
The terminal triggers the 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 the interface, and the virtual component is transparent, that is, the virtual component cannot be sensed by a user no matter how the android/enable attribute information of the virtual active object is set, so the terminal can modify the android/enable display attribute information of the virtual active object, change true to false or change false to true to obtain the virtual switching activity request corresponding to the virtual active object, and the effect of the virtual active object is to determine a virtual time node, and there can be no substantial effect.
In step 206, the terminal detects whether there is a handover activity request in the system.
In the existing operating system, in order to avoid consuming system resources due to frequent response of 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 in the next 10 seconds are collectively processed, so that after the terminal obtains a virtual switching activity request, it is necessary 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 handover activity request to the first processing queue corresponding to the handover activity request for processing.
When the terminal detects that a handover activity request already exists in the system, it is necessary to add a virtual handover activity request into the first processing queue in which the handover activity request already exists, and wait for processing, where the waiting time is uncertain and depends on the time when the first processing queue exists, for example, if the first processing queue already exists for 6 seconds, the waiting time is 4 seconds, or if the first processing queue already exists for 1 second, the waiting time is 9 seconds. All switching activity requests are added into the first processing queue within 10 seconds of the existence of the first processing queue, and the unified processing is carried out 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 no switching activity request exists 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 and is the default time of 10 seconds of the system, during this period, all switching activity requests are added into the second processing queue, and the processing is performed uniformly until the second processing queue is full of 10 seconds.
In step 209, the terminal determines a point in time when the virtual switching activity request process is completed as a virtual time node.
When the virtual switching activity request processing is completed, it indicates that all switching activity requests including the virtual switching activity request within 10 seconds before the current time point are processed, and the terminal is definitely in an idle stage, where the current time point is a virtual time node and may be referred to as a starting point or a reference point.
In step 210, the terminal generates a handover notification message when the current time point reaches the virtual time node.
When the terminal reaches the virtual time node at the current time point, all switching activity requests including the virtual switching activity request are processed in a centralized manner, so that the operating system is in an idle stage, at this time, a system function (package manager. set component enabled setting) of the terminal can uniformly send Broadcast prompting information (Broadcast) to the switching icon service of the terminal, that is, a switching notification message, where the Broadcast prompting information is used to notify that the switching icon service has completed processing of the virtual activity object, that is, the current time point is a reference point, and preparation for switching the operation application icon can be started based on the reference point.
In step 211, the terminal invokes an operation application icon with operation information to be switched and generates an operation icon switching request according to the switching notification message, and starts to calculate a time point.
When receiving the broadcast prompt message, the switching icon service of the terminal indicates that the current system service (PackageManagerService) of the terminal is in an idle state, the switching icon service immediately generates an operation icon switching request to be sent to the system service and calls an operation application icon with operation information to be switched, the operation icon switching request can be an idle instruction, only the system service response operation is triggered, and the specific display component change is not executed.
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 of 10 seconds, within the waiting 10 seconds, after other switching activity requests such as switching requests and the like join the system service, the other switching activity requests need to be uniformly processed when 10 seconds of the operation icon switching request arrive, and the system default time of 10 seconds is a first preset time threshold.
In step 212, when the terminal detects that the time point reaches a second preset time threshold, the handover request is loaded.
In the prior art, when a switching request is executed, a display attribute value of an activity-alias tag corresponding to a currently displayed application icon is changed, so that the currently displayed application icon cannot be clicked to fail, the time for the failure is related to an interval from generation to execution of the switching request for the operation application icon, if the switching request and the switching request for the operation icon are loaded simultaneously, the switching request needs to wait for the whole system default time of 10 seconds, and if the user clicks the application icon within the waiting 10 seconds, the application icon correspondingly fails. If the switching request is generated 5 seconds after the operation icon switching request is generated, the target application switching activity request only needs to wait for 5 seconds, and the user clicks the application icon within the 5 seconds of waiting, so that the application icon is correspondingly disabled. Therefore, it can be seen that the closer the time for loading the switching request is to the first preset time threshold, the shorter the time for the user to click the application icon to fail correspondingly.
Further, a second preset time threshold may be set, where 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 so on, on the premise that the second preset time threshold is smaller than the first preset time threshold, and the example of the second preset time threshold is described here as 9.8 seconds. And when the terminal detects that the time point reaches the second preset time threshold value of 9.8 seconds, the terminal loads the switching request, and after 0.2 second, the system service can simultaneously process the received switching request and the switching request of the operation application icon, so that the application icon only fails for 0.2 second correspondingly and cannot be perceived by a user.
In step 213, when the terminal detects that the time point reaches a first preset time threshold, the terminal responds to the operation icon switching request and the switching request.
When the terminal detects that the time point reaches the default time of the system for 10 seconds, the system service centrally responds to and processes the 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 app icon active object tag corresponding to the app icon.
The terminal determines an activity-alias corresponding to the operation application icon corresponding to the switching request, wherein icon attribute information corresponding to the activity-alias is the operation application icon, and the icon attribute information corresponding to the activity-alias at the time is false, namely a hidden state.
In step 215, the terminal modifies the display attribute of the application icon moving object tag corresponding to the currently displayed application icon to a second parameter, so as to hide the currently displayed application icon.
The terminal changes the android/enable attribute information of the activity-alias tag corresponding to the currently displayed application icon from the first parameter true to the second parameter false, so that the currently displayed application icon is hidden.
In step 216, the terminal modifies the display attribute of the active object tag of the operation application icon to the first parameter, so that the operation application icon is displayed.
And the terminal simultaneously changes the android/enable 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 run application icon 102 or the run application icon 103 according to different scenarios, and the click invalidation of the currently displayed application icon 101 does not occur.
In step 217, the terminal obtains a click event for the operation application icon, and when the click event for the operation application icon is received, opens the application and jumps to a page associated with the operation information or executes a function related to the operation information.
As shown in fig. 4a and 4b, the operation application icon 102 is an operation event corresponding to a cache clearing event, when it is detected that the user double-clicks the operation application icon 102, a function of clearing the cache is performed, when it is detected that the operation application icon 103 is a holiday operation event of consumer rights and benefits, when it is detected that the user double-clicks the operation application icon 103, the application is opened and jumps to an application page associated with consumer rights and benefits.
As can be seen from the above, in the embodiment of the present application, a plurality of application icon active object tags are configured for an application through a terminal, each application icon active object tag corresponds to a different application icon, a first displayed application icon active object tag is set as a first parameter for displaying, a display attribute of a second non-displayed application icon active object tag is set as a second parameter for hiding, when an operation event of an application icon satisfies a trigger condition, a switching request of the application icon is generated and a virtual icon switching request is triggered, a corresponding virtual active object is determined according to the virtual icon switching request, display attribute information of the virtual active object is modified to obtain a virtual switching activity request corresponding to the virtual active object, a virtual time node is determined according to completion time of the virtual switching activity request, broadcast information is generated for broadcasting, an operation icon switching request is generated according to broadcast information, calculating a time point, loading a switching request when the time point is detected to reach a second preset time threshold close to the first preset time threshold, processing the switching request and the operation application icon switching request in batch when the time point reaches the first preset time threshold, hiding the current application icon, and displaying the operation application icon. Therefore, when the operation event of the application icon meets the trigger condition, the switching request of the application icon is initiated, the operation application icon to be switched with the operation information is called correspondingly, the operation application icon to be switched with the operation information and the currently displayed application icon are switched quickly and noninductively, the waiting time for switching the operation application icon is shortened, and the switching efficiency of the application icon is greatly improved.
Example III,
In order to better implement the method for switching the application icons provided in the embodiments of the present application, the embodiments of the present application further provide a device based on the method for switching the application icons. The meaning of the noun is the same as that in the switching method of the application icon, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 5a, fig. 5a is a schematic structural diagram of a switching apparatus for application icons according to an embodiment of the present disclosure, where the switching apparatus for application icons may include an obtaining unit 301, a switch generating unit 302, a calling unit 303, a switching unit 304, and the like.
An obtaining unit 301, configured to obtain an operation event of an application icon and a trigger condition corresponding to the operation event of the application icon.
In this embodiment, the operation event may be a holiday operation event, which is an operation event at a specific time, such as a holiday operation event at a spring festival time corresponding to an application icon, and a holiday operation event at a consumer's right benefit day at 3 months and 15 days corresponding to an application icon, where when the operation event is a holiday operation event, the corresponding trigger condition is time, such as time being in spring festival time, that is a trigger condition meeting the holiday operation event at the spring festival event, such as time being in 3 months and 15 days, that is a trigger condition meeting the consumer's right benefit day. 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 cache cleaning operation event corresponding to an application icon, and when the operation event is an operation event under a specific event, the corresponding trigger condition is a cache threshold, and when the cache of the application corresponding to the application icon exceeds 1 Gigabyte (GB), in order to meet the trigger condition for cleaning the operation event by running the cache, 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, which is not specifically limited herein. Therefore, the obtaining unit 301 may obtain the trigger condition of the operation event of the application icon corresponding to the operation event of the application icon according to the preset frequency.
A switching generation unit 302, configured to generate a switching request for the application icon when the operation event of the application icon satisfies 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 into 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 satisfies the trigger condition, if the operation event of the application icon is the cache cleaning operation event and the trigger 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 satisfies the trigger condition, dynamic operation of the application icon is performed, and a switching request of the application icon is generated for starting execution of the switching process of the application icon.
A calling unit 303, configured to call an operation application icon to be switched with operation information according to the application icon switching request.
After the switching generation unit 302 generates the switching request of the application icon, the invoking unit 303 invokes the application icon with operation information to be switched according to the switching request of the application icon, where the application icon with operation information may be an application icon sent by the server together when sending the trigger condition, or may be an application icon with a storage space pre-stored in the terminal, the operation application icon may display corresponding operation information, for example, a "315" digital pattern is displayed to prompt the user that the application corresponding to the application icon includes activities related to rights and benefits of consumers, the user may directly jump to the application page including the activities related to rights and benefits of consumers by a preset click, for example, a double click or a long press on the operation application icon, and the operation application icon may also display a "to be cleaned" text pattern to prompt the user that the cache of the application corresponding to the application icon is too large, the user needs to clean in time, and the user can directly execute the function of cleaning the cache through preset clicking, such as double clicking or long-time pressing of the operation application icon.
In some embodiments, as shown in fig. 5b, the retrieving unit 303 may include:
a time determination 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 switching notification message when the current time point reaches the virtual time node;
a switching subunit 3033, configured to invoke an operation application icon to be switched with operation information 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 active object according to the virtual icon switching request; modifying the 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 further configured to: triggering a virtual icon switching request according to the application icon switching request; determining a corresponding virtual active object according to the virtual icon switching request; modifying the 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 no switching activity request exists in the system, creating a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request; a point in time when the virtual switching activity request processing is completed is determined as a virtual time node.
In some embodiments, the switching subunit 3033 is further specifically configured to: 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 subunit 3033 is further specifically configured to: calling an operation application icon to be switched with operation information according to the switching notification message, 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.
A switching unit 304, configured to perform a non-inductive switching between the operation application icon with operation information to be switched and the application icon.
If the switching request is directly loaded according to the prior art, a system default waiting time of 10 seconds exists, that is, the switching request has a waiting period of 0 to 10 seconds, and in the waiting period, the current application icon is clicked and invalidated, which causes inconvenience to the user.
Therefore, when executing the switching request, it is certainly desirable to shorten the waiting time of 10 seconds as much as possible, for example, the switching unit 304 loads the switching request in the very short time before the switching task is gathered by the system, and then the switching request can be directly executed only by waiting for the very short time, that is, the time for the current icon click to be invalid is shortened by the very short time, such as 0.2 seconds, and the invalid experience can be basically ignored.
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 further specifically 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 to the operation application icon.
In some embodiments, the switching unit 304 is further specifically configured to:
when the time point reaches a second preset time threshold, loading the switching request, wherein the second preset time threshold is smaller than the first preset time threshold; 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 the 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, configured to configure a plurality of application icon active object tags for the application, where each application icon active object tag 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.
A second setting unit 307, configured to set the display attribute of the application icon active object tag corresponding to the second application icon that is not displayed as a second parameter, so as to hide the second application icon.
A click obtaining unit 308, configured to obtain a click event for the operation application icon.
The execution unit 309 is configured to, when a click event for the operation application icon is received, start an application and jump to a page associated with the operation information or execute a function related to the operation information.
The specific implementation of each unit can refer to the previous embodiment, and is not described herein again.
As can be seen from the above, in the embodiment of the present application, the obtaining unit 301 obtains the operation event of the application icon and the trigger condition corresponding to the operation event of the application icon; the switching generation unit 302 generates a switching request of an application icon when an operation event of the application icon satisfies a trigger condition; the calling unit 303 calls an operation application icon to be switched with operation information according to the application icon switching request; the switching unit 304 performs a non-inductive switching between the operation application icon with operation information to be switched and the application icon. Therefore, when the operation event of the application icon meets the trigger condition, the switching request of the application icon is initiated, the operation application icon to be switched with the operation information is called correspondingly, the operation application icon to be switched with the operation information and the currently displayed application icon are switched quickly and noninductively, the waiting time for switching the operation application icon is shortened, and the switching efficiency of the application icon is greatly improved.
Example four,
An embodiment of the present application also provides a terminal, as shown in fig. 6, which may include components such as 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) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and information processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, 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 the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, 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 by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 608, and can receive and execute commands sent by the processor 608. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may include other input devices in addition to the 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, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may 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 the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted 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 according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, 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 the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 606, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then transmitted to, for example, another terminal via the RF circuit 601, or the audio data is output to the memory 602 for further processing. The audio circuit 606 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which 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 preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
acquiring an operation event of an application icon and a trigger condition corresponding to the operation event of the application icon; when the operation event of the application icon meets the trigger condition, generating a switching request of the application icon; calling an operation application icon to be switched with operation information according to the application icon switching request; and carrying out non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the information processing method, and are not described herein again.
As can be seen from the above, the terminal in the embodiment of the present application may obtain the operation event of the application icon and the trigger condition corresponding to the operation event of the application icon; when the operation event of the application icon meets the trigger condition, generating a switching request of the application icon; calling an operation application icon to be switched with operation information according to the application icon switching request; and carrying out 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 trigger condition, the switching request of the application icon is initiated, the operation application icon to be switched with the operation information is called correspondingly, the operation application icon to be switched with the operation information and the currently displayed application icon are switched quickly and noninductively, the waiting time for switching the operation application icon is shortened, and the switching efficiency of the application icon is greatly improved.
Example V,
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application embodiment provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for switching an application icon provided in the present application embodiment. For example, the instructions may perform the steps of:
acquiring an operation event of an application icon and a trigger condition corresponding to the operation event of the application icon; when the operation event of the application icon meets the trigger condition, generating a switching request of the application icon; calling an operation application icon to be switched with operation information according to the application icon switching request; and carrying out non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any method for switching an application icon provided in the embodiment of the present application, beneficial effects that can be achieved by any method for switching an application icon provided in the embodiment of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The method, the apparatus, and the storage medium for switching application icons provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. A method for switching application icons is characterized by comprising the following steps:
acquiring an operation event of an application icon and a trigger condition corresponding to the operation event of the application icon;
when the operation event of the application icon meets the trigger condition, generating a switching request of the application icon;
calling an operation application icon to be switched with operation information according to the application icon switching request;
and carrying out non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
2. The handover method according to claim 1, further comprising:
acquiring a click event of the operation application icon;
and when a click 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 1, wherein the step of calling the operation application icon with operation information to be switched according to the application icon switching request comprises:
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;
calling an operation application icon to be switched with operation information according to the switching notification message and generating an operation icon switching request;
the step of carrying out non-inductive switching on the operation application icon with the operation information to be switched and the application icon comprises the following steps:
before the operation icon switching request is executed, loading the switching request, and switching the application icon into an operation application icon.
4. The switching method according to claim 3, wherein the step of determining the corresponding virtual time node according to the virtual icon switching request comprises:
determining a corresponding virtual moving object according to the virtual icon switching request;
modifying the 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.
5. The handover method according to claim 4, wherein the step of determining the corresponding virtual time node according to the 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 no switching activity request exists in the system, creating a second processing queue corresponding to the virtual switching activity request to process the virtual switching activity request;
a point in time when the virtual switching activity request processing is completed is determined as a virtual time node.
6. The switching method according to claim 3, wherein the step of calling the service application icon with service information to be switched and generating a service icon switching request according to the switching notification message comprises:
and calling an operation application icon to be switched with operation information 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.
7. The switching method according to claim 6, wherein 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 comprises:
adding the operation icon switching request into the target processing queue;
before the target processing queue processes the operation icon switching request, adding the switching request into the target processing queue for uniform processing, and switching the application icon into the operation application icon.
8. The switching method according to claim 3, wherein the step of calling the service application icon with service information to be switched and generating a service icon switching request according to the switching notification message comprises:
calling an operation application icon to be switched with operation information according to the switching notification message, 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.
9. The switching method according to claim 8, wherein 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 comprises:
when the time point reaches a second preset time threshold, loading the switching request, wherein the second preset time threshold is smaller than the first preset time threshold;
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 the operation application icon.
10. The switching method according to any one of claims 1 to 9, wherein before the step of obtaining the trigger condition corresponding to the operation event of the application icon, the method further comprises:
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 an application icon moving object label corresponding to a 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 moving object label corresponding to the second application icon which is not displayed as a second parameter so as to hide the second application icon.
11. The switching method according to claim 10, wherein the step of switching the application icon to the operation application icon comprises:
determining an operation application icon moving object label corresponding to the operation application icon;
modifying the display attribute of the application icon moving 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 moving object label into a first parameter so as to display the operation application icon.
12. An apparatus for switching an application icon, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an operation event of an application icon and a trigger condition corresponding to 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 trigger condition;
the calling unit is used for calling the operation application icon to be switched with the operation information according to the application icon switching request;
and the switching unit is used for carrying out non-inductive switching on the operation application icon with the operation information to be switched and the application icon.
13. The switching device according to claim 12, 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 related to the operation information when a click event of the operation application icon is received.
14. The switching device according to claim 12, wherein the retrieving unit includes:
the time determining subunit is used for 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;
a notification generation subunit, configured to generate a switching notification message when the current time point reaches the virtual time node;
the switching subunit is used for calling the operation application icon to be switched with the operation information according to the switching notification message and generating an operation icon switching request;
the switching unit is specifically configured to:
before the operation icon switching request is executed, loading the switching request, and switching the application icon into an operation application icon.
15. A storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps of the method for switching application icons according to any one of claims 1 to 11.
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 true CN112148399A (en) 2020-12-29
CN112148399B 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
CN112148399B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN109857403B (en) Page updating method and device, page processing method and device
CN107066268B (en) Display position switching method and device for widget application
WO2015096747A1 (en) Operation response method, client, browser and system
CN110020293B (en) Multimedia data display method, device and storage medium
CN106713608B (en) Application function state modification method and device and terminal
CN106792076B (en) Method, device and system for information display
CN107666406B (en) Intelligent card display method and device
CN110457621B (en) Page display method, device and medium for hybrid application
CN106919458B (en) Method and device for Hook target kernel function
WO2015010466A1 (en) Information display method and apparatus, and mobile terminal
CN103491240B (en) A kind of alarm clock ringing method, device and mobile terminal
WO2014206138A1 (en) Webpage data update method, apparatus and terminal device
CN113613064B (en) Video processing method, device, storage medium and terminal
KR101621637B1 (en) Method, apparatus device, client computer, server, mobile terminal, program and storage medium for processing mobile terminal resource
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN113313804A (en) Image rendering method and device, electronic equipment and storage medium
CN107025574B (en) Promotion information display method and device
CN106302101B (en) Message reminding method, terminal and server
CN110287443A (en) A kind of method and relevant apparatus of page data displaying
CN105094872B (en) A kind of method and apparatus showing web application
CN115225966B (en) Application starting method, device, terminal equipment and storage medium
CN107463395B (en) Component calling method and device
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN116594616A (en) Component configuration method and device and computer readable storage medium
CN105282628B (en) A kind of method and apparatus of video playing

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