A method and device for updating application desktop icons
By verifying the matching and attributes of pictures and configuration files during the application desktop icon update, and automatically updating the icons, the problems of error-prone and inefficient update methods in the existing technology are solved, and a more efficient and accurate update process is achieved.
Patent Information
- Application Number
- CN202110237816.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-04
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-03-04
AI Technical Summary
Existing methods of updating application desktop icons are error-prone and inefficient.
By finding the match between pictures and configuration files in the folder, and verifying whether the picture properties meet the preset requirements, the application desktop icon is automatically updated only when the two verifications pass, ensuring the efficiency and accuracy of the update.
It improves the efficiency and accuracy of application desktop icon updates, reduces manual errors, promptly prompts the reasons for configuration failures, and avoids affecting processes such as release and launch.
Smart Images

Figure CN112947812B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for updating application desktop icons. Background Art
[0002] The application desktop icon is one of the entry points for users to launch the APP and is an indispensable part of the application program.
[0003] Currently, application desktop icons are usually configured by developers through official designated tools. During the configuration, developers are required to update the images to be updated in sequence according to the resolution.
[0004] In the process of implementing the present application, the inventors found that the above-mentioned method of manually updating application desktop icons is prone to errors and inefficient. Summary of the invention
[0005] In view of this, the present application provides a method and device for updating application desktop icons, which improves the efficiency and accuracy of updating application desktop icons.
[0006] To solve the above technical problems, the technical solution of this application is implemented as follows:
[0007] In one embodiment, a method for updating an application desktop icon is provided, the method comprising:
[0008] Searching for a first folder, wherein the first folder stores pictures and configuration files corresponding to the application desktop icon to be updated;
[0009] Determine whether the configuration file in the first folder matches the picture;
[0010] If a match is determined, determining whether the attributes of the pictures in the second folder meet the preset attribute requirements; wherein the second folder stores the pictures corresponding to the updated application desktop icons;
[0011] If it is determined that the preset requirements are met, the pictures in the second folder are used to update the pictures in the first folder based on the principle of the same picture resolution.
[0012] In another embodiment, a device for updating an application desktop icon is provided, characterized in that the device comprises: a searching unit, a first determining unit, a second determining unit and an updating unit;
[0013] The searching unit is used to search a first folder, wherein the first folder stores pictures and configuration files corresponding to the application desktop icons to be updated;
[0014] The first determining unit is used to determine whether the configuration file in the first folder found by the searching unit matches the picture;
[0015] The second determination unit is used to determine whether the attributes of the pictures in the second folder meet the preset attribute requirements if the first determination unit determines that there is a match; wherein the second folder stores the pictures corresponding to the updated application desktop icons;
[0016] The updating unit is configured to update the pictures in the first folder with the pictures in the second folder based on the principle of same picture resolution if the second determining unit determines that the preset requirement is met.
[0017] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the application desktop icon updating method when executing the program.
[0018] In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the application desktop icon updating method are implemented.
[0019] As can be seen from the above technical solution, in the above embodiment, the application desktop icon is automatically updated, and during the updating process, the matching of the image in the first folder and the configuration file, and whether the attributes of the image in the second folder meet the preset attribute requirements are verified. Only when both verifications are passed, the application desktop icon is automatically updated. This solution improves the efficiency and accuracy of the application desktop icon update. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 This is a schematic diagram of the application desktop picture update process in an embodiment of the present application;
[0022] Figure 2 This is a schematic diagram of a flow chart for determining whether a configuration file in a first folder matches in this embodiment;
[0023] Figure 3 It is part of the content in a configuration file;
[0024] Figure 4This is a schematic diagram of a flow chart of determining whether the attributes of the pictures in the second folder meet the preset attribute requirements in this embodiment;
[0025] Figure 5 This is a schematic diagram of the structure of a device applied to the above technology in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0029] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0030] In an embodiment of the present application, a method for updating application desktop icons is provided, which is applied to updating application desktop icons in a mobile operating system (IOS) developed by Apple. Application desktop icon updating is achieved through one-click automatic configuration of an application desktop icon updating device, thereby improving the efficiency and accuracy of application desktop icon updating.
[0031] If the configuration fails, the reason for the failure will be automatically prompted during the configuration process, so that relevant personnel can discover the problem as early as possible and take corresponding measures to avoid affecting subsequent processes, such as release and launch.
[0032] The following describes in detail the process of updating the application desktop icon in the embodiment of the present application in conjunction with the accompanying drawings.
[0033] Embodiment 1
[0034] See also Figure 1 , Figure 1 This is a schematic diagram of the application desktop picture update process in the embodiment of this application. The specific steps are:
[0035] Step 101: search for a first folder, wherein the first folder stores pictures and configuration files corresponding to application desktop icons to be updated.
[0036] In the specific implementation, select the project directory folder, traverse the folder (including subfolders) until you find the Assets.xcassets folder, which has a subfolder named AppIcon.appiconset, which is the first folder in the embodiment of the present application. It is specifically used to store iOS APP desktop icons. The folder is generated by Xcode and has a fixed name and format. The folder contains the Contents.json configuration file and pictures.
[0037] Step 102: Determine whether the configuration file in the first folder matches the picture.
[0038] This step is implemented to determine whether the configuration file in the first folder matches the picture, that is, whether the configuration file and the picture correspond and are correct. If it is determined that the configuration file in the first folder matches the picture, step 103 is executed; otherwise, the update process ends.
[0039] Step 103: If a match is determined, determine whether the attributes of the pictures in the second folder meet the preset attribute requirements; wherein the second folder stores the pictures corresponding to the updated application desktop icons.
[0040] The preset attribute requirements in this step may be: the images are all in portable network image format (png), the resolutions are all preset resolutions, the images do not contain alpha channels, etc.
[0041] If it is determined that the attributes of the pictures in the second folder meet the preset attribute requirements, step 104 is executed; otherwise, the update process ends.
[0042] Step 104: If it is determined that the preset requirement is met, the pictures in the second folder are used to update the pictures in the first folder based on the principle of the same picture resolution.
[0043] In this step, based on the principle of the same picture resolution, the pictures in the second folder are used to update the pictures in the first folder, which can be achieved in the following two ways:
[0044] The first one:
[0045] Based on the principle of same picture resolution, the pictures in the second folder are used to update the pictures in the first folder, and the names of the pictures are updated accordingly in the configuration file.
[0046] This implementation method directly updates the pictures with the same resolution, and then updates the names of the updated pictures in the configuration file based on the resolution, thus ensuring the matching of the configuration file and the pictures.
[0047] Second type:
[0048] Based on the principle of same picture resolution, the names of the pictures in the second folder are updated to the names of the pictures in the first folder;
[0049] The pictures in the first folder are updated using the updated pictures in the second folder.
[0050] The implementation method is to use the name of the picture in the first folder to update the name of the picture in the second folder based on the resolution, and then directly use the picture in the second folder to update the corresponding picture in the first folder based on the premise that the picture names are the same. In this way, the matching of the configuration file and the picture can be guaranteed without modifying the picture name in the configuration file.
[0051] In this embodiment, the application desktop icon is automatically updated, and during the update process, the matching of the image in the first folder and the configuration file, as well as the properties of the image in the second folder are verified to be consistent with the preset property requirements. Only when both verifications are passed, the application desktop icon is automatically updated. This solution improves the efficiency and accuracy of application desktop icon updates
[0052] Embodiment 2
[0053] See also Figure 2 , Figure 2 This is a flow chart of determining whether the configuration file in the first folder matches in this embodiment. The specific steps are:
[0054] Step 201, parsing the configuration file in the first folder.
[0055] Step 202 , determining whether the first folder lacks pictures corresponding to the preset resolution, if so, executing step 203 ; otherwise, executing step 204 .
[0056] Different versions of Xcode and different platforms (iPhone, iPad, iWatch, etc.) require different numbers and resolutions of images, which can also be regarded as different APP types.
[0057] The preset resolution here is the corresponding resolution set for an Xcode version and a platform, or an APP type.
[0058] Taking the version of Xcode12.0 and the platform of iPhone application as an example, the preset resolutions include the following 9 types:
[0059] 40x40px, 60x60px, 58x58px, 87x87px, 80x80px, 120x120px, 120x120px, 180x180px, 1024x1024px.
[0060] There will be 9 corresponding configurations in the corresponding configuration file, see Figure 3 , Figure 3 Part of the content in a configuration file.
[0061] Figure 3 Part of the content in the configuration file is given in . If the filename configuration is not missing, it means that there is no picture with this resolution. If the filename configuration exists, it means that there is a picture with this resolution.
[0062] Step 203: prompt that the first folder lacks pictures with corresponding resolutions. End this process.
[0063] The embodiment of the present application does not limit the method of prompting, which can be through voice or text prompts. The object of the prompt can also be set according to the actual application scenario, such as prompting developers, etc. According to the prompt, the relevant processor can add the corresponding missing pictures and improve the configuration file.
[0064] Step 204 , determining whether the first folder lacks the picture corresponding to the picture name in the configuration file, if so, executing step 205 ; otherwise, executing step 206 .
[0065] This step checks whether the image names corresponding to each filename in the configuration file correspond to images in the first folder.
[0066] Step 205: prompt that the first folder lacks a picture with the corresponding picture name, and end this process.
[0067] The embodiment of the present application does not limit the method of prompting, which can be through voice or text prompts. The object of the prompt can also be set according to the actual application scenario, such as prompting the developer, etc. According to the prompt, the relevant processor can add the corresponding missing pictures.
[0068] Step 206, determine whether all the pictures in the first folder are in png format, if so, execute step 208; otherwise, execute step 207.
[0069] When checking the image format, that is, checking the attributes of the image, it can be achieved through scripts, such as Python.
[0070] Step 207, prompting that the format of the corresponding picture in the first folder is not png format. Ending this process.
[0071] The embodiment of the present application does not limit the prompt method, which can be through voice or text prompts. The object of the prompt can also be set according to the actual application scenario, such as prompting developers, etc. According to the prompt, the relevant processor can modify the format of the corresponding image, or replace the corresponding image. If there is a corresponding error in the image name in the configuration file, make corresponding modifications.
[0072] Step 208 , determining whether the resolution of the pictures in the first folder is the same as the resolution of the corresponding pictures in the configuration file, if so, executing step 210 ; otherwise, executing step 209 .
[0073] When checking the image resolution, that is, checking the properties of the image, it can be achieved through a script, such as Python.
[0074] Step 209: It is indicated that the resolution of the picture in the first folder is different from the resolution of the corresponding picture in the configuration file. This process ends.
[0075] The embodiment of the present application does not limit the prompt method, which can be through voice or text prompts. The object of the prompt can also be set according to the actual application scenario, such as prompting to developers, etc. According to the prompt, the relevant processor can modify the resolution of the corresponding image, or modify the configuration file.
[0076] Step 210, determining whether all pictures in the first folder do not contain an alpha channel, if so, executing step 212; otherwise, executing step 211.
[0077] When checking the alpha channel, that is, checking the properties of the image, it can be achieved through a script, such as Python.
[0078] Step 211, prompting that the corresponding picture in the first folder contains an alpha channel, and ending this process.
[0079] The embodiment of the present application does not limit the prompt method, which can be through voice or text prompts. The object of the prompt can also be set according to the actual application scenario, such as prompting to developers, etc. According to the prompt, the relevant processor can modify the corresponding image so that it does not contain an alpha channel, or replace it with a related image.
[0080] Step 212: Determine whether the configuration file in the first folder matches the picture.
[0081] After determining that the configuration file in the first folder matches the image, the application desktop icon update process may continue.
[0082] In this embodiment, whether the correct execution can be determined by matching the image in the first file with the configuration file. The matching verification includes: whether the image is missing, whether the configuration information is missing, and whether the attributes of the image (png format, resolution and alpha channel) correspond to the configuration file and meet the needs of the current scene. If the matching verification passes, the subsequent application desktop icon update is executed; otherwise, a specific error is prompted so that relevant personnel can correct it in time to avoid update errors that affect the implementation of subsequent release and online processes.
[0083] Embodiment 3
[0084] The preset attribute requirements may be: all images are in PNG format, the resolutions are all preset resolutions, and the images do not contain alpha channels, etc.
[0085] See also Figure 4 , Figure 4 This is a flow chart of determining whether the attributes of the pictures in the second folder meet the preset attribute requirements in this embodiment. The specific steps are:
[0086] Step 401, obtaining pictures in the second folder.
[0087] Step 402, determine whether all the pictures in the second folder are in png format, if so, execute step 404; otherwise, execute step 403.
[0088] When checking the image format, that is, checking the attributes of the image, it can be achieved through scripts, such as Python.
[0089] Step 403: prompt that the format of the corresponding picture in the second folder is not png format. End this process.
[0090] The embodiment of the present application does not limit the prompt method, which can be through voice or text prompts. The object of the prompt can also be set according to the actual application scenario, such as prompting developers, etc. According to the prompt, the relevant processor can modify the format of the corresponding image, or replace the corresponding image. If there is a corresponding error in the image name in the configuration file, make corresponding modifications.
[0091] Step 404 , determining whether the resolutions of the pictures in the second folder all belong to the preset resolution, if so, executing step 406 ; otherwise, executing step 405 .
[0092] The preset resolution is set according to the application type, or the corresponding Xcode version and platform.
[0093] When checking the image resolution, that is, checking the properties of the image, it can be achieved through a script, such as Python.
[0094] Step 405: prompt that the resolution of the corresponding picture in the second folder does not belong to the preset resolution. End this process.
[0095] The embodiment of the present application does not limit the prompt method, which can be through voice or text prompts. The object of the prompt can also be set according to the actual application scenario, such as prompting to developers, etc. According to the prompt, the relevant processor can modify the resolution of the corresponding image, or replace the image.
[0096] Step 406 , determining whether all pictures in the second folder do not contain an alpha channel, if so, executing step 408 ; otherwise, executing step 407 .
[0097] When checking the alpha channel, that is, checking the properties of the image, it can be achieved through a script, such as Python.
[0098] Step 407: prompt that the corresponding picture in the second folder contains an alpha channel. End this process.
[0099] The embodiment of the present application does not limit the prompt method, which can be through voice or text prompts. The object of the prompt can also be set according to the actual application scenario, such as prompting to developers, etc. According to the prompt, the relevant processor can modify the corresponding image so that it does not contain an alpha channel, or replace it with a related image.
[0100] Step 408: Determine whether the attributes of the pictures in the second folder meet the preset attribute requirements.
[0101] In this embodiment, the properties of the image in the second file (png format, resolution and alpha channel) are checked to determine whether the properties of the image meet the preset property requirements. If so, the subsequent application desktop icon update is executed; otherwise, a specific error is prompted so that relevant personnel can correct it in time to avoid update errors that affect the implementation of subsequent release and online processes.
[0102] Based on the same inventive concept, the present application also provides an application desktop icon update device. Figure 5 , Figure 5 Schematic diagram of the structure of the device applied to the above technology in the embodiment of the present application. The device includes: a search unit 501, a first determination unit 502, a second determination unit 503 and an update unit 504;
[0103] A searching unit 501 is used to search a first folder, wherein the first folder stores pictures and configuration files corresponding to the application desktop icon to be updated;
[0104] A first determining unit 502 is used to determine whether the configuration file in the first folder found by the searching unit 501 matches the picture;
[0105] A second determination unit 503 is used to determine whether the attributes of the pictures in the second folder meet the preset attribute requirements if the first determination unit 502 determines a match; wherein the second folder stores the pictures corresponding to the updated application desktop icons;
[0106] The updating unit 504 is configured to update the pictures in the first folder with the pictures in the second folder based on the principle of the same picture resolution if the second determining unit 503 determines that the preset requirement is met.
[0107] Preferably,
[0108] The updating unit 504 is specifically used to update the pictures in the first folder with the pictures in the second folder based on the principle of the same picture resolution, and to update the names of the pictures in the first folder accordingly in the configuration file.
[0109] Preferably,
[0110] The updating unit 504 is specifically used to update the names of the pictures in the second folder to the names of the pictures in the first folder based on the principle of the same picture resolution when using the pictures in the second folder to update the pictures in the first folder based on the principle of the same picture resolution; and use the updated pictures in the second folder to update the pictures in the first folder.
[0111] Preferably,
[0112] The first determination unit 502 is specifically used to determine whether the configuration file in the first folder matches the picture, including: if it is determined that the first folder does not lack pictures corresponding to the preset resolution, does not lack pictures corresponding to the picture names in the configuration file, the formats of all pictures are PNG format, the resolutions of all pictures exist in the configuration file, and all pictures do not contain alpha channels, then it is determined that the configuration file in the first folder matches the picture; otherwise, it is determined that the configuration file in the first folder does not match the picture.
[0113] Preferably, the device further comprises: a first prompting unit 505;
[0114] The first prompt unit 505 is used for prompting that if the first determination unit 502 determines that the first folder lacks pictures corresponding to the preset resolution, the first folder lacks pictures with the corresponding resolution; if the first determination unit 502 determines that the first folder lacks pictures corresponding to the picture names in the configuration file, the first folder lacks pictures with the corresponding picture names; if the first determination unit 502 determines that there are pictures in the first folder whose formats are not png format, the first folder lacks pictures whose formats are not png format; if the first determination unit 502 determines that there are pictures in the first folder whose resolutions are not in the configuration file, the first folder lacks pictures with the corresponding resolution; if the first determination unit 502 determines that there are pictures in the first folder whose resolutions are not in the configuration file, the first folder lacks pictures with the corresponding resolution; and if the first determination unit 502 determines that there are pictures with alpha channels in the first folder, the first folder lacks pictures with alpha channels.
[0115] Preferably,
[0116] The second determination unit 503 is specifically used to determine whether the properties of the pictures in the second folder meet the preset property requirements, including: if it is determined that the pictures in the second folder are all in png format, the resolutions of the pictures are all within the preset resolution, and the pictures do not contain an alpha channel, then it is determined that the properties of the pictures in the second folder meet the preset property requirements; otherwise, it is determined that the properties of the pictures in the second folder do not meet the preset property requirements.
[0117] Preferably, the device further comprises: a second prompting unit 506;
[0118] The second prompt unit 506 is used for prompting that the format of the corresponding picture in the second folder is not png format if the second determination unit 503 determines that there are pictures in the second folder that are not in png format; if the second determination unit 503 determines that there are pictures in the second folder whose resolution does not correspond to the preset resolution, then prompting that the resolution of the corresponding picture in the second folder does not correspond to the preset resolution; if the second determination unit 503 determines that there are pictures containing alpha channels in the second folder, then prompting that the corresponding picture in the second folder contains alpha channels.
[0119] The units in the above-mentioned embodiments may be integrated into one body or deployed separately; they may be combined into one unit or further divided into multiple sub-units.
[0120] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the application desktop icon updating method when executing the program.
[0121] In another embodiment, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps in the application desktop icon updating method can be implemented.
[0122] Figure 6 Schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. Figure 6 As shown, the electronic device may include: a processor (Processor) 610, a communication interface (Communications Interface) 620, a memory (Memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the following method:
[0123] Searching for a first folder, wherein the first folder stores pictures and configuration files corresponding to the application desktop icon to be updated;
[0124] Determine whether the configuration file in the first folder matches the picture;
[0125] If a match is determined, determining whether the attributes of the pictures in the second folder meet the preset attribute requirements; wherein the second folder stores the pictures corresponding to the updated application desktop icons;
[0126] If it is determined that the preset requirements are met, the pictures in the second folder are used to update the pictures in the first folder based on the principle of the same picture resolution.
[0127] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0128] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0130] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent updates, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for updating application desktop icons, characterized in that: The method comprises: Searching for a first folder, wherein the first folder stores pictures and configuration files corresponding to the application desktop icon to be updated; Determine whether the configuration file in the first folder matches the picture; If a match is determined, determining whether the attributes of the pictures in the second folder meet the preset attribute requirements; wherein the second folder stores the pictures corresponding to the updated application desktop icons; If it is determined that the preset requirements are met, the pictures in the second folder are used to update the pictures in the first folder based on the principle of the same picture resolution; The determining whether the configuration file in the first folder matches the picture includes: If it is determined that there are pictures corresponding to the preset resolution in the first folder, there are pictures corresponding to the picture names in the configuration file, the formats of all pictures are in the portable network image file format png, the resolutions of all pictures exist in the configuration file, and all pictures do not contain alpha channels, then it is determined that the configuration file in the first folder matches the pictures; otherwise, it is determined that the configuration file in the first folder does not match the pictures.
2. The method according to claim 1, characterized in that The updating of the pictures in the first folder by using the pictures in the second folder based on the principle of same picture resolution includes: Based on the principle of same picture resolution, the pictures in the second folder are used to update the pictures in the first folder, and the names of the pictures are updated accordingly in the configuration file.
3. The method according to claim 1, characterized in that The updating of the pictures in the first folder by using the pictures in the second folder based on the principle of same picture resolution includes: Based on the principle of same picture resolution, the names of the pictures in the second folder are updated to the names of the pictures in the first folder; The pictures in the first folder are updated using the updated pictures in the second folder.
4. The method according to claim 1, characterized in that: The method further comprises: If it is determined that the first folder lacks pictures corresponding to the preset resolution, prompting that the first folder lacks pictures of the corresponding resolution; If it is determined that the first folder lacks the picture corresponding to the picture name in the configuration file, prompting that the first folder lacks the picture corresponding to the picture name; If it is determined that there is a picture in the first folder that is not in the png format, then prompting that the format of the corresponding picture in the first folder is not in the png format; If it is determined that there is a picture in the first folder with a resolution that is not in the configuration file, prompting that the resolution of the corresponding picture does not exist in the configuration file in the first folder; If it is determined that there is a picture containing an alpha channel in the first folder, it is prompted that the corresponding picture in the first folder contains an alpha channel.
5. The method according to any one of claims 1 to 4, characterized in that: The step of determining whether the attributes of the pictures in the second folder meet the preset attribute requirements includes: If it is determined that the pictures in the second folder are all in png format, the resolutions of the pictures are all within the preset resolution, and the pictures do not contain an alpha channel, then it is determined that the properties of the pictures in the second folder meet the preset property requirements; otherwise, it is determined that the properties of the pictures in the second folder do not meet the preset property requirements.
6. The method according to claim 5, characterized in that The method further comprises: If it is determined that there is a picture in the second folder that is not in png format, it is prompted that the format of the corresponding picture in the second folder is not in png format; If it is determined that there are pictures in the second folder with a resolution that does not correspond to the preset resolution, prompting that the resolution of the corresponding picture in the second folder does not correspond to the preset resolution; If it is determined that there is a picture containing an alpha channel in the second folder, it is prompted that the corresponding picture in the second folder contains an alpha channel.
7. A device for updating application desktop icons, characterized in that: The device comprises: a searching unit, a first determining unit, a second determining unit and an updating unit; The searching unit is used to search a first folder, wherein the first folder stores pictures and configuration files corresponding to the application desktop icons to be updated; The first determining unit is used to determine whether the configuration file in the first folder found by the searching unit matches the picture; The second determination unit is used to determine whether the attributes of the pictures in the second folder meet the preset attribute requirements if the first determination unit determines that there is a match; wherein the second folder stores the pictures corresponding to the updated application desktop icons; The updating unit is configured to update the pictures in the first folder with the pictures in the second folder based on the principle of same picture resolution if the second determining unit determines that the preset requirement is met; The first determination unit is specifically used to determine whether the configuration file in the first folder matches the picture, including: if it is determined that the first folder does not lack pictures corresponding to the preset resolution, does not lack pictures corresponding to the picture name in the configuration file, the formats of all pictures are png format, the resolutions of all pictures exist in the configuration file, and all pictures do not contain alpha channels, then it is determined that the configuration file in the first folder matches the picture; otherwise, it is determined that the configuration file in the first folder does not match the picture.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Application program generation method and device
CN103838573A
