CN110399195B - Desktop icon dynamic replacement method, equipment and computer readable storage medium - Google Patents

Desktop icon dynamic replacement method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110399195B
CN110399195B CN201910694436.8A CN201910694436A CN110399195B CN 110399195 B CN110399195 B CN 110399195B CN 201910694436 A CN201910694436 A CN 201910694436A CN 110399195 B CN110399195 B CN 110399195B
Authority
CN
China
Prior art keywords
icon
program
application program
package
wearable device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910694436.8A
Other languages
Chinese (zh)
Other versions
CN110399195A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910694436.8A priority Critical patent/CN110399195B/en
Publication of CN110399195A publication Critical patent/CN110399195A/en
Application granted granted Critical
Publication of CN110399195B publication Critical patent/CN110399195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a desktop icon dynamic replacement method, equipment and a computer readable storage medium, wherein the method comprises the following steps: after the icon updating broadcast is received, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name; and finally, extracting a resource picture corresponding to the package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture. The humanized desktop icon dynamic replacement scheme is realized, so that the original display effect can be still maintained when the version of the application program in the wearable device is updated or the icon is updated, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.

Description

Desktop icon dynamic replacement method, equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of mobile communications, and in particular, to a desktop icon dynamic replacement method, device, and computer readable storage medium.
Background
In the prior art, with the rapid development of intelligent terminal equipment, wearable equipment different from conventional smart phones, such as wearable equipment like a smart watch or a smart bracelet, appears. Because wearing formula equipment compares in traditional smart mobile phone, its particularities such as software, hardware environment, operation mode and operation environment, if the scheme of controlling of traditional smart mobile phone is transferred to wearing formula equipment, can bring inconvenience, user experience bad for user's operation.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides a desktop icon dynamic replacement method, which comprises the following steps:
generating a download task of a program package corresponding to an application program, and detecting and identifying a storage path corresponding to the program package in the download task;
if the storage path points to the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device;
after the icon updating broadcast is received, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name;
And extracting a resource picture corresponding to the package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture.
Optionally, before the generating the download task of the package corresponding to the application program, detecting and identifying the storage path corresponding to the package in the download task includes:
analyzing an original program package corresponding to the application program;
and obtaining a package name corresponding to the original package.
Optionally, before the generating the download task of the package corresponding to the application program, detecting and identifying the storage path corresponding to the package in the download task, the method further includes:
generating a program package corresponding to an application program, wherein the corresponding relation between an original icon and an updated icon of the application program is preset;
and naming an update icon corresponding to the update package of the application program according to the corresponding relation and the package name.
Optionally, before the generating the download task of the package corresponding to the application program, detecting and identifying the storage path corresponding to the package in the download task, the method further includes:
Generating a program package corresponding to the application program, wherein an icon compiling project is created;
and compiling the update program package through the icon compiling engineering.
Optionally, before the generating the download task of the package corresponding to the application program, detecting and identifying the storage path corresponding to the package in the download task, the method further includes:
generating a program package corresponding to the application program, wherein the update icon is named according to the package name of the original icon;
and placing the image parameters of the updated icon in the affiliated folder according to the image parameters of the updated icon, and compiling the updated icon through the icon compiling engineering to obtain an updated program package containing the covering layer.
Optionally, before the generating the download task of the package corresponding to the application program, detecting and identifying the storage path corresponding to the package in the download task, the method further includes:
taking the updated program package containing the covering layer as a program package corresponding to the application program;
and publishing the program package to an application store.
Optionally, if the storage path points to the wearable device, when the downloading task is completed, an icon update broadcast is sent to a desktop program of the wearable device, and the method further includes:
If the storage path points to the wearable device, detecting whether the application program is installed in the wearable device;
and if the application program is installed in the wearable device, when the downloading task is completed, an icon update broadcast is sent to a desktop program of the wearable device.
Optionally, if the storage path points to the wearable device, when the downloading task is completed, an icon update broadcast is sent to a desktop program of the wearable device, and the method further includes:
if the application program is installed in the wearable device, detecting the downloading progress of the downloading task;
and when the downloading of the resource object in the downloading task is completed, sending an icon updating broadcast to the desktop program of the wearable device.
The invention also provides desktop icon dynamic replacement equipment, which comprises:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program implementing the steps of the method according to any of the preceding claims when executed by the processor.
The invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a desktop icon dynamic replacement program, and the desktop icon dynamic replacement program realizes the steps of the desktop icon dynamic replacement method when being executed by a processor.
The method has the advantages that the storage paths corresponding to the program packages in the downloading tasks are detected and identified by generating the downloading tasks of the program packages corresponding to the application programs; then, if the storage path points to the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device; then, after receiving the icon updating broadcast, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name; and finally, extracting a resource picture corresponding to the package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture. The humanized desktop icon dynamic replacement scheme is realized, so that the original display effect can be still maintained when the version of the application program in the wearable device is updated or the icon is updated, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic hardware structure of an implementation manner of a wearable device according to an embodiment of the present invention;
fig. 2 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 3 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 4 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 5 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
FIG. 6 is a flowchart of a first embodiment of a desktop icon dynamic replacement method of the present invention;
FIG. 7 is a flowchart of a second embodiment of a desktop icon dynamic replacement method of the present invention;
FIG. 8 is a flow chart of a third embodiment of a desktop icon dynamic replacement method of the present invention;
FIG. 9 is a flowchart of a fourth embodiment of a desktop icon dynamic replacement method of the present invention;
FIG. 10 is a flowchart of a fifth embodiment of a desktop icon dynamic replacement method of the present invention;
FIG. 11 is a flowchart of a sixth embodiment of a desktop icon dynamic replacement method of the present invention;
FIG. 12 is a flowchart of a seventh embodiment of a desktop icon dynamic replacement method of the present invention;
FIG. 13 is a flowchart of an eighth embodiment of a desktop icon dynamic replacement method of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The wearable device provided by the embodiment of the invention comprises a mobile terminal such as an intelligent bracelet, an intelligent watch and an intelligent mobile phone. With the continuous development of screen technology, mobile terminals such as smart phones and the like can also be used as wearable devices due to the appearance of screen forms such as flexible screens, folding screens and the like. The wearable device provided in the embodiment of the invention can comprise: RF (Radio Frequency) unit, wiFi module, audio output unit, A/V (audio/video) input unit, sensor, display unit, user input unit, interface unit, memory, processor, and power supply.
In the following description, a wearable device will be taken as an example, please refer to fig. 1, which is a schematic hardware structure of a wearable device implementing various embodiments of the present invention, where the wearable device 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and that the wearable device may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 1:
the radio frequency unit 101 may be used to send and receive information or send signals in a call process, specifically, the radio frequency unit 101 may send uplink information to the base station, or may send downlink information sent by the base station to the processor 110 of the wearable device to process the downlink information, where the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the wearable device is updated, for example, after detecting that the geographic position where the wearable device is located changes, the base station may send a notification of the change of the geographic position to the radio frequency unit 101 of the wearable device, after receiving the notification of the message, the radio frequency unit 101 may send the notification of the message to the processor 110 of the wearable device to process, and the processor 110 of the wearable device may control the notification of the message to be displayed on the display panel 1061 of the wearable device; typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication, which may specifically include: through wireless communication with a server in a network system, for example, the wearable device can download file resources from the server through wireless communication, for example, an application program can be downloaded from the server, after the wearable device finishes downloading a certain application program, if the file resources corresponding to the application program in the server are updated, the server can push a message notification of the resource update to the wearable device through wireless communication so as to remind a user to update the application program. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
In one embodiment, the wearable device 100 may access an existing communication network by inserting a SIM card.
In another embodiment, the wearable device 100 may access an existing communication network by setting an esim card (Embedded-SIM), and by adopting the esim card, the internal space of the wearable device may be saved and the thickness may be reduced.
It will be appreciated that although fig. 1 shows a radio frequency unit 101, it will be appreciated that the radio frequency unit 101 is not an essential component of a wearable device and may be omitted entirely as required within the scope of not changing the essence of the invention. The wearable device 100 may implement communication connection with other devices or communication networks through the wifi module 102 alone, which is not limited by the embodiment of the present invention.
WiFi belongs to a short-distance wireless transmission technology, and the wearable device can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of the wearable device, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the wearable device 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., call signal reception sound, message reception sound, etc.) related to a specific function performed by the wearable device 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
In one embodiment, the wearable device 100 includes one or more cameras, and by opening the cameras, capturing of images, photographing, video recording and other functions can be achieved, and the positions of the cameras can be set as required.
The wearable device 100 further comprises at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the wearable device 100 moves to the ear. As one type of motion sensor, the accelerometer sensor can detect the acceleration in all directions (typically three axes), and can detect the gravity and direction when stationary, and can be used for applications for recognizing the gesture of a mobile phone (such as horizontal-vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer, knocking), and the like.
In one embodiment, the wearable device 100 further comprises a proximity sensor, by employing the proximity sensor, the wearable device is able to achieve non-contact manipulation, providing more modes of operation.
In one embodiment, the wearable device 100 further comprises a heart rate sensor, which when worn, enables detection of heart rate by being in close proximity to the user.
In one embodiment, the wearable device 100 may further include a fingerprint sensor, by reading a fingerprint, security verification or the like can be achieved.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
In one embodiment, the display panel 1061 employs a flexible display screen, and the wearable device employing the flexible display screen is capable of bending when worn, thereby fitting more. Optionally, the flexible display screen may be an OLED screen body and a graphene screen body, and in other embodiments, the flexible display screen may also be other display materials, which is not limited to this embodiment.
In one embodiment, the display panel 1061 of the wearable device may take a rectangular shape for ease of wrapping when worn. In other embodiments, other approaches may be taken as well.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the wearable device. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
In one embodiment, the sides of the wearable device 100 may be provided with one or more buttons. The button can realize a plurality of modes such as short pressing, long pressing, rotation and the like, thereby realizing a plurality of operation effects. The number of the buttons can be multiple, and different buttons can be combined for use, so that multiple operation functions are realized.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the wearable device, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the wearable device, which is not limited herein. For example, when a message notification of a certain application is received through the rf unit 101, the processor 110 may control the message notification to be displayed in a certain preset area of the display panel 1061, where the preset area corresponds to a certain area of the touch panel 1071, and may control the message notification displayed in the corresponding area on the display panel 1061 by performing a touch operation on the certain area of the touch panel 1071.
The interface unit 108 serves as an interface through which at least one external device can be connected with the wearable apparatus 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the wearable apparatus 100 or may be used to transmit data between the wearable apparatus 100 and the external device.
In one embodiment, the interface unit 108 of the wearable device 100 adopts a contact structure, and is connected with other corresponding devices through the contact, so as to realize functions of charging, connection and the like. The contact can also be waterproof.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the wearable device, connects various parts of the entire wearable device with various interfaces and lines, performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 109, and invoking data stored in the memory 109, thereby performing overall monitoring of the wearable device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The wearable device 100 may further include a power source 111 (such as a battery) for powering the various components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the wearable device 100 may further include a bluetooth module or the like, which is not described herein. The wearable device 100 can be connected with other terminal devices through bluetooth to realize communication and information interaction.
Fig. 2 to fig. 4 are schematic structural diagrams of a wearable device according to an embodiment of the present invention. The wearable device comprises a flexible screen. When the wearable device is unfolded, the flexible screen is in a strip shape; when the wearable device is in a wearing state, the flexible screen is bent to be annular. Fig. 2 and 3 show schematic structural diagrams of the wearable device screen when unfolded, and fig. 4 shows schematic structural diagrams of the wearable device screen when bent.
Based on the above embodiments, it can be seen that if the device is a wristwatch, a bracelet, or a wearable device, the screen of the device may not cover the watchband area of the device, or may cover the watchband area of the device. In this embodiment, the device may be a wristwatch, a bracelet, or a wearable device, and the device includes a screen and a connection portion. The screen may be a flexible screen and the connection may be a wristband. Alternatively, the screen of the device or the display area of the screen may be partially or fully overlaid on the wristband of the device. Fig. 5 is a schematic hardware diagram of an implementation manner of a wearable device according to an embodiment of the present application, where a screen of the device extends to two sides, and a part of the screen is covered on a watchband of the device. In other embodiments, the screen of the device may also be entirely covered on the watchband of the device, which is not limited to this embodiment.
Example 1
FIG. 6 is a flowchart of a first embodiment of a desktop icon dynamic replacement method of the present invention. A desktop icon dynamic replacement method, the method comprising:
s1, generating a downloading task of a program package corresponding to an application program, and detecting and identifying a storage path corresponding to the program package in the downloading task;
s2, if the storage path points to the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device;
s3, after the icon updating broadcast is received, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name;
and S4, extracting a resource picture corresponding to the program package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture.
In this embodiment, first, a download task of a package corresponding to an application program is generated, and a storage path corresponding to the package in the download task is detected and identified; then, if the storage path points to the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device; then, after receiving the icon updating broadcast, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name; and finally, extracting a resource picture corresponding to the package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture.
In this embodiment, considering that the display area of the wearable device is narrower or more limited, in order to maintain the viewing experience of the user, the display content of the single screen needs to be arranged in a customized manner, for example, according to the display direction and the display size of the wearable device, the corresponding layout of the icon of the application program, which is suitable for viewing and does not reduce the operation efficiency of the user, is determined. However, the customization of the icon on the wearable device generally causes a problem that, when the application program on the wearable device receives the version update, especially when the icon of the application program of the updated version is also changed greatly, the icon customization scheme of the wearable device may be replaced by the updated icon, thereby possibly affecting the original visual effect of the desktop, and reducing the user experience. Therefore, in this embodiment, in order to solve the above technical problem, the present solution is to adaptively process a new icon of an application program of an updated version based on a resource replacement mechanism during operation, and then replace an original icon with the processed new icon, so as to maintain or improve an original visual effect of a desktop.
Specifically, in this embodiment, first, an application program to be downloaded is determined in a wearable device, or other devices that are in communication connection with the wearable device, or other devices that have a file transmission relationship with the wearable device, where the application program is displayed in an application store of the wearable device, or in an application program classification class that is classified in the other devices and is applicable to the wearable device, a download task of a program package corresponding to the application program is generated by receiving a download or update instruction under a user or a certain preset mechanism, and a storage path corresponding to the program package in the download task is detected and identified, where it may be understood that the storage path includes a storage path of the wearable device itself, and a storage path that is received and transmitted by other devices; then judging whether the storage path points to the wearable device, if the storage path points to the wearable device, sending an icon update broadcast to a desktop program of the wearable device when the downloading task is completed, and if not, detecting whether a new program package is received in the storage of the wearable device in a preset time period; then, after receiving the icon updating broadcast, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name; and finally, extracting a resource picture corresponding to the package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture.
The method has the advantages that the storage paths corresponding to the program packages in the downloading tasks are detected and identified by generating the downloading tasks of the program packages corresponding to the application programs; then, if the storage path points to the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device; then, after receiving the icon updating broadcast, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name; and finally, extracting a resource picture corresponding to the package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture. The humanized desktop icon dynamic replacement scheme is realized, so that the original display effect can be still maintained when the version of the application program in the wearable device is updated or the icon is updated, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.
Example two
Fig. 7 is a flowchart of a second embodiment of a desktop icon dynamic replacing method according to the present invention, based on the above embodiment, before generating a download task of a package corresponding to an application program, detecting and identifying a storage path corresponding to the package in the download task, including:
S01, analyzing an original program package corresponding to the application program;
s02, obtaining a package name corresponding to the original package.
In this embodiment, first, an original package corresponding to the application program is parsed; then, a package name corresponding to the original package is obtained.
Optionally, analyzing an original program package corresponding to the application program, if the program package of the installed version is stored in the wearable device, analyzing the installed original program package, comparing the original program package with a new program package, and if the resource object is not updated or the icon in the resource object is not updated, terminating the subsequent operation;
optionally, taking an android operating system as an example, first, an icon rule of an application program is formulated, wherein when the icon is updated, a corresponding rule of a new icon and an old icon is determined first, so that display disorder after the icon is updated can be avoided. Since the package name of each application on the device within the scope of the android operating system is unique, in this embodiment, by using the package name as the icon name, when the icon picture of the application program is updated, the old icon picture can be replaced with a new picture with the same package name.
The method has the advantages that the original program package corresponding to the application program is analyzed; then, a package name corresponding to the original package is obtained. The humanized desktop icon dynamic replacement scheme is realized, an icon replacement basis is provided, so that the original display effect can still be maintained when the version of an application program in the wearable device is updated or the icon is updated, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.
Example III
Fig. 8 is a flowchart of a third embodiment of a desktop icon dynamic replacing method according to the present invention, based on the above embodiment, before the generating a download task of a package corresponding to an application program, detecting and identifying a storage path corresponding to the package in the download task, the method further includes:
s03, generating a program package corresponding to an application program, wherein the corresponding relation between an original icon and an updated icon of the application program is preset;
and S04, naming an update icon corresponding to the update package of the application program according to the corresponding relation and the package name.
In this embodiment, first, a program package corresponding to an application program is generated, wherein a correspondence between an original icon and an updated icon of the application program is preset; and then, naming an update icon corresponding to an update package of the application program according to the corresponding relation and the package name.
Optionally, analyzing attribute differences between the original icon and the updated icon, wherein the attributes comprise resolution attributes, color theme attributes, icon shape attributes and the like;
optionally, determining whether to perform a subsequent replacement operation according to whether the attribute difference between the original icon and the updated icon exceeds a preset difference, and specifically, determining whether one or more of the resolution attribute, the color theme attribute, and the icon shape attribute exceeds a corresponding preset difference.
The method has the advantages that the corresponding relation between the original icon and the updated icon of the application program is preset by generating the program package corresponding to the application program; and then, naming an update icon corresponding to an update package of the application program according to the corresponding relation and the package name. The humanized desktop icon dynamic replacement scheme is realized, a judgment basis for icon replacement is provided, so that the original display effect can still be maintained when the version of an application program in the wearable device is updated or icon update occurs, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.
Example IV
Fig. 9 is a flowchart of a fourth embodiment of a desktop icon dynamic replacing method according to the present invention, based on the above embodiment, before the generating a download task of a package corresponding to an application program, detecting and identifying a storage path corresponding to the package in the download task, the method further includes:
s05, generating a program package corresponding to the application program, wherein an icon compiling project is created;
s06, compiling the update program package through the icon compiling engineering.
In this embodiment, first, a package corresponding to an application program is generated, in which an icon compilation project is created; the update package is then compiled by the icon compilation project.
Optionally, in this embodiment, preprocessing is performed for the subsequently generated overlay application, and specifically, a new project is created for compiling a new version package for generating a new application. That is, as described in the above example, renaming the icons in the new version package according to the rule to ensure that the icons in the new version package are consistent with the names of the old icons;
optionally, after renaming the icon in the new version package according to the rule, placing the icon in a classified folder corresponding to the standard according to the resolution standard, thereby preventing abnormal display effects such as stretching and the like from occurring when the icon is loaded, and causing display blurring.
The method has the advantages that the program package corresponding to the application program is generated, and the icon compiling project is created; the update package is then compiled by the icon compilation project. The humanized desktop icon dynamic replacement scheme is realized, and an icon replacement processing mode is provided, so that the original display effect can still be maintained when the version of an application program in the wearable device is updated or the icon is updated, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.
Example five
Fig. 10 is a flowchart of a fifth embodiment of a desktop icon dynamic replacing method according to the present invention, based on the above embodiment, before the generating a download task of a package corresponding to an application program, detecting and identifying a storage path corresponding to the package in the download task, the method further includes:
s07, generating a program package corresponding to an application program, wherein the update icon is named according to the package name of the original icon;
and S08, placing the updated icon in the affiliated folder according to the image parameters of the updated icon, and compiling the updated icon through the icon compiling engineering to obtain an updated program package containing the covering layer.
In this embodiment, first, a package corresponding to an application program is generated, where the update icon is named according to a package name of the original icon; and then placing the image parameters of the updated icon in the affiliated folder according to the image parameters of the updated icon, and compiling the updated icon by the icon compiling engineering to obtain an updated program package containing the covering layer.
Optionally, the image parameters of the updated icon include resolution parameters, color theme parameters, icon shape parameters, and the like;
optionally, the image parameters of the updated icon are placed in the folder, wherein the folder comprises folders corresponding to one or more of resolution parameters, color theme parameters and icon shape parameters.
The method has the advantages that the program package corresponding to the application program is generated, wherein the update icon is named according to the package name of the original icon; and then placing the image parameters of the updated icon in the affiliated folder according to the image parameters of the updated icon, and compiling the updated icon by the icon compiling engineering to obtain an updated program package containing the covering layer. The humanized desktop icon dynamic replacement scheme is realized, and the compiling mode of icon replacement is provided, so that the original display effect can still be maintained when the version of an application program in the wearable device is updated or icon update occurs, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.
Example six
Fig. 11 is a flowchart of a sixth embodiment of a desktop icon dynamic replacing method according to the present invention, based on the above embodiment, before the generating a download task of a package corresponding to an application program, detecting and identifying a storage path corresponding to the package in the download task, the method further includes:
s09, taking the update package of the covering layer as a package corresponding to the application program;
and S10, issuing the program package to an application store.
In this embodiment, first, the update package including the overlay layer is used as a package corresponding to the application program; the package is then published to an application store.
Optionally, the application program is issued to a wearable device download category;
optionally, the application program is issued to an application store, and the downloading interface of the application program is marked that the application program belongs to the downloading category of the wearable device;
optionally, the application program is released to an application store, and an application program version corresponding to the download category of the wearable device is downloaded at the time of downloading the application program.
The beneficial effect of the embodiment is that the update package containing the covering layer is used as the package corresponding to the application program; the package is then published to an application store. The humanized desktop icon dynamic replacement scheme is realized, and a distribution mode after icon updating is provided, so that the original display effect can still be maintained when the version of an application program in the wearable equipment is updated or icon updating occurs, and the situation that the visual effect is reduced and the user experience is poor due to the version updating or the icon updating of the application program is avoided.
Example seven
Fig. 12 is a flowchart of a seventh embodiment of a desktop icon dynamic replacing method according to the present invention, based on the above embodiment, where if the storage path points to a wearable device, when the download task is completed, an icon update broadcast is sent to a desktop program of the wearable device, and further including:
s21, if the storage path points to the wearable device, detecting whether the application program is installed in the wearable device;
and S22, if the application program is installed in the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device.
In this embodiment, first, if the storage path points to a wearable device, it is detected whether the application program is installed in the wearable device; and then, if the application program is installed in the wearable device, when the downloading task is completed, an icon update broadcast is sent to a desktop program of the wearable device.
Specifically, for example, after the processed application program is released to the application store, the user may download the application program according to preference, and if the application program is downloaded, the package is stored under the sdcard path of the wearable device, and then the desktop application is informed that a new icon is available for use by broadcasting.
After the desktop application receives the broadcast, a program package under the sdcard path is loaded by using an assetmanager, a corresponding resource object is obtained through analysis, and then a desktop program takes a new resource picture from the resource object according to the name of the program package, so that the original application program icon interface is replaced by refreshing the new resource picture.
The method has the beneficial effects that whether the application program is installed in the wearable device is detected by judging if the storage path points to the wearable device; and then, if the application program is installed in the wearable device, when the downloading task is completed, an icon update broadcast is sent to a desktop program of the wearable device. The humanized desktop icon dynamic replacement scheme is realized, and analysis and replacement modes after icon updating are provided, so that the original display effect can still be maintained when the version of an application program in the wearable equipment is updated or icon updating occurs, and the situations of visual effect reduction and poor user experience caused by the version updating or icon updating of the application program are avoided.
Example eight
Fig. 13 is a flowchart of an eighth embodiment of a desktop icon dynamic replacing method according to the present invention, based on the above embodiment, where if the storage path points to a wearable device, when the download task is completed, an icon update broadcast is sent to a desktop program of the wearable device, and further including:
S23, if the application program is installed in the wearable device, detecting the downloading progress of the downloading task;
and S24, when the downloading of the resource object in the downloading task is completed, an icon updating broadcast is sent to the desktop program of the wearable device.
In this embodiment, first, if the application program is already installed in the wearable device, a downloading progress of the downloading task is detected; and then, when the downloading of the resource object in the downloading task is completed, sending an icon updating broadcast to the desktop program of the wearable device.
Optionally, monitoring the downloading progress of the resource object in the downloading task in real time;
optionally, the downloading priority of the resource object in the downloading task is adjusted, so that the downloading progress of the resource object in the downloading task can be completed as soon as possible, and the subsequent processing efficiency is improved.
The method has the beneficial effects that the downloading progress of the downloading task is detected by judging if the application program is installed in the wearable device; and then, when the downloading of the resource object in the downloading task is completed, sending an icon updating broadcast to the desktop program of the wearable device. The humanized desktop icon dynamic replacement scheme is realized, a more efficient icon updating mode is provided, so that the original display effect can still be maintained when the version of an application program in the wearable device is updated or the icon is updated, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.
Example nine
Based on the above embodiment, the present invention further provides a desktop icon dynamic replacement device, which includes:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program implementing the steps of the method according to any of the preceding claims when executed by the processor.
Examples ten
Based on the above embodiments, the present invention also proposes a computer readable storage medium having a bitmap processing program stored thereon, which when executed by a processor implements the steps of the bitmap processing method according to any one of the above.
By generating a download task of a program package corresponding to an application program, detecting and identifying a storage path corresponding to the program package in the download task; then, if the storage path points to the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device; then, after receiving the icon updating broadcast, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name; and finally, extracting a resource picture corresponding to the package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture. The humanized desktop icon dynamic replacement scheme is realized, so that the original display effect can be still maintained when the version of the application program in the wearable device is updated or the icon is updated, and the situation that the visual effect is reduced and the user experience is poor due to the version update of the application program or the icon update is avoided.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (3)

1. A method for dynamically replacing desktop icons, the method comprising:
determining an application program to be downloaded in other equipment which is in communication connection with the wearable equipment or other equipment which has a file transmission relation with the wearable equipment, wherein the application program is displayed in an application program classification category which is classified in the other equipment and is suitable for the wearable equipment, and receiving a downloading or updating instruction under a user or a certain preset mechanism;
generating a download task of a program package corresponding to an application program, and detecting and identifying a storage path corresponding to the program package in the download task;
if the storage path points to the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device;
After the icon updating broadcast is received, analyzing the program package through a resource manager to obtain a program package name, and acquiring a resource object corresponding to the program package name;
extracting a resource picture corresponding to the package name from the resource object, and updating an icon picture corresponding to the application program in the desktop program through the resource picture;
the method for generating the download task of the program package corresponding to the application program comprises the steps of:
analyzing an original program package corresponding to the application program;
obtaining a package name corresponding to the original package;
generating a program package corresponding to an application program, wherein the corresponding relation between an original icon and an updated icon of the application program is preset;
naming an update icon corresponding to an update package of the application program according to the corresponding relation and the package name;
generating a program package corresponding to the application program, wherein an icon compiling project is created;
compiling the update package through the icon compiling engineering;
generating a program package corresponding to the application program, wherein the update icon is named according to the package name of the original icon;
Placing the updated icon in the affiliated folder according to the image parameters of the updated icon, and compiling the updated icon to obtain an updated program package containing a covering layer through the icon compiling engineering;
taking the updated program package containing the covering layer as a program package corresponding to the application program;
publishing the package to an application store;
if the storage path points to the wearable device, when the download task is completed, an icon update broadcast is sent to a desktop program of the wearable device, including:
if the storage path points to the wearable device, detecting whether the application program is installed in the wearable device;
if the application program is installed in the wearable device, when the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device;
if the application program is installed in the wearable device, detecting the downloading progress of the downloading task;
when the downloading of the resource object in the downloading task is completed, icon updating broadcasting is sent to a desktop program of the wearable device;
wherein,
if the program package of the installed version is stored in the wearable device, analyzing the installed original program package, comparing the original program package with a new program package, and if the resource object is not updated or the icon in the resource object is not updated, terminating the subsequent operation;
Analyzing attribute differences between the original icon and the updated icon, wherein the attributes comprise resolution attributes, color theme attributes and icon shape attributes; determining whether to perform subsequent replacement operation according to whether the attribute difference between the original icon and the updated icon exceeds a preset difference value, wherein whether one or more of the resolution attribute, the color theme attribute and the icon shape attribute exceeds the corresponding preset difference value or not is judged;
publishing the application program to a downloading category of the wearable device; or, the application program is issued to the application store, and the downloading type of the wearable device to which the application program belongs is marked in a downloading interface of the application program; or, the application program is issued to the application store, and the application program version corresponding to the downloading type of the wearable device is downloaded at the downloading time of the application program.
2. A desktop icon dynamic replacement apparatus, the apparatus comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
The computer program implementing the steps of the method of claim 1 when executed by the processor.
3. A computer readable storage medium, wherein a desktop icon dynamic replacement program is stored on the computer readable storage medium, the desktop icon dynamic replacement program implementing the steps of the desktop icon dynamic replacement method of claim 1 when executed by a processor.
CN201910694436.8A 2019-07-30 2019-07-30 Desktop icon dynamic replacement method, equipment and computer readable storage medium Active CN110399195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910694436.8A CN110399195B (en) 2019-07-30 2019-07-30 Desktop icon dynamic replacement method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910694436.8A CN110399195B (en) 2019-07-30 2019-07-30 Desktop icon dynamic replacement method, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110399195A CN110399195A (en) 2019-11-01
CN110399195B true CN110399195B (en) 2024-01-09

Family

ID=68326718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910694436.8A Active CN110399195B (en) 2019-07-30 2019-07-30 Desktop icon dynamic replacement method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110399195B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115145437A (en) * 2021-03-31 2022-10-04 深圳市万普拉斯科技有限公司 Desktop icon modification method and device and terminal equipment
CN112947974B (en) * 2021-04-12 2022-10-28 平安国际智慧城市科技股份有限公司 Desktop icon updating method, device and equipment and computer readable storage medium
CN113867879B (en) * 2021-10-15 2023-09-22 数源科技股份有限公司 Android-based system style depth customization method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017201936A1 (en) * 2016-05-27 2017-11-30 乐视控股(北京)有限公司 Method and apparatus for replacing icon of application installation package, and electronic device
CN108021377A (en) * 2016-11-01 2018-05-11 阿里巴巴集团控股有限公司 A kind of application icon update method and device
CN108595201A (en) * 2018-04-20 2018-09-28 维沃移动通信有限公司 A kind of application program update method and mobile terminal
CN109471572A (en) * 2018-10-30 2019-03-15 努比亚技术有限公司 A kind of dynamic spirogram target loading method, client and computer storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10514821B2 (en) * 2014-12-05 2019-12-24 Samsung Electronics Co., Ltd. Method and apparatus for relocating an icon
KR20170006579A (en) * 2015-07-08 2017-01-18 삼성전자주식회사 Electronic device and method for changing icon in the electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017201936A1 (en) * 2016-05-27 2017-11-30 乐视控股(北京)有限公司 Method and apparatus for replacing icon of application installation package, and electronic device
CN108021377A (en) * 2016-11-01 2018-05-11 阿里巴巴集团控股有限公司 A kind of application icon update method and device
CN108595201A (en) * 2018-04-20 2018-09-28 维沃移动通信有限公司 A kind of application program update method and mobile terminal
CN109471572A (en) * 2018-10-30 2019-03-15 努比亚技术有限公司 A kind of dynamic spirogram target loading method, client and computer storage medium

Also Published As

Publication number Publication date
CN110399195A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN109982179B (en) Audio signal output method and device, wearable device and storage medium
CN110399195B (en) Desktop icon dynamic replacement method, equipment and computer readable storage medium
CN109933294B (en) Data processing method and device, wearable device and storage medium
CN109947524B (en) Interface display method, wearable device and computer readable storage medium
CN110177209B (en) Video parameter regulation and control method, device and computer readable storage medium
CN110072295B (en) Dual-channel communication method, device, first terminal and medium
CN109976612B (en) Application function implementation method, wearable device, mobile phone and computer-readable storage medium
CN110083205B (en) Page switching method, wearable device and computer-readable storage medium
CN110177208B (en) Video recording association control method, equipment and computer readable storage medium
CN110399196B (en) Wearable device, interface switching implementation method thereof and computer readable storage medium
CN110086808B (en) Account login control method and device and computer readable storage medium
CN110213637B (en) Method for adding watermark to video file, wearable device and readable storage medium
CN109947325B (en) Application icon display method, wearable device and computer-readable storage medium
CN110072071B (en) Video recording interaction control method, equipment and computer readable storage medium
CN110071866B (en) Instant messaging application control method, wearable device and storage medium
CN109933187B (en) Wearing equipment operation control method, wearing equipment and computer readable storage medium
CN110139270B (en) Wearable device pairing method, wearable device and computer readable storage medium
CN109918014B (en) Page display method, wearable device and computer-readable storage medium
CN110069200B (en) Wearable device input control method, wearable device and storage medium
CN109933400B (en) Display interface layout method, wearable device and computer readable storage medium
CN110083427B (en) Application program interaction control method, device and computer readable storage medium
CN109992341B (en) Button quick response method, wearable device and computer readable storage medium
CN110213441B (en) Voice control method, wearable device and computer-readable storage medium
CN109947448B (en) Time updating method, device and computer readable storage medium
CN110174981B (en) Icon interaction control method and device and computer readable storage medium

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