CN115145437A - Desktop icon modification method and device and terminal equipment - Google Patents

Desktop icon modification method and device and terminal equipment Download PDF

Info

Publication number
CN115145437A
CN115145437A CN202110349183.8A CN202110349183A CN115145437A CN 115145437 A CN115145437 A CN 115145437A CN 202110349183 A CN202110349183 A CN 202110349183A CN 115145437 A CN115145437 A CN 115145437A
Authority
CN
China
Prior art keywords
icon
desktop
resource
information
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110349183.8A
Other languages
Chinese (zh)
Inventor
余家福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202110349183.8A priority Critical patent/CN115145437A/en
Publication of CN115145437A publication Critical patent/CN115145437A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The embodiment of the application provides a method and a device for modifying a desktop icon and terminal equipment, wherein the method comprises the following steps: analyzing the application information configuration file to obtain an analysis file, wherein the analysis file comprises an application package name of at least one application program and desktop icon information corresponding to the application package name; if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name; and adjusting the current application program according to the acquired desktop icon information. Through the provided desktop icon modification scheme, the desktop icon information of the application program is set in a customized mode through the application information configuration file, when the application program is scanned, the application program is adjusted according to the desktop icon information in the application information configuration, the desktop icon information of the application program can be modified flexibly, the desktop icon information modification efficiency is improved, and the time consumption of application program development is reduced.

Description

Desktop icon modification method and device and terminal equipment
Technical Field
The invention relates to the technical field of application programs, in particular to a desktop icon modification method and device and terminal equipment.
Background
In the prior art, application information is defined by an application program, and for example, information such as an application name, an application icon, whether the application icon is displayed and the like is defined by the application program. In the actual development process, some preset applications need to modify the relevant information. For example, for a certain application, the application icon I1 and the application name L1 of the application are displayed on the desktop of the terminal device a, the application icon I2 and the application name L2 of the application are displayed on the desktop of the terminal device B, only the application name L3 of the application is displayed on the desktop of the terminal device C, and the application icon is not displayed. In the prior art, corresponding application programs can be compiled only aiming at different information display requirements of different terminal devices on the same application program, the time consumption is long, the efficiency is low, and the desktop icons of the application programs cannot be flexibly modified.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present invention provide a method and an apparatus for modifying a desktop icon, and a terminal device.
In a first aspect, an embodiment of the present invention provides a method for modifying a desktop icon, which is applied to a terminal device, and the method includes:
analyzing the application information configuration file to obtain an analysis file, wherein the analysis file comprises an application package name of at least one application program and desktop icon information corresponding to the application package name;
if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name;
and adjusting the current application program according to the acquired desktop icon information.
In a second aspect, an embodiment of the present invention provides a desktop icon modification apparatus, which is applied to a terminal device, where the desktop icon modification apparatus includes:
the analysis module is used for analyzing the application information configuration file to obtain an analysis file, and the analysis file comprises an application package name of at least one application program and desktop icon information corresponding to the application package name;
the acquisition module is used for acquiring desktop icon information corresponding to the target application package name if the target application package name matched with the scanned application package name of the current application program exists in the application package names of the analysis files;
and the adjusting module is used for adjusting the current application program according to the acquired desktop icon information.
In a third aspect, an embodiment of the present invention provides a terminal device, including a memory and a processor, where the memory is used to store a computer program, and the computer program executes the method for modifying a desktop icon provided in the first aspect when the processor runs.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program, when running on a processor, executes the method for modifying a desktop icon provided in the first aspect.
According to the desktop icon modification scheme provided by the application, the application information configuration file is analyzed to obtain an analysis file, wherein the analysis file comprises an application package name of at least one application program and desktop icon information corresponding to the application package name; if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name; and adjusting the current application program according to the acquired desktop icon information. Through the provided desktop icon modification scheme, the desktop icon information of the application program is set in a customized mode through the application information configuration file, when the application program is scanned, the application program is adjusted according to the desktop icon information in the application information configuration, the desktop icon information of the application program can be modified flexibly, the modification efficiency of the desktop icon information of the application program is improved, and the time consumed by application program development is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
FIG. 1 is a schematic flow chart diagram illustrating a method for modifying a desktop icon provided by an embodiment of the present application;
FIG. 2 is a schematic flow chart of the step S103 of the method for modifying a desktop icon provided in the embodiment of the present application;
FIG. 3 is another schematic flow chart diagram illustrating a method for modifying a desktop icon provided by an embodiment of the present application;
FIG. 4 is a schematic block diagram of a desktop icon modification apparatus according to an embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of the terminal device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are intended to indicate only specific features, numerals, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the presence of or adding to one or more other features, numerals, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another, and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as terms defined in a commonly used dictionary) will be construed to have the same meaning as the contextual meaning in the related art and will not be construed to have an idealized or overly formal meaning unless expressly so defined in various embodiments of the present invention.
Example 1
The embodiment of the disclosure provides a method for modifying a desktop icon, which is applied to terminal equipment.
Specifically, as shown in fig. 1, the method for modifying a desktop icon includes:
and step S101, analyzing the application information configuration file to obtain an analysis file.
In this embodiment, the parsing file includes an application package name of at least one application program and desktop icon information corresponding to the application package name. For example, the app package name of the microblog app may be sinaweibo.
The terminal device may include a mobile terminal, a desktop computer, and the like, and the mobile terminal may be a mobile phone, a tablet computer, and the like. The desktop icon information may include an icon resource name and/or icon display control information. The icon resource name may include an application icon name and an application name, for example, the WeChat application name may be set to name-weixin, and the WeChat application icon name may be set to img-icon-weixin. The icon display control information is used for defining whether the icon resource corresponding to the icon resource name is displayed on the desktop of the terminal equipment. For example, the icon display control information defines that a WeChat name resource with an icon resource name of name-weixin is displayed on the desktop of the terminal device, the WeChat name resource is a specific character string of 'WeChat', and the WeChat icon resource is a specific WeChat icon picture in a certain picture format, for example, a WeChat icon picture in a JGP format.
The application information configuration file is a configuration file for customizing or customizing the application package name of the application program and the corresponding desktop icon information. Clear writing specifications can be predefined and used for defining information such as application package names, desktop icon information and the like.
In this embodiment, the application information configuration file may be written according to a writing specification according to specific requirements, where the application information configuration file includes an application package name of at least one application program and application information corresponding to the application package name. In an embodiment, the application information configuration file may be integrated into a system of the terminal device at a system compiling stage of the terminal device, and the application information configuration file may be parsed at a system running stage of the terminal device. For example, the name of the application information profile may be named/system/etc/app _ info _ customizations. And at the system operation stage of the terminal equipment, analyzing/system/etc/app _ info _ customizations.
And step S102, if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name.
In this embodiment, it is determined whether a target application package name matching the scanned application package name of the current application program exists in the application package names of the parsed files. If the target application package name exists, executing step S102, and if the target application package name does not exist, continuing to scan the application package names of other application programs, and determining whether the target application package name matching the application package name of the subsequently scanned application program exists in the analysis file.
For example, when the application package name of the current application program is com.intent.mm and the micro-information package name is also present in the parsing file, it is determined that a target application package name matching the application package name of the current application program is present in the parsing file, and the target application package name is com.intent.mm. Desktop icon information corresponding to the micro-letter packet name com.tent.mm is obtained from the analysis file, for example, an application name, an application icon name and the like corresponding to the com.tent.mm are obtained.
And step S103, adjusting the current application program according to the acquired desktop icon information.
Optionally, the desktop icon information includes an icon resource name and/or icon display control information, where the icon display control information is used to define whether to display an icon resource corresponding to the icon resource name on the desktop of the terminal device.
Optionally, referring to fig. 2, step S104 includes:
step S1021, if the acquired desktop icon information comprises the icon resource name, acquiring an icon resource ID corresponding to the icon resource name;
step S1022, update the icon resource ID of the current application program to the acquired icon resource ID.
Optionally, step S104 includes:
and if the acquired desktop icon information comprises the icon display control information, adjusting the desktop icon display configuration information of the current application program according to the icon display control information.
Optionally, the obtaining of the icon resource ID corresponding to the icon resource name includes:
acquiring the corresponding relation between the icon resource name and the icon resource ID of the at least one application program;
and determining the icon resource ID corresponding to the icon resource name according to the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
In this embodiment, the resource package may be a frame-res.apk module, and the corresponding relationship between the icon resource name and the icon resource ID of the at least one application program is determined from the frame-res.apk module, where the corresponding relationship between the icon resource name and the icon resource ID of the at least one application program includes the icon resource names of the multiple application programs and the icon resource IDs corresponding thereto. For example, the at least one application includes a first application and a second application, and the corresponding relationship between the icon resource name and the icon resource ID of the at least one application includes the icon resource name and the icon resource ID of the first application, and the icon resource name and the icon resource ID of the second application.
Optionally, referring to fig. 3, the obtaining the corresponding relationship between the icon resource name and the icon resource ID of the at least one application program includes:
step S1021, icon resources corresponding to the icon resource names of the at least one application program are added into the resource package.
In this embodiment, the icon resource name of at least one application may be the icon resource name of a first application, a second application, wherein the icon resource name of the first application is 8230, the icon resource name of an nth application, wherein the icon resource name of the first application, the icon resource name of the second application, wherein the icon resource name of the second application is 8230, the icon resource name of the nth application, and the first application, the second application, the icon resource name of the nth application, and the nth application, may be the application such as WeChat, microblog, browser, and the like, without limitation. The icon resource name may include a resource name of the application name, a resource name of the application icon, and the like. The resource package can be a frame-res.apk module, and the application name resource, the application icon resource and the like of each application program are added into the frame-res.apk module. The application name resource is a specific character string for representing an application name, and the application icon resource is a specific icon picture in a certain picture format, for example, an icon picture in a JGP format.
Step S1022, generating a corresponding icon resource ID for the icon resource of the at least one application.
In the implementation, the icon resource ID corresponding to the icon resource is generated in the resource packet, an icon resource ID index table is formed, and the corresponding icon resource is called through the icon resource ID.
Step S1023, a corresponding relationship between the icon resource name and the icon resource ID of the at least one application is generated.
In this embodiment, the icon resource name may include an application name resource name and an application icon resource name, and the corresponding relationship between the icon resource name and the icon resource ID of the at least one application includes: the corresponding relation between the application name resource name and the application name resource ID of the at least one application program, the corresponding relation between the application icon resource name and the application icon resource ID of the at least one application program and the like.
Therefore, the corresponding relation between the icon resource name and the icon resource ID can be obtained, and the desktop icon of the application program can be conveniently adjusted subsequently according to the icon resource ID.
Optionally, the adjusting the desktop icon display configuration information of the current application according to the icon display control information includes:
adding desktop icon display configuration information in the current application program under the condition that the icon display control information is that icon information is displayed on a desktop of the terminal equipment and the current application program does not include the desktop icon display configuration information; alternatively, the first and second liquid crystal display panels may be,
and under the condition that the icon display control information is that the icon information is not displayed on the desktop of the terminal equipment and the current application program comprises desktop icon display configuration information, deleting the desktop icon display configuration information in the current application program.
In this embodiment, the desktop icon display configuration information is Intent # cagtegry _ laxcher configuration information. Intent # CATEGORY _ laurcher configuration information may be set in the android mail.
For example, if the icon display control information is icon information displayed on the desktop of the terminal device, and the Intent # bearer _ bearer configuration information is not set in the android mail. Note that the value of Intent # CATEGORY _ keeper is android.
And deleting the configuration information of the Intent-filter named Intent # CATEGORY _ LAUNCHER in the android Manifest.xml file of the application program under the condition that the icon display control information is that the Intent # CATEGORY _ LAUNCHER configuration information is not set in the desktop display icon information of the terminal equipment and the android main fet.xml file.
Therefore, customized definition can be carried out on whether the desktop icons are displayed on the desktop of the terminal equipment according to specific requirements, and the flexibility of information display of the desktop icons is improved.
Optionally, after adding desktop icon display configuration information to the current application, the method includes:
displaying corresponding icon resources on a desktop of the terminal equipment;
after the current application deletes the desktop icon display configuration information, the method includes:
and not displaying the corresponding icon resource on the desktop of the terminal equipment.
Therefore, whether the desktop icon information is displayed or not is flexibly controlled, and the effect of conveniently enabling a user to know the desktop icon information of the application program is achieved.
Optionally, after the icon resource ID of the current application program is updated to the acquired icon resource ID, the method includes:
and acquiring the corresponding icon resource from the resource package according to the updated resource ID, and displaying the acquired icon resource on the desktop.
Therefore, the displayed desktop icon information is flexibly updated, and the desktop icon information presentation effect of the application program is enriched.
It is to be noted that, by the modification scheme of the desktop icon provided in this embodiment, customized display of the desktop icon information of the current application program on the desktop of the terminal device is implemented, for example, only the updated application icon of the current application program is displayed on the desktop of the terminal device, only the updated application name of the current application program is displayed on the desktop of the terminal device, or the updated application icon and the updated application name of the current application program are displayed on the desktop of the terminal device, or only the application name is displayed on the desktop of the terminal device, or only the application icon is displayed on the desktop of the terminal device, and the desktop icon information can be adjusted individually or in combination very flexibly.
In the method for modifying a desktop icon provided by this embodiment, an application information configuration file is analyzed to obtain an analysis file, where the analysis file includes an application package name of at least one application program and desktop icon information corresponding to the application package name; if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name; and adjusting the current application program according to the acquired desktop icon information. Through the provided desktop icon modification scheme, the desktop icon information of the application program is set in a customized mode through the application information configuration file, when the application program is scanned, the application program is adjusted according to the desktop icon information in the application information configuration, the desktop icon information of the application program can be modified flexibly, the modification efficiency of the desktop icon information of the application program is improved, and the time consumed by application program development is reduced.
Example 2
In addition, the embodiment of the disclosure provides a desktop icon modification device, which is applied to terminal equipment.
Specifically, as shown in fig. 4, the desktop icon modification apparatus 400 includes:
the analysis module 401 is configured to analyze the application information configuration file to obtain an analysis file, where the analysis file includes an application package name of at least one application program and desktop icon information corresponding to the application package name;
an obtaining module 402, configured to obtain desktop icon information corresponding to a target application package name if the target application package name matching the scanned application package name of the current application program exists in the application package names of the parsed files;
and an adjusting module 403, configured to adjust the current application program according to the obtained desktop icon information.
Optionally, the desktop icon information includes an icon resource name and/or icon display control information, where the icon display control information is used to define whether to display an icon resource corresponding to the icon resource name on a desktop of the terminal device, and the adjusting module 403 is further configured to obtain an icon resource ID corresponding to the icon resource name if the obtained desktop icon information includes the icon resource name;
updating the icon resource ID of the current application program to the acquired icon resource ID;
and/or the presence of a gas in the gas,
and if the acquired desktop icon information comprises the icon display control information, adjusting the desktop icon display configuration information of the current application program according to the icon display control information.
Optionally, the adjusting module 403 is further configured to obtain a corresponding relationship between an icon resource name and an icon resource ID of the at least one application program;
and determining the icon resource ID corresponding to the icon resource name according to the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
Optionally, the adjusting module 403 is further configured to add an icon resource corresponding to the icon resource name of the at least one application program in the resource package;
generating a corresponding icon resource ID for the icon resource of the at least one application program;
and generating the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
Optionally, the adjusting module 403 is further configured to add desktop icon display configuration information to the current application program when the icon display control information indicates that the icon information is displayed on the desktop of the terminal device and the current application program does not include the desktop icon display configuration information; alternatively, the first and second liquid crystal display panels may be,
and under the condition that the icon display control information is that the icon information is not displayed on the desktop of the terminal equipment and the current application program comprises desktop icon display configuration information, deleting the desktop icon display configuration information in the current application program.
Optionally, the desktop icon modification apparatus 400 further includes:
the display module is used for displaying corresponding icon resources on a desktop of the terminal equipment after desktop icon display configuration information is added in the current application program;
and after the current application program deletes the desktop icon display configuration information, not displaying the corresponding icon resource on the desktop of the terminal equipment.
Optionally, the display module is further configured to obtain the corresponding icon resource from the resource package according to the updated resource ID, and display the obtained icon resource on the desktop.
The modification apparatus 400 for desktop icons provided in the present disclosure may be implemented as the modification method for desktop icons shown in embodiment 1, and is not described herein again to avoid repetition.
The desktop icon modification apparatus provided in this embodiment parses the application information configuration file to obtain a parsed file, where the parsed file includes an application package name of at least one application program and desktop icon information corresponding to the application package name; if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name; and adjusting the current application program according to the acquired desktop icon information. According to the provided desktop icon modification scheme, the desktop icon information of the application program is set in a customized mode through the application information configuration file, when the application program is scanned, the application program is adjusted according to the desktop icon information in the application information configuration, the desktop icon information of the application program can be modified flexibly, the modification efficiency of the desktop icon information of the application program is improved, and the time consumed for application program development is reduced.
Example 3
Furthermore, an embodiment of the present disclosure provides a terminal device, including a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the method for modifying a desktop icon provided in embodiment 1 of the foregoing method.
Specifically, as shown in fig. 5, the terminal device 500 provided in this embodiment includes:
a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 5 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
Wherein, the processor 510 is configured to: analyzing the application information configuration file to obtain an analysis file, wherein the analysis file comprises an application package name of at least one application program and desktop icon information corresponding to the application package name;
if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name;
and adjusting the current application program according to the acquired desktop icon information.
Optionally, the desktop icon information includes an icon resource name and/or icon display control information, where the icon display control information is used to define whether to display an icon resource corresponding to the icon resource name on the desktop of the terminal device, and the processor 510 is further configured to: if the acquired desktop icon information comprises the icon resource name, acquiring an icon resource ID corresponding to the icon resource name;
updating the icon resource ID of the current application program to the acquired icon resource ID;
and/or the presence of a gas in the atmosphere,
and if the acquired desktop icon information comprises the icon display control information, adjusting the desktop icon display configuration information of the current application program according to the icon display control information.
Optionally, the processor 510 is further configured to: acquiring the corresponding relation between the icon resource name and the icon resource ID of the at least one application program;
and determining the icon resource ID corresponding to the icon resource name according to the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
Optionally, the processor 510 is further configured to: adding icon resources corresponding to the icon resource names of the at least one application program in the resource package;
generating a corresponding icon resource ID for the icon resource of the at least one application program;
and generating the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
Optionally, the processor 510 is further configured to: adding desktop icon display configuration information in the current application program under the condition that the icon display control information is that icon information is displayed on a desktop of the terminal equipment and the current application program does not include the desktop icon display configuration information; alternatively, the first and second electrodes may be,
and under the condition that the icon display control information is that the icon information is not displayed on the desktop of the terminal equipment and the current application program comprises desktop icon display configuration information, deleting the desktop icon display configuration information in the current application program.
Optionally, the processor 510 is further configured to: after desktop icon display configuration information is added in the current application program, displaying corresponding icon resources on a desktop of the terminal equipment;
and after the current application program deletes the desktop icon display configuration information, not displaying the corresponding icon resource on the desktop of the terminal equipment.
Optionally, the processor 510 is further configured to: and acquiring the corresponding icon resource from the resource packet according to the updated resource ID, and displaying the acquired icon resource on the desktop.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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 501 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the terminal apparatus 500. The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or video obtained by an image capturing terminal device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be played back on the display unit 506 in video. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The terminal device 500 further comprises at least one sensor 505, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the terminal device 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used for video playing of information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). Touch panel 5071 may include two parts, a touch detection terminal device and a touch controller. The touch detection terminal equipment 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 detection terminal device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to touch panel 5071, user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display 5061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 5071 and the display 5061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 508 is an interface for connecting an external terminal device to the terminal device 500. For example, the external terminal device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a terminal 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 508 may be used to receive input (e.g., data information, power, etc.) from an external terminal device and transmit the received input to one or more elements within the terminal device 500 or may be used to transmit data between the terminal device 500 and the external terminal device.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program 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 cellular phone, etc. Further, the memory 509 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 510 is a control center of the terminal device, connects various parts of the whole terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the terminal device. Processor 510 may include one or more processing units; alternatively, processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, 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 processor 510.
The terminal device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and optionally, the power supply 511 may be logically connected to the processor 510 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 500 includes some functional modules that are not shown, and are not described in detail herein.
The terminal device provided in this embodiment parses the application information configuration file to obtain a parsed file, where the parsed file includes an application package name of at least one application program and desktop icon information corresponding to the application package name; if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name; and adjusting the current application program according to the acquired desktop icon information. Through the provided desktop icon modification scheme, the desktop icon information of the application program is set in a customized mode through the application information configuration file, when the application program is scanned, the application program is adjusted according to the desktop icon information in the application information configuration, the desktop icon information of the application program can be modified flexibly, the modification efficiency of the desktop icon information of the application program is improved, and the time consumed by application program development is reduced.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
analyzing the application information configuration file to obtain an analysis file, wherein the analysis file comprises an application package name of at least one application program and desktop icon information corresponding to the application package name;
if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name;
and adjusting the current application program according to the acquired desktop icon information.
Optionally, the computer program further implements the following steps when executed by the processor:
if the acquired desktop icon information comprises the icon resource name, acquiring an icon resource ID corresponding to the icon resource name;
updating the icon resource ID of the current application program to the acquired icon resource ID;
and/or the presence of a gas in the gas,
and if the acquired desktop icon information comprises the icon display control information, adjusting the desktop icon display configuration information of the current application program according to the icon display control information.
Optionally, the computer program further realizes the following steps when being executed by the processor:
acquiring the corresponding relation between the icon resource name and the icon resource ID of the at least one application program;
and determining the icon resource ID corresponding to the icon resource name according to the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
Optionally, the computer program further implements the following steps when executed by the processor:
adding icon resources corresponding to the icon resource names of the at least one application program in the resource package;
generating a corresponding icon resource ID for the icon resource of the at least one application program;
and generating the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
Optionally, the computer program further implements the following steps when executed by the processor:
adding desktop icon display configuration information in the current application program under the condition that the icon display control information is that icon information is displayed on a desktop of the terminal equipment and the current application program does not include the desktop icon display configuration information; alternatively, the first and second liquid crystal display panels may be,
and under the condition that the icon display control information is that the icon information is not displayed on the desktop of the terminal equipment and the current application program comprises desktop icon display configuration information, deleting the desktop icon display configuration information in the current application program.
Optionally, the computer program further realizes the following steps when being executed by the processor:
after desktop icon display configuration information is added in the current application program, displaying corresponding icon resources on a desktop of the terminal equipment;
and after the current application program deletes the desktop icon display configuration information, not displaying the corresponding icon resource on the desktop of the terminal equipment.
Optionally, the computer program further realizes the following steps when being executed by the processor:
and acquiring the corresponding icon resource from the resource packet according to the updated resource ID, and displaying the acquired icon resource on the desktop.
In this embodiment, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The computer-readable storage medium provided in the present disclosure may implement the method for modifying a desktop icon shown in embodiment 1 by executing a computing program, and is not described herein again in order to avoid repetition.
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 terminal 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 terminal. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of additional like elements in the process, method, article, or terminal that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A desktop icon modification method is applied to terminal equipment and comprises the following steps:
analyzing the application information configuration file to obtain an analysis file, wherein the analysis file comprises an application package name of at least one application program and desktop icon information corresponding to the application package name;
if the application package name of the analysis file has a target application package name matched with the scanned application package name of the current application program, acquiring desktop icon information corresponding to the target application package name;
and adjusting the current application program according to the acquired desktop icon information.
2. The method according to claim 1, wherein the desktop icon information includes an icon resource name and/or icon display control information, the icon display control information is used to define whether an icon resource corresponding to the icon resource name is displayed on a desktop of the terminal device, and the adjusting the current application program according to the acquired desktop icon information includes:
if the acquired desktop icon information comprises the icon resource name, acquiring an icon resource ID corresponding to the icon resource name;
updating the icon resource ID of the current application program to the acquired icon resource ID;
and/or the presence of a gas in the gas,
and if the acquired desktop icon information comprises the icon display control information, adjusting the desktop icon display configuration information of the current application program according to the icon display control information.
3. The method according to claim 2, wherein the obtaining the icon resource ID corresponding to the icon resource name includes:
acquiring the corresponding relation between the icon resource name and the icon resource ID of the at least one application program;
and determining the icon resource ID corresponding to the icon resource name according to the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
4. The method of claim 3, wherein the obtaining the corresponding relationship between the icon resource name and the icon resource ID of the at least one application program comprises:
adding icon resources corresponding to the icon resource names of the at least one application program in the resource package;
generating a corresponding icon resource ID for the icon resource of the at least one application program;
and generating the corresponding relation between the icon resource name and the icon resource ID of the at least one application program.
5. The method of claim 2, wherein the adjusting the desktop icon display configuration information of the current application according to the icon display control information comprises:
adding desktop icon display configuration information in the current application program under the condition that the icon display control information is that icon information is displayed on a desktop of the terminal equipment and the current application program does not include the desktop icon display configuration information; alternatively, the first and second electrodes may be,
and under the condition that the icon display control information is that the icon information is not displayed on the desktop of the terminal equipment and the current application program comprises desktop icon display configuration information, deleting the desktop icon display configuration information in the current application program.
6. The method of claim 5, wherein after adding desktop icon display configuration information in the current application, the method comprises:
displaying corresponding icon resources on a desktop of the terminal equipment;
after the current application deletes the desktop icon display configuration information, the method comprises:
and not displaying the corresponding icon resource on the desktop of the terminal equipment.
7. The method according to claim 2, wherein after updating the icon resource ID of the current application program to the acquired icon resource ID, the method comprises:
and acquiring the corresponding icon resource from the resource package according to the updated resource ID, and displaying the acquired icon resource on the desktop.
8. A desktop icon modification device is applied to terminal equipment, and comprises:
the analysis module is used for analyzing the application information configuration file to obtain an analysis file, and the analysis file comprises an application package name of at least one application program and desktop icon information corresponding to the application package name;
the acquisition module is used for acquiring desktop icon information corresponding to the target application package name if the target application package name matched with the scanned application package name of the current application program exists in the application package names of the analysis files;
and the adjusting module is used for adjusting the current application program according to the acquired desktop icon information.
9. A terminal device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program executes the method for modifying a desktop icon according to any one of claims 1 to 7 when the processor runs.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the method of modifying a desktop icon according to any one of claims 1 to 7.
CN202110349183.8A 2021-03-31 2021-03-31 Desktop icon modification method and device and terminal equipment Pending CN115145437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110349183.8A CN115145437A (en) 2021-03-31 2021-03-31 Desktop icon modification method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110349183.8A CN115145437A (en) 2021-03-31 2021-03-31 Desktop icon modification method and device and terminal equipment

Publications (1)

Publication Number Publication Date
CN115145437A true CN115145437A (en) 2022-10-04

Family

ID=83403840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110349183.8A Pending CN115145437A (en) 2021-03-31 2021-03-31 Desktop icon modification method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN115145437A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140021406A (en) * 2012-08-10 2014-02-20 인포뱅크 주식회사 Method and apparatus for controlling shortcut icon in portable terminal
CN105138318A (en) * 2015-07-27 2015-12-09 深圳市万普拉斯科技有限公司 Application icon updating method and apparatus
CN106126240A (en) * 2016-06-28 2016-11-16 惠州Tcl移动通信有限公司 A kind of method and system customizing mobile terminal desktop shortcut icon
CN106529334A (en) * 2016-10-24 2017-03-22 深圳市金立通信设备有限公司 Icon hiding method and terminal
CN106681831A (en) * 2016-12-22 2017-05-17 深圳市金立通信设备有限公司 Intelligent loading method for desktop icons and terminal
CN107247585A (en) * 2017-05-24 2017-10-13 努比亚技术有限公司 Desktop icons customizing method, mobile terminal and storage medium
CN107341011A (en) * 2017-06-26 2017-11-10 努比亚技术有限公司 A kind of desktop display method, mobile terminal and computer-readable recording medium
CN107992342A (en) * 2017-11-29 2018-05-04 维沃移动通信有限公司 A kind of application configuration change method and mobile terminal
CN108897473A (en) * 2018-06-29 2018-11-27 维沃移动通信有限公司 A kind of interface display method and terminal
CN110399195A (en) * 2019-07-30 2019-11-01 努比亚技术有限公司 A kind of desktop icons dynamic replacement method, equipment and computer readable storage medium
US20200012411A1 (en) * 2017-03-16 2020-01-09 Vivo Mobile Communication Co., Ltd. Method for processing icons and mobile terminal
US20200341616A1 (en) * 2019-04-23 2020-10-29 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for controlling application icon and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140021406A (en) * 2012-08-10 2014-02-20 인포뱅크 주식회사 Method and apparatus for controlling shortcut icon in portable terminal
CN105138318A (en) * 2015-07-27 2015-12-09 深圳市万普拉斯科技有限公司 Application icon updating method and apparatus
CN106126240A (en) * 2016-06-28 2016-11-16 惠州Tcl移动通信有限公司 A kind of method and system customizing mobile terminal desktop shortcut icon
CN106529334A (en) * 2016-10-24 2017-03-22 深圳市金立通信设备有限公司 Icon hiding method and terminal
CN106681831A (en) * 2016-12-22 2017-05-17 深圳市金立通信设备有限公司 Intelligent loading method for desktop icons and terminal
US20200012411A1 (en) * 2017-03-16 2020-01-09 Vivo Mobile Communication Co., Ltd. Method for processing icons and mobile terminal
CN107247585A (en) * 2017-05-24 2017-10-13 努比亚技术有限公司 Desktop icons customizing method, mobile terminal and storage medium
CN107341011A (en) * 2017-06-26 2017-11-10 努比亚技术有限公司 A kind of desktop display method, mobile terminal and computer-readable recording medium
CN107992342A (en) * 2017-11-29 2018-05-04 维沃移动通信有限公司 A kind of application configuration change method and mobile terminal
CN108897473A (en) * 2018-06-29 2018-11-27 维沃移动通信有限公司 A kind of interface display method and terminal
US20200341616A1 (en) * 2019-04-23 2020-10-29 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for controlling application icon and storage medium
CN110399195A (en) * 2019-07-30 2019-11-01 努比亚技术有限公司 A kind of desktop icons dynamic replacement method, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HOLLINGSWORTH, J.K.;MILLER, T.L.: "Using content-derived names for configuration management", ACM SIGSOFT SOFTWARE ENGINEERING NOTES, vol. 22, no. 3, 31 December 1997 (1997-12-31), pages 104 - 109, XP058154452, DOI: 10.1145/258368.258399 *
太阳: "保障快捷图标高可用性", 个人电脑, no. 07, 15 July 2017 (2017-07-15), pages 75 - 78 *

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN110752980B (en) Message sending method and electronic equipment
CN111142930B (en) Installation package file packaging method and device, terminal device and storage medium
CN109947650B (en) Script step processing method, device and system
CN109614061B (en) Display method and terminal
CN110391867B (en) DCI detection method, DCI sending method, terminal and base station
CN110035181B (en) Method and terminal for setting theme of quick application card
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN107748640B (en) Screen-off display method and mobile terminal
CN109857297B (en) Information processing method and terminal equipment
CN110308834B (en) Setting method of application icon display mode and terminal
CN110096203B (en) Screenshot method and mobile terminal
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN108009031B (en) Application program control method and mobile terminal
CN107765954B (en) Application icon updating method, mobile terminal and server
CN111610903A (en) Information display method and electronic equipment
CN110888705A (en) Method for processing unread message corner mark and electronic equipment
CN110022551B (en) Information interaction method and terminal equipment
CN110069407B (en) Function test method and device for application program
CN109815349B (en) Information acquisition method and terminal equipment
CN109284146B (en) Light application starting method and mobile terminal
CN109597546B (en) Icon processing method and terminal equipment
CN111309390A (en) Method for acquiring configuration information and electronic equipment
CN105631059B (en) Data processing method, data processing device and data processing system
CN111130995B (en) Image control method, electronic device, and 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