File management method and device, electronic equipment and storage medium
By detecting undownloaded files in communication applications and generating reminder information, the problem of users forgetting to download causes files to expire, and improves user experience and file management efficiency.
Patent Information
- Application Number
- CN202311559208.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2025-05-23
AI Technical Summary
Limited-time files in communication applications are easily expired because users forget to download, resulting in users being unable to obtain files, which increases communication costs and file duplication problems.
By detecting the received files that are not downloaded in communication applications, determining the valid status of the file based on the reception time, and generating a prompt message before the file is about to expire, displaying it on the display interface of the electronic device to remind the user to download the file.
Effectively reminds users that the file is about to expire, reducing the risk of file loss due to forgetting to download and improving user experience.
Smart Images

Figure CN120029976A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a file management method, device, electronic device and storage medium. Background Art
[0002] With the continuous development and progress of technology, current mobile phone APP (Application) functions are increasing, and users can easily transfer text, pictures, documents, videos and other files through communication software.
[0003] In the related art, transmission files in communication applications generally have a validity period. Once the user forgets to download within the validity period or the download is not completed within the validity period, the file will expire, resulting in the user being unable to obtain the file, causing inconvenience to the user. Summary of the invention
[0004] In order to perform time management on time-limited files in communication applications, effectively remind users of file expiration, and reduce the risk of users forgetting to download and causing file expiration, the embodiments of the present disclosure provide a file management method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a file management method, comprising:
[0006] Detecting a received file that has not been downloaded in a communication application, and determining a valid state of the received file based on a receiving time of the received file;
[0007] In response to the validity status of the received file being not expired, a prompt message is generated at a preset time before the received file expires, and the prompt message is displayed on a display interface of the electronic device.
[0008] In some implementations, in response to the validity status of the received file being not expired, generating a prompt message at a preset time before the received file expires, includes:
[0009] In response to the validity status of the received file being not expired, determining an expiration time of the received file based on the reception time and the validity period corresponding to the communication application;
[0010] The prompt information is generated at a preset time before the expiration time.
[0011] In some implementations, displaying the prompt information on a display interface of the electronic device includes:
[0012] Based on the dialog box to which the received file belongs, displaying the dialog box in a notification bar of the display interface;
[0013] In the page element to which the dialog box belongs, the prompt information corresponding to the received file is displayed, wherein the prompt information includes the file name, file type and remaining expiration time of the received file.
[0014] In some implementations, after displaying the prompt information corresponding to the received file in the page element to which the dialog box belongs, the method further includes:
[0015] Detecting a control operation of a user on the received file, and executing the control operation based on an operation instruction corresponding to the control operation, wherein the control operation includes a deletion operation and a download operation.
[0016] In some implementations, the detecting of undownloaded received files in the communication application includes:
[0017] Determine a target folder based on the application identifier of the communication application, and detect the target folder to obtain the received file;
[0018] and / or,
[0019] The file identifier of the received file is determined based on the application identifier of the communication application, and the received file is detected and obtained based on the file identifier.
[0020] In some implementations, determining the validity status of the received file based on the receiving time of the received file includes:
[0021] Obtaining the receiving time of the received file and the validity period corresponding to the communication application;
[0022] The validity status of the received file is determined based on the receiving time and the validity period.
[0023] In some implementations, detecting a received file in a communication application includes:
[0024] The received file in the communication application is detected within a preset time period.
[0025] In some embodiments, the method of the present disclosure further includes:
[0026] In response to the validity status of the received file being expired, based on an operation instruction of a user to delete the received file, the received file is deleted.
[0027] In a second aspect, an embodiment of the present disclosure provides a file management device, including:
[0028] A file detection module is configured to detect a received file that has not been downloaded in a communication application, and determine a valid state of the received file based on a receiving time of the received file;
[0029] The information prompt module is configured to generate prompt information at a preset time before the received file expires in response to the validity status of the received file being not expired, and display the prompt information on the display interface of the electronic device.
[0030] In some implementations, the information prompt module is configured to:
[0031] In response to the validity status of the received file being not expired, determining an expiration time of the received file based on the reception time and the validity period corresponding to the communication application;
[0032] The prompt information is generated at a preset time before the expiration time.
[0033] In some implementations, the information prompt module is configured to:
[0034] Based on the dialog box to which the received file belongs, displaying the dialog box in a notification bar of the display interface;
[0035] In the page element to which the dialog box belongs, the prompt information corresponding to the received file is displayed, wherein the prompt information includes the file name, file type and remaining expiration time of the received file.
[0036] In some implementations, the information prompt module is configured to:
[0037] Detecting a control operation of a user on the received file, and executing the control operation based on an operation instruction corresponding to the control operation, wherein the control operation includes a deletion operation and a download operation.
[0038] In some implementations, the file detection module is configured to:
[0039] Determine a target folder based on the application identifier of the communication application, and detect the target folder to obtain the received file;
[0040] and / or,
[0041] The file identifier of the received file is determined based on the application identifier of the communication application, and the received file is detected and obtained based on the file identifier.
[0042] In some implementations, the file detection module is configured to:
[0043] Obtaining the receiving time of the received file and the validity period corresponding to the communication application;
[0044] The validity status of the received file is determined based on the receiving time and the validity period.
[0045] In some implementations, the file detection module is configured to:
[0046] The received file in the communication application is detected within a preset time period.
[0047] In some implementations, the information prompt module is configured to:
[0048] In response to the validity status of the received file being expired, based on an operation instruction of a user to delete the received file, the received file is deleted.
[0049] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0050] Processor; and
[0051] A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any embodiment of the first aspect.
[0052] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method according to any embodiment of the first aspect.
[0053] The file management method of the disclosed embodiment includes detecting undownloaded received files in communication applications, determining the validity status of the received files based on the receiving time, and generating a prompt message at a preset time before the received files expire in response to the valid status being unexpired, and displaying the prompt message on the display interface of the electronic device. By performing validity detection on undownloaded files in communication applications and performing time management on unexpired received files, users can be reminded before the received files expire, reducing the risk of file loss due to users forgetting to download, and effectively improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0055] Figure 1 It is a schematic diagram of an application scenario of a file management method in some implementation modes of the present disclosure.
[0056] Figure 2 is a flowchart of a file management method according to some implementations of the present disclosure.
[0057] Figure 3 It is a schematic diagram of the principles of the file management method in some implementation modes of the present disclosure.
[0058] Figure 4 is a flowchart of a file management method according to some implementations of the present disclosure.
[0059] Figure 5 is a flowchart of a file management method according to some implementations of the present disclosure.
[0060] Figure 6 is a flowchart of a file management method according to some implementations of the present disclosure.
[0061] Figure 7 It is a schematic diagram of the principles of the file management method in some implementation modes of the present disclosure.
[0062] Figure 8 It is a structural block diagram of a file management device in some implementation modes of the present disclosure.
[0063] Fig. 9 It is a structural block diagram of an electronic device according to some implementations of the present disclosure. DETAILED DESCRIPTION
[0064] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0065] With the continuous development and progress of technology, the current mobile phone APP (Application) functions are increasing. Users can easily transfer text, pictures, documents, videos and other files through communication applications (such as WeChat, QQ, etc.). Communication applications are becoming more and more integrated with people's lives. With continuous use, more and more friends and group chats are added, and the files such as videos, pictures, documents, etc. received will also increase day by day.
[0066] However, in the related art, the transmission files in communication applications generally have a validity period. For example, the validity period of WeChat files is 72 hours. Once the user forgets to click to download the file, or the download is not completed within the validity period, the transmission file will expire, resulting in the user being unable to obtain the file. If the other party is asked to resend it, it will increase unnecessary time and communication costs, and generate duplicate files.
[0067] For example, when traveling with friends and sharing videos with each other in a group, a large number of video files will be transmitted. If the user wants to download the video in a wireless network environment, he or she may forget to download it, or the download may be interrupted due to network reasons. Once the video file is not downloaded for more than 72 hours, it will expire and the user will no longer be able to download the video, which brings inconvenience to the user.
[0068] Based on the defects of the above-mentioned related technologies, the embodiments of the present disclosure provide a file management method, device, electronic device and storage medium, which are intended to effectively manage the timeliness of time-limited files in communication applications, thereby reminding users of the file expiration time and avoiding the problem of users forgetting to download and causing file expiration.
[0069] In some embodiments, the present disclosure provides a file management method, which can be applied to electronic devices. The electronic devices can be any type of device suitable for implementation, such as smart phones, tablet computers, car computers, laptops, wearable devices, etc., and the present disclosure is not limited to this.
[0070] Figure 1 The following is a schematic diagram of the application scenarios of some embodiments of the present disclosure. Figure 1 Describe the application scenario.
[0071] Users can use communication applications to chat with each other, transfer files, etc. Figure 1 In the example, the friend sends a file named "Report 1.docx". After the user receives the file, he can download it by clicking on the file dialog box. After the download is complete, the file is stored locally, and the user can operate the file on the local device.
[0072] However, if the user forgets to download, or the download is interrupted due to poor network conditions, the file will expire once the validity period specified by the communication application has expired, and the user on the local end will no longer be able to download the file. If the user needs to obtain the file, they can only ask the other party to resend it, which adds unnecessary time and communication costs, and generates duplicate files.
[0073] Based on this scenario, the following Figure 2 A file management method according to an embodiment of the present disclosure is described.
[0074] like Figure 2As shown, in some embodiments, the file management method of the present disclosure example includes:
[0075] S210: Detecting undownloaded received files in the communication application, and determining a valid state of the received files based on a receiving time of the received files.
[0076] In the embodiments of the present disclosure, communication applications refer to applications that implement online chatting, video calls, file transfers, etc. through instant messaging technology. Communication applications in mobile phone scenarios include WeChat, QQ, DingTalk, Feishu, etc. The present disclosure does not limit the specific types of these communication applications.
[0077] Received files refer to related files received by users through communication applications. Received files can be any type of files such as pictures, videos, documents, compressed packages, etc. As long as they are files received through communication applications, they can be used as received files described in this disclosure, and this disclosure does not impose any restrictions on this.
[0078] Combination Figure 1 As shown, when a user receives a file through a communication application, the user can click to receive the file, thereby downloading the received file to the local computer. If the user does not click to download, the file will not be downloaded to the local computer.
[0079] In an embodiment of the present disclosure, an electronic device can detect all undownloaded received files in a communication application. For example, in some embodiments, some applications store undownloaded files in corresponding folders, so that the electronic device can obtain these undownloaded received files from the corresponding folders. For example, in other embodiments, undownloaded files in some applications have unique file types or suffixes, so that the electronic device can scan the file type or suffix to obtain undownloaded received files. This is described in the following embodiments of the present disclosure.
[0080] As can be seen from the above, communication applications generally have an expiration date for undownloaded files, so the detected valid status of received files includes "not expired" and "expired". In the disclosed embodiment, after the electronic device scans and detects all undownloaded received files in communication applications, it can judge the validity of the received files and determine the valid status corresponding to each received file.
[0081] For example, taking a received file as an example, the received file has a receiving time, and the receiving time refers to the time when the local device receives the received file, such as Figure 1 In the example scenario, "Report 1.docx" is a received file, and the time when the other user sends "Report 1.docx" is the receiving time corresponding to the received file.
[0082] At the same time, each communication application has its own validity period. For example, the validity period of WeChat files is 72 hours. Therefore, based on the time interval between the receiving time of the received file and the current time, and compared with the validity period, the valid status of the received file can be obtained. For example, if the receiving time of the received file in the above example is one week ago, the time exceeds 72 hours, so the valid status of the received file can be determined to be "expired". On the contrary, if the receiving time of the received file is 24 hours ago, the time does not exceed 72 hours, so the valid status of the received file can be determined to be "not expired". This process is explained below in this disclosure.
[0083] Through the above method process, the status of each received file that has not been downloaded can be detected to obtain the valid status corresponding to each received file.
[0084] It is understandable that some of these received files may have a valid status of "not expired" and some of them may have a valid status of "expired". The present disclosure hereinafter describes the processing methods of these two types of files respectively.
[0085] S220: In response to the validity status of the received file being not expired, generating a prompt message at a preset time before the received file expires, and displaying the prompt message on a display interface of the electronic device.
[0086] In the disclosed implementation manner, for a received file whose valid status is "not expired", it is necessary to remind the user some time before the received file expires to inform the user that the received file is about to expire, so that the user can choose to download the received file or choose to delete the received file.
[0087] In some embodiments, taking a certain received file as an example, the valid status of the received file is determined to be "not expired" through the aforementioned method process, so that the corresponding expiration time can be determined according to the receiving time of the received file and the validity period of the communication application. The expiration time indicates the time when the received file becomes invalid, so that a prompt message is generated within a preset time before the expiration time to remind the user that there is an undownloaded file that is about to expire.
[0088] For example, in one example, still taking WeChat as an example, a received file was received 24 hours ago and is valid for 72 hours, so it can be determined that the expiration time of the received file is 48 hours later, so a prompt message can be generated at a preset time before the expiration time, and the preset time can be, for example, 12 hours, that is, a prompt message can be generated after 36 hours to remind the user that the received file will expire in another 12 hours. After seeing the prompt message, the user can choose to download the received file in time to avoid forgetting to download and causing the file to expire.
[0089] In the embodiments of the present disclosure, the prompt information may be relevant information presented on the display interface of the electronic device, which may be, for example, text information, picture information or other UI (User Interface) elements, etc., and the present disclosure does not limit this.
[0090] For example, in some implementations, the prompt information may be information displayed on a notification center page of an electronic device, and the information content includes the file name, file type, remaining expiration time, etc. of the received file, so that the user can directly know which file it is and the remaining expiration time of the file through the prompt information. The following implementations of the present disclosure illustrate this.
[0091] In the disclosed embodiment, the time management of the received file that has not expired can be performed, and the user can be reminded before the file is about to expire, so as to inform the user to download it as soon as possible to avoid the situation where the file cannot be downloaded after expiration. Thus, the user can choose to download the received file or delete the received file according to his own needs.
[0092] In some implementations, for expired received files, the expired received files can be deleted according to a user deletion operation instruction to release device memory space, which is described in the following implementations of the present disclosure.
[0093] From the above, it can be seen that in the embodiments of the present disclosure, by performing validity detection on the undownloaded files of communication applications and performing time management on the received files that have not expired, the user can be reminded before the received file expires, thereby reducing the risk of file loss due to the user forgetting to download, and effectively improving the user experience.
[0094] In the implementation manner of the present disclosure, an application for implementing the method of the present disclosure can be pre-constructed in the system application layer (Applications). The application can be, for example, an app such as a "device manager" or "security center" of an electronic device. With the authorization and consent of the user, the application can detect various communication applications installed on the device and perform file expiration management for each communication application separately.
[0095] For example, taking a communication application as an example, the data structure of the communication application can be shown in Figure 3. Its data structure includes multiple parts, each of which is a folder, namely, a text folder (Text), a picture folder (Picture), a downloaded video folder (Video Download), a video folder that has not been downloaded (Video Incomplete Download), and an other data folder (Other Data). Figure 3As can be seen from the example, the received files that have not been downloaded are stored in the "Video Incomplete Download" folder.
[0096] Therefore, in some embodiments of the present disclosure, when the electronic device detects the undownloaded received files of the communication application, it can first determine the target folder based on the application identifier of the communication application, and then detect the target folder to obtain the undownloaded received files.
[0097] For example Figure 3 In the example, the target folder is determined to be the "undownloaded video folder" according to the application identifier of the communication application, so that by detecting the folder, all the undownloaded received files included in the folder can be obtained.
[0098] In other embodiments, the undownloaded received files in some communication applications are not stored in a fixed folder, but are saved using different file types or suffixes. Therefore, in the embodiments of the present disclosure, the file identifier corresponding to the undownloaded received files can be first determined based on the application identifier of the communication application. The file identifier can be, for example, a file type or a suffix, and then the communication application is scanned based on the file identifier to obtain all the undownloaded received files.
[0099] The above two methods for detecting received files that have not been downloaded may also be implemented in combination. Of course, other methods may also be used in the embodiments of the present disclosure to detect received files that have not been downloaded, and are not limited to the above examples. The present disclosure will not elaborate on this.
[0100] After detecting the undownloaded received files in the communication application, the valid status of each received file can be judged. Figure 4 Provide explanation.
[0101] like Figure 4 As shown, in some embodiments, the file management method of the present disclosure example, the process of determining the valid status of the received file includes:
[0102] S410: Obtain the receiving time of the received file and the validity period corresponding to the communication application.
[0103] Combination Figure 1 As shown, the electronic device records the corresponding time when receiving each received file, and this time is the receiving time. Therefore, after detecting each received file, the receiving time corresponding to the received file can be determined according to the time recorded in the received file.
[0104] At the same time, combined with the above, it can be seen that each communication application will have a file validity period, that is, if the received file is not downloaded within the validity period, the file will be expired and cannot be downloaded. The validity period of different communication applications may also be different, so the validity period of communication applications can be obtained in advance. For example, the corresponding validity period can be configured in advance for each communication application, so that the validity period of a certain communication application can be determined by table lookup.
[0105] S420: Determine the validity status of the received file based on the receiving time and the validity period.
[0106] For example, if the validity period of a communication application is 24 hours, and the receiving time of a received file is 12 hours ago, it can be determined based on the receiving time and the validity period that the received file has not expired, and the validity status of the received file is "not expired". On the contrary, if the receiving time of a received file is 36 hours ago, it can be determined based on the receiving time and the validity period that the received file has expired, and the validity status of the received file is "expired".
[0107] It can be seen from the above that in the embodiments of the present disclosure, the validity status of the received file is calculated based on the receiving time of the received file and the validity period of the communication application, thereby achieving time management of the received file.
[0108] like Figure 5 As shown, in some embodiments, the file management method of the present disclosure example generates a prompt message before receiving a file expiration, including:
[0109] S510: In response to the validity status of the received file being not expired, determine the expiration time of the received file based on the receiving time and the validity period corresponding to the communication application.
[0110] S520: Generate a reminder message at a preset time before the expiration time.
[0111] In the disclosed embodiment, when it is determined that the valid status of the received file is not expired, it means that the user may have forgotten to download the received file, and thus the user needs to be reminded.
[0112] Specifically, the expiration time of the received file can be determined based on the receiving time of the received file and the validity period of the communication application. For example, in an example, the validity period of the communication application is 24 hours. Assuming that the receiving time of a received file is 16:45 on October 23, 2023, the expiration time corresponding to the received file can be determined to be 16:45 on October 24, 2023.
[0113] After the expiration time of the received file is determined, a prompt message may be generated at a preset time before the expiration time.
[0114] It is understandable that the preset time before the expiration time can be a time preset by the user, that is, the user can freely choose how long in advance to remind himself that the file is about to expire. For example, in an example, assuming that the preset time set by the user is 6 hours, it means that a prompt message needs to be generated 6 hours before the file expires to remind the user. Taking the previous example, the expiration time of the received file is 16:45 on October 24, 2023, so a prompt message needs to be generated at 10:45 on October 24, 2023 to remind the user that the received file will expire in 6 hours.
[0115] From the above, it can be seen that in the embodiments of the present disclosure, by performing validity detection on the undownloaded files of communication applications and performing time management on the received files that have not expired, the user can be reminded before the received file expires, thereby reducing the risk of file loss due to the user forgetting to download, and effectively improving the user experience.
[0116] like Figure 6 As shown, in some implementations, the process of displaying prompt information in the file management method of the example of the present disclosure includes:
[0117] S610: Based on the dialog box to which the received file belongs, display the dialog box in the notification bar of the display interface.
[0118] S620: Display prompt information corresponding to the received file in the page element to which the dialog box belongs.
[0119] It is understandable that for communication applications, multiple received files are often sent from different friends or group chats, for example Figure 1 In the example, the received file "Report1.docx" is sent by the friend "Xiaoming", while other received files may be sent by other friends or group chats.
[0120] Therefore, in the embodiments of the present disclosure, in order to facilitate the user to intuitively view which friend or group chat a received file is sent from, firstly, each received file can be classified and displayed based on the dialog box from which the received file comes.
[0121] For example Figure 7 FIG. 4 shows a page diagram of a notification bar of an electronic device in an exemplary embodiment of the present disclosure. Figure 7 As shown, in this example, the notification center page is the drop-down notification bar page of the electronic device. In the implementation of the present disclosure, the prompt information can be displayed in the notification bar page.
[0122] Continue to see Figure 1As shown, the received file "Report 1.docx" is sent from the friend "Xiao Ming", and the received file "Funny Video.mp4" is sent from "Group Chat ①". Therefore, in the embodiment of the present disclosure, when the prompt information for the two received files is displayed, the page elements corresponding to each dialog box are displayed in the notification bar respectively, that is, the dialog box of the friend "Xiao Ming" corresponds to the tab in the upper half of the page, and the dialog box of "Group Chat ①" corresponds to the tab in the lower half of the page, and the tab is the page element described in the dialog box.
[0123] For the received file "report1.docx", the dialog box to which it belongs is the friend "Xiaoming", so the prompt information corresponding to the received file "report1.docx" is displayed in the page element of "Xiaoming". Similarly, for the received file "funny video.mp4", the dialog box to which it belongs is "group chat ①", so the prompt information corresponding to the received file "funny video.mp4" is displayed in the page element of "group chat ①".
[0124] Of course, those skilled in the art will appreciate that the page elements corresponding to each dialog box are not limited to Figure 7 The tabs in the example may also be presented in the form of other UI elements, which is not limited in the present disclosure.
[0125] In the embodiment of the present disclosure, the prompt information of receiving the file may include the file name (e.g., "Report 1", "Funny Video", etc.), the file type (e.g., ".docx", ".mp4", etc.), and the remaining expiration time (e.g., "X hours left to expire"). Figure 7 As shown in the example, the user can intuitively view the name, file type and remaining expiration time of the file that is about to expire through the prompt information.
[0126] From the above, it can be seen that in the embodiments of the present disclosure, by performing validity detection on the undownloaded files of communication applications and performing time management on the received files that have not expired, the user can be reminded before the received file expires, thereby reducing the risk of file loss due to the user forgetting to download, and effectively improving the user experience.
[0127] In some embodiments of the present disclosure, after the prompt information is displayed to the user in the display interface, the user can choose to download the received file or delete the received file.
[0128] For example Figure 7In the example, if the user wants to download "Report 1.docx", the user can click the triangle icon on the left, so that the electronic device can detect the user's control operation for receiving the file, which is a download operation, and then download the receiving file "Report 1.docx" based on the download operation, and complete the download of the receiving file directly on the display interface, without opening the interface of the communication application again to find the corresponding receiving file. Of course, the user can also enter the dialog interface with the friend "Xiao Ming" in the communication application to download the receiving file, and this disclosure does not limit this.
[0129] If the user does not want to download the received file, in order to avoid too many received files occupying the mobile phone memory space, the received file can be directly deleted in the display interface of the prompt information. Figure 7 In the example, if the user does not want to download "Report 1.docx", the user can check the option on the right, so that the electronic device can detect the user's control operation on the received file, which is a deletion operation, and then delete the received file "Report 1.docx" based on the deletion operation, and complete the deletion of the received file directly on the display interface, freeing up the mobile phone memory.
[0130] From the above, it can be seen that in the embodiment of the present disclosure, prompt information for receiving files can be displayed on the notification bar page, thereby forming an intuitive reminder for the user and reducing the risk of file loss due to the user forgetting to download. In addition, the user can directly download or delete the received file on the notification bar page, thereby improving the convenience of user file operations and thus improving the user experience.
[0131] In some implementation modes of the present disclosure, the above process of detecting received files that have not been downloaded in communication applications may be periodically executed by the electronic device or may be manually started by the user.
[0132] For example, in one example, the electronic device can execute the above method process during a preset time period every day (for example, 04:00 in the morning), that is, execute the above process when the user is not using the mobile phone, which does not affect the user experience, and by executing the above method process, the timeliness management of the newly received files today is realized.
[0133] For example, in another example, the user can open the application for executing the above method process (such as "Mobile Manager", etc.), and then choose to start executing the above method process to achieve time management of undownloaded received files in communication applications.
[0134] The above two implementation modes can both implement the file management method of the present disclosure, and the present disclosure does not impose any limitation on this.
[0135] The above describes the processing of received files with a valid status of "not expired". However, for received files with a valid status of "expired", since these files have expired and they themselves occupy a certain amount of memory space, the system memory pressure increases.
[0136] Therefore, in some embodiments of the present disclosure, when receiving files with an effective status of expired are detected, these expired files can be directly and automatically deleted to release system memory. Alternatively, a corresponding detection page can be output and displayed to the user, and the user can select the receiving files to be deleted on his own, and then the system deletes the receiving files selected by the user based on the user's operation instructions, and feeds back the capacity data of the released system memory to the user in real time.
[0137] As can be seen from the above, in the embodiments of the present disclosure, the prompt information of the received file can be displayed on the notification bar page, thereby forming an intuitive reminder for the user, reducing the risk of file loss due to the user forgetting to download, and the user can directly download or delete the received file on the notification bar page, improving the convenience of user file operation and thus improving the user experience. In addition, the expired received files can be deleted to release system memory space and relieve device memory pressure.
[0138] In some embodiments, the present disclosure provides a file management device, such as Figure 8 As shown, the device comprises:
[0139] The file detection module 10 is configured to detect a received file that has not been downloaded in the communication application, and determine the validity status of the received file based on the receiving time of the received file;
[0140] The information prompt module 20 is configured to generate prompt information at a preset time before the received file expires in response to the validity status of the received file being not expired, and display the prompt information on the display interface of the electronic device.
[0141] In some implementations, the information prompt module 20 is configured to:
[0142] In response to the validity status of the received file being not expired, determining an expiration time of the received file based on the reception time and the validity period corresponding to the communication application;
[0143] The prompt information is generated at a preset time before the expiration time.
[0144] In some implementations, the information prompt module 20 is configured to:
[0145] Based on the dialog box to which the received file belongs, displaying the dialog box in a notification bar of the display interface;
[0146] In the page element to which the dialog box belongs, the prompt information corresponding to the received file is displayed, wherein the prompt information includes the file name, file type and remaining expiration time of the received file.
[0147] In some implementations, the information prompt module 20 is configured to:
[0148] Detecting a control operation of a user on the received file, and executing the control operation based on an operation instruction corresponding to the control operation, wherein the control operation includes a deletion operation and a download operation.
[0149] In some implementations, the file detection module 10 is configured to:
[0150] Determine a target folder based on the application identifier of the communication application, and detect the target folder to obtain the received file;
[0151] and / or,
[0152] The file identifier of the received file is determined based on the application identifier of the communication application, and the received file is detected and obtained based on the file identifier.
[0153] In some implementations, the file detection module 10 is configured to:
[0154] Obtaining the receiving time of the received file and the validity period corresponding to the communication application;
[0155] The validity status of the received file is determined based on the receiving time and the validity period.
[0156] In some implementations, the file detection module 10 is configured to:
[0157] The received file in the communication application is detected within a preset time period.
[0158] In some implementations, the information prompt module 20 is configured to:
[0159] In response to the validity status of the received file being expired, based on an operation instruction of a user to delete the received file, the received file is deleted.
[0160] As can be seen from the above, in the embodiments of the present disclosure, the prompt information of the received file can be displayed on the notification bar page, thereby forming an intuitive reminder for the user, reducing the risk of file loss due to the user forgetting to download, and the user can directly download or delete the received file on the notification bar page, improving the convenience of user file operation and thus improving the user experience. In addition, the expired received files can be deleted to release system memory space and relieve device memory pressure.
[0161] In some embodiments, the present disclosure provides an electronic device, including:
[0162] Processor; and
[0163] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute the method described in any of the above embodiments.
[0164] In some embodiments, the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any of the above embodiments.
[0165] Fig. 9 The electronic device structure in some embodiments of the present disclosure is shown in FIG. Fig. 9 Electronic devices according to some embodiments of the present disclosure are described.
[0166] Reference Fig. 9 , the electronic device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1816 , and a communication component 1818 .
[0167] The processing component 1802 generally controls the overall operation of the electronic device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions. In addition, the processing component 1802 may include one or more modules to facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802. For another example, the processing component 1802 may read executable instructions from a memory to implement electronic device related functions.
[0168] The memory 1804 is configured to store various types of data to support operations on the electronic device 1800. Examples of such data include instructions for any application or method operating on the electronic device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0169] The power supply component 1806 provides power to the various components of the electronic device 1800. The power supply component 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1800.
[0170] The multimedia component 1808 includes a display screen that provides an output interface between the electronic device 1800 and the user. In some embodiments, the multimedia component 1808 includes a front camera and / or a rear camera. When the electronic device 1800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0171] The audio component 1810 is configured to output and / or input audio signals. For example, the audio component 1810 includes a microphone (MIC), and when the electronic device 1800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1804 or sent via the communication component 1818. In some embodiments, the audio component 1810 also includes a speaker for outputting audio signals.
[0172] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0173] The sensor assembly 1816 includes one or more sensors for providing various aspects of status assessment for the electronic device 1800. For example, the sensor assembly 1816 can detect the open / closed state of the electronic device 1800, the relative positioning of components, such as the display and keypad of the electronic device 1800, and the sensor assembly 1816 can also detect the position change of the electronic device 1800 or a component of the electronic device 1800, the presence or absence of user contact with the electronic device 1800, the orientation or acceleration / deceleration of the electronic device 1800, and the temperature change of the electronic device 1800. The sensor assembly 1816 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1816 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1816 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0174] The communication component 1818 is configured to facilitate wired or wireless communication between the electronic device 1800 and other devices. The electronic device 1800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 1818 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1818 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0175] In an exemplary embodiment, the electronic device 1800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0176] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A file management method, It is characterized in that include: Detecting a received file that has not been downloaded in a communication application, and determining a valid state of the received file based on a receiving time of the received file; In response to the validity status of the received file being not expired, a prompt message is generated at a preset time before the received file expires, and the prompt message is displayed on a display interface of the electronic device.
2. The method according to claim 1, It is characterized in that In response to the validity status of the received file being not expired, generating a prompt message at a preset time before the received file expires, comprises: In response to the validity status of the received file being not expired, determining an expiration time of the received file based on the reception time and the validity period corresponding to the communication application; The prompt information is generated at a preset time before the expiration time.
3. The method according to claim 1, It is characterized in that The displaying of the prompt information on the display interface of the electronic device includes: Based on the dialog box to which the received file belongs, displaying the dialog box in a notification bar of the display interface; In the page element to which the dialog box belongs, the prompt information corresponding to the received file is displayed, wherein the prompt information includes the file name, file type and remaining expiration time of the received file.
4. The method according to claim 3, It is characterized in that After displaying the prompt information corresponding to the received file in the page element to which the dialog box belongs, the method further includes: Detecting a control operation of a user on the received file, and executing the control operation based on an operation instruction corresponding to the control operation, wherein the control operation includes a deletion operation and a download operation.
5. The method according to claim 1, It is characterized in that The received files not downloaded in the detection communication application include: Determine a target folder based on the application identifier of the communication application, and detect the target folder to obtain the received file; and / or, The file identifier of the received file is determined based on the application identifier of the communication application, and the received file is detected and obtained based on the file identifier.
6. The method according to claim 1, It is characterized in that The determining, based on the receiving time of the received file, the valid state of the received file comprises: Obtaining the receiving time of the received file and the validity period corresponding to the communication application; The validity status of the received file is determined based on the receiving time and the validity period.
7. The method according to claim 1, It is characterized in that The receiving files in the detection communication application include: The received file in the communication application is detected within a preset time period.
8. The method according to claim 1, It is characterized in that Also includes: In response to the validity status of the received file being expired, based on an operation instruction of a user to delete the received file, the received file is deleted.
9. A file management device, It is characterized in that include: A file detection module is configured to detect a received file that has not been downloaded in a communication application, and determine a valid state of the received file based on a receiving time of the received file; The information prompt module is configured to generate prompt information at a preset time before the received file expires in response to the validity status of the received file being not expired, and display the prompt information on the display interface of the electronic device.
10. An electronic device, It is characterized in that include: processor; and A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any one of claims 1 to 8.
11. A storage medium, It is characterized in that Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 8.
Citation Information
Cited By
Bidding resource data processing method and device, computer equipment, readable storage medium and program product
CN121996854A