WO2022111502A1 - 应用缓存的清理方法、装置、电子设备及介质 - Google Patents
应用缓存的清理方法、装置、电子设备及介质 Download PDFInfo
- Publication number
- WO2022111502A1 WO2022111502A1 PCT/CN2021/132688 CN2021132688W WO2022111502A1 WO 2022111502 A1 WO2022111502 A1 WO 2022111502A1 CN 2021132688 W CN2021132688 W CN 2021132688W WO 2022111502 A1 WO2022111502 A1 WO 2022111502A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cache
- application
- identifier
- displayed
- preset
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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/04817—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Definitions
- the present application belongs to the field of communication technologies, and in particular relates to a method, device, electronic device and medium for clearing application cache.
- the purpose of the embodiments of the present application is to provide a method, device, electronic device and medium for cleaning application cache, which can solve the problems of cumbersome cleaning process and low cleaning efficiency of application cache data in the prior art.
- an embodiment of the present application provides a method for cleaning an application cache, including:
- the cache identifier is used to identify at least one of the following cache information: the total cache size of the target application, the cache type, and each cache type corresponding to cache size;
- the cache data corresponding to the cache identifier in the target application is cleared.
- an application cache cleaning device including:
- a receiving module configured to receive a preset operation for the cache identifier displayed on the application icon of the target application; the cache identifier is used to identify at least one of the following cache information: the total cache size of the target application, the cache type, the The cache sizes corresponding to the cache types described above;
- a clearing module configured to clear cached data corresponding to the cached identifier in the target application according to the preset operation.
- embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method for clearing the application cache according to the first aspect when executed.
- an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the application cache according to the first aspect is implemented. Steps of the cleanup method.
- an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect The steps of the method for cleaning the application cache.
- the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
- the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
- the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
- FIG. 1 is a schematic flowchart of a method for cleaning an application cache in an embodiment of the present application.
- FIG. 2 is a schematic diagram of an interface for displaying a cache identifier of an application according to an embodiment of the present application.
- FIG. 3 is a schematic diagram of an interface for displaying a cache identifier of an application in another embodiment of the present application.
- FIG. 4 is a schematic diagram of an interface for displaying a cache type of an application in an embodiment of the present application.
- FIG. 5 is a schematic diagram of an interface for displaying cache information of an application according to an embodiment of the present application.
- FIG. 6 is a schematic interface diagram of a method for clearing an application cache according to an embodiment of the present application.
- FIG. 7 is a schematic interface diagram of a method for cleaning application cache in another embodiment of the present application.
- FIG. 8 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
- FIG. 9 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
- FIG. 10 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
- FIG. 11 is a schematic structural diagram of an application cache cleaning device according to an embodiment of the present application.
- FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
- first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
- the objects are usually of one type, and the number of objects is not limited.
- the first object may be one or more than one.
- “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
- FIG. 1 is a schematic flowchart of a method for cleaning an application cache in an embodiment of the present application.
- the method of Figure 1 may include:
- S102 Receive a preset operation for the cache identifier displayed on the application icon of the target application.
- the cache identifier is used to identify cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application.
- the cache type may include picture cache, video cache, voice cache, other caches generated when the application is running (hereinafter referred to as other caches), and the like.
- the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
- the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
- the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
- the cache identifier corresponding to each cache information can be displayed on the application icon of the corresponding application through steps A1-A2:
- Step A1 Acquire cache information of each application on the electronic device.
- the application icons of each application may be arranged on the screen paging of the electronic device according to a preset arrangement factor.
- the preset arrangement factor includes: the total cache size, the cache size corresponding to each cache type, and the like.
- the application icons of each application can be arranged in the order of application A, application B, and application C to Screen paging for electronic devices.
- the applications are arranged according to the cache size corresponding to the image cache. If the cache size corresponding to the image cache of each application is in the following order: application A > application B > application C, then application A can be arranged according to the cache size corresponding to the image cache. , Application B, and Application C in the order of arranging the application icons of each application to the screen paging of the electronic device.
- the application icons of each application can be rearranged to each screen paging of the electronic device according to the order originally set by the user.
- the application icons of each application are arranged on the screen paging of the electronic device according to the preset arrangement factor, so that the user can intuitively see the cache size of each application , which is beneficial for users to preferentially process applications with large caches, which improves the cleaning efficiency of application caches.
- Step A2 If the cache information satisfies the preset condition, display the cache identifier corresponding to each cache information on the application icon of the corresponding application according to the preset display method.
- the preset condition may be a preset threshold of the cache size, and the cache identifier may be in the form of a circular corner mark.
- the cache information of each application on the electronic device is acquired, and when the cache information satisfies a preset condition, the cache identifier corresponding to each cache information is displayed on the application icon of the corresponding application according to the preset display method, The user can see the cache information of each application at a glance, and it is convenient for the user to clean the cache data of each application.
- a cache identifier corresponding to the total cache size is displayed in the first position on the application icon.
- the first position may be any position on the application icon.
- the first position may be the upper left corner, the upper right corner, and the midpoint of the upper side of the application icon.
- the first position may be any point on the circumference of the application icon, or the like.
- the shape of the application icon is a rectangle, and the first position is the upper right corner of the application icon, as shown in Figure 2, for application A with a total cache size of 20M and application B with a total cache size of 10M , can be arranged to the screen paging of the electronic device in the order of application A and application B, and the cache identifiers 20M and 10M corresponding to the total cache size are displayed in the upper right corners of application A and application B respectively.
- the cache identifier corresponding to the total cache size is displayed on the application icon The third position on the corresponding to the second cache type.
- the cache types include pictures, videos, voices and others
- the shape of the application icon is a rectangle
- the third position corresponding to the picture cache is the upper left corner of the application icon
- the third position corresponding to the video cache is the application In the upper right corner of the icon
- the third position corresponding to the voice cache is the lower right corner of the application icon
- the third position corresponding to other caches is the lower left corner of the application icon.
- the cache size corresponding to the image cache is 10M
- the cache size corresponding to the video cache is 6M
- the cache sizes corresponding to the voice cache and other caches are 2M respectively
- the cache identifiers corresponding to the first cache types are displayed on the icon on the application icon respectively. each second position.
- the number of the second locations is not limited, and the number of the second locations may be determined according to the number of cache types. As shown in FIG. 3 , for an application icon whose shape is a rectangle, if there are 8 cache types, 8 second positions can be set on the application icon. If the cache sizes corresponding to two or more first cache types are all greater than or equal to the second preset threshold, the cache identifiers corresponding to the first cache types can be sorted according to the order of the cache sizes corresponding to the first cache types. are displayed at the second positions on the application icon respectively. The cache identifiers corresponding to the first cache types can also be displayed according to the preset cache types corresponding to the second positions.
- the upper left corner of the rectangular application icon can be preset to display the cache ID corresponding to the image cache, and the upper right corner displays the cache ID corresponding to the video cache, then when the size of the cache corresponding to the image cache is greater than or equal to the second preset threshold, the image cache The corresponding cache identifier is displayed in the upper left corner of the application icon, and when the size of the cache corresponding to the video cache is greater than or equal to the second preset threshold, the cache identifier corresponding to the video cache is displayed in the upper right corner of the application icon.
- the preset size of the cache corresponding to the cache type corresponding to the cache identifiers displayed in sequence at the top corners of the rectangular icon in a clockwise direction starting from the upper left corner of the rectangular application icon.
- the cache size corresponding to each first cache type is: other cache > picture cache > video cache > second preset threshold
- the cache ID corresponding to the other cache is displayed in the upper left corner of the application icon
- the image The cache ID corresponding to the cache is displayed in the upper right corner of the application icon
- the cache ID corresponding to the video cache is displayed in the lower right corner of the application icon.
- the user can be more specific about the cache information of each application, and it is convenient for the user to select the cache data to be cleaned, thereby improving the performance of the user. the user experience.
- the corresponding cache data in the target application may be cleared.
- the corresponding cache data in the multiple applications can be cleared. Details are given below.
- the preset operation on the cache identifier displayed on the application icon of the target application may include: a click operation on the cache identifier corresponding to the total cache size. All cached data in the target application can be cleared according to the above preset operations.
- multiple cache types corresponding to the target application can also be displayed. Cache data corresponding to the third cache type in the target application.
- the selection operation for the third cache type among the multiple cache types may be received first, and then the cache information corresponding to the third cache type is displayed, and after receiving the above-mentioned During the clearing operation of the cache information, the cache data corresponding to the third cache type in the target application is cleared.
- the click operation on the cache ID corresponding to the total cache size can be a click operation on 20M on application A in Figure 2.
- the target application is displayed in a floating display on the right side of application A.
- the cache corresponding to the image cache is displayed Information: picture cache 5M/number of pictures 10/clear the picture cache, when receiving the clearing operation of the picture cache (that is, receiving the click operation of "clearing the picture cache” in Figure 5), clear the pictures and pictures in application A Cache the corresponding cached data.
- all the cached data in each application can be cleared, or the cached data corresponding to the third cache type can be cleared, providing the user with various types of clearing the cache.
- the data method is convenient for users to perform corresponding operations according to their needs, thereby clearing the corresponding cached data and improving the user experience.
- the preset operation on the cache logo displayed on the application icon of the target application may include: a click operation on the cache logo displayed on the second position. According to the preset correspondence between the second position on each application icon and each cache type, the fourth cache type corresponding to the clicked cache ID can be determined, and the cache data corresponding to the fourth cache type in the target application can be cleared. .
- the cache data corresponding to the cache type corresponding to the second position in the target application can be cleared, which improves the convenience of clearing the cache data in the application.
- the user experience is improved.
- the target application may include a first application and a second application
- the preset operation on the cache identifier displayed on the application icon of the target application may include: moving the cache identifier displayed on the application icon of the first application to at the fourth position on the application icon of the second application.
- a cache ID is displayed at the fourth position, according to the above preset operation, the cache data corresponding to the moved cache ID in the first application can be cleared, and the cache ID corresponding to the cache ID displayed at the fourth position in the second application can be cleared. cached data. If no cache identifier is displayed at the fourth position, according to the above preset operation, only the cache data corresponding to the moved cache identifier in the first application is cleared.
- the positions of application A and application B on the screen paging of the electronic device are as shown in Figure 6, the upper left corner of the application icon of application A displays the cache ID corresponding to the image cache, and the upper right corner of the application icon of application B displays the corresponding image cache
- the lower right corner of the application icon of Application B displays the cache ID corresponding to the video cache, and the arrow in the figure is the movement track of the cache ID. If the cache logo displayed in the upper left corner of the application icon of application A is moved to the upper right corner of the application icon of application B, the cached data corresponding to the image caches in application A and application B respectively are cleared. If the cache ID displayed in the upper left corner of the application icon of application A is moved to the lower right corner of the application icon of application B, the cached data corresponding to the picture cache in application A and the cached data corresponding to the video cache in application B are cleared.
- the cached data corresponding to the cached identifiers in the two applications can be cleared at the same time, which improves the convenience of clearing the cached data in the applications, thereby improving the user's sense of use experience.
- the target application may include a third application, a fourth application, and at least one fifth application
- the preset operation on the cache identifier displayed on the application icon of the target application may include: within a preset duration, using the first
- the application icon of the third application is the starting point of the sliding operation, and it passes through at least one application icon of the fifth application in sequence, and finally slides to the position of the cache identifier displayed on the application icon of the fourth application.
- all cached data in the third application, the fourth application and the fifth application can be cleared.
- the fifth cache type corresponding to the cache identifier corresponding to the sliding end point of the sliding operation can also be determined, and the third application, the fourth application and the fifth application corresponding to the fifth cache type can be cleared. cached data.
- the positions of application A, application B, application C, application D, and application E on the screen paging of the electronic device are shown in Figure 7.
- the cache identifier corresponding to the picture cache displayed in the upper left corner of the application icon of application A is Swipe the starting point and pass through the cache IDs corresponding to other caches displayed in the upper right corner of the application icon of application B, the cache ID corresponding to the video cache displayed in the lower right corner of the application icon of application C, and the video displayed in the lower right corner of the application icon of application D.
- the cache ID corresponding to the cache is finally slid to the position of the cache ID corresponding to the voice cache displayed in the lower left corner of the application icon of application E, and the arrow in the figure is the sliding track.
- the cache type corresponding to the cache identifier displayed in the lower left corner of the application icon of application E is a voice cache, and the caches corresponding to the voice cache in application A, application B, application C, application D and application E are cleared. data.
- the target application may include a third application, a fourth application, and at least one fifth application
- the preset operation on the cache identifier displayed on the application icon of the target application may further include: within a preset time period,
- the cache logo displayed on the application icon of the third application is the starting point of sliding, and it passes through at least one cache logo displayed on the application icon of the fifth application in sequence, and finally slides to the position of the cache logo displayed on the application icon of the fourth application. operate.
- the sixth cache type corresponding to the cache identifier corresponding to the sliding start point of the sliding operation can be determined, and the cache data corresponding to the sixth cache type in the third application, the fourth application and the fifth application can be cleared.
- the cache type corresponding to the cache ID displayed in the upper left corner of the application icon of application A is image cache, and the cache data corresponding to the image cache in application A, application B, application C, application D, and application E are cleared. .
- the seventh cache type corresponding to the cache identifier corresponding to any sliding middle point of the sliding operation it is also possible to determine the seventh cache type corresponding to the cache identifier corresponding to any sliding middle point of the sliding operation, and clear the cache corresponding to the seventh cache type in the third application, the fourth application and the fifth application data.
- the cache type corresponding to the cache ID displayed in the upper right corner of the app icon of app B is other cache, and the cache data corresponding to other caches in app A, app B, app C, app D, and app E can be cleared. .
- the cached data corresponding to the cached identifiers in multiple applications can be cleared at the same time, which improves the convenience of clearing the cached data in the applications, thereby improving the user's sense of use experience.
- FIG. 8 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
- the electronic device is a mobile phone
- the cache identifier corresponding to the total cache size of each application on the mobile phone is displayed in the first position on the application icon, as shown in FIG. 2 .
- the method of FIG. 8 may include:
- S802 Display multiple cache types corresponding to the target application according to the click operation on the cache identifier corresponding to the total cache size.
- all cache data in the target application can also be cleared.
- the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
- the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
- the storage space of the electronic device will not be additionally occupied in the process of clearing the application cache, and the problem of affecting the performance of the electronic device can be avoided.
- FIG. 9 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
- the electronic device is a mobile phone
- the cache identifiers corresponding to each cache type of each application on the mobile phone are respectively displayed in the second position on the application icon, as shown in FIG. 6 .
- the method of FIG. 9 may include:
- S901 Receive a moving operation of moving the cache identifier displayed on the application icon of the first application to a fourth position on the application icon of the second application.
- the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
- the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
- the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
- FIG. 10 is a schematic flowchart of a method for cleaning an application cache in another embodiment of the present application.
- the electronic device is a mobile phone
- the cache identifiers corresponding to each cache type of each application on the mobile phone are respectively displayed in the second position on the application icon, as shown in FIG. 7 .
- the method of FIG. 10 may include:
- S1001 Receive a sliding movement within a preset time period, taking the application icon of the third application as the starting point of sliding, passing through at least one application icon of the fifth application in sequence, and finally sliding to the position of the cache identifier displayed on the application icon of the fourth application. operate.
- the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify the cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, this technical solution does not need to install a third-party application for clearing the cache.
- the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
- the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
- the execution body may be an application cache cleaning device, or a control module in the application cache cleaning device for executing the application cache cleaning method.
- the device for cleaning application caches performed by the application cache cleaning method is used as an example to describe the device for cleaning application caches provided by the embodiments of the present application.
- FIG. 11 is a schematic structural diagram of an application cache cleaning device according to an embodiment of the present application.
- the cleaning device for the application cache may include:
- the receiving module 1110 is configured to receive a preset operation for the cache identifier displayed on the application icon of the target application; the cache identifier is used to identify at least one of the following cache information: the total cache size of the target application, the cache type, and the corresponding cache types respectively. cache size;
- the clearing module 1120 is configured to clear the cached data corresponding to the cached identifier in the target application according to a preset operation.
- the device for cleaning the application cache further includes:
- an acquisition module used to acquire cache information of each application on the electronic device
- the display module is configured to display the cache identifier corresponding to each cache information on the application icon of the corresponding application according to the preset display method if the cache information satisfies the preset condition.
- the presentation module includes:
- a first display unit configured to display the cache identifier corresponding to the total cache size at the first position on the application icon if the total cache size is greater than or equal to the first preset threshold;
- the second display unit is configured to display the cache identifiers corresponding to the first cache types on the application icon if the cache size corresponding to at least one of the first cache types is greater than or equal to the second preset threshold. each second position.
- the first display unit is specifically used for:
- the cache ID corresponding to the total cache size is displayed on the application icon in the second cache The third position corresponding to the type.
- the preset operation on the cache identifier displayed on the application icon of the target application includes: a click operation on the cache identifier corresponding to the total cache size;
- Cleanup module 1120 includes:
- a first clearing unit used to clear all cached data in the target application
- the first execution unit is used to display multiple cache types corresponding to the target application; when receiving a clearing operation for a third cache type in the multiple cache types, clear cache data corresponding to the third cache type in the target application.
- the preset operation on the cache identifier displayed on the application icon of the target application includes: a click operation on the cache identifier displayed on the second position;
- Cleanup module 1120 includes:
- a determining unit configured to determine a fourth cache type corresponding to the clicked cache identifier according to the preset correspondence between each second position and each cache type;
- the second clearing unit is configured to clear cache data corresponding to the fourth cache type in the target application.
- the target application includes a first application and a second application; the preset operation on the cache identifier displayed on the application icon of the target application includes: moving the cache identifier displayed on the application icon of the first application to the second application at the fourth position on the application icon of the application;
- Cleanup module 1120 includes:
- the third clearing unit is used for clearing the cached data corresponding to the moved cached logo in the first application if the cached logo is displayed on the fourth position; and, to clear the cached logo displayed at the fourth position in the second application corresponding cache data.
- the target application includes a third application, a fourth application, and at least one fifth application;
- the preset operation on the cache identifier displayed on the application icon of the target application includes: within a preset period of time, using the third application
- the application icon is the starting point of sliding, passes through at least one application icon of the fifth application in sequence, and finally slides to the sliding operation at the position of the cache identification displayed on the application icon of the fourth application;
- Cleanup module 1120 includes:
- a fourth clearing unit configured to clear all cached data in the third application, the fourth application and the fifth application
- the second execution unit is configured to determine the fifth cache type corresponding to the cache identifier corresponding to the sliding end point of the sliding operation; clear the cache data corresponding to the fifth cache type in the third application, the fourth application and the fifth application.
- the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify cache information such as the total cache size, cache type, and cache size corresponding to each cache type of the target application, the device does not need to install a third-party application for clearing the cache.
- the preset operation performed by the displayed cache identifier can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
- the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
- the device for cleaning the application cache in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
- the apparatus may be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
- UMPC ultra-mobile personal computer
- netbook or a personal digital assistant
- non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
- Network Attached Storage NAS
- personal computer personal computer, PC
- television television
- teller machine or self-service machine etc.
- the device for cleaning the application cache in the embodiment of the present application may be a device having an operating system.
- the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
- the device for cleaning application cache provided by the embodiment of the present application can implement each process implemented by the embodiments of the method for cleaning application cache in FIG. 1 to FIG. 10 .
- an embodiment of the present application further provides an electronic device 1200, including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
- an electronic device 1200 including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
- the program or instruction is executed by the processor 1201
- each process of the above-mentioned embodiment of the application cache cleaning method is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
- the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
- FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
- the electronic device 1300 includes but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, and a processor 1310, etc. part.
- the electronic device 1300 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1310 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
- a power source such as a battery
- the structure of the electronic device shown in FIG. 13 does not constitute a limitation on the electronic device.
- the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
- the processor 1310 is configured to receive a preset operation for the cache identifier displayed on the application icon of the target application; the cache identifier is used to identify at least one of the following cache information: the total cache size of the target application, the cache type, each cache type corresponding cache sizes; according to the preset operation, clear the cache data corresponding to the cache identifier in the target application.
- the processor 1310 is further configured to obtain the cache information of each application on the electronic device; if the cache information satisfies the preset condition, the cache identifier corresponding to each cache information is displayed in the corresponding application according to the preset display method. on the app icon.
- the processor 1310 is further configured to display the cache identifier corresponding to the total cache size in the first position on the application icon if the total cache size is greater than or equal to the first preset threshold; If the cache size corresponding to at least one of the first cache types is greater than or equal to the second preset threshold, the cache identifiers corresponding to the first cache types are displayed in the second positions on the application icon respectively.
- the processor 1310 is further configured to, if the total cache size is greater than or equal to the first preset threshold, and the cache size corresponding to the second cache type in each cache type accounts for the largest proportion, then store the cache size corresponding to the total cache size. Identifies a third location displayed on the application icon corresponding to the second cache type.
- the preset operation on the cache identifier displayed on the application icon of the target application includes: a click operation on the cache identifier corresponding to the total cache size; the processor 1310 is further configured to clear all cache data in the target application; or , displaying multiple cache types corresponding to the target application; when receiving a clearing operation for the third cache type in the multiple cache types, clear the cache data corresponding to the third cache type in the target application.
- the preset operation on the cache identifier displayed on the application icon of the target application includes: a click operation on the cache identifier displayed on the second position; the processor 1310 is further configured to perform the operation according to each preset second position and The correspondence between the cache types is determined, and the fourth cache type corresponding to the clicked cache identifier is determined; the cache data corresponding to the fourth cache type in the target application is cleared.
- the target application includes a first application and a second application
- the preset operation on the cache identifier displayed on the application icon of the target application includes: moving the cache identifier displayed on the application icon of the first application to the cache identifier displayed on the application icon of the second application. at the fourth position on the application icon; the processor 1310 is further configured to clear the cached data corresponding to the moved cached ID in the first application if the cached ID is displayed on the fourth position; and, clear the cached data in the second application Cache data corresponding to the cache identifier displayed at the fourth position.
- the target application includes a third application, a fourth application, and at least one fifth application;
- the preset operation on the cache identifier displayed on the application icon of the target application includes: within a preset period of time, using the application of the third application The icon is the starting point of sliding, and it passes through at least one application icon of the fifth application in sequence, and finally slides to the position of the cache identification displayed on the application icon of the fourth application;
- the processor 1310 is also used for clearing the third application, the first All cached data in the fourth application and the fifth application; or, determine the fifth cache type corresponding to the cache identifier corresponding to the sliding end point of the sliding operation; clear the third application, the fourth application and the fifth application corresponding to the fifth cache type cached data.
- the cache data corresponding to the cache identifier in the target application is cleared according to the preset operation. Since the cache identifier is used to identify cache information such as the total cache size, cache type, cache size corresponding to each cache type, etc. of the target application, the electronic device does not need to install a third-party application for clearing the cache.
- the preset operation performed by the cache identifier shown above can achieve the purpose of clearing the application cache data, simplify the processing steps of clearing the application cache, and improve the cleaning efficiency of the application cache.
- the storage space of the electronic device will not be additionally occupied during the cleaning process of the application cache, and the problem of affecting the performance of the electronic device can be avoided.
- the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042. Such as camera) to obtain still pictures or video image data for processing.
- the display unit 1306 may include a display panel 13061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
- the user input unit 1307 includes a touch panel 13071 and other input devices 13072 .
- the touch panel 13071 is also called a touch screen.
- the touch panel 13071 may include two parts, a touch detection device and a touch controller.
- Other input devices 13072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
- Memory 1309 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
- the processor 1310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1310.
- Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing application cache cleaning method embodiment is implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
- the processor is the processor in the electronic device described in the foregoing embodiments.
- the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
- An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above method for cleaning application caches In order to avoid repetition, the details are not repeated here.
- the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
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)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (21)
- 一种应用缓存的清理方法,包括:接收对目标应用的应用图标上展示的缓存标识的预设操作;所述缓存标识用于标识以下至少一项缓存信息:所述目标应用的总缓存大小、缓存类型、各所述缓存类型分别对应的缓存大小;根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据。
- 根据权利要求1所述的方法,其中,所述接收对目标应用的应用图标上展示的缓存标识的预设操作之前,所述方法还包括:获取电子设备上的各应用的缓存信息;若所述缓存信息满足预设条件,则根据预设展示方式,将各所述缓存信息对应的缓存标识展示在对应的所述应用的应用图标上。
- 根据权利要求2所述的方法,其中,所述若所述缓存信息满足预设条件,则根据预设展示方式,将各所述缓存信息对应的缓存标识展示在对应的所述应用的应用图标上,包括:若所述总缓存大小大于或等于第一预设阈值,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的第一位置;或者,若各所述缓存类型中的至少一种第一缓存类型对应的缓存大小大于或等于第二预设阈值,则将各所述第一缓存类型对应的所述缓存标识分别展示在所述应用图标上的各第二位置。
- 根据权利要求3所述的方法,其中,所述若所述总缓存大小大于或等于第一预设阈值,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的第一位置,包括:若所述总缓存大小大于或等于所述第一预设阈值、且各所述缓存类型中的第二缓存类型对应的缓存大小占比最大,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的与所述第二缓存类型对应的第三位置。
- 根据权利要求3所述的方法,其中,所述对目标应用的应用图标上展示的缓存标识 的预设操作包括:对所述总缓存大小对应的所述缓存标识的点击操作;所述根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据,包括:清除所述目标应用中的所有缓存数据;或者,展示所述目标应用对应的多个所述缓存类型;在接收到对多个所述缓存类型中的第三缓存类型的清除操作时,清除所述目标应用中与所述第三缓存类型对应的缓存数据。
- 根据权利要求3所述的方法,其中,所述对目标应用的应用图标上展示的缓存标识的预设操作包括:对所述第二位置上展示的所述缓存标识的点击操作;所述根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据,包括:根据预设的各所述第二位置和各所述缓存类型之间的对应关系,确定被点击的所述缓存标识对应的第四缓存类型;清除所述目标应用中与所述第四缓存类型对应的缓存数据。
- 根据权利要求3所述的方法,其中,所述目标应用包括第一应用和第二应用;所述对目标应用的应用图标上展示的缓存标识的预设操作包括:将所述第一应用的应用图标上展示的所述缓存标识移动至所述第二应用的应用图标上的第四位置处;所述根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据,包括:若所述第四位置上展示有所述缓存标识,则清除所述第一应用中与被移动的所述缓存标识对应的缓存数据;以及,清除所述第二应用中与所述第四位置处展示的所述缓存标识对应的缓存数据。
- 根据权利要求3所述的方法,其中,所述目标应用包括第三应用、第四应用和至少一个第五应用;所述对目标应用的应用图标上展示的缓存标识的预设操作包括:在预设时长内,以所述第三应用的应用图标为滑动起点,依次经过至少一个所述第五应用的应用图标,最终滑动至所述第四应用的应用图标上展示的所述缓存标识的位置处的滑动操作;所述根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据,包括:清除所述第三应用、所述第四应用和所述第五应用中的所有缓存数据;或者,确定所述滑动操作的滑动终点对应的所述缓存标识对应的第五缓存类型;清除所述第 三应用、所述第四应用和所述第五应用中与所述第五缓存类型对应的缓存数据。
- 一种应用缓存的清理装置,其中,包括:接收模块,用于接收对目标应用的应用图标上展示的缓存标识的预设操作;所述缓存标识用于标识以下至少一项缓存信息:所述目标应用的总缓存大小、缓存类型、各所述缓存类型分别对应的缓存大小;清除模块,用于根据所述预设操作,清除所述目标应用中与所述缓存标识对应的缓存数据。
- 根据权利要求9所述的应用缓存的清理装置,其中,所述应用缓存的清理装置还包括:获取模块,用于获取电子设备上的各应用的缓存信息;展示模块,用于若缓存信息满足预设条件,则根据预设展示方式,将各缓存信息对应的缓存标识展示在对应的应用的应用图标上。
- 根据权利要求10所述的应用缓存的清理装置,其中,所述展示模块包括:第一展示单元,用于若所述总缓存大小大于或等于第一预设阈值,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的第一位置;或者,第二展示单元,用于若各所述缓存类型中的至少一种第一缓存类型对应的缓存大小大于或等于第二预设阈值,则将各所述第一缓存类型对应的所述缓存标识分别展示在所述应用图标上的各第二位置。
- 根据权利要求11所述的应用缓存的清理装置,其中,所述第一展示单元具体用于:若所述总缓存大小大于或等于所述第一预设阈值、且各所述缓存类型中的第二缓存类型对应的缓存大小占比最大,则将所述总缓存大小对应的所述缓存标识展示在所述应用图标上的与所述第二缓存类型对应的第三位置。
- 根据权利要求11所述的应用缓存的清理装置,其中,所述对目标应用的应用图标上展示的缓存标识的预设操作包括:对所述总缓存大小对应的所述缓存标识的点击操作;所述清除模块包括:第一清除单元,用于清除所述目标应用中的所有缓存数据;或者,第一执行单元,用于展示所述目标应用对应的多个所述缓存类型;在接收到对多个所述缓存类型中的第三缓存类型的清除操作时,清除所述目标应用中与所述第三缓存类型对应的缓存数据。
- 根据权利要求11所述的应用缓存的清理装置,其中,所述对目标应用的应用图标上展示的缓存标识的预设操作包括:对所述第二位置上展示的所述缓存标识的点击操作;所述清除模块包括:确定单元,用于根据预设的各所述第二位置和各所述缓存类型之间的对应关系,确定被点击的所述缓存标识对应的第四缓存类型;第二清除单元,用于清除所述目标应用中与所述第四缓存类型对应的缓存数据。
- 根据权利要求11所述的应用缓存的清理装置,其中,所述目标应用包括第一应用和第二应用;所述对目标应用的应用图标上展示的缓存标识的预设操作包括:将所述第一应用的应用图标上展示的所述缓存标识移动至所述第二应用的应用图标上的第四位置处;所述清除模块包括:第三清除单元,用于若所述第四位置上展示有所述缓存标识,则清除所述第一应用中与被移动的所述缓存标识对应的缓存数据;以及,清除所述第二应用中与所述第四位置处展示的所述缓存标识对应的缓存数据。
- 根据权利要求11所述的应用缓存的清理装置,其中,所述目标应用包括第三应用、第四应用和至少一个第五应用;所述对目标应用的应用图标上展示的缓存标识的预设操作包括:在预设时长内,以所述第三应用的应用图标为滑动起点,依次经过至少一个所述第五应用的应用图标,最终滑动至所述第四应用的应用图标上展示的所述缓存标识的位置处的滑动操作;所述清除模块包括:第四清除单元,用于清除所述第三应用、所述第四应用和所述第五应用中的所有缓存数据;或者,第二执行单元,用于确定所述滑动操作的滑动终点对应的所述缓存标识对应的第五缓存类型;清除所述第三应用、所述第四应用和所述第五应用中与所述第五缓存类型对应的 缓存数据。
- 一种电子设备,其中,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-8任一项所述的应用缓存的清理方法的步骤。
- 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-8任一项所述的应用缓存的清理方法的步骤。
- 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-8任一项所述的应用缓存的清理方法的步骤。
- 一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-8任一项所述的方法。
- 一种清理设备,其中,包括所述清理设备被配置成用于执行如权利要求1-8任一项所述的应用缓存的清理方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011348294.9A CN112416201B (zh) | 2020-11-26 | 2020-11-26 | 应用缓存的清理方法、装置、电子设备及介质 |
| CN202011348294.9 | 2020-11-26 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022111502A1 true WO2022111502A1 (zh) | 2022-06-02 |
Family
ID=74842521
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/132688 Ceased WO2022111502A1 (zh) | 2020-11-26 | 2021-11-24 | 应用缓存的清理方法、装置、电子设备及介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112416201B (zh) |
| WO (1) | WO2022111502A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112416201B (zh) * | 2020-11-26 | 2022-05-20 | 维沃移动通信有限公司 | 应用缓存的清理方法、装置、电子设备及介质 |
| CN114003593B (zh) * | 2021-11-02 | 2024-08-13 | 北京搜房科技发展有限公司 | 缓存数据的清除方法及装置、存储介质及电子设备 |
| CN114237443A (zh) * | 2021-11-23 | 2022-03-25 | 维沃移动通信有限公司 | 应用管理方法、装置、电子设备和介质 |
| CN115563001B (zh) * | 2022-10-26 | 2026-04-28 | 唯品会(广州)软件有限公司 | 本地缓存工具类测试方法、装置、存储介质及计算机设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106550128A (zh) * | 2016-10-31 | 2017-03-29 | 努比亚技术有限公司 | 一种内存管理方法及终端 |
| CN107357741A (zh) * | 2017-06-05 | 2017-11-17 | 努比亚技术有限公司 | 一种应用管理方法、设备及计算机存储介质 |
| CN108595263A (zh) * | 2018-04-04 | 2018-09-28 | 维沃移动通信有限公司 | 一种应用缓存清理的方法及移动终端 |
| US20180285270A1 (en) * | 2017-03-28 | 2018-10-04 | Bank Of America Corporation | Real-time cache repair tool |
| CN112416201A (zh) * | 2020-11-26 | 2021-02-26 | 维沃移动通信有限公司 | 应用缓存的清理方法、装置、电子设备及介质 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10116697B2 (en) * | 2013-09-20 | 2018-10-30 | Open Text Sa Ulc | System and method for geofencing |
| CN104657147B (zh) * | 2015-03-09 | 2018-10-12 | 联想(北京)有限公司 | 一种信息处理方法和装置 |
| CN107562311A (zh) * | 2017-08-18 | 2018-01-09 | 珠海市魅族科技有限公司 | 图标控制方法和装置、终端及可读存储介质 |
| CN111796735B (zh) * | 2020-06-29 | 2023-02-03 | 维沃移动通信(杭州)有限公司 | 应用程序控制方法、装置及电子设备 |
-
2020
- 2020-11-26 CN CN202011348294.9A patent/CN112416201B/zh active Active
-
2021
- 2021-11-24 WO PCT/CN2021/132688 patent/WO2022111502A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106550128A (zh) * | 2016-10-31 | 2017-03-29 | 努比亚技术有限公司 | 一种内存管理方法及终端 |
| US20180285270A1 (en) * | 2017-03-28 | 2018-10-04 | Bank Of America Corporation | Real-time cache repair tool |
| CN107357741A (zh) * | 2017-06-05 | 2017-11-17 | 努比亚技术有限公司 | 一种应用管理方法、设备及计算机存储介质 |
| CN108595263A (zh) * | 2018-04-04 | 2018-09-28 | 维沃移动通信有限公司 | 一种应用缓存清理的方法及移动终端 |
| CN112416201A (zh) * | 2020-11-26 | 2021-02-26 | 维沃移动通信有限公司 | 应用缓存的清理方法、装置、电子设备及介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112416201A (zh) | 2021-02-26 |
| CN112416201B (zh) | 2022-05-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112416201B (zh) | 应用缓存的清理方法、装置、电子设备及介质 | |
| CN108040288B (zh) | 视频编辑方法、装置及智能移动终端 | |
| US20190095059A1 (en) | Method and device for processing application icon and electronic apparatus | |
| WO2022063022A1 (zh) | 视频预览方法、装置及电子设备 | |
| CN112099707A (zh) | 显示方法、装置和电子设备 | |
| CN112540740B (zh) | 分屏显示方法、装置、电子设备和可读存储介质 | |
| WO2023061280A1 (zh) | 应用程序显示方法、装置及电子设备 | |
| WO2023005920A1 (zh) | 分屏方法、装置及电子设备 | |
| CN112148178A (zh) | 应用切换方法、装置、电子设备及可读存储介质 | |
| CN112083854A (zh) | 应用程序的运行方法及装置 | |
| CN105183287A (zh) | 显示处理方法及电子设备 | |
| CN112486444A (zh) | 投屏方法、装置、设备和可读存储介质 | |
| WO2022068721A1 (zh) | 截屏方法、装置及电子设备 | |
| CN113703634A (zh) | 界面显示方法和装置 | |
| WO2022135290A1 (zh) | 截屏方法、装置及电子设备 | |
| CN112836086A (zh) | 一种视频处理方法、装置和电子设备 | |
| WO2023056977A1 (zh) | 应用程序启动方法, 装置及电子设备 | |
| KR102926192B1 (ko) | 메시지 상세 페이지의 표시 방법, 장치 및 전자 장치 | |
| WO2022089481A1 (zh) | 信息处理方法、装置及电子设备 | |
| CN117992168A (zh) | 一种显示控制方法、装置、存储介质及计算机设备 | |
| CN112764862A (zh) | 应用程序的控制方法、装置及电子设备 | |
| CN112286615A (zh) | 应用程序的信息显示方法及装置 | |
| CN111638828A (zh) | 界面显示方法及装置 | |
| CN111666010B (zh) | 应用显示方法及装置 | |
| WO2022228433A1 (zh) | 信息处理方法、装置以及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21897003 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21897003 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.12.2023) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21897003 Country of ref document: EP Kind code of ref document: A1 |