WO2022262439A1 - Network resource processing method, electronic device, and computer-readable storage medium - Google Patents

Network resource processing method, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
WO2022262439A1
WO2022262439A1 PCT/CN2022/089760 CN2022089760W WO2022262439A1 WO 2022262439 A1 WO2022262439 A1 WO 2022262439A1 CN 2022089760 W CN2022089760 W CN 2022089760W WO 2022262439 A1 WO2022262439 A1 WO 2022262439A1
Authority
WO
WIPO (PCT)
Prior art keywords
network resource
resource
storage space
application
target
Prior art date
Application number
PCT/CN2022/089760
Other languages
French (fr)
Chinese (zh)
Inventor
赵其博
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2022262439A1 publication Critical patent/WO2022262439A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1206Improving or facilitating administration, e.g. print management resulting in increased flexibility in input data format or job format or job type
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • G06F3/1287Remote printer device, e.g. being remote from client or server via internet

Definitions

  • the present application relates to the technical field of terminals, and in particular to a method for processing network resources, electronic equipment, and a computer-readable storage medium.
  • the downloaded network resource is usually automatically stored in a target storage space corresponding to the application. For example, when a document is downloaded in a browser, the document will be automatically stored in the corresponding target storage space of the browser.
  • the electronic device may need to manage the network resources downloaded by the application such as sharing, copying, and transferring.
  • the user when network resources need to be managed, the user generally needs to click multiple times according to the resource storage path to enter the actual storage location of the network resources before management can be performed. Such operations are cumbersome, which in turn leads to poor management efficiency of network resources.
  • the present application provides a method for processing network resources, an electronic device, and a computer-readable storage medium, which solves the problem of poor management efficiency of network resources by electronic devices in the prior art.
  • a method for processing network resources comprising:
  • the target storage space is the resource storage space when the first application downloads the network resource, and the prompt message is used to provide information on the first network resource.
  • the shortcut option is used to directly transfer the first network resource to the target application or target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to Specify storage space.
  • a prompt message is displayed, so that the user can quickly manage the first network resource based on the prompt message, avoiding the need for the user to perform multiple operations to enter the first network resource Manage after the actual storage location of the network, which can improve the management efficiency of network resources.
  • the prompt message when the shortcut option is used to directly transmit the first network resource to the target application or target device, the prompt message includes share shortcut option, open shortcut option, print shortcut option At least one of the options, the sharing shortcut option is used to trigger directly sharing the first network resource to the target application or target device, and the opening shortcut option is used to trigger directly sending the first network resource Opening the target application, the printing shortcut option is used to trigger directly sending the first network resource to the target application for printing; the shortcut option is used to directly send the first network resource from the In the case where the target storage space is stored in the specified storage space, the prompt message includes at least one of a copy shortcut option and a transfer shortcut option, and the copy shortcut option is used to trigger the direct transfer of the first network resource from The target storage space is copied to the specified storage space, and the transfer shortcut option is used to trigger the direct transfer of the first network resource from the target storage space to the specified storage space.
  • the user can share the first network resource , open, print, copy, transfer and other shortcut management, which improves the user experience.
  • the electronic device includes a resource management module and a sharing module; the prompt message includes the sharing shortcut option, and the monitoring target storage space stores the first network resource; after the prompt message is displayed, Also includes:
  • the resource management module In response to the trigger operation of the sharing shortcut option, the resource management module notifies the sharing module
  • the sharing module After receiving the notification from the resource management module, the sharing module searches the electronic device for a target application with a sharing function and a target device with a sharing function enabled;
  • the sharing module displays a sharing prompt box, and the sharing prompt box includes the searched target application and/or target device;
  • the resource management module acquires the first network resource from the target storage space, and stores the first network resource and sent to the target application or target device selected by the selection operation.
  • the electronic device searches for the target application with the sharing function and/or the target device with the sharing function enabled for the user, and displays the searched target application and/or target through the sharing prompt box equipment so that users can quickly share resources on the first network to achieve the purpose of sharing.
  • the electronic device includes a resource management module; the prompt message includes the opening shortcut option, and the monitoring target storage space stores the first network resource; after the prompt message is displayed, it further includes:
  • the resource management module determines, from the applications included in the electronic device, a target application that can be used to open the first network resource according to the format attribute of the first network resource ;
  • the resource management module obtains the first network resource from the target storage space, and sends the first network resource to the target application, so as to open the first network resource through the target application.
  • the resource management module determines the target application that can open the first network resource, so as to send the first network resource to the target application to open, so as to achieve the purpose of opening.
  • the electronic device includes a resource management module; the prompt message includes the printing shortcut option, and the monitoring target storage space stores the first network resource; after the prompt message is displayed, it further includes:
  • the resource management module determines that the printing application in the electronic device is the target application
  • the resource management module acquires the first network resource from the target storage space, and sends the first network resource to the printing application, so as to print the first network resource through the printing application.
  • the print application is determined by the resource management module, and the first network resource is sent to the print application, so that the print application can print the first network resource, thereby achieving the purpose of printing.
  • the electronic device includes a resource management module; the prompt message includes a transfer shortcut option, and the listening target storage space stores the first network resource; after the prompt message is displayed, it further includes:
  • the resource management module calls a path selector to obtain path content through the path selector;
  • the resource management module displays a path management interface based on the path content
  • the resource management module determines a designated storage space selected by the path selection operation
  • the resource management module obtains the first network resource from the target storage space, and stores the first network resource in the designated storage space;
  • the resource management module deletes the first network resource stored in the target storage space.
  • the path selector is invoked by the resource manager to obtain the path content, so as to display the path management interface for the user, so that the user can select or create a new target based on the path management interface.
  • the electronic device transfers the first network resource to the designated storage space, so as to achieve the purpose of transfer.
  • the electronic device includes a resource management module; the prompt message includes a copy shortcut option, and the monitoring target storage space stores the first network resource; after the prompt message is displayed, it further includes:
  • the resource management module invokes a path selector to obtain path content through the path selector;
  • the resource management module displays a path management interface based on the path content
  • the resource management module determines a designated storage space selected by the path selection operation
  • the resource management module obtains the first network resource from the target storage space, and copies the first network resource to the specified storage space.
  • the path selector is invoked by the resource manager to obtain the path content, so as to display the path management interface for the user, so that the user can select or create a new target based on the path management interface.
  • the electronic device copies the first network resource to a designated storage space, so as to achieve the purpose of backup.
  • the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, transfer shortcut options
  • the prompt message includes a multi-level prompt menu
  • the share shortcut options, open shortcut options Options, printing shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through the multi-level prompt menu.
  • the multiple shortcut options can be displayed hierarchically through the multi-level prompt menu, which can make the display interface simple while ensuring rich management functions.
  • the prompt message is any one of a desktop card, a floating window, and a prompt box. In this way, the display diversity of the prompt message is improved.
  • the prompt message includes prompt information of multiple network resources.
  • the user can view the prompt information of multiple network resources at the same time, and the user can manage the network resources that need to be managed according to actual needs. Improved user experience.
  • the prompt information of multiple network resources included in the prompt message is updated according to resource download time.
  • the prompt information of the latest downloaded network resources can be provided in the prompt message, so as to meet the actual management needs of the user.
  • the method also includes:
  • the prompt information of the first network resource in the prompt message disappears, when the user performs an opening operation on the first network resource, the prompt information of the first network resource will be displayed again in the prompt message, so that the user can open the first network resource. After the first network resource, the first network resource can be quickly managed.
  • the electronic device includes a system service module, a resource management module, and an interface display module;
  • the first network resource is stored in the monitoring target storage space, and a prompt message is displayed, including:
  • the system service module obtains the state of a message notification switch, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources;
  • the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module;
  • the resource management module generates the prompt message after receiving the notification from the system service module;
  • the resource management module sends the prompt message to the interface display module
  • the interface display module displays the prompt message.
  • the user can enable or disable the message notification switch according to actual needs, thereby enabling or disabling the monitoring function of the download network resources, Thereby improving the user experience.
  • the method also includes:
  • a viewing operation is detected based on the prompt message, and a resource management application is called, where the resource management application displays the first network resource.
  • the resource management application includes a plurality of recently downloaded network resources, after entering the resource management application, the user can view more recently downloaded network resources.
  • an electronic device including a touch screen, memory, one or more processors, multiple application programs, and one or more programs; wherein the one or more programs are stored in the memory ;
  • the one or more processors are used to: when executing the one or more programs:
  • the target storage space is the resource storage space when the first application downloads the network resource, and the prompt message is used to provide information on the first network resource.
  • the shortcut option is used to directly transfer the first network resource to the target application or target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to Specify storage space.
  • the prompt message when the shortcut option is used to directly transmit the first network resource to the target application or target device, the prompt message includes share shortcut option, open shortcut option, print shortcut option At least one of the options, the sharing shortcut option is used to trigger directly sharing the first network resource to the target application or target device, and the opening shortcut option is used to trigger directly sending the first network resource Opening the target application, the printing shortcut option is used to trigger directly sending the first network resource to the target application for printing; the shortcut option is used to directly send the first network resource from the In the case where the target storage space is stored in the specified storage space, the prompt message includes at least one of a copy shortcut option and a transfer shortcut option, and the copy shortcut option is used to trigger the direct transfer of the first network resource from The target storage space is copied to the specified storage space, and the transfer shortcut option is used to trigger the direct transfer of the first network resource from the target storage space to the specified storage space.
  • the electronic device includes a resource management module and a sharing module; the prompt message includes the sharing shortcut option, and the one or more processors are further configured to:
  • the resource management module acquires the first network resource from the target storage space in response to the selection operation of the target application and/or target device included in the sharing prompt box, and stores the first network resource The resource is sent to the target application or target device selected by the selection operation.
  • the electronic device includes a resource management module; the prompt message includes the opening shortcut option, and the one or more processors are further configured to:
  • the resource management module responds to the trigger operation of the opening shortcut option, and according to the format attribute of the first network resource, determines the target that can be used to open the first network resource from the applications included in the electronic device application;
  • the electronic device includes a resource management module; the prompt message includes the printing shortcut option, and the one or more processors are further configured to:
  • the electronic device includes a resource management module; the prompt message includes a transfer shortcut option, and the one or more processors are further configured to:
  • the resource management module deletes the first network resource stored in the target storage space.
  • the electronic device includes a resource management module; the prompt message includes a copy shortcut option, and the one or more processors are further configured to:
  • the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, transfer shortcut options
  • the prompt message includes a multi-level prompt menu
  • the share shortcut options, open shortcut options Options, printing shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through the multi-level prompt menu.
  • the prompt message is any one of a desktop card, a floating window, and a prompt box.
  • the prompt message includes prompt information of multiple network resources.
  • the prompt information of multiple network resources included in the prompt message is updated according to resource download time.
  • the one or more processors are further configured to:
  • the electronic device includes a system service module, a resource management module, and an interface display module; the one or more processors are configured to:
  • the state of the message notification switch is obtained through the system service module, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources;
  • the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module;
  • the prompt message is displayed through the interface display module.
  • the one or more processors are further configured to:
  • a viewing operation is detected based on the prompt message, and a resource management application is called, where the resource management application displays the first network resource.
  • a computer-readable storage medium wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute the method described in any one of the above-mentioned first aspects.
  • a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method described in the first aspect above.
  • the first network resource is obtained through the first application in the electronic device, and the first network resource is stored in the target storage space when the first application downloads the network resource.
  • the first network resource is accessed, and a prompt message is displayed at this time.
  • the prompt message is used to provide shortcut options for operating the first network resource.
  • the shortcut option is used to directly transfer the first network resource to the target application or the target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to the specified storage space. In this way, it is convenient for the user to quickly manage the first network resource, avoiding the need for the user to perform multiple operations to enter the actual storage location of the first network resource for management, thereby improving the management efficiency of the network resource.
  • FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 2 is a software structural block diagram of an electronic device 100 provided in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a sharing operation process based on a prompt box provided by an embodiment of the present application
  • FIG. 5 is a schematic diagram of a prompt box-based transfer operation process provided by the embodiment of the present application.
  • FIG. 6 is a schematic flow diagram of entering a resource management application based on a prompt box provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of another application scenario provided by the embodiment of the present application.
  • Fig. 8 is a schematic diagram of a floating window-based sharing operation process provided by the embodiment of the present application.
  • FIG. 9 is a schematic diagram of a copy operation process based on a sharing prompt box provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a transfer operation process based on a sharing prompt box provided by an embodiment of the present application.
  • Fig. 11 is a schematic diagram of an opening operation process based on a floating window provided by the embodiment of the present application.
  • FIG. 12 is a schematic diagram of another application scenario provided by the embodiment of the present application.
  • FIG. 13 is a schematic diagram of a desktop card-based sharing operation process provided by the embodiment of the present application.
  • Fig. 14 is a schematic display of a desktop card provided in the embodiment of the present application.
  • FIG. 15 is a schematic diagram of updating a desktop card based on an opening operation provided by an embodiment of the present application.
  • FIG. 16 is a schematic diagram of a system architecture provided by an embodiment of the present application.
  • FIG. 17 is a schematic flowchart of a method for processing network resources provided by an embodiment of the present application.
  • FIG. 18 is a schematic flowchart of another method for processing network resources provided by the embodiment of the present application.
  • FIG. 19 is a schematic flowchart of another method for processing network resources provided by the embodiment of the present application.
  • FIG. 20 is a schematic flowchart of another method for processing network resources provided by the embodiment of the present application.
  • FIG. 21 is a schematic diagram of an interaction process between a card management module and a resource management module provided by an embodiment of the present application.
  • FIG. 22 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the method for processing network resources provided in the embodiment of the present application may be executed by an electronic device.
  • different types of first applications also called application programs
  • each first application may download network resources.
  • Web resources may include, but are not limited to, documents, images, video, audio.
  • the electronic device may include, but not limited to, a mobile phone, a tablet computer, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), Devices such as notebook computers, netbooks, and personal digital assistants (PDAs) are not limited in this embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element can be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C with the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of the electronic device 100, and be applied to applications such as horizontal and vertical screen switching, pedometer, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
  • FIG. 2 is a software structural block diagram of an electronic device 100 provided in an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include application programs such as camera, gallery, call, map, navigation, WLAN, Bluetooth, video, short message, sharing, and file management.
  • application programs such as camera, gallery, call, map, navigation, WLAN, Bluetooth, video, short message, sharing, and file management.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include interface display module, card management module, system service module, window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • the interface display module is used for popping up prompt messages.
  • the interface display module may be a user interface (user interface, UI) module or a card management module.
  • the UI module is used to display prompt messages such as floating windows and prompt boxes.
  • the card management module is used to generate desktop cards and display the desktop cards as prompt messages.
  • the desktop card is a card displayed on the desktop of the electronic device, and in some embodiments, the desktop card may also be called a card or the like.
  • the desktop of the electronic device refers to the interface displayed after the electronic device is turned on; in the case of an electronic device with a power-on password, the desktop of the electronic device refers to the interface displayed after the electronic device is turned on and unlocked .
  • the system service module is used to determine whether to enable the monitoring function of downloading network resources according to the state of the message notification switch. For example, if the message notification switch is turned on, the monitoring function of downloading network resources is enabled; otherwise, if the message notification switch is turned off, the monitoring function of downloading network resources is not enabled or disabled.
  • the system service module monitors the target storage space that needs to be monitored. If a new network resource is generated in the target storage space, for example, when a new document is generated, the The UI module pops up a prompt message, and the prompt message is used to provide a shortcut option for the user to manage the newly generated network resource.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least the file system, display driver, camera driver, audio driver, and sensor driver.
  • the file system refers to the software mechanism in the operating system responsible for managing and storing file information.
  • the file system may be used to sense whether a file is generated in the target storage space, and notify the system service module when the file system detects that a file is generated.
  • the workflow of the software and hardware of the electronic device 100 will be exemplarily described below in conjunction with capturing and photographing scenes.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Take the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example.
  • the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • Camera 193 captures still images or video.
  • FIG. 3 is a schematic diagram of an application scenario according to an exemplary embodiment.
  • APP1 in the mobile phone receives document 1 "China User Experience Industry Development Research Report", and the format of document 1 is Portable Document Format (PDF).
  • PDF Portable Document Format
  • APP1 provides a management touch button, and when the user wants to manage the document 1, the management touch button can be triggered.
  • APP1 displays a management page.
  • the management page is shown in (a) in FIG. 3 , and the management page includes a touch button of "save to mobile phone".
  • the "save to mobile phone” touch button can be triggered. Save it locally.
  • the mobile phone pops up a prompt box in the current display interface.
  • the prompt box is shown as 31 .
  • the prompt box includes sharing touch keys and transferring touch keys. The user can perform further operations on the document 1 based on the prompt box.
  • the share touch button in the prompt box can be triggered.
  • the mobile phone searches for surrounding target devices with the sharing function enabled and/or target applications with the sharing function in the mobile phone (such as applications that declare android.intent.action.SEND filtering) .
  • the mobile phone displays a sharing prompt box, and displays the searched target device and/or target application in the displayed sharing prompt box.
  • the sharing prompt box is as shown in (b) in FIG. 4 . In this way, the user can share the document 1 based on the sharing prompt box, such as sharing to DeviceA.
  • the sharing prompt box may also include one or more items of copying the touch button, printing the touch button, and opening the touch button.
  • the copy touch key can be used to trigger copying of document 1 to a specified storage space specified by the user, the print touch key can be used to trigger printing of document 1, and the open touch key can be used to trigger an opening operation of document 1.
  • the sharing prompt box may also include a cancel touch button. If the user wants to cancel the sharing of the document 1, the cancel touch button may be triggered, and in response to the user's trigger operation on the cancel touch button, the mobile phone closes the sharing prompt box.
  • the user is provided with shortcut options for location transfer through the prompt box (for example, the shortcut options include the above-mentioned touch buttons), which is convenient for the user to store the downloaded network resources in a unified storage space, thereby providing convenience for the user , thereby improving the user experience.
  • the shortcut options include the above-mentioned touch buttons
  • transferring the touch key may also be "copying to" the touch key, which is not limited in this embodiment of the present application.
  • the mobile phone when the user clicks on the message body of the prompt box, in response to the user's trigger operation on the message body of the prompt box, the mobile phone starts the resource management application and jumps to Designated page for resource management applications.
  • the resource management application is used to manage network resources downloaded by the first application in the mobile phone, for example, the resource management application is a file management application.
  • the specified page includes resource tags of network resources recently downloaded by the first application in the mobile phone. In some embodiments, the designated page is also called the recent tab. Exemplarily, the specified page of the resource management application is shown in (b) of FIG. resource tag.
  • the user When the user wants to view document 1, he may click the resource label of document 1, and in response to the user's click operation on the resource label of document 1, the mobile phone opens document 1.
  • the prompt box is used to provide the user with a quick entry to enter the specified page of the resource management application, so that the user can conveniently view the recently downloaded network resources, thereby improving the user experience effect.
  • the prompt box may also include at least one attribute information of the name, format, and file size of the document 1, so that when there are multiple prompt boxes for network resources, it is convenient for users to distinguish according to the attribute information .
  • FIG. 7 is a schematic diagram of an application scenario according to another exemplary embodiment.
  • APP1 in the mobile phone receives document 2 "Sharing Report", and the document format is PDF.
  • APP1 provides a management touch button, and when the user wants to manage the document 2, the management touch button can be triggered.
  • APP1 displays a management page.
  • the management page is shown in (a) of FIG. 7 , and the management page includes a "save to mobile phone" touch button.
  • the "save to mobile phone” touch button can be triggered. Save it locally.
  • the mobile phone pops up a floating window in the current display interface.
  • the floating window can be generated based on the attribute information of document 2, for example, the floating window includes the format icon of document 2.
  • the floating window is shown in 71 Show.
  • the floating window may also be obtained by taking a screenshot of the name of the document 2 .
  • the floating window may also be generated by intercepting part of the content in the document 2 .
  • the mobile phone searches for surrounding target devices with the sharing function enabled and/or target applications with the sharing function (for example, applications that declare android.intent.action.SEND filtering). Afterwards, the mobile phone displays a sharing prompt box, and displays the searched target device and/or target application in the displayed sharing prompt box.
  • the sharing prompt box is as shown in (b) in FIG. 8 . In this way, the user can share the document 2 based on the sharing prompt box.
  • the mobile phone may display operation prompt information near the floating window, and the operation prompt information is used to prompt the user how to operate based on the floating window.
  • the operation prompt information is "swipe to share", and the mobile phone also displays a swipe method (swipe up as shown in the figure).
  • the operation prompt information is used to indicate that the user can trigger the mobile phone to share the document 2 by sliding the floating window upward.
  • the sharing prompt box may also include copying touch buttons and/or transferring touch buttons.
  • copying the touch key can also be replaced by a "save as" touch key, and transferring the touch key can be replaced by a "copy to” touch key.
  • the mobile phone pulls up the path selector of the resource management application, so that the user can select or create a new directory.
  • the mobile phone backs up the file 2 to the specified storage space specified by the user based on the user's operation.
  • the diagram (b) in FIG. 9 the file 2 is backed up to the directory of "My Mobile Phone".
  • the transfer touch button in the sharing prompt box can be triggered.
  • the mobile phone pulls up the path selector of the resource management application, so that the user can select or create a new directory.
  • the mobile phone transfers the document 2 to the specified storage space specified by the user based on the user's operation. For example, please refer to the diagram (b) in FIG. 10 , move the document 2 to the "proof material" directory.
  • the sharing prompt box also includes a print touch button, and the print touch button in the share prompt box can be triggered when the user wants to print the document 2 .
  • the mobile phone invokes the print application to print the document 2 through the print application.
  • the mobile phone when the user wants to open the document 2, he can click on the floating window.
  • the mobile phone in response to the user's click operation on the floating window, the mobile phone opens the document 2 through the target application, for example, a word processing system (word processing system, WPS) office is used to open the document 2 .
  • WPS word processing system
  • the mobile phone in response to the user's click operation on the floating window, the mobile phone displays multiple target applications that can be used to open the document 2 .
  • the mobile phone displays the multiple target applications that can be used to open the document 2 through the application list.
  • the mobile phone opens the document 2 through the target application selected by the user. For example, when the user selects Adobe Reader, the mobile phone opens document 2 through Adobe Reader.
  • the display position of the floating window can be set according to actual needs, for example, it is displayed in the lower left corner of the current display interface of the mobile phone.
  • the display position of the floating window may also be random, which is not limited in this embodiment of the present application.
  • FIG. 12 is a schematic diagram of an application scenario according to another exemplary embodiment.
  • the APP1 in the mobile phone receives the document 3 "list of office supplies", and the format of the document 3 is excel format.
  • APP1 provides a management touch button, and when the user wants to manage the document 3, the management touch button can be triggered.
  • APP1 displays a management page. Exemplarily, the management page is shown in (a) in FIG.
  • the "save to mobile phone" touch button can be triggered. Save it locally.
  • the mobile phone When the file 3 is downloaded, the mobile phone displays a desktop card on the desktop.
  • the desktop card For example, please refer to the diagram (b) in FIG. 12 , the desktop card is shown as 121 .
  • the desktop card includes the card information of the document 3, and the card information includes the shared touch button 1211 and the attribute information of the document 3.
  • the attribute information of the document 3 may include but not limited to at least one of format, name, file size, and download time. In this way, the user can further operate the document 3 based on the desktop card.
  • the mobile phone searches for surrounding target devices with the sharing function enabled and/or target applications with the sharing function. Afterwards, the mobile phone displays a sharing prompt box, and displays the searched target device and/or target application in the displayed sharing prompt box.
  • the sharing prompt box is shown in (b) of FIG. 13 . In this way, the user can share the document 2 based on the sharing prompt box.
  • the sharing prompt box may also include copy touch buttons and/or transfer touch buttons, so that document 3 can be backed up based on copy touch buttons To the specified storage space, the document 3 can be transferred to the specified storage space based on the transfer touch key.
  • the specific implementation can be referred to above, and will not be repeated here.
  • the sharing prompt box also includes a print touch button, and the print touch button can be triggered when the user wants to print the document 3 .
  • the mobile phone invokes the printing application, so as to print the document 3 through the printing application.
  • a user may open document 3 based on a desktop card.
  • the attribute information of the document 3 displayed on the desktop card includes the icon and the name of the document 3, and when the user wants to open the document 3, he can click the icon or the name of the document 3 in the desktop card.
  • the mobile phone in response to the user's trigger operation, opens the document 3 through the target application.
  • the mobile phone in response to the user's trigger operation, opens an application list, which includes multiple target applications that can be used to open the document 3, so that the user can select a target application from the application list according to actual needs , in response to the user's selection operation, the mobile phone opens the document 3 through the target application selected by the user.
  • the card on the desktop also includes card information of at least one other document recently downloaded or opened by the mobile phone.
  • the desktop card also includes the card information of document 4 "New policy”
  • the card information of document 4 includes the share touch button and attribute information of document 4
  • the sharing touch button of the document 4 can be used to trigger the sharing of the document 4
  • the attribute information of the document 4 can be used to trigger the opening operation of the document 4.
  • the mobile phone uses the card information of document 5 in the desktop card to flush out the card information of the document with the earliest generation time, that is, Delete the card information of the document with the earliest generation time in the desktop card, and display the card information of document 5 in the first place of the desktop card.
  • the card information of document 5 flushes out the card information of document 4 , and the card information of document 5 is displayed before the card information of document 3 .
  • the user may not open the document 3 immediately, but wants to open the document 3 after a period of time. For example, after the user downloads document 3 to the local area through the mobile phone, after a few hours, the user clicks on document 3 in APP1, and in response to the user's trigger operation on document 3 in APP1, the mobile phone opens document 3.
  • the card information of document 3 in the desktop card may have been flushed out by the card information of other new documents. flush out the card information of the document with the earliest generation time, that is, redisplay the card information of document 3 in the desktop card, and display the card information of document 3 in the first place in the desktop card.
  • the specific implementation can be seen in Figure 15.
  • the desktop card also includes a viewing touch button.
  • the viewing touch button is a "more" touch button.
  • View touch buttons used to trigger access to the specified page of the resource management application.
  • the view touch button in the desktop card can be triggered.
  • the mobile phone enters the specified page of the resource management application.
  • the specified page is shown in (b) in Figure 6.
  • the specified page includes multiple resource tags, and the multiple resource tags are arranged in order of generation time from late to early. Each resource tag is used to trigger the viewing of its corresponding network resources, so that users can view more The most recently downloaded web resources in the phone.
  • FIG. 16 is a schematic diagram of a system architecture according to an exemplary embodiment, where the system architecture includes an electronic device and a configuration server.
  • the electronic device in addition to the APP installed, the electronic device mainly includes a file system, a system service module, a sharing module, a resource management module, and an interface display module.
  • the interface display module includes a UI module or a card management module.
  • the electronic device further includes a monitoring module.
  • the configuration server may be a Gateway Routing Server (GRS). The electronic device performs data communication with the configuration server through the system service module.
  • GRS Gateway Routing Server
  • the interface display module may be used to acquire the state of the message notification switch, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources.
  • the interface display module notifies the obtained state of the message notification switch to the system service module.
  • the electronic device regularly reads the target storage path corresponding to the target storage space to be monitored from the configuration server through the system service module, and the system service module obtains the status of the message notification switch from the interface display module.
  • the system service module senses whether new network resources are generated in the target storage space through the file system.
  • this embodiment of the present application refers to newly generated network resources as First web resource.
  • the file system perceives that the first network resource is generated in the target storage space, it notifies the monitoring module, and the monitoring module reports to the system service module.
  • the interface display module includes a UI module.
  • the system service module notifies the resource management module that the first network resource is generated.
  • the resource management module generates a prompt message, and the prompt message is used to provide shortcut options for operating the first network resource.
  • the resource management module After the resource management module generates the prompt message, it sends the prompt message to the UI module, so that the prompt message can be popped up through the UI module.
  • the interface display module includes a card management module.
  • the system service module notifies the resource management module that the first network resource is generated, and sends the target storage path of the first network resource to the resource management module, and the resource management module obtains the attribute information of the first network resource based on the target storage path.
  • the resource management module notifies the card management module, and the card management module calls back the attribute information of the first network resource, and generates a desktop card based on the callback attribute information. Afterwards, the card management module displays the desktop card as a prompt message.
  • the user can perform management such as sharing, backing up, transferring, opening, and printing the first network resource based on the prompt message.
  • the resource management module notifies the sharing module to perform the sharing operation.
  • the resource management module transfers the location of the first network resource.
  • the resource management module performs an open operation and the like.
  • FIG. 17 is a schematic flowchart of a method for processing network resources provided by an embodiment of the present application.
  • the method can be applied to the above-mentioned electronic device, and the method can include part or all of the following:
  • Step 1701 Obtain a first network resource through a first application in an electronic device.
  • the first application refers to an application that can be used to download network resources in the electronic device. There may be one or more first applications. When there are multiple first applications, the types of the multiple first applications may be the same or different.
  • the first applications in the electronic device include APP1, APP2, APP3, APP4, APP5, wherein APP1 , APP2, and APP3 are social applications, APP4 is a search application, and APP5 is an email.
  • the specific implementation of obtaining the first network resource through the first application in the electronic device may include: receiving the first network resource sent by the second application in other electronic devices through the first application in the electronic device, exemplary Specifically, the second application is of the same type as the first application.
  • the specific implementation of acquiring the first network resource through the first application in the electronic device may further include: searching for the first network resource from a network platform through the first application in the electronic device.
  • the first application is a browser
  • the electronic device searches for documents and the like from a network platform through the browser.
  • the above-mentioned specific implementation of obtaining the first network resource through the first application in the electronic device is only exemplary.
  • the first application may also use other methods to obtain the first network resource. This application The embodiment does not limit this.
  • Step 1702 Monitor that the target storage space stores the first network resource, and display a prompt message.
  • the target storage space is the resource storage space when the first application downloads the network resource.
  • the prompt message is used to provide shortcut options for operating the first network resource.
  • each network resource in the target storage space may be arranged according to priority, and the priority of each network resource may be determined according to at least one of the download time, opening time, and opening frequency of the corresponding network resource, This embodiment of the present application does not limit it.
  • the target storage path corresponding to the target storage space is obtained by the electronic device from the configuration server.
  • the electronic device periodically obtains the resource storage path to be monitored from the configuration server to obtain the target storage path. In this way, timing acquisition can enable the electronic device to acquire the latest target storage path.
  • the number of target storage paths may be one or more. If there are multiple target storage paths, each target storage path corresponds to a first application.
  • the first application includes a WX application and a browser, wherein the target storage path of the WX application is /storage/emulated/0/Download/WX, and the target storage path of the browser is /storage/emulated/0/Download/ Browser, that is, there are two target storage paths at this time, namely /storage/emulated/0/Download/WX and /storage/emulated/0/Download/Browser.
  • the first web resource is a document.
  • the electronic device monitors the target storage space through the file system, so as to monitor whether a document is generated in the target storage space.
  • the electronic device If the first network resource is stored in the target storage space, it means that the electronic device has downloaded the first network resource through the first application. In this case, the user may have a need to manage the first network resource. Therefore, the electronic device Display a prompt message.
  • the first network resource is a document as an example.
  • the electronic device monitors the target storage space through the file system, and when the target storage space stores documents, it notifies the monitoring module in the electronic device, and the monitoring module notifies the system service module.
  • the system service module notifies the resource management module.
  • the resource management module generates a prompt message. Afterwards, the resource management module sends the generated prompt message to the interface display module, and the interface display module displays the prompt message in the electronic device. In this way, the user can quickly manage the document based on the prompt message.
  • the electronic device before listening to the target storage space, the electronic device obtains the status of the message notification switch.
  • the message notification switch When the message notification switch is turned on, perform the operation of monitoring the target storage space.
  • the electronic device acquires a message to notify the state of the switch through the system service module.
  • the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module.
  • the resource management module After receiving the notification from the system service module, the resource management module generates a prompt message, and the resource management module sends the prompt message to the interface display module.
  • the interface display module displays a prompt message.
  • the electronic device acquires a message to notify the state of the switch through the system service module.
  • the system service module monitors that the target storage space stores the first network resource, notifies the resource management module, and sends the target storage path to the resource management module.
  • the resource management module acquires attribute information of the first network resource based on the target storage path.
  • the resource management module notifies the interface display module, and the interface display module calls back the attribute information and generates a prompt message based on the attribute information.
  • the interface display module displays a prompt message. For example, when the prompt message is a desktop card, this method can be used.
  • the shortcut option provided in the prompt message is used to directly transfer the first network resource to the target application or target device, and/or, the shortcut option is used to directly store the first network resource from the target storage space to the designated storage space.
  • directly transmitting the first network resource to the target application or the target device means that the first network resource can be transmitted to the target application or the target device without multiple operations by the user.
  • directly storing the first network resource from the target storage space to the specified storage space refers to storing the first network resource from the target storage space to the specified storage space without multiple operations by the user.
  • the message body of the prompt message is triggerable, and the message body of the prompt message is used to trigger a management method for the first network resource; and/or, the prompt message includes at least one touch button, Each touch button in the at least one touch button is used to trigger a management method for the first network resource. That is, the shortcut option provided by the prompt message may be a message body and/or a touch button of the prompt message.
  • different management operations on the first network resource may be triggered through different triggering manners on the message body. For example, a swipe on the message body triggers a sharing operation on the first network resource, and a click on the message body triggers an opening operation on the first network resource.
  • the prompt message includes at least one of the share shortcut option, open shortcut option, print shortcut option, share
  • the shortcut option is used to trigger directly sharing the first network resource to the target application or target device
  • the open shortcut option is used to trigger directly sending the first network resource to the target application for opening
  • the print shortcut option is used to trigger directly sharing the first network resource Send to target application for printing.
  • the prompt message when the shortcut option is used to directly store the first network resource from the target storage space to the specified storage space, the prompt message includes at least one of the copy shortcut option, the transfer shortcut option, and the copy shortcut option It is used to trigger the direct copying of the first network resource from the target storage space to the designated storage space, and the transfer shortcut option is used to trigger the direct transfer of the first network resource from the target storage space to the designated storage space.
  • the prompt message when the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, and transfer shortcut options, the prompt message includes multi-level prompt menus, share shortcut options, open shortcut options, Print shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through a multi-level prompt menu.
  • the prompt message includes a two-level prompt menu
  • the first-level prompt menu is the floating window included in Figure 8 (a)
  • the second-level prompt menu is included in Figure 8 (b) Share prompt box.
  • a view operation is detected based on the prompt message, and a resource management application is called, and the first network resource is displayed in the resource management application.
  • the first network resource is displayed on a designated page of the resource management application.
  • the prompt message is any one of a desktop card, a floating window, and a prompt box.
  • the prompt message includes prompt information of multiple network resources.
  • the prompt information of each network resource is used to provide a quick entry for the user to manage each network resource.
  • the prompt information of multiple network resources included in the prompt message is updated according to resource download time.
  • the electronic device may delete the prompt information of the network resource displayed earliest in the prompt message, and display the prompt information of the network resource to be displayed on top of the prompt message, In order to update the prompt information of the network resource in the prompt message.
  • the opening event of the first network resource is detected, and the prompt information of the first network resource is redisplayed in the prompt message.
  • the prompt information of multiple network resources included in the prompt message is updated according to the resource download time, in one case, the prompt information of the first network resource in the prompt message may be deleted.
  • the electronic device detects that the first network resource is opened, it may redisplay the prompt information of the first network resource in the prompt message, so that the user can quickly manage the first network resource again based on the prompt message.
  • the electronic device performs the operation of displaying the prompt message if the first network resource is stored in the target storage path, before displaying the prompt message.
  • the message prompt condition may be set according to actual requirements.
  • the message prompt condition may be: the format of the first network time is a preset format, for example, the preset format may include but not limited to doc, docx, xls, xlsx, pdf, ppt, pptx, zip, alz, rar .
  • a message prompt may be performed when it is detected that a document is generated. Therefore, if the first network resource is stored in the target storage space, the electronic device can determine whether the first network resource is a document in a preset format. If the first network resource is a document in a pre-formatted format, a prompt message is displayed. In this way, the electronic device can be monitored and prompted in a targeted manner.
  • the first network resource is obtained through the first application in the electronic device, and the first network resource is stored in the target storage space when the first application downloads the network resource, indicating that the first network resource is downloaded through the first application.
  • network resources a prompt message is displayed.
  • the prompt message is used to provide shortcut options for operating the first network resource.
  • the shortcut option is used to directly transfer the first network resource to the target application or the target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to the specified storage space. In this way, it is convenient for the user to quickly manage the first network resource, avoiding the need for the user to perform multiple operations to enter the actual storage location of the first network resource for management, thereby improving the management efficiency of the network resource.
  • the electronic device may generate prompt messages in different forms for prompting.
  • prompting methods are introduced respectively through the following embodiments.
  • FIG. 18 is a flowchart of a method for processing network resources according to another exemplary embodiment.
  • the method can be applied to the above-mentioned electronic device, and the introduction will be made here by taking the method executed by a module included in the electronic device as an example.
  • the method may include some or all of the following:
  • the system service module acquires the status of the message notification switch.
  • the message notification switch is set in the resource management application.
  • the system service module acquires the status of the message notification switch, and correspondingly enables or disables the monitoring function of downloading network resources according to the status of the message notification switch. For example, when the message notification switch is turned on, the monitoring function of downloading network resources is enabled, and when the message notification switch is turned off, the monitoring function of downloading network resources is turned off or not enabled.
  • the target storage path corresponding to the target storage space is periodically obtained by the system service module from the configuration server. It should be noted here that there is no sequential execution sequence between the process of obtaining the target storage path and other operations performed by the system service module.
  • the system service module does not perform the monitoring operation, and the monitoring function of downloading network resources is not enabled at this time, that is, the processing method for network resources provided by the embodiment of the present application is not executed .
  • the system service module can continue to monitor the state of the message notification switch during the process of monitoring the target storage space. monitoring function.
  • the monitoring function of the download network resources involved in the embodiment of the present application is turned on or off by setting the state of the message notification switch, so that the user can turn on or off the message notification switch according to actual needs, thereby turning on or off the download network resource.
  • the resource monitoring function improves the user experience.
  • the above is described by taking the state of the message notification switch obtained by the system service module before monitoring the target storage space as an example.
  • the step of obtaining the state of the message notification switch is optional, that is, the state of the message notification switch may not be obtained, and the system service module directly performs the operation of monitoring the target storage space. This is not limited.
  • the system service module monitors that the first network resource is stored in the target storage space, and notifies the resource management module.
  • the system service module sends the resource management module Send a notification indicating that a new document is generated in the target bucket.
  • the resource management module generates a prompt box.
  • the resource management module generates a prompt message after receiving the notification from the system service module.
  • the prompt message is a prompt box as an example for illustration.
  • the resource management module sends the generated prompt box to the UI module.
  • the resource management module sends the prompt message to the interface display module.
  • the interface display module is a UI module as an example for illustration.
  • the UI module displays a prompt box.
  • the UI module displays the prompt box as a prompt message on the current display interface of the electronic device.
  • the display effect is as shown in figure (b) of FIG. 3 .
  • the prompt box includes at least one of a share shortcut option and a transfer shortcut option.
  • Tooltips respond to the following events:
  • the resource management module in response to the trigger operation of the share shortcut option (such as the share trigger button in (b) of FIG. 3 ), the resource management module notifies the share module.
  • the sharing module searches the electronic device for a target application with a sharing function and a target device with a sharing function enabled.
  • the sharing module displays a sharing prompt box, as shown in Figure 4 (b), the sharing prompt box includes the searched target application and/or target device, in response to the target application and/or target device included in the sharing prompt box Or the selection operation of the target device, the resource management module obtains the first network resource from the target storage space, and sends the first network resource to the target application or target device selected by the selection operation. That is, based on the sharing prompt box, the user can quickly share the first network resource to the target device or target application in the sharing prompt box.
  • the resource management module in response to the trigger operation of the transfer shortcut option, invokes a path selector to obtain path content through the path selector.
  • the resource management module displays the path management interface based on the path content.
  • the resource management module determines the specified storage space selected by the path selection operation.
  • the resource management module obtains the first network resource from the target storage space, and stores the first network resource in the designated storage space.
  • the resource management module deletes the first network resource stored in the target storage space.
  • the user can select a directory or create a new target, so that the first network resource can be transferred to the designated storage space.
  • the network resources downloaded by different first applications can be collected under a unified storage path, which is convenient for users to view and manage.
  • the tooltip is triggerable.
  • the resource management application is used to manage the network resources downloaded by the first application in the electronic device. At least one resource tag is generated, each resource tag is used to trigger the opening operation of the network resource corresponding to each resource tag, and the at least one resource tag is arranged in order of generation time.
  • the preset duration can be set according to actual needs.
  • the preset time period may be 1 month, and in this case, before the current time and within the preset time period from the current time refers to within the nearest month.
  • the resource management application is the aforementioned file management application
  • the specified page is the latest tab in the file management application.
  • the prompt box can be clicked.
  • the electronic device starts the file management application, and jumps to the recent tab of the file management application, where the recent page includes the resource tag of the most recently downloaded document. Users can trigger the resource tab to view the corresponding document.
  • the electronic device enters the specified page of the resource management application, so that the user can conveniently view the recently downloaded files.
  • the electronic device may no longer display the prompt box.
  • the first network resource is obtained through the first application, the first network resource is stored in the monitoring target storage space, and a prompt box is popped up to prompt the user, and the user can check the first network resource based on the prompt box Quick management is performed, avoiding the need for the user to enter the actual storage location of the first network resource through multiple manual operations for management, thereby improving the efficiency of network resource management.
  • FIG. 19 is a flowchart showing a method for processing network resources according to another exemplary embodiment.
  • the method can be applied to the above-mentioned electronic device, and the introduction will be made here by taking the method executed by a module included in the electronic device as an example.
  • the method may include some or all of the following:
  • the system service module obtains the state of the message notification switch.
  • the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module.
  • steps 1901 to 1903 reference may be made to the implementation of steps 1801 to 1803 above, which will not be repeated here.
  • the resource management module generates a floating window.
  • the resource management module generates a prompt message after receiving the notification from the system service module.
  • the prompt message is a floating window as an example for illustration.
  • the floating window includes attribute information of the first network resource, and the attribute information includes but not limited to name, format, and resource size.
  • the floating window is used to trigger sharing or opening of the first network resource.
  • the generated floating window includes a PDF icon.
  • the floating window includes information such as the name of the document, which is not limited in this embodiment of the present application.
  • the resource management module sends the floating window to the UI module.
  • the resource management module sends the prompt message to the interface display module.
  • the interface display module is a UI module as an example for illustration.
  • the UI module displays a floating window.
  • the UI module displays the floating window as a prompt message on the current display interface of the electronic device.
  • the floating window responds to the following events:
  • the electronic device in response to the swipe operation of the floating window, executes the sharing operation through the resource management module and the sharing module.
  • the sharing operation through the resource management module and the sharing module.
  • the sharing prompt box also includes a copy shortcut option and/or a transfer shortcut option
  • the copy shortcut option is used to trigger the copying of the first network resource
  • the transfer shortcut option is used to trigger the position transfer of the first network resource .
  • the resource management module in response to the trigger operation of the copy shortcut option, invokes the path selector to obtain path content through the path selector.
  • the resource management module displays the path management interface based on the path content.
  • the resource management module determines the specified storage space selected by the path selection operation.
  • the resource management module obtains the first network resource from the target storage space, and copies the first network resource to the specified storage space.
  • the user can select a directory or create a new target, so that the first network resource can be backed up to the designated storage space.
  • the network resources downloaded by different first applications can be collected under a unified storage path, which is convenient for users to view and manage.
  • the sharing prompt box also includes a printing shortcut option.
  • the resource management module determines that the printing application in the electronic device is the target application.
  • the resource management module acquires the first network resource from the target storage space, and sends the first network resource to the printing application, so as to print the first network resource through the printing application. That is, the embodiment of the present application may also support fast printing of the first network resource.
  • the floating window is clickable. After the click operation on the floating window is detected, it is determined that the trigger operation on opening the shortcut option is detected. That is, the opening shortcut option at this time is the floating window itself.
  • the resource management module determines a target application that can be used to open the first network resource from applications included in the electronic device according to the format attribute of the first network resource.
  • the resource management module obtains the first network resource from the target storage space, and sends the first network resource to the target application, so as to open the first network resource through the target application.
  • the number of target applications that can be used to open the first network resource in the electronic device may be one.
  • the target application is WPS office.
  • the resource management module calls the WPS office, sends the document to the WPS office, and opens the document through the WPS office.
  • the number of target applications that can be used to open the first network resource in the electronic device may be multiple.
  • an application list is displayed, the application list includes multiple target applications that can be used to open the first network resource, and the application list is used to select a target application to open the first network resource.
  • the resource management module displays multiple target applications that can be used to open the first network resource through the application list.
  • the user may select a target application from multiple target applications according to actual needs based on the application list.
  • the resource management module opens the first network resource through the target application selected by the user. In this way, by presenting multiple target applications to the user, the user can select a target application to open the first network resource according to actual needs, thereby improving user experience.
  • the first application receives the first network resource, monitors the target storage space to store the first network resource, pops up a floating window to prompt the user, and allows the user to view the first network resource based on the floating window Quick management is performed, avoiding the need for the user to enter the actual storage location of the first network resource through multiple operations for management, and improves the efficiency of network resource management.
  • FIG. 20 is a flowchart of a method for processing network resources according to another exemplary embodiment.
  • the method can be applied to the above-mentioned electronic device, and the introduction will be made here by taking the method executed by a module included in the electronic device as an example.
  • the method may include some or all of the following:
  • the system service module acquires the state of the message notification switch.
  • the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module.
  • system service module when the system service module notifies the resource management module that the first network resource is generated, it transmits the target storage path of the first network resource to the resource management module.
  • the resource management module acquires attribute information of the first network resource.
  • the resource management module acquires attribute information of the first network resource based on the target storage path.
  • the resource management module notifies the card management module.
  • the card management module generates desktop cards.
  • FIG. 21 is a flowchart showing an interaction between a resource management module and a card management module according to an exemplary embodiment.
  • the card management module includes a first management unit and a second management unit, wherein the first management unit determines the display position of the desktop card to be generated after receiving the notification from the resource management module, and the display position can be set according to actual needs. For example, the determined display position is used to display the desktop card on top.
  • the second management unit obtains the attribute information of the first network resource from the resource management module through callback, and performs information layout based on the attribute information to generate a desktop card to be displayed.
  • the card management module displays desktop cards.
  • the card management module displays the desktop card on top of the desktop of the electronic device through the first management unit. In this way, the user can further manage the first network resource based on the desktop card.
  • the desktop card includes card information of the first network resource, and the card information includes attribute information of the first network resource and share shortcut options, and the attribute information of the first network resource is used to trigger opening of the first network resource Operation, the sharing shortcut option is used to trigger the sharing of the first network resource.
  • Table cards respond to the following events:
  • the electronic device in response to the trigger operation of the sharing shortcut option, performs a sharing operation through the resource management module and the sharing module, and its specific implementation can refer to the embodiment shown in FIG. 18 , which will not be repeated here.
  • the share prompt box includes at least one of a copy shortcut option, a transfer shortcut option, and a print shortcut option
  • the copy shortcut option is used to trigger the copying of the first network resource
  • the transfer shortcut option is used to trigger the first network resource
  • the location of the resource is transferred
  • the printing shortcut option is used to trigger the printing of the first network resource.
  • the user is provided with a copy shortcut option and/or a transfer shortcut option through the sharing prompt box, so that the user can quickly copy or transfer the first network resource to a well-known designated storage space according to actual needs, that is, for the user to control the network resource Unified management provides convenience.
  • the user is provided with a quick printing option through the sharing prompt box, so that the user can quickly print according to actual needs.
  • the desktop card also includes the card information of the second network resource opened or downloaded at the time point before and closest to the download time of the first network resource under the target storage path.
  • the first network resource The card information of the resource is ranked before the card information of the second network resource. That is, the desktop card not only includes the first network resource, but also includes the second network resource opened or downloaded before the download of the first network resource.
  • the card management module may update the card information in the desktop card. Specifically, the card information of the third network resource is displayed at the top, and the card information of the second network resource at the bottom is deleted, that is, the card information of the second network resource is flushed out by using the card information of the third network resource. In this way, by dynamically updating the desktop card, the card information of the latest downloaded or opened network resource in the electronic device can be provided to the user.
  • card information including two network resources in the desktop card.
  • card information of more than two network resources may be included in the desktop card.
  • the embodiment of the present application There is no limit to this.
  • the card information of the first network resource in the desktop card is deleted, if an opening event of the first network resource is detected, the card information of the first network resource is redisplayed in the desktop card.
  • the card information in the desktop card can be updated dynamically, in one case, the card information of the first network resource may be deleted.
  • the card management module may re-display the card information of the first network resource on the desktop card, and the first network resource The card information of the resource is displayed at the top of the desktop card.
  • the first network resource is opened by the target application.
  • the electronic device when detecting a user's trigger operation on the name or icon of the first network resource, the electronic device opens the first network resource through a default target application, for example, the target application is WPS office.
  • an application list is displayed, the application list includes multiple target applications that can be used to open the first network resource, and the application list is used to select to open the first network resource.
  • the resource's target application is displayed, the application list includes multiple target applications that can be used to open the first network resource, and the application list is used to select to open the first network resource. The resource's target application.
  • the electronic device displays a plurality of target applications that can be used to open the first network resource through an application list.
  • the user can select a target application from multiple target applications according to actual needs based on the application list.
  • the electronic device opens the first network resource through the target application selected by the user. In this way, by presenting multiple target applications to the user, the user can select a target application to open the first network resource according to actual needs, thereby improving user experience.
  • the electronic device may open the second network resource in the same manner as the first network resource.
  • the desktop card also includes a view shortcut option, and the view shortcut option is used to trigger entering a specified page of the resource management application.
  • the resource management application is the aforementioned file management application
  • the specified page is the latest tab in the file management application.
  • the user is provided with viewing shortcut options through the desktop card, so that the user can quickly view the recently downloaded or opened network resources in the electronic device through the viewing shortcut options, which improves user experience.
  • the card management module detects that the display time of the desktop card has exceeded a preset time since the generation time, the desktop card is removed from the desktop of the electronic device.
  • the preset duration can be set according to actual needs. That is, after the desktop card is displayed for a period of time, the desktop card may not be displayed any more.
  • the card management module detects that the display time of the desktop card has exceeded a preset time since the last update time, the desktop card is removed from the desktop of the electronic device. That is, since the card information in the desktop card is dynamically updated, in one case, when the card information in the desktop card is no longer updated and the display duration of the desktop card exceeds the preset duration, it means that the card information in the desktop card It has been displayed for a long time, and the desktop card can no longer be displayed at this time.
  • the electronic device destroys the current task of monitoring the target storage space.
  • the first network resource is obtained through the first application, the first network resource is stored in the monitoring target storage space, and the user is prompted by popping up the desktop card, and the user can perform the first network resource based on the desktop card.
  • Quick management avoids the need for the user to enter the actual storage location of the first network resource through multiple operations for management, and improves the efficiency of network resource management.
  • FIG. 22 is a structural block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may be used to execute the method for processing network resources. For ease of description, only the parts related to the embodiment of the present application are shown.
  • an electronic device 2210 includes: a touch screen 2201, a memory 2202, one or more processors 2203, a plurality of application programs 2204, and one or more programs 2205; wherein the one or more programs 2205 are stored In the memory 2202; the one or more processors 2203 are used to: when executing the one or more programs 2205:
  • the target storage space is the resource storage space when the first application downloads the network resource, and the prompt message is used to provide information on the first network resource.
  • the shortcut option is used to directly transfer the first network resource to the target application or target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to Specify storage space.
  • the prompt message when the shortcut option is used to directly transmit the first network resource to the target application or target device, the prompt message includes share shortcut option, open shortcut option, print shortcut option At least one of the options, the sharing shortcut option is used to trigger directly sharing the first network resource to the target application or target device, and the opening shortcut option is used to trigger directly sending the first network resource Opening the target application, the printing shortcut option is used to trigger directly sending the first network resource to the target application for printing; the shortcut option is used to directly send the first network resource from the In the case where the target storage space is stored in the specified storage space, the prompt message includes at least one of a copy shortcut option and a transfer shortcut option, and the copy shortcut option is used to trigger the direct transfer of the first network resource from The target storage space is copied to the specified storage space, and the transfer shortcut option is used to trigger the direct transfer of the first network resource from the target storage space to the specified storage space.
  • the electronic device includes a resource management module and a sharing module; the prompt message includes the sharing shortcut option, and the one or more processors 2203 are further configured to:
  • the resource management module acquires the first network resource from the target storage space in response to the selection operation of the target application and/or target device included in the sharing prompt box, and stores the first network resource The resource is sent to the target application or target device selected by the selection operation.
  • the electronic device includes a resource management module; the prompt message includes the opening shortcut option, and the one or more processors 2203 are further configured to:
  • the resource management module responds to the trigger operation of the opening shortcut option, and according to the format attribute of the first network resource, determines the target that can be used to open the first network resource from the applications included in the electronic device application;
  • the electronic device includes a resource management module; the prompt message includes the printing shortcut option, and the one or more processors 2203 are further configured to:
  • the electronic device includes a resource management module; the prompt message includes a transfer shortcut option, and the one or more processors 2203 are further configured to:
  • the resource management module deletes the first network resource stored in the target storage space.
  • the electronic device includes a resource management module; the prompt message includes a copy shortcut option, and the one or more processors 2203 are further configured to:
  • the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, transfer shortcut options
  • the prompt message includes a multi-level prompt menu
  • the share shortcut options, open shortcut options Options, printing shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through the multi-level prompt menu.
  • the prompt message is any one of a desktop card, a floating window, and a prompt box.
  • the prompt message includes prompt information of multiple network resources.
  • the prompt information of multiple network resources included in the prompt message is updated according to resource download time.
  • the one or more processors 2203 are further configured to:
  • the electronic device includes a system service module, a resource management module, and an interface display module; the one or more processors 2203 are used to:
  • the state of the message notification switch is obtained through the system service module, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources;
  • the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module;
  • the prompt message is displayed through the interface display module.
  • the one or more processors 2203 are further configured to:
  • a viewing operation is detected based on the prompt message, and a resource management application is called, where the resource management application displays the first network resource.
  • the first network resource is obtained through the first application in the electronic device, and the first network resource is stored in the target storage space when the first application downloads the network resource, indicating that the first network resource is downloaded through the first application.
  • network resources a prompt message is displayed.
  • the prompt message is used to provide shortcut options for operating the first network resource.
  • the shortcut option is used to directly transfer the first network resource to the target application or the target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to the designated storage space. In this way, it is convenient for the user to quickly manage the first network resource, avoiding the need for the user to perform multiple operations to enter the actual storage location of the first network resource for management, thereby improving the management efficiency of the network resource.
  • the disclosed devices and methods may be implemented in other ways.
  • the system embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium.
  • the computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the computer-readable medium may at least include: any entity or device capable of carrying computer program codes to electronic equipment, recording media, computer memory, read-only memory (read-only memory, ROM), random access memory (random access) memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • entity or device capable of carrying computer program codes to electronic equipment, recording media, computer memory, read-only memory (read-only memory, ROM), random access memory (random access) memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • U disk mobile hard disk, magnetic disk or optical disk, etc.
  • computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A network resource processing method, an electronic device and a computer-readable storage medium, which relate to the technical field of terminals. The method comprises: obtaining a first network resource by means of a first application in an electronic device (1701). A target storage space storing the first network resource is monitored, and a prompt message is displayed, wherein the target storage space is a resource storage space when the first application downloads a network resource, and the prompt message is used to provide a shortcut option for operating the first network resource (1702). The shortcut option is used to directly transmit the first network resource to a target application or a target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to a specified storage space. According to the method, a prompt message is displayed so that a user quickly manages a first network resource on the basis of the prompt message, which avoids the need for the user to perform multiple operations for management after entering the actual storage location of the first network resource. Therefore, the management efficiency of network resources may be increased.

Description

网络资源的处理方法、电子设备及计算机可读存储介质Method for processing network resources, electronic device, and computer-readable storage medium
本申请要求于2021年6月17日提交到国家知识产权局、申请号为202110675108.0、申请名称为“网络资源的处理方法、电子设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the State Intellectual Property Office on June 17, 2021, with the application number 202110675108.0, and the application name is "method for processing network resources, electronic equipment, and computer-readable storage medium". The entire contents are incorporated by reference in this application.
技术领域technical field
本申请涉及终端技术领域,特别涉及一种网络资源的处理方法、电子设备及计算机可读存储介质。The present application relates to the technical field of terminals, and in particular to a method for processing network resources, electronic equipment, and a computer-readable storage medium.
背景技术Background technique
用户在使用电子设备中的应用下载网络资源时,通常会将所下载的网络资源自动存储到该应用对应的目标存储空间中。例如,当在浏览器中下载文档时会自动将文档存储在该浏览器对应的目标存储空间中。When a user downloads a network resource using an application in an electronic device, the downloaded network resource is usually automatically stored in a target storage space corresponding to the application. For example, when a document is downloaded in a browser, the document will be automatically stored in the corresponding target storage space of the browser.
通常情况下,基于用户的需求,电子设备可能需要对应用所下载的网络资源进行分享、复制、转移之类的管理。在相关技术中,当需要对网络资源进行管理时,一般需要用户根据资源存储路径多次点击,进入网络资源的实际存储位置,之后才能进行管理。如此操作较为繁琐,进而导致网络资源的管理效率较差。Usually, based on the needs of the user, the electronic device may need to manage the network resources downloaded by the application such as sharing, copying, and transferring. In related technologies, when network resources need to be managed, the user generally needs to click multiple times according to the resource storage path to enter the actual storage location of the network resources before management can be performed. Such operations are cumbersome, which in turn leads to poor management efficiency of network resources.
发明内容Contents of the invention
本申请提供一种网络资源的处理方法、电子设备及计算机可读存储介质,解决了现有技术中电子设备对网络资源的管理效率较差的问题。The present application provides a method for processing network resources, an electronic device, and a computer-readable storage medium, which solves the problem of poor management efficiency of network resources by electronic devices in the prior art.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:
第一方面,提供一种网络资源的处理方法,所述方法包括:In a first aspect, a method for processing network resources is provided, the method comprising:
通过所述电子设备中的第一应用获取第一网络资源;Obtaining a first network resource through a first application in the electronic device;
监听目标存储空间存储有所述第一网络资源,显示提示消息,所述目标存储空间是所述第一应用下载网络资源时的资源存储空间,所述提示消息用于提供对所述第一网络资源进行操作的快捷选项;Listen to the first network resource stored in the target storage space, and display a prompt message, the target storage space is the resource storage space when the first application downloads the network resource, and the prompt message is used to provide information on the first network resource. Shortcut options for resource operations;
其中,所述快捷选项用于直接将所述第一网络资源传输给目标应用或者目标设备,和/或,所述快捷选项用于直接将所述第一网络资源从所述目标存储空间存储至指定存储空间。Wherein, the shortcut option is used to directly transfer the first network resource to the target application or target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to Specify storage space.
值得一提的是,在检测到第一应用下载第一网络资源的情况下显示提示消息,使得用户基于提示消息能够对第一网络资源进行快捷管理,避免需要用户多次操作进入第一网络资源的实际存储位置后进行管理,从而可以提高网络资源的管理效率。It is worth mentioning that when it is detected that the first application has downloaded the first network resource, a prompt message is displayed, so that the user can quickly manage the first network resource based on the prompt message, avoiding the need for the user to perform multiple operations to enter the first network resource Manage after the actual storage location of the network, which can improve the management efficiency of network resources.
作为本申请的一个示例,在所述快捷选项用于直接将所述第一网络资源传输给所述目标应用或者目标设备的情况下,所述提示消息包括分享快捷选项、打开快捷选项、打印快捷选项中的至少一项,所述分享快捷选项用于触发直接将所述第一网络资源分享给所述目标应用或者目标设备,所述打开快捷选项用于触发直接将所述第一网络资源发送给所述目标应用进行打开,所述打印快捷选项用于触发直接将所述第一网络资 源发送给所述目标应用进行打印;在所述快捷选项用于直接将所述第一网络资源从所述目标存储空间存储至所述指定存储空间的情况下,所述提示消息包括复制快捷选项、转移快捷选项中的至少一项,所述复制快捷选项用于触发直接将所述第一网络资源从所述目标存储空间拷贝至所述指定存储空间,所述转移快捷选项用于触发直接将所述第一网络资源从所述目标存储空间转移至所述指定存储空间。As an example of the present application, when the shortcut option is used to directly transmit the first network resource to the target application or target device, the prompt message includes share shortcut option, open shortcut option, print shortcut option At least one of the options, the sharing shortcut option is used to trigger directly sharing the first network resource to the target application or target device, and the opening shortcut option is used to trigger directly sending the first network resource Opening the target application, the printing shortcut option is used to trigger directly sending the first network resource to the target application for printing; the shortcut option is used to directly send the first network resource from the In the case where the target storage space is stored in the specified storage space, the prompt message includes at least one of a copy shortcut option and a transfer shortcut option, and the copy shortcut option is used to trigger the direct transfer of the first network resource from The target storage space is copied to the specified storage space, and the transfer shortcut option is used to trigger the direct transfer of the first network resource from the target storage space to the specified storage space.
如此,通过提供分享快捷选项、打开快捷选项、打印快捷选项中的至少一项,和/或,提供复制快捷选项、转移快捷选项中的至少一项,可以使得用户能够对第一网络资源进行分享、打开、打印、复制、转移之类的快捷管理,提高了用户体验。In this way, by providing at least one of the sharing shortcut option, opening the shortcut option, and printing shortcut option, and/or providing at least one of the copy shortcut option and the transfer shortcut option, the user can share the first network resource , open, print, copy, transfer and other shortcut management, which improves the user experience.
作为本申请的一个示例,所述电子设备包括资源管理模块和分享模块;所述提示消息包括所述分享快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:As an example of the present application, the electronic device includes a resource management module and a sharing module; the prompt message includes the sharing shortcut option, and the monitoring target storage space stores the first network resource; after the prompt message is displayed, Also includes:
响应于所述分享快捷选项的触发操作,所述资源管理模块通知所述分享模块;In response to the trigger operation of the sharing shortcut option, the resource management module notifies the sharing module;
所述分享模块接收所述资源管理模块的通知后,搜索所述电子设备中具备分享功能的目标应用以及开启分享功能的目标设备;After receiving the notification from the resource management module, the sharing module searches the electronic device for a target application with a sharing function and a target device with a sharing function enabled;
所述分享模块显示分享提示框,所述分享提示框中包括搜索到的目标应用和/或目标设备;The sharing module displays a sharing prompt box, and the sharing prompt box includes the searched target application and/or target device;
响应于对所述分享提示框中包括的目标应用和/或目标设备的选择操作,所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述选择操作所选择的目标应用或者目标设备。In response to a selection operation of a target application and/or a target device included in the sharing prompt box, the resource management module acquires the first network resource from the target storage space, and stores the first network resource and sent to the target application or target device selected by the selection operation.
如此,通过分享快捷模块与资源管理模块的交互,使得电子设备为用户搜索具备分享功能的目标应用和/或开启分享功能的目标设备,并通过分享提示框展示搜索到的目标应用和/或目标设备,以便于用户可以将第一网络资源进行快速分享,达到分享的目的。In this way, through the interaction between the sharing shortcut module and the resource management module, the electronic device searches for the target application with the sharing function and/or the target device with the sharing function enabled for the user, and displays the searched target application and/or target through the sharing prompt box equipment so that users can quickly share resources on the first network to achieve the purpose of sharing.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括所述打开快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:As an example of the present application, the electronic device includes a resource management module; the prompt message includes the opening shortcut option, and the monitoring target storage space stores the first network resource; after the prompt message is displayed, it further includes:
响应于所述打开快捷选项的触发操作,所述资源管理模块根据所述第一网络资源的格式属性,从所述电子设备包括的应用中确定能够用于打开所述第一网络资源的目标应用;In response to the trigger operation of the open shortcut option, the resource management module determines, from the applications included in the electronic device, a target application that can be used to open the first network resource according to the format attribute of the first network resource ;
所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述目标应用,以通过所述目标应用打开所述第一网络资源。The resource management module obtains the first network resource from the target storage space, and sends the first network resource to the target application, so as to open the first network resource through the target application.
如此,通过资源管理模块确定能够打开第一网络资源的目标应用,从而将第一网络资源发送给目标应用打开,从而达到打开的目的。In this way, the resource management module determines the target application that can open the first network resource, so as to send the first network resource to the target application to open, so as to achieve the purpose of opening.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括所述打印快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:As an example of the present application, the electronic device includes a resource management module; the prompt message includes the printing shortcut option, and the monitoring target storage space stores the first network resource; after the prompt message is displayed, it further includes:
响应于所述打印快捷选项的触发操作,所述资源管理模块确定所述电子设备中的打印应用为所述目标应用;In response to the trigger operation of the printing shortcut option, the resource management module determines that the printing application in the electronic device is the target application;
所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一 网络资源发送给所述打印应用,以通过所述打印应用打印所述第一网络资源。The resource management module acquires the first network resource from the target storage space, and sends the first network resource to the printing application, so as to print the first network resource through the printing application.
如此,通过资源管理模块确定打印应用,并将第一网络资源发送给打印应用,以通过打印应用对第一网络资源进行打印,从而达到打印的目的。In this way, the print application is determined by the resource management module, and the first network resource is sent to the print application, so that the print application can print the first network resource, thereby achieving the purpose of printing.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括转移快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:As an example of the present application, the electronic device includes a resource management module; the prompt message includes a transfer shortcut option, and the listening target storage space stores the first network resource; after the prompt message is displayed, it further includes:
响应于所述转移快捷选项的触发操作,所述资源管理模块调用路径选择器,以通过所述路径选择器获取路径内容;In response to the trigger operation of the transfer shortcut option, the resource management module calls a path selector to obtain path content through the path selector;
所述资源管理模块基于所述路径内容显示路径管理界面;The resource management module displays a path management interface based on the path content;
响应于基于所述路径管理界面输入的路径选择操作,所述资源管理模块确定所述路径选择操作所选择的指定存储空间;In response to a path selection operation input based on the path management interface, the resource management module determines a designated storage space selected by the path selection operation;
所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源存储至所述指定存储空间;The resource management module obtains the first network resource from the target storage space, and stores the first network resource in the designated storage space;
所述资源管理模块将所述目标存储空间中存储的第一网络资源删除。The resource management module deletes the first network resource stored in the target storage space.
如此,通过资源管理器调用路径选择器,以获取路径内容,从而为用户显示路径管理界面,便于用户基于路径管理界面,可以选择或新建目标。电子设备基于用户的操作,将第一网络资源转移至指定存储空间,从而达到转移的目的。In this way, the path selector is invoked by the resource manager to obtain the path content, so as to display the path management interface for the user, so that the user can select or create a new target based on the path management interface. Based on the operation of the user, the electronic device transfers the first network resource to the designated storage space, so as to achieve the purpose of transfer.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括复制快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:As an example of the present application, the electronic device includes a resource management module; the prompt message includes a copy shortcut option, and the monitoring target storage space stores the first network resource; after the prompt message is displayed, it further includes:
响应于所述复制快捷选项的触发操作,所述资源管理模块调用路径选择器,以通过所述路径选择器获取路径内容;In response to the trigger operation of the copy shortcut option, the resource management module invokes a path selector to obtain path content through the path selector;
所述资源管理模块基于所述路径内容显示路径管理界面;The resource management module displays a path management interface based on the path content;
响应于基于所述路径管理界面输入的路径选择操作,所述资源管理模块确定所述路径选择操作所选择的指定存储空间;In response to a path selection operation input based on the path management interface, the resource management module determines a designated storage space selected by the path selection operation;
所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源拷贝至所述指定存储空间。The resource management module obtains the first network resource from the target storage space, and copies the first network resource to the specified storage space.
如此,通过资源管理器调用路径选择器,以获取路径内容,从而为用户显示路径管理界面,便于用户基于路径管理界面,可以选择或新建目标。电子设备基于用户的操作,将第一网络资源拷贝至指定存储空间,从而达到备份的目的。In this way, the path selector is invoked by the resource manager to obtain the path content, so as to display the path management interface for the user, so that the user can select or create a new target based on the path management interface. Based on the user's operation, the electronic device copies the first network resource to a designated storage space, so as to achieve the purpose of backup.
作为本申请的一个示例,所述提示消息包括分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项,所述提示消息包括多级提示菜单,所述分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项通过所述多级提示菜单分级显示。As an example of the present application, the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, transfer shortcut options, the prompt message includes a multi-level prompt menu, and the share shortcut options, open shortcut options Options, printing shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through the multi-level prompt menu.
如此,当提示消息包括的快捷选项的数量较多时,通过多级提示菜单对多个快捷选项分级显示,可以在保证管理功能丰富的同时,使得显示界面简洁。In this way, when the number of shortcut options included in the prompt message is large, the multiple shortcut options can be displayed hierarchically through the multi-level prompt menu, which can make the display interface simple while ensuring rich management functions.
作为本申请的一个示例,所述提示消息为桌面卡片、悬浮窗、提示框中的任意一种。如此,提高了提示消息显示的多样性。As an example of the present application, the prompt message is any one of a desktop card, a floating window, and a prompt box. In this way, the display diversity of the prompt message is improved.
作为本申请的一个示例,所述提示消息中包括多个网络资源的提示信息。如此, 可以使得用户同时查看多个网络资源的提示信息,以及使得用户可以根据实际需求对需要管理的网络资源进行管理。提高了用户体验。As an example of the present application, the prompt message includes prompt information of multiple network resources. In this way, the user can view the prompt information of multiple network resources at the same time, and the user can manage the network resources that need to be managed according to actual needs. Improved user experience.
作为本申请的一个示例,所述提示消息中包括的多个网络资源的提示信息根据资源下载时间进行更新。如此,可以根据电子设备中网络资源的下载情况,在提示消息中提供最新下载的网络资源的提示信息,以满足用户的实际管理需求。As an example of the present application, the prompt information of multiple network resources included in the prompt message is updated according to resource download time. In this way, according to the download status of the network resources in the electronic device, the prompt information of the latest downloaded network resources can be provided in the prompt message, so as to meet the actual management needs of the user.
作为本申请的一个示例,所述方法还包括:As an example of the present application, the method also includes:
在所述提示消息中的所述第一网络资源的提示信息消失的情况下,检测所述第一网络资源的打开事件,重新在所述提示消息中显示所述第一网络资源的提示信息。When the prompt information of the first network resource in the prompt message disappears, an opening event of the first network resource is detected, and the prompt information of the first network resource is redisplayed in the prompt message.
如此,若提示消息中的第一网络资源的提示信息消失,则在用户对第一网络资源执行打开操作的情况下,重新在提示消息中显示第一网络资源的提示信息,以便于用户在打开第一网络资源后,能够对第一网络资源进行快捷管理。In this way, if the prompt information of the first network resource in the prompt message disappears, when the user performs an opening operation on the first network resource, the prompt information of the first network resource will be displayed again in the prompt message, so that the user can open the first network resource. After the first network resource, the first network resource can be quickly managed.
作为本申请的一个示例,所述电子设备包括系统服务模块、资源管理模块、界面显示模块;As an example of the present application, the electronic device includes a system service module, a resource management module, and an interface display module;
所述监听目标存储空间存储有所述第一网络资源,显示提示消息,包括:The first network resource is stored in the monitoring target storage space, and a prompt message is displayed, including:
所述系统服务模块获取消息通知开关的状态,所述消息通知开关用于指示是否开启下载网络资源的监听功能;The system service module obtains the state of a message notification switch, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources;
在所述消息通知开关处于开启状态的情况下,所述系统服务模块监听所述目标存储空间存储有所述第一网络资源,通知所述资源管理模块;When the message notification switch is turned on, the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module;
所述资源管理模块接收所述系统服务模块的通知后,生成所述提示消息;The resource management module generates the prompt message after receiving the notification from the system service module;
所述资源管理模块将所述提示消息发送至所述界面显示模块;The resource management module sends the prompt message to the interface display module;
所述界面显示模块显示所述提示消息。The interface display module displays the prompt message.
如此,通过设置消息通知开关的状态来开启或关闭本申请实施例涉及的下载网络资源的监控功能,使得用户可以根据实际需求开启或关闭消息通知开关,从而开启或关闭下载网络资源的监控功能,进而提高了用户体验。In this way, by setting the state of the message notification switch to enable or disable the monitoring function of the download network resources involved in the embodiment of the present application, the user can enable or disable the message notification switch according to actual needs, thereby enabling or disabling the monitoring function of the download network resources, Thereby improving the user experience.
作为本申请的一个示例,所述方法还包括:As an example of the present application, the method also includes:
基于所述提示消息检测查看操作,调用资源管理应用,所述资源管理应用中显示有所述第一网络资源。如此,由于资源管理应用中包括最近下载的多个网络资源,所以进入资源管理应用后,使得用户可查看更多最近下载的网络资源。A viewing operation is detected based on the prompt message, and a resource management application is called, where the resource management application displays the first network resource. In this way, since the resource management application includes a plurality of recently downloaded network resources, after entering the resource management application, the user can view more recently downloaded network resources.
第二方面,提供了一种电子设备,包括触摸屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中所述一个或多个程序被存储在所述存储器中;所述一个或多个处理器在执行所述一个或多个程序时,用于:In a second aspect, an electronic device is provided, including a touch screen, memory, one or more processors, multiple application programs, and one or more programs; wherein the one or more programs are stored in the memory ; The one or more processors are used to: when executing the one or more programs:
通过所述电子设备中的第一应用获取第一网络资源;Obtaining a first network resource through a first application in the electronic device;
监听目标存储空间存储有所述第一网络资源,显示提示消息,所述目标存储空间是所述第一应用下载网络资源时的资源存储空间,所述提示消息用于提供对所述第一网络资源进行操作的快捷选项;Listen to the first network resource stored in the target storage space, and display a prompt message, the target storage space is the resource storage space when the first application downloads the network resource, and the prompt message is used to provide information on the first network resource. Shortcut options for resource operations;
其中,所述快捷选项用于直接将所述第一网络资源传输给目标应用或者目标设备,和/或,所述快捷选项用于直接将所述第一网络资源从所述目标存储空间存储至指定存储空间。Wherein, the shortcut option is used to directly transfer the first network resource to the target application or target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to Specify storage space.
作为本申请的一个示例,在所述快捷选项用于直接将所述第一网络资源传输给所 述目标应用或者目标设备的情况下,所述提示消息包括分享快捷选项、打开快捷选项、打印快捷选项中的至少一项,所述分享快捷选项用于触发直接将所述第一网络资源分享给所述目标应用或者目标设备,所述打开快捷选项用于触发直接将所述第一网络资源发送给所述目标应用进行打开,所述打印快捷选项用于触发直接将所述第一网络资源发送给所述目标应用进行打印;在所述快捷选项用于直接将所述第一网络资源从所述目标存储空间存储至所述指定存储空间的情况下,所述提示消息包括复制快捷选项、转移快捷选项中的至少一项,所述复制快捷选项用于触发直接将所述第一网络资源从所述目标存储空间拷贝至所述指定存储空间,所述转移快捷选项用于触发直接将所述第一网络资源从所述目标存储空间转移至所述指定存储空间。As an example of the present application, when the shortcut option is used to directly transmit the first network resource to the target application or target device, the prompt message includes share shortcut option, open shortcut option, print shortcut option At least one of the options, the sharing shortcut option is used to trigger directly sharing the first network resource to the target application or target device, and the opening shortcut option is used to trigger directly sending the first network resource Opening the target application, the printing shortcut option is used to trigger directly sending the first network resource to the target application for printing; the shortcut option is used to directly send the first network resource from the In the case where the target storage space is stored in the specified storage space, the prompt message includes at least one of a copy shortcut option and a transfer shortcut option, and the copy shortcut option is used to trigger the direct transfer of the first network resource from The target storage space is copied to the specified storage space, and the transfer shortcut option is used to trigger the direct transfer of the first network resource from the target storage space to the specified storage space.
作为本申请的一个示例,所述电子设备包括资源管理模块和分享模块;所述提示消息包括所述分享快捷选项,所述一个或多个处理器还用于:As an example of the present application, the electronic device includes a resource management module and a sharing module; the prompt message includes the sharing shortcut option, and the one or more processors are further configured to:
通过所述资源管理模块响应于所述分享快捷选项的触发操作,通知所述分享模块;Notifying the sharing module through the resource management module in response to the trigger operation of the sharing shortcut option;
通过所述分享模块接收所述资源管理模块的通知后,搜索所述电子设备中具备分享功能的目标应用以及开启分享功能的目标设备;After receiving the notification from the resource management module through the sharing module, search the electronic device for a target application with a sharing function and a target device with a sharing function enabled;
通过所述分享模块显示分享提示框,所述分享提示框中包括搜索到的目标应用和/或目标设备;Displaying a sharing prompt box through the sharing module, the sharing prompt box including the searched target application and/or target device;
通过所述资源管理模块响应于对所述分享提示框中包括的目标应用和/或目标设备的选择操作,从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述选择操作所选择的目标应用或者目标设备。The resource management module acquires the first network resource from the target storage space in response to the selection operation of the target application and/or target device included in the sharing prompt box, and stores the first network resource The resource is sent to the target application or target device selected by the selection operation.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括所述打开快捷选项,所述一个或多个处理器还用于:As an example of the present application, the electronic device includes a resource management module; the prompt message includes the opening shortcut option, and the one or more processors are further configured to:
通过所述资源管理模块响应于所述打开快捷选项的触发操作,根据所述第一网络资源的格式属性,从所述电子设备包括的应用中确定能够用于打开所述第一网络资源的目标应用;The resource management module responds to the trigger operation of the opening shortcut option, and according to the format attribute of the first network resource, determines the target that can be used to open the first network resource from the applications included in the electronic device application;
通过所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述目标应用,以通过所述目标应用打开所述第一网络资源。Obtaining the first network resource from the target storage space by the resource management module, and sending the first network resource to the target application, so as to open the first network resource by the target application.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括所述打印快捷选项,所述一个或多个处理器还用于:As an example of the present application, the electronic device includes a resource management module; the prompt message includes the printing shortcut option, and the one or more processors are further configured to:
通过所述资源管理模块响应于所述打印快捷选项的触发操作,确定所述电子设备中的打印应用为所述目标应用;Determining, by the resource management module, the print application in the electronic device as the target application in response to the trigger operation of the print shortcut option;
通过所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述打印应用,以通过所述打印应用打印所述第一网络资源。Obtaining the first network resource from the target storage space by the resource management module, and sending the first network resource to the printing application, so as to print the first network resource by the printing application.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括转移快捷选项,所述一个或多个处理器还用于:As an example of the present application, the electronic device includes a resource management module; the prompt message includes a transfer shortcut option, and the one or more processors are further configured to:
通过所述资源管理模块响应于所述转移快捷选项的触发操作,调用路径选择器,以通过所述路径选择器获取路径内容;Invoking a path selector through the resource management module in response to the trigger operation of the transfer shortcut option, so as to obtain path content through the path selector;
通过所述资源管理模块基于所述路径内容显示路径管理界面;displaying a path management interface based on the path content through the resource management module;
通过所述资源管理模块响应于基于所述路径管理界面输入的路径选择操作,确定所述路径选择操作所选择的指定存储空间;determining the specified storage space selected by the path selection operation by the resource management module in response to the path selection operation input based on the path management interface;
通过所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源存储至所述指定存储空间;Obtaining the first network resource from the target storage space through the resource management module, and storing the first network resource in the designated storage space;
通过所述资源管理模块将所述目标存储空间中存储的第一网络资源删除。The resource management module deletes the first network resource stored in the target storage space.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括复制快捷选项,所述一个或多个处理器还用于:As an example of the present application, the electronic device includes a resource management module; the prompt message includes a copy shortcut option, and the one or more processors are further configured to:
通过所述资源管理模块响应于所述复制快捷选项的触发操作,调用路径选择器,以通过所述路径选择器获取路径内容;Invoking a path selector through the resource management module in response to the trigger operation of the copy shortcut option, so as to obtain path content through the path selector;
通过所述资源管理模块基于所述路径内容显示路径管理界面;displaying a path management interface based on the path content through the resource management module;
通过所述资源管理模块响应于基于所述路径管理界面输入的路径选择操作,确定所述路径选择操作所选择的指定存储空间;determining the specified storage space selected by the path selection operation by the resource management module in response to the path selection operation input based on the path management interface;
通过所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源拷贝至所述指定存储空间。Obtaining the first network resource from the target storage space through the resource management module, and copying the first network resource to the designated storage space.
作为本申请的一个示例,所述提示消息包括分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项,所述提示消息包括多级提示菜单,所述分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项通过所述多级提示菜单分级显示。As an example of the present application, the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, transfer shortcut options, the prompt message includes a multi-level prompt menu, and the share shortcut options, open shortcut options Options, printing shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through the multi-level prompt menu.
作为本申请的一个示例,所述提示消息为桌面卡片、悬浮窗、提示框中的任意一种。As an example of the present application, the prompt message is any one of a desktop card, a floating window, and a prompt box.
作为本申请的一个示例,所述提示消息中包括多个网络资源的提示信息。As an example of the present application, the prompt message includes prompt information of multiple network resources.
作为本申请的一个示例,所述提示消息中包括的多个网络资源的提示信息根据资源下载时间进行更新。As an example of the present application, the prompt information of multiple network resources included in the prompt message is updated according to resource download time.
作为本申请的一个示例,所述一个或多个处理器还用于:As an example of the present application, the one or more processors are further configured to:
在所述提示消息中的所述第一网络资源的提示信息消失的情况下,检测所述第一网络资源的打开事件,重新在所述提示消息中显示所述第一网络资源的提示信息。When the prompt information of the first network resource in the prompt message disappears, an opening event of the first network resource is detected, and the prompt information of the first network resource is redisplayed in the prompt message.
作为本申请的一个示例,所述电子设备包括系统服务模块、资源管理模块、界面显示模块;所述一个或多个处理器用于:As an example of the present application, the electronic device includes a system service module, a resource management module, and an interface display module; the one or more processors are configured to:
通过所述系统服务模块获取消息通知开关的状态,所述消息通知开关用于指示是否开启下载网络资源的监听功能;The state of the message notification switch is obtained through the system service module, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources;
在所述消息通知开关处于开启状态的情况下,通过所述系统服务模块监听所述目标存储空间存储有所述第一网络资源,通知所述资源管理模块;When the message notification switch is turned on, the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module;
通过所述资源管理模块接收所述系统服务模块的通知后,生成所述提示消息;After receiving the notification from the system service module through the resource management module, generating the prompt message;
通过所述资源管理模块将所述提示消息发送至所述界面显示模块;sending the prompt message to the interface display module through the resource management module;
通过所述界面显示模块显示所述提示消息。The prompt message is displayed through the interface display module.
作为本申请的一个示例,所述一个或多个处理器还用于:As an example of the present application, the one or more processors are further configured to:
基于所述提示消息检测查看操作,调用资源管理应用,所述资源管理应用中显示有所述第一网络资源。A viewing operation is detected based on the prompt message, and a resource management application is called, where the resource management application displays the first network resource.
第三方面,提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如上述第一方面任意一项所述的方法。In a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute the method described in any one of the above-mentioned first aspects.
第四方面,提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得 计算机执行上述第一方面所述的方法。In a fourth aspect, there is provided a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method described in the first aspect above.
上述第二方面、第三方面和第四方面所获得的技术效果与上述第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the above-mentioned second aspect, the third aspect and the fourth aspect are similar to those obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here.
本申请提供的技术方案至少可以带来以下有益效果:The technical solution provided by this application can at least bring the following beneficial effects:
本申请提供的网络资源的处理方法,通过电子设备中的第一应用获取第一网络资源,监听第一应用下载网络资源时的目标存储空间中存储有第一网络资源,说明通过第一应用下载了第一网络资源,此时显示提示消息。提示消息用于提供对第一网络资源进行操作的快捷选项。快捷选项用于直接将第一网络资源传输给目标应用或者目标设备,和/或,快捷选项用于直接将第一网络资源从目标存储空间存储至指定存储空间。如此,以便于用户对第一网络资源进行快捷管理,避免需要用户多次操作进入第一网络资源的实际存储位置后进行管理,从而可以提高网络资源的管理效率。In the method for processing network resources provided by this application, the first network resource is obtained through the first application in the electronic device, and the first network resource is stored in the target storage space when the first application downloads the network resource. The first network resource is accessed, and a prompt message is displayed at this time. The prompt message is used to provide shortcut options for operating the first network resource. The shortcut option is used to directly transfer the first network resource to the target application or the target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to the specified storage space. In this way, it is convenient for the user to quickly manage the first network resource, avoiding the need for the user to perform multiple operations to enter the actual storage location of the first network resource for management, thereby improving the management efficiency of the network resource.
附图说明Description of drawings
图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
图2为本申请实施例提供的一种电子设备100的软件结构框图;FIG. 2 is a software structural block diagram of an electronic device 100 provided in an embodiment of the present application;
图3为本申请实施例提供的一种应用场景的示意图;FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图4为本申请实施例提供的一种基于提示框的分享操作流程示意图;FIG. 4 is a schematic diagram of a sharing operation process based on a prompt box provided by an embodiment of the present application;
图5为本申请实施例提供的一种基于提示框的转移操作流程示意图;FIG. 5 is a schematic diagram of a prompt box-based transfer operation process provided by the embodiment of the present application;
图6为本申请实施例提供的一种基于提示框进入资源管理应用的流程示意图;FIG. 6 is a schematic flow diagram of entering a resource management application based on a prompt box provided by an embodiment of the present application;
图7为本申请实施例提供的另一种应用场景的示意图;FIG. 7 is a schematic diagram of another application scenario provided by the embodiment of the present application;
图8为本申请实施例提供的一种基于悬浮窗的分享操作流程示意图;Fig. 8 is a schematic diagram of a floating window-based sharing operation process provided by the embodiment of the present application;
图9为本申请实施例提供的一种基于分享提示框的复制操作流程示意图;FIG. 9 is a schematic diagram of a copy operation process based on a sharing prompt box provided by an embodiment of the present application;
图10为本申请实施例提供的一种基于分享提示框的转移操作流程示意图;FIG. 10 is a schematic diagram of a transfer operation process based on a sharing prompt box provided by an embodiment of the present application;
图11为本申请实施例提供的一种基于悬浮窗的打开操作流程示意图;Fig. 11 is a schematic diagram of an opening operation process based on a floating window provided by the embodiment of the present application;
图12为本申请实施例提供的另一种应用场景的示意图;FIG. 12 is a schematic diagram of another application scenario provided by the embodiment of the present application;
图13为本申请实施例提供的一种基于桌面卡片的分享操作流程示意图;FIG. 13 is a schematic diagram of a desktop card-based sharing operation process provided by the embodiment of the present application;
图14为本申请实施例提供的一种桌面卡片的显示示意图;Fig. 14 is a schematic display of a desktop card provided in the embodiment of the present application;
图15为本申请实施例提供的一种基于打开操作更新桌面卡片的示意图;FIG. 15 is a schematic diagram of updating a desktop card based on an opening operation provided by an embodiment of the present application;
图16为本申请实施例提供的一种系统架构示意图;FIG. 16 is a schematic diagram of a system architecture provided by an embodiment of the present application;
图17为本申请实施例提供的一种网络资源的处理方法流程示意图;FIG. 17 is a schematic flowchart of a method for processing network resources provided by an embodiment of the present application;
图18为本申请实施例提供的另一种网络资源的处理方法流程示意图;FIG. 18 is a schematic flowchart of another method for processing network resources provided by the embodiment of the present application;
图19为本申请实施例提供的另一种网络资源的处理方法流程示意图;FIG. 19 is a schematic flowchart of another method for processing network resources provided by the embodiment of the present application;
图20为本申请实施例提供的另一种网络资源的处理方法流程示意图;FIG. 20 is a schematic flowchart of another method for processing network resources provided by the embodiment of the present application;
图21为本申请实施例提供的一种卡片管理模块与资源管理模块的交互流程示意图;FIG. 21 is a schematic diagram of an interaction process between a card management module and a resource management module provided by an embodiment of the present application;
图22为本申请实施例提供的一种电子设备的结构示意图。FIG. 22 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
应当理解的是,本申请提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述本申请的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。It should be understood that the "plurality" mentioned in this application means two or more. In the description of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is just a description of the relationship between associated objects, Indicates that there may be three relationships, for example, A and/or B, may indicate: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in order to clearly describe the technical solution of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not necessarily limit the difference.
本申请实施例提供的网络资源的处理方法可以由电子设备来执行。在一个实施例中,电子设备中可以安装不同类型的第一应用(又称:应用程序),各个第一应用均可以下载网络资源。网络资源可以包括但不限于文档、图像、视频、音频。作为一种示例,电子设备可以包括但不限于手机、平板电脑、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、笔记本电脑、上网本、个人数字助理(personal digital assistant,PDA)之类的设备,本申请实施例对此不作限定。The method for processing network resources provided in the embodiment of the present application may be executed by an electronic device. In an embodiment, different types of first applications (also called application programs) may be installed in the electronic device, and each first application may download network resources. Web resources may include, but are not limited to, documents, images, video, audio. As an example, the electronic device may include, but not limited to, a mobile phone, a tablet computer, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), Devices such as notebook computers, netbooks, and personal digital assistants (PDAs) are not limited in this embodiment of the present application.
请参阅图1,图1是本申请实施例提供的一种电子设备的结构示意图。Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直 接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电, 也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙 (bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物 半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element can be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 . The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。 Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输 入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C with the human mouth, and input the sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备100的姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of the electronic device 100, and be applied to applications such as horizontal and vertical screen switching, pedometer, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红 外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
请参阅图2,图2是本申请实施例提供的一种电子设备100的软件结构框图。Please refer to FIG. 2 . FIG. 2 is a software structural block diagram of an electronic device 100 provided in an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.
如图2所示,应用程序包可以包括相机,图库,通话,地图,导航,WLAN,蓝牙,视频,短信息,分享、文件管理等应用程序。As shown in Figure 2, the application package may include application programs such as camera, gallery, call, map, navigation, WLAN, Bluetooth, video, short message, sharing, and file management.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括界面显示模块、卡片管理模块,系统服务模块,窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer may include interface display module, card management module, system service module, window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
界面显示模块用于弹出提示消息。作为本申请的一个示例,界面显示模块可以为用户界面(user interface,UI)模块或卡片管理模块。UI模块用于显示诸如悬浮窗、提示框之类的提示消息。卡片管理模块用于生成桌面卡片,并将桌面卡片作为提示消息进行显示。其中,桌面卡片是显示于电子设备的桌面的卡片,在一些实施例中,桌面卡片还可以称为卡片等。在电子设备未设置开机密码的情况下,电子设备的桌面是指电子设备开机后显示的界面;在电子设备设置开机密码的情况下,电子设备的桌面是指电子设备开机并解锁后显示的界面。The interface display module is used for popping up prompt messages. As an example of the present application, the interface display module may be a user interface (user interface, UI) module or a card management module. The UI module is used to display prompt messages such as floating windows and prompt boxes. The card management module is used to generate desktop cards and display the desktop cards as prompt messages. Wherein, the desktop card is a card displayed on the desktop of the electronic device, and in some embodiments, the desktop card may also be called a card or the like. In the case where the electronic device is not set with a power-on password, the desktop of the electronic device refers to the interface displayed after the electronic device is turned on; in the case of an electronic device with a power-on password, the desktop of the electronic device refers to the interface displayed after the electronic device is turned on and unlocked .
作为本申请的一个示例,系统服务模块用于根据消息通知开关的状态确定是否开启下载网络资源的监听功能。譬如,若消息通知开关处于开启状态,则开启下载网络资源的监听功能,否则,若消息通知开关处于关闭状态,则不开启或关闭下载网络资源的监听功能。在消息通知开关处于开启的情况下,系统服务模块对需要监控的目标存储空间进行监控,若监控到目标存储空间中有新的网络资源生成,譬如,当监控到有新的文档生成时,通过UI模块弹出提示消息,该提示消息用于为用户对新生成的网络资源的管理提供快捷选项。As an example of the present application, the system service module is used to determine whether to enable the monitoring function of downloading network resources according to the state of the message notification switch. For example, if the message notification switch is turned on, the monitoring function of downloading network resources is enabled; otherwise, if the message notification switch is turned off, the monitoring function of downloading network resources is not enabled or disabled. When the message notification switch is turned on, the system service module monitors the target storage space that needs to be monitored. If a new network resource is generated in the target storage space, for example, when a new document is generated, the The UI module pops up a prompt message, and the prompt message is used to provide a shortcut option for the user to manage the newly generated network resource.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含文件系统,显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least the file system, display driver, camera driver, audio driver, and sensor driver.
文件系统是指操作系统中负责管理和存储文件信息的软件机构。在本申请实施例中,文件系统可以用于感知目标存储空间中是否有文件生成,并当文件系统感知到有文件生成时,通知系统服务模块。The file system refers to the software mechanism in the operating system responsible for managing and storing file information. In the embodiment of the present application, the file system may be used to sense whether a file is generated in the target storage space, and notify the system service module when the file system detects that a file is generated.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。The workflow of the software and hardware of the electronic device 100 will be exemplarily described below in conjunction with capturing and photographing scenes.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level. The application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Take the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example. The camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. Camera 193 captures still images or video.
基于图1和图2所示实施例提供的电子设备100,接下来以电子设备100是手机为例结合附图对本申请实施例涉及的几种应用场景进行简单介绍。Based on the electronic device 100 provided by the embodiment shown in FIG. 1 and FIG. 2 , several application scenarios involved in the embodiment of the present application will be briefly introduced next by taking the electronic device 100 as a mobile phone as an example and referring to the accompanying drawings.
请参阅图3,图3是根据一示例性实施例示出的一种应用场景的示意图。Please refer to FIG. 3 . FIG. 3 is a schematic diagram of an application scenario according to an exemplary embodiment.
手机中的APP1接收文档1“中国用户体验行业发展调研报告”,文档1格式为便携式文件格式(Portable Document Format,PDF)。APP1中提供有管理触控按键,当用户想要对文档1进行管理时,可以触发管理触控按键。响应于管理触控按键的触发操作,APP1显示管理页面,示例性地,管理页面如图3中的(a)所示,管理页面中包括“保存到手机”触控按键。当用户想要将文档1下载至手机中时可以触发“保存到手机”触控按键,响应于用户对“保存到手机”触控按键的触发操作,手机下载文档1,也即手机将文档1保存至本地。APP1 in the mobile phone receives document 1 "China User Experience Industry Development Research Report", and the format of document 1 is Portable Document Format (PDF). APP1 provides a management touch button, and when the user wants to manage the document 1, the management touch button can be triggered. In response to the trigger operation of the management touch button, APP1 displays a management page. Exemplarily, the management page is shown in (a) in FIG. 3 , and the management page includes a touch button of "save to mobile phone". When the user wants to download document 1 to the mobile phone, the "save to mobile phone" touch button can be triggered. Save it locally.
作为本申请的一个示例,当文档1下载完成时,手机在当前的显示界面中弹出提示框。示例性地,请参考图3中的(b)图,提示框如31所示。作为本申请的一个示例,提示框中包括分享触控按键和转移触控按键。用户可以基于提示框对文档1进行进一步地操作。As an example of the present application, when the file 1 is downloaded, the mobile phone pops up a prompt box in the current display interface. For example, please refer to the diagram (b) in FIG. 3 , the prompt box is shown as 31 . As an example of the present application, the prompt box includes sharing touch keys and transferring touch keys. The user can perform further operations on the document 1 based on the prompt box.
在一个实施例中,请参考图4中的(a)图,当用户想要分享文档1时,可以触发提示框中的分享触控按键。响应于用户对提示框中的分享触控按键的触发操作,手机搜索周边开启分享功能的目标设备和/或手机中具备分享功能的目标应用(譬如声明android.intent.action.SEND过滤的应用)。之后,手机显示分享提示框,并在显示的分享提示框中显示搜索到的目标设备和/或目标应用。示例性地,分享提示框如图4中的(b)图所示。如此,用户即可基于分享提示框对文档1进行分享,譬如分享给DeviceA设备等。In one embodiment, please refer to figure (a) in FIG. 4 , when the user wants to share the document 1 , the share touch button in the prompt box can be triggered. In response to the user triggering the sharing touch button in the prompt box, the mobile phone searches for surrounding target devices with the sharing function enabled and/or target applications with the sharing function in the mobile phone (such as applications that declare android.intent.action.SEND filtering) . Afterwards, the mobile phone displays a sharing prompt box, and displays the searched target device and/or target application in the displayed sharing prompt box. Exemplarily, the sharing prompt box is as shown in (b) in FIG. 4 . In this way, the user can share the document 1 based on the sharing prompt box, such as sharing to DeviceA.
可选地,分享提示框中还可以包括复制触控按键、打印触控按键、打开触控按键中的一项或者多项。复制触控按键可以用于触发将文档1复制到用户指定的指定存储空间,打印触控按键可以用于触发将文档1进行打印,打开触控按键可以用于触发对文档1的打开操作。Optionally, the sharing prompt box may also include one or more items of copying the touch button, printing the touch button, and opening the touch button. The copy touch key can be used to trigger copying of document 1 to a specified storage space specified by the user, the print touch key can be used to trigger printing of document 1, and the open touch key can be used to trigger an opening operation of document 1.
可选地,请继续参考图4中的(b)图,分享提示框中还可以包括取消触控按键。若用户想取消对文档1的分享,则可以触发取消触控按键,响应于用户对取消触控按键的触发操作,手机关闭分享提示框。Optionally, please continue to refer to (b) in FIG. 4 , the sharing prompt box may also include a cancel touch button. If the user wants to cancel the sharing of the document 1, the cancel touch button may be triggered, and in response to the user's trigger operation on the cancel touch button, the mobile phone closes the sharing prompt box.
在一个实施例中,请参考图5中的(a)图,当用户想要将文档1从APP1的目标存储空间转移至另一个指定存储空间中时,可以触发提示框中的转移触控按键。响应于用户对提示框中的转移触控按键的触发操作,手机拉起文件管理应用的路径选择器。如此,用户可以选择或者新建目录,手机基于用户的操作将文档1转移至用户指定的指定存储空间中。譬如,请参考图5中的(b)图,将文档1转移至“新方案”目录下。如此,通过提示框为用户提供位置转移的快捷选项(如快捷选项包括上文所述的触控按键),便于用户将所下载的网络资源存储至统一的存储空间中,从而可以为用户提供便利,进而提高了用户体验。In one embodiment, please refer to figure (a) in FIG. 5 , when the user wants to transfer document 1 from the target storage space of APP1 to another specified storage space, the transfer touch button in the prompt box can be triggered . In response to the user triggering the transfer touch button in the prompt box, the mobile phone pulls up the path selector of the file management application. In this way, the user can select or create a new directory, and the mobile phone will transfer the document 1 to the specified storage space specified by the user based on the user's operation. For example, please refer to (b) in FIG. 5 to transfer the document 1 to the "new scheme" directory. In this way, the user is provided with shortcut options for location transfer through the prompt box (for example, the shortcut options include the above-mentioned touch buttons), which is convenient for the user to store the downloaded network resources in a unified storage space, thereby providing convenience for the user , thereby improving the user experience.
需要说明的是,在一些实施例中,转移触控按键又可以为“复制到”触控按键,本申请实施例对此不作限定。It should be noted that, in some embodiments, transferring the touch key may also be "copying to" the touch key, which is not limited in this embodiment of the present application.
在一个实施例中,请参考图6中的(a)图,当用户点击提示框的消息体时,响应于用户对提示框的消息体的触发操作,手机启动资源管理应用,并跳转至资源管理应用的指定页面。资源管理应用用于管理手机中的第一应用下载的网络资源,譬如资源管理应用为文件管理应用。指定页面中包括手机中的第一应用最近下载的网络资源的资源标签。在一些实施例中,指定页面又称为最近页签。示例性地,资源管理应用的指定页面如图6中的(b)图所示,指定页面中包括文档1的资源标签61,另外还包括最近一段时间内手机中的应用下载的其他网络资源的资源标签。当用户想要查看文档1时可以点击文档1的资源标签,响应于用户对文档1的资源标签的点击操作,手机打开文档1。如此,通过提示框为用户提供进入资源管理应用的指定页面的快捷入口,使得用户可以方便查看最近下载的网络资源,从而提高了用户体验效果。In one embodiment, please refer to Figure 6 (a), when the user clicks on the message body of the prompt box, in response to the user's trigger operation on the message body of the prompt box, the mobile phone starts the resource management application and jumps to Designated page for resource management applications. The resource management application is used to manage network resources downloaded by the first application in the mobile phone, for example, the resource management application is a file management application. The specified page includes resource tags of network resources recently downloaded by the first application in the mobile phone. In some embodiments, the designated page is also called the recent tab. Exemplarily, the specified page of the resource management application is shown in (b) of FIG. resource tag. When the user wants to view document 1, he may click the resource label of document 1, and in response to the user's click operation on the resource label of document 1, the mobile phone opens document 1. In this way, the prompt box is used to provide the user with a quick entry to enter the specified page of the resource management application, so that the user can conveniently view the recently downloaded network resources, thereby improving the user experience effect.
另外作为本申请的一个示例,提示框中还可以包括文档1的名称、格式、文件大小中的至少一项属性信息,如此当存在多个网络资源的提示框时,便于用户根据属性信息进行区分。In addition, as an example of the present application, the prompt box may also include at least one attribute information of the name, format, and file size of the document 1, so that when there are multiple prompt boxes for network resources, it is convenient for users to distinguish according to the attribute information .
请参考图7,图7是根据另一示例性实施例提供的一种应用场景的示意图。Please refer to FIG. 7 , which is a schematic diagram of an application scenario according to another exemplary embodiment.
手机中的APP1接收文档2“分享报告”,文档格式为PDF。APP1中提供有管理触控按键,当用户向要对文档2进行管理时,可以触发管理触控按键。响应于管理触控按键的触发操作,APP1显示管理页面,示例性地,管理页面如图7中的(a)图所示,管理页面中包括“保存到手机”触控按键。当用户想要将文档2下载至手机中时可以触发“保存到手机”触控按键,响应于用户对“保存到手机”触控按键的触发操作,手机下载文档2,也即手机将文档2保存至本地。APP1 in the mobile phone receives document 2 "Sharing Report", and the document format is PDF. APP1 provides a management touch button, and when the user wants to manage the document 2, the management touch button can be triggered. In response to the trigger operation of the management touch button, APP1 displays a management page. Exemplarily, the management page is shown in (a) of FIG. 7 , and the management page includes a "save to mobile phone" touch button. When the user wants to download document 2 to the mobile phone, the "save to mobile phone" touch button can be triggered. Save it locally.
当文档2下载完成时,手机在当前的显示界面中弹出悬浮窗。在一个实施例中,悬浮窗可以是基于文档2的属性信息生成的,譬如悬浮窗中包括文档2的格式图标,示例性地,请参考图7中的(b)图,悬浮窗如71所示。在另一个实施例中,悬浮窗也可以是通过对文档2的名称进行截屏后得到的。在又一个实施例中,悬浮窗还可以是通过对文档2中的部分内容进行截取后生成的。When the file 2 is downloaded, the mobile phone pops up a floating window in the current display interface. In one embodiment, the floating window can be generated based on the attribute information of document 2, for example, the floating window includes the format icon of document 2. For example, please refer to figure (b) in FIG. 7, the floating window is shown in 71 Show. In another embodiment, the floating window may also be obtained by taking a screenshot of the name of the document 2 . In yet another embodiment, the floating window may also be generated by intercepting part of the content in the document 2 .
在一个实施例中,请参考图8中的(a)图,当用户想要分享文档2时,可以划动悬浮窗,譬如该划动操作可以包括但不限于上划、下划、左划、右划、向左上角划动、向右上角划动、向右下角划动、向左下角划动中的任意一种。响应于用户的划动操作,手机搜索周边开启分享功能的目标设备和/或具备分享功能的目标应用(譬如,声明android.intent.action.SEND过滤的应用)。之后,手机显示分享提示框,并在显示的分享提示框中显示搜索到的目标设备和/或目标应用。示例性地,分享提示框如图8中的(b)图所示。如此,用户即可基于分享提示框对文档2进行分享。In one embodiment, please refer to figure (a) in FIG. 8 , when the user wants to share the document 2, he can swipe the floating window. , Swipe right, Swipe to the upper left corner, Swipe to the upper right corner, Swipe to the lower right corner, Swipe to the lower left corner. In response to the user's swipe operation, the mobile phone searches for surrounding target devices with the sharing function enabled and/or target applications with the sharing function (for example, applications that declare android.intent.action.SEND filtering). Afterwards, the mobile phone displays a sharing prompt box, and displays the searched target device and/or target application in the displayed sharing prompt box. Exemplarily, the sharing prompt box is as shown in (b) in FIG. 8 . In this way, the user can share the document 2 based on the sharing prompt box.
可选地,请继续参考图8中的(a)图,手机可以在悬浮窗的附近位置显示操作提示信息,操作提示信息用于提示用户如何基于悬浮窗进行操作。示例性地,操作提示信息为“划动分享”,且手机还显示有划动方式(如图指示向上划动)。此时,该操作提示信息用于指示用户可以通过向上划动悬浮窗来触发手机对文档2进行分享。Optionally, please continue to refer to (a) in FIG. 8 , the mobile phone may display operation prompt information near the floating window, and the operation prompt information is used to prompt the user how to operate based on the floating window. Exemplarily, the operation prompt information is "swipe to share", and the mobile phone also displays a swipe method (swipe up as shown in the figure). At this time, the operation prompt information is used to indicate that the user can trigger the mobile phone to share the document 2 by sliding the floating window upward.
作为本申请的一个示例,请继续参考图8中的(b)图,分享提示框中还可以包括复制触控按键和/或转移触控按键。在一个实施例中,复制触控按键还可以替换为“另 存为”触控按键,转移触控按键可以替换为“复制到”触控按键。As an example of the present application, please continue to refer to figure (b) in FIG. 8 , the sharing prompt box may also include copying touch buttons and/or transferring touch buttons. In one embodiment, copying the touch key can also be replaced by a "save as" touch key, and transferring the touch key can be replaced by a "copy to" touch key.
在一个实施例中,请参考图9中的(a)图,当用户想要对文档2进行备份时可以触发分享提示框中的复制触控按键。响应于用户对分享提示框中的复制触控按键的触发操作,手机拉起资源管理应用的路径选择器,如此,用户可以选择或者新建目录。手机基于用户的操作将文档2备份至用户指定的指定存储空间中。示例性地,请参见图9中的(b)图,将文档2备份至“我的手机”目录下。In one embodiment, please refer to the diagram (a) in FIG. 9 , when the user wants to back up the document 2, he can trigger the copy touch button in the share prompt box. In response to the user's trigger operation on the copy touch button in the sharing prompt box, the mobile phone pulls up the path selector of the resource management application, so that the user can select or create a new directory. The mobile phone backs up the file 2 to the specified storage space specified by the user based on the user's operation. Exemplarily, please refer to the diagram (b) in FIG. 9, the file 2 is backed up to the directory of "My Mobile Phone".
在一个实施例中,请参见图10中的(a)图,当用户想要将文档2从APP1的目标存储空间转移至指定存储空间中时,可以触发分享提示框中的转移触控按键。响应于用户对分享提示框中的转移触控按键的触发操作,手机拉起资源管理应用的路径选择器,如此,用户可以选择或者新建目录。手机基于用户的操作将文档2转移至用户指定的指定存储空间。示例性地,请参见图10中的(b)图,将文档2移动至“证明材料”目录下。In one embodiment, please refer to figure (a) in FIG. 10 , when the user wants to transfer the document 2 from the target storage space of APP1 to the specified storage space, the transfer touch button in the sharing prompt box can be triggered. In response to the user's trigger operation on the transfer touch button in the sharing prompt box, the mobile phone pulls up the path selector of the resource management application, so that the user can select or create a new directory. The mobile phone transfers the document 2 to the specified storage space specified by the user based on the user's operation. For example, please refer to the diagram (b) in FIG. 10 , move the document 2 to the "proof material" directory.
作为一种示例,请继续参考图8中的(b)图,分享提示框中还包括打印触控按键,当用户想要打印文档2时可以触发分享提示框中的打印触控按键。响应于用户对分享提示框中的打印触控按键的触发操作,手机调用打印应用,以通过打印应用对文档2进行打印。As an example, please continue to refer to (b) in FIG. 8 , the sharing prompt box also includes a print touch button, and the print touch button in the share prompt box can be triggered when the user wants to print the document 2 . In response to the user's trigger operation on the print touch button in the sharing prompt box, the mobile phone invokes the print application to print the document 2 through the print application.
在一个实施例中,当用户想要打开文档2时可以点击悬浮窗。作为一种示例,响应于用户对悬浮窗的点击操作,手机通过目标应用打开文档2,譬如使用文字处理系统(word processing system,WPS)office打开文档2。作为另一种示例,请参考图11中的(a)图,响应于用户对悬浮窗的点击操作,手机展示多个能够用于打开文档2的目标应用。示例性地,请参考图11中的(b)图,手机通过应用列表展示该多个能够用于打开文档2的目标应用。如此用户即可在所展示的多个目标应用中选择一个目标应用,响应于用户的选择操作,手机通过用户所选择的目标应用打开文档2。譬如,当用户选择Adobe Reader时,手机通过Adobe Reader打开文档2。In one embodiment, when the user wants to open the document 2, he can click on the floating window. As an example, in response to the user's click operation on the floating window, the mobile phone opens the document 2 through the target application, for example, a word processing system (word processing system, WPS) office is used to open the document 2 . As another example, please refer to diagram (a) in FIG. 11 , in response to the user's click operation on the floating window, the mobile phone displays multiple target applications that can be used to open the document 2 . For example, please refer to figure (b) in FIG. 11 , the mobile phone displays the multiple target applications that can be used to open the document 2 through the application list. In this way, the user can select a target application among the displayed multiple target applications, and in response to the user's selection operation, the mobile phone opens the document 2 through the target application selected by the user. For example, when the user selects Adobe Reader, the mobile phone opens document 2 through Adobe Reader.
需要说明的是,悬浮窗的显示位置可以根据实际需求进行设置,譬如显示于手机当前的显示界面的左下角。或者,悬浮窗的显示位置也可以是随机的,本申请实施例对此不作限定。It should be noted that the display position of the floating window can be set according to actual needs, for example, it is displayed in the lower left corner of the current display interface of the mobile phone. Alternatively, the display position of the floating window may also be random, which is not limited in this embodiment of the present application.
请参阅图12,图12是根据另一示例性实施例提供的一种应用场景的示意图。Please refer to FIG. 12 . FIG. 12 is a schematic diagram of an application scenario according to another exemplary embodiment.
在一个实施例中,手机中的APP1接收文档3“办公用品清单”,文档3的格式为excel格式。APP1中提供有管理触控按键,当用户向要对文档3进行管理时,可以触发管理触控按键。响应于管理触控按键的触发操作,APP1显示管理页面,示例性地,管理页面如图12中的(a)图所示,管理页面中包括“保存到手机”触控按键。当用户想要将文档3下载至手机中时可以触发“保存到手机”触控按键,响应于用户对“保存到手机”触控按键的触发操作,手机下载文档3,也即手机将文档3保存至本地。In one embodiment, the APP1 in the mobile phone receives the document 3 "list of office supplies", and the format of the document 3 is excel format. APP1 provides a management touch button, and when the user wants to manage the document 3, the management touch button can be triggered. In response to the trigger operation of the management touch button, APP1 displays a management page. Exemplarily, the management page is shown in (a) in FIG. When the user wants to download document 3 to the mobile phone, the "save to mobile phone" touch button can be triggered. Save it locally.
当文档3下载完成时,手机在桌面中显示桌面卡片。示例性地,请参考图12中的(b)图,桌面卡片如121所示。桌面卡片中包括文档3的卡片信息,卡片信息包括分享触控按键1211和文档3的属性信息,文档3的属性信息可以包括但不限于格式、名称、文件大小、下载时间中的至少一项。如此,用户即可基于桌面卡片对文档3进行 进一步地操作。When the file 3 is downloaded, the mobile phone displays a desktop card on the desktop. For example, please refer to the diagram (b) in FIG. 12 , the desktop card is shown as 121 . The desktop card includes the card information of the document 3, and the card information includes the shared touch button 1211 and the attribute information of the document 3. The attribute information of the document 3 may include but not limited to at least one of format, name, file size, and download time. In this way, the user can further operate the document 3 based on the desktop card.
在一个实施例中,请参考图13中的(a)图,当用户想要对文档3进行分享时,可以触发桌面卡片中的分享触控按键。响应于用户对桌面卡片中的分享触控按键的触发操作,手机搜索周边开启分享功能的目标设备和/或具备分享功能的目标应用。之后,手机显示分享提示框,并在显示的分享提示框中显示搜索到的目标设备和/或目标应用,示例性地,分享提示框如图13中的(b)图所示。如此,用户即可基于分享提示框对文档2进行分享。In one embodiment, please refer to the diagram (a) in FIG. 13 , when the user wants to share the document 3, he can trigger the share touch button in the desktop card. In response to the user's trigger operation on the sharing touch button on the desktop card, the mobile phone searches for surrounding target devices with the sharing function enabled and/or target applications with the sharing function. Afterwards, the mobile phone displays a sharing prompt box, and displays the searched target device and/or target application in the displayed sharing prompt box. Exemplarily, the sharing prompt box is shown in (b) of FIG. 13 . In this way, the user can share the document 2 based on the sharing prompt box.
作为本申请的一个示例,请继续参考图13中的(b)图,分享提示框中还可以包括复制触控按键和/或转移触控按键,如此,基于复制触控按键可以将文档3备份至指定存储空间,基于转移触控按键可以将文档3转移至指定存储空间,具体实现可以参见上文,这里不再赘述。As an example of this application, please continue to refer to figure (b) in Figure 13, the sharing prompt box may also include copy touch buttons and/or transfer touch buttons, so that document 3 can be backed up based on copy touch buttons To the specified storage space, the document 3 can be transferred to the specified storage space based on the transfer touch key. The specific implementation can be referred to above, and will not be repeated here.
作为一种示例,请继续参考图13中的(b)图,分享提示框中还包括打印触控按键,当用户想要打印文档3时可以触发打印触控按键。响应于用户对打印触控按键的触发操作,手机调用打印应用,以通过打印应用对文档3进行打印。As an example, please continue to refer to (b) in FIG. 13 , the sharing prompt box also includes a print touch button, and the print touch button can be triggered when the user wants to print the document 3 . In response to the user's trigger operation on the print touch button, the mobile phone invokes the printing application, so as to print the document 3 through the printing application.
作为本申请的一个示例,用户可以基于桌面卡片打开文档3。示例性地,桌面卡片中显示的文档3的属性信息包括文档3的图标和名称,当用户想要打开文档3时可以在桌面卡片中点击文档3的图标或名称。作为一种示例,响应于用户的触发操作,手机通过目标应用打开文档3。作为另一种示例,响应于用户的触发操作,手机打开应用列表,应用列表中包括多个能够用于打开文档3的目标应用,如此,用户即可根据实际需求从应用列表中选择一个目标应用,响应于用户的选择操作,手机通过用户所选择的目标应用打开文档3。As an example of this application, a user may open document 3 based on a desktop card. Exemplarily, the attribute information of the document 3 displayed on the desktop card includes the icon and the name of the document 3, and when the user wants to open the document 3, he can click the icon or the name of the document 3 in the desktop card. As an example, in response to the user's trigger operation, the mobile phone opens the document 3 through the target application. As another example, in response to the user's trigger operation, the mobile phone opens an application list, which includes multiple target applications that can be used to open the document 3, so that the user can select a target application from the application list according to actual needs , in response to the user's selection operation, the mobile phone opens the document 3 through the target application selected by the user.
作为本申请的一个示例,桌面卡片中除了包括文档3之外,还包括手机最近下载或打开的至少一个其他文档的卡片信息。示例性地,请继续参考图13中的(a)图,桌面卡片中还包括文档4“New policy”的卡片信息,同理,文档4的卡片信息包括文档4的分享触控按键和属性信息,文档4的分享触控按键可以用于触发对文档4的分享,文档4的属性信息可以用于触发对文档4的打开操作。As an example of the present application, besides document 3, the card on the desktop also includes card information of at least one other document recently downloaded or opened by the mobile phone. For example, please continue to refer to (a) in Figure 13, the desktop card also includes the card information of document 4 "New policy", similarly, the card information of document 4 includes the share touch button and attribute information of document 4 , the sharing touch button of the document 4 can be used to trigger the sharing of the document 4, and the attribute information of the document 4 can be used to trigger the opening operation of the document 4.
作为本申请的一个示例,当手机中存在待显示的新文档(譬如文档5)的卡片信息时,手机在桌面卡片中利用文档5的卡片信息冲刷掉生成时间最早的文档的卡片信息,也即在桌面卡片中删除生成时间最早的文档的卡片信息,并将文档5的卡片信息显示在桌面卡片的第一位。譬如,请参考图14,文档5的卡片信息冲刷掉文档4的卡片信息,并且文档5的卡片信息显示于文档3的卡片信息之前。As an example of this application, when there is card information of a new document (such as document 5) to be displayed in the mobile phone, the mobile phone uses the card information of document 5 in the desktop card to flush out the card information of the document with the earliest generation time, that is, Delete the card information of the document with the earliest generation time in the desktop card, and display the card information of document 5 in the first place of the desktop card. For example, please refer to FIG. 14 , the card information of document 5 flushes out the card information of document 4 , and the card information of document 5 is displayed before the card information of document 3 .
在一个实施例中,手机下载文档3后,用户可能不会立即打开文档3,而是在过了一段时间后想要打开文档3。譬如,用户通过手机下载文档3至本地后,隔了几个小时之后,用户在APP1中点击文档3,响应于用户在APP1中对文档3的触发操作,手机打开文档3。在该种情况下,桌面卡片中的文档3的卡片信息可能已经被其他新文档的卡片信息冲刷掉,此时,当检测到用户对文档3的打开操作时,手机在桌面卡片中利用文档3的卡片信息冲刷掉生成时间最早的文档的卡片信息,也即在桌面卡片中重新显示文档3的卡片信息,并且在桌面卡片中文档3的卡片信息显示于首位,具体实现可以参见图15。In one embodiment, after the mobile phone downloads the document 3, the user may not open the document 3 immediately, but wants to open the document 3 after a period of time. For example, after the user downloads document 3 to the local area through the mobile phone, after a few hours, the user clicks on document 3 in APP1, and in response to the user's trigger operation on document 3 in APP1, the mobile phone opens document 3. In this case, the card information of document 3 in the desktop card may have been flushed out by the card information of other new documents. flush out the card information of the document with the earliest generation time, that is, redisplay the card information of document 3 in the desktop card, and display the card information of document 3 in the first place in the desktop card. The specific implementation can be seen in Figure 15.
作为本申请的一个示例,桌面卡片中还包括查看触控按键,示例性地,请参考图12中的(b)图,查看触控按键为“更多”触控按键。查看触控按键用于触发进入资源管理应用的指定页面。当用户想要查看更多最近下载的网络资源时可以触发桌面卡片中的查看触控按键,响应于用户对该查看触控按键的触发操作,手机进入资源管理应用的指定页面,示例性地,指定页面如图6中的(b)图所示。指定页面下包括多个资源标签,并且,多个资源标签按照生成时间从晚到早的顺序依次排列,每个资源标签用于触发对其对应的网络资源的查看,如此用户即可查看更多手机中最近下载的网络资源。As an example of the present application, the desktop card also includes a viewing touch button. For example, please refer to (b) in FIG. 12 , the viewing touch button is a "more" touch button. View touch buttons used to trigger access to the specified page of the resource management application. When the user wants to view more recently downloaded network resources, the view touch button in the desktop card can be triggered. In response to the user's trigger operation on the view touch button, the mobile phone enters the specified page of the resource management application. Exemplarily, The specified page is shown in (b) in Figure 6. The specified page includes multiple resource tags, and the multiple resource tags are arranged in order of generation time from late to early. Each resource tag is used to trigger the viewing of its corresponding network resources, so that users can view more The most recently downloaded web resources in the phone.
在介绍完本申请实施例涉及的应用场景之后,接下来对本申请实施例涉及的内部实现进行介绍。请参考图16,图16是根据一示例性实施例示出的一种系统架构示意图,该系统架构中包括电子设备和配置服务器。作为一种示例,电子设备中除了安装有APP之外,主要包括文件系统、系统服务模块、分享模块、资源管理模块、界面显示模块。在一个实施例中,界面显示模块包括UI模块或卡片管理模块。在一个实施例中,电子设备中还包括监听模块。作为一种示例,配置服务器可以为网关路由选择服务器(Gateway Routing Server,GRS)。电子设备通过系统服务模块与配置服务器之间进行数据通信。After introducing the application scenarios involved in the embodiments of the present application, the internal implementation involved in the embodiments of the present application will be introduced next. Please refer to FIG. 16 . FIG. 16 is a schematic diagram of a system architecture according to an exemplary embodiment, where the system architecture includes an electronic device and a configuration server. As an example, in addition to the APP installed, the electronic device mainly includes a file system, a system service module, a sharing module, a resource management module, and an interface display module. In one embodiment, the interface display module includes a UI module or a card management module. In one embodiment, the electronic device further includes a monitoring module. As an example, the configuration server may be a Gateway Routing Server (GRS). The electronic device performs data communication with the configuration server through the system service module.
作为本申请的一个示例,界面显示模块可以用于获取消息通知开关的状态,消息通知开关用于指示是否开启下载网络资源的监听功能。在一个实施例中,界面显示模块将获取到的消息通知开关的状态通知给系统服务模块。As an example of the present application, the interface display module may be used to acquire the state of the message notification switch, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources. In one embodiment, the interface display module notifies the obtained state of the message notification switch to the system service module.
作为本申请的一个示例,电子设备通过系统服务模块从配置服务器中定时读取需要监控的目标存储空间对应的目标存储路径,并且,系统服务模块从界面显示模块中获取消息通知开关的状态。在一个实施例中,在消息通知开关处于开启的状态下,系统服务模块通过文件系统感知目标存储空间是否有新的网络资源生成,为了便于理解,本申请实施例将新生成的网络资源称为第一网络资源。当文件系统感知到目标存储空间有第一网络资源生成时,通知给监听模块,由监听模块上报给系统服务模块。As an example of the present application, the electronic device regularly reads the target storage path corresponding to the target storage space to be monitored from the configuration server through the system service module, and the system service module obtains the status of the message notification switch from the interface display module. In one embodiment, when the message notification switch is turned on, the system service module senses whether new network resources are generated in the target storage space through the file system. For ease of understanding, this embodiment of the present application refers to newly generated network resources as First web resource. When the file system perceives that the first network resource is generated in the target storage space, it notifies the monitoring module, and the monitoring module reports to the system service module.
在一个实施例中,界面显示模块包括UI模块。系统服务模块通知资源管理模块有第一网络资源生成,此时,资源管理模块生成提示消息,提示消息用于提供对第一网络资源进行操作的快捷选项。资源管理模块生成提示消息后,将提示消息发送给UI模块,以通过UI模块弹出提示消息。In one embodiment, the interface display module includes a UI module. The system service module notifies the resource management module that the first network resource is generated. At this time, the resource management module generates a prompt message, and the prompt message is used to provide shortcut options for operating the first network resource. After the resource management module generates the prompt message, it sends the prompt message to the UI module, so that the prompt message can be popped up through the UI module.
在另一实施例中,界面显示模块包括卡片管理模块。系统服务模块通知资源管理模块有第一网络资源生成,并将第一网络资源的目标存储路径发送给资源管理模块,资源管理模块基于目标存储路径获取第一网络资源的属性信息。资源管理模块通知卡片管理模块,卡片管理模块回调第一网络资源的属性信息,并基于回调的属性信息,生成桌面卡片。之后,卡片管理模块将桌面卡片作为提示消息进行显示。In another embodiment, the interface display module includes a card management module. The system service module notifies the resource management module that the first network resource is generated, and sends the target storage path of the first network resource to the resource management module, and the resource management module obtains the attribute information of the first network resource based on the target storage path. The resource management module notifies the card management module, and the card management module calls back the attribute information of the first network resource, and generates a desktop card based on the callback attribute information. Afterwards, the card management module displays the desktop card as a prompt message.
如此,用户即可基于提示消息对第一网络资源进行分享、备份、转移、打开、打印之类的管理。示例性地,当用户基于提示消息对第一网络资源进行分享时,响应于分享操作,资源管理模块通知分享模块执行分享操作。再如,当用户基于提示消息对第一网络资源进行转移时,响应于转移操作,资源管理模块将第一网络资源进行位置 转移。又如,当用户基于提示消息打开第一网络资源时,响应于用户对提示消息的消息体的点击操作,资源管理模块执行打开操作等。In this way, the user can perform management such as sharing, backing up, transferring, opening, and printing the first network resource based on the prompt message. Exemplarily, when the user shares the first network resource based on the prompt message, in response to the sharing operation, the resource management module notifies the sharing module to perform the sharing operation. For another example, when the user transfers the first network resource based on the prompt message, in response to the transfer operation, the resource management module transfers the location of the first network resource. For another example, when the user opens the first network resource based on the prompt message, in response to the user's click operation on the message body of the prompt message, the resource management module performs an open operation and the like.
接下来结合附图对本申请实施例涉及的网络资源的处理方法的具体实现流程进行介绍。请参考图17,图17是本申请实施例提供的一种网络资源的处理方法的示意性流程图,该方法可以应用于上述电子设备中,该方法可以包括如下部分或者全部内容:Next, the specific implementation process of the network resource processing method involved in the embodiment of the present application will be introduced with reference to the accompanying drawings. Please refer to FIG. 17. FIG. 17 is a schematic flowchart of a method for processing network resources provided by an embodiment of the present application. The method can be applied to the above-mentioned electronic device, and the method can include part or all of the following:
步骤1701:通过电子设备中的第一应用获取第一网络资源。Step 1701: Obtain a first network resource through a first application in an electronic device.
第一应用是指电子设备中能够用于下载网络资源的应用。第一应用的数量可以为一个或者多个。在第一应用的数量为多个的情况下,多个第一应用的类型可以相同,也可以不相同,譬如,电子设备中的第一应用包括APP1、APP2、APP3、APP4、APP5,其中APP1、APP2、APP3分别为社交应用、APP4为搜索应用、APP5为电子邮箱。The first application refers to an application that can be used to download network resources in the electronic device. There may be one or more first applications. When there are multiple first applications, the types of the multiple first applications may be the same or different. For example, the first applications in the electronic device include APP1, APP2, APP3, APP4, APP5, wherein APP1 , APP2, and APP3 are social applications, APP4 is a search application, and APP5 is an email.
作为一种示例,通过电子设备中的第一应用获取第一网络资源的具体实现可以包括:通过电子设备中的第一应用接收其他电子设备中的第二应用发送的第一网络资源,示例性地,第二应用与第一应用的类型相同。As an example, the specific implementation of obtaining the first network resource through the first application in the electronic device may include: receiving the first network resource sent by the second application in other electronic devices through the first application in the electronic device, exemplary Specifically, the second application is of the same type as the first application.
作为另一种示例,通过电子设备中的第一应用获取第一网络资源的具体实现还可以包括:通过电子设备中的第一应用从网络平台中搜索第一网络资源。譬如第一应用为浏览器,电子设备通过浏览器从网络平台中搜索文档等。As another example, the specific implementation of acquiring the first network resource through the first application in the electronic device may further include: searching for the first network resource from a network platform through the first application in the electronic device. For example, the first application is a browser, and the electronic device searches for documents and the like from a network platform through the browser.
当然,上述通过电子设备中的第一应用获取第一网络资源的具体实现方式仅是示例性的,在另一实施例中,还可以通过第一应用采用其他方式获取第一网络资源,本申请实施例对此不作限定。Of course, the above-mentioned specific implementation of obtaining the first network resource through the first application in the electronic device is only exemplary. In another embodiment, the first application may also use other methods to obtain the first network resource. This application The embodiment does not limit this.
步骤1702:监听目标存储空间存储有第一网络资源,显示提示消息,目标存储空间是第一应用下载网络资源时的资源存储空间,提示消息用于提供对第一网络资源进行操作的快捷选项。Step 1702: Monitor that the target storage space stores the first network resource, and display a prompt message. The target storage space is the resource storage space when the first application downloads the network resource. The prompt message is used to provide shortcut options for operating the first network resource.
不难理解,目标存储空间也即是需要监听的资源存储空间。在一个实施例中,目标存储空间中的各个网络资源可以是根据优先级排列的,各个网络资源的优先级可以根据对应的网络资源的下载时间、打开时间、打开频率中的至少一项确定,本申请实施例对此不作限定。It is not difficult to understand that the target storage space is also the resource storage space that needs to be monitored. In one embodiment, each network resource in the target storage space may be arranged according to priority, and the priority of each network resource may be determined according to at least one of the download time, opening time, and opening frequency of the corresponding network resource, This embodiment of the present application does not limit it.
在一个实施例中,如图16所示,目标存储空间对应的目标存储路径是由电子设备从配置服务器中获取得到。示例性地,电子设备定时地从配置服务器中获取待监控的资源存储路径,得到目标存储路径。如此,定时获取可以使得电子设备能够获取到最新的目标存储路径。In one embodiment, as shown in FIG. 16 , the target storage path corresponding to the target storage space is obtained by the electronic device from the configuration server. Exemplarily, the electronic device periodically obtains the resource storage path to be monitored from the configuration server to obtain the target storage path. In this way, timing acquisition can enable the electronic device to acquire the latest target storage path.
其中,目标存储路径的数量可以为一个或者多个。在目标存储路径的数量为多个的情况下,每个目标存储路径对应一个第一应用。示例性地,第一应用包括WX应用和浏览器,其中,WX应用的目标存储路径为/storage/emulated/0/Download/WX,浏览器的目标存储路径为/storage/emulated/0/Download/Browser,也即,此时的目标存储路径有两个,分别为/storage/emulated/0/Download/WX和/storage/emulated/0/Download/Browser。Wherein, the number of target storage paths may be one or more. If there are multiple target storage paths, each target storage path corresponds to a first application. Exemplarily, the first application includes a WX application and a browser, wherein the target storage path of the WX application is /storage/emulated/0/Download/WX, and the target storage path of the browser is /storage/emulated/0/Download/ Browser, that is, there are two target storage paths at this time, namely /storage/emulated/0/Download/WX and /storage/emulated/0/Download/Browser.
在一个实施例中,第一网络资源为文档。电子设备通过文件系统监听目标存储空间,以监听目标存储空间是否有文档生成。In one embodiment, the first web resource is a document. The electronic device monitors the target storage space through the file system, so as to monitor whether a document is generated in the target storage space.
若目标存储空间中存储有第一网络资源,则说明电子设备通过第一应用下载了第一网络资源,在该种情况下,用户可能有对第一网络资源进行管理的需求,为此电子设备显示提示消息。If the first network resource is stored in the target storage space, it means that the electronic device has downloaded the first network resource through the first application. In this case, the user may have a need to manage the first network resource. Therefore, the electronic device Display a prompt message.
示例性地,以第一网络资源是文档为例。电子设备通过文件系统监听目标存储空间,当目标存储空间存储有文档时,通知电子设备中的监听模块,由监听模块通知系统服务模块。系统服务模块通知资源管理模块。在一个实施例中,资源管理模块生成提示消息。之后,资源管理模块将生成的提示消息发送给界面显示模块,由界面显示模块在电子设备中显示提示消息。如此,使得用户基于提示消息能够对文档进行快捷管理。Exemplarily, the first network resource is a document as an example. The electronic device monitors the target storage space through the file system, and when the target storage space stores documents, it notifies the monitoring module in the electronic device, and the monitoring module notifies the system service module. The system service module notifies the resource management module. In one embodiment, the resource management module generates a prompt message. Afterwards, the resource management module sends the generated prompt message to the interface display module, and the interface display module displays the prompt message in the electronic device. In this way, the user can quickly manage the document based on the prompt message.
作为本申请一个示例,在监听目标存储空间之前,电子设备获取消息通知开关的状态。在消息通知开关处于开启状态的情况下,执行监听目标存储空间的操作。As an example of the present application, before listening to the target storage space, the electronic device obtains the status of the message notification switch. When the message notification switch is turned on, perform the operation of monitoring the target storage space.
在一个示例中,电子设备通过系统服务模块获取消息通知开关的状态。在消息通知开关处于开启状态的情况下,系统服务模块监听目标存储空间存储有第一网络资源,通知资源管理模块。资源管理模块接收系统服务模块的通知后,生成提示消息,资源管理模块将提示消息发送至界面显示模块。界面显示模块显示提示消息。In an example, the electronic device acquires a message to notify the state of the switch through the system service module. When the message notification switch is turned on, the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module. After receiving the notification from the system service module, the resource management module generates a prompt message, and the resource management module sends the prompt message to the interface display module. The interface display module displays a prompt message.
在另一个示例中,电子设备通过系统服务模块获取消息通知开关的状态。在消息通知开关处于开启状态的情况下,系统服务模块监听目标存储空间存储有第一网络资源,通知资源管理模块,并将目标存储路径发送给资源管理模块。资源管理模块基于目标存储路径获取第一网络资源的属性信息。资源管理模块通知界面显示模块,界面显示模块回调属性信息,并基于属性信息生成提示消息。界面显示模块显示提示消息。譬如,当提示消息为桌面卡片时,可以采用该种方式实现。In another example, the electronic device acquires a message to notify the state of the switch through the system service module. When the message notification switch is turned on, the system service module monitors that the target storage space stores the first network resource, notifies the resource management module, and sends the target storage path to the resource management module. The resource management module acquires attribute information of the first network resource based on the target storage path. The resource management module notifies the interface display module, and the interface display module calls back the attribute information and generates a prompt message based on the attribute information. The interface display module displays a prompt message. For example, when the prompt message is a desktop card, this method can be used.
其中,提示消息中提供的快捷选项用于直接将第一网络资源传输给目标应用或者目标设备,和/或,快捷选项用于直接将第一网络资源从目标存储空间存储至指定存储空间。Wherein, the shortcut option provided in the prompt message is used to directly transfer the first network resource to the target application or target device, and/or, the shortcut option is used to directly store the first network resource from the target storage space to the designated storage space.
其中,直接将第一网络资源传输给目标应用或者目标设备是指,不需要用户多次操作即可将第一网络资源传输给目标应用或者目标设备。同理,直接将第一网络资源从目标存储空间存储至指定存储空间是指,不需要用户多次操作即可将第一网络资源从目标存储空间存储至指定存储空间。Wherein, directly transmitting the first network resource to the target application or the target device means that the first network resource can be transmitted to the target application or the target device without multiple operations by the user. Similarly, directly storing the first network resource from the target storage space to the specified storage space refers to storing the first network resource from the target storage space to the specified storage space without multiple operations by the user.
作为本申请的一个示例,提示消息的消息体是可触发的,提示消息的消息体用于触发对第一网络资源的一种管理方式;和/或,提示消息中包括至少一个触控按键,至少一个触控按键中的每个触控按键用于触发对第一网络资源的一种管理方式。也即,提示消息提供的快捷选项可以是提示消息的消息体和/或触控按键。As an example of the present application, the message body of the prompt message is triggerable, and the message body of the prompt message is used to trigger a management method for the first network resource; and/or, the prompt message includes at least one touch button, Each touch button in the at least one touch button is used to trigger a management method for the first network resource. That is, the shortcut option provided by the prompt message may be a message body and/or a touch button of the prompt message.
在一个实施例中,在提示消息的消息体是可触发的情况下,可以通过对消息体的不同的触发方式来触发对第一网络资源的不同管理操作。譬如,通过对消息体的划动触发对第一网络资源的分享操作,以及通过对消息体的点击触发对第一网络资源的打开操作等。In an embodiment, in the case that the message body of the prompt message is triggerable, different management operations on the first network resource may be triggered through different triggering manners on the message body. For example, a swipe on the message body triggers a sharing operation on the first network resource, and a click on the message body triggers an opening operation on the first network resource.
作为本申请的一个示例,在快捷选项用于直接将第一网络资源传输给目标应用或者目标设备的情况下,提示消息包括分享快捷选项、打开快捷选项、打印快捷选项中的至少一项,分享快捷选项用于触发直接将第一网络资源分享给目标应用或者目标设 备,打开快捷选项用于触发直接将第一网络资源发送给目标应用进行打开,打印快捷选项用于触发直接将第一网络资源发送给目标应用进行打印。As an example of the present application, when the shortcut option is used to directly transmit the first network resource to the target application or target device, the prompt message includes at least one of the share shortcut option, open shortcut option, print shortcut option, share The shortcut option is used to trigger directly sharing the first network resource to the target application or target device, the open shortcut option is used to trigger directly sending the first network resource to the target application for opening, and the print shortcut option is used to trigger directly sharing the first network resource Send to target application for printing.
作为本申请的一个示例,在快捷选项用于直接将第一网络资源从目标存储空间存储至指定存储空间的情况下,提示消息包括复制快捷选项、转移快捷选项中的至少一项,复制快捷选项用于触发直接将第一网络资源从目标存储空间拷贝至指定存储空间,转移快捷选项用于触发直接将第一网络资源从目标存储空间转移至指定存储空间。As an example of the present application, when the shortcut option is used to directly store the first network resource from the target storage space to the specified storage space, the prompt message includes at least one of the copy shortcut option, the transfer shortcut option, and the copy shortcut option It is used to trigger the direct copying of the first network resource from the target storage space to the designated storage space, and the transfer shortcut option is used to trigger the direct transfer of the first network resource from the target storage space to the designated storage space.
作为本申请的一个示例,在提示消息包括分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项的情况下,提示消息包括多级提示菜单,分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项通过多级提示菜单分级显示。As an example of the present application, when the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, and transfer shortcut options, the prompt message includes multi-level prompt menus, share shortcut options, open shortcut options, Print shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through a multi-level prompt menu.
也即是,若提示消息包括的快捷选项的数量较多,则可以通过多级提示菜单进行分级显示。示例性地,请参考图8,提示消息包括两级提示菜单,第一级提示菜单为图8中(a)图包括的悬浮窗,第二级提示菜单为图8中(b)图包括的分享提示框。That is, if the number of shortcut options included in the prompt message is large, they can be displayed hierarchically through a multi-level prompt menu. For example, please refer to Figure 8, the prompt message includes a two-level prompt menu, the first-level prompt menu is the floating window included in Figure 8 (a), and the second-level prompt menu is included in Figure 8 (b) Share prompt box.
作为本申请的一个示例,基于提示消息检测查看操作,调用资源管理应用,资源管理应用中显示有第一网络资源。譬如,在资源管理应用的指定页面中显示第一网络资源。As an example of the present application, a view operation is detected based on the prompt message, and a resource management application is called, and the first network resource is displayed in the resource management application. For example, the first network resource is displayed on a designated page of the resource management application.
作为本申请的一个示例,提示消息为桌面卡片、悬浮窗、提示框中的任意一种。As an example of the present application, the prompt message is any one of a desktop card, a floating window, and a prompt box.
作为本申请的一个示例,提示消息中包括多个网络资源的提示信息。其中,每个网络资源的提示信息用于为用户对每个网络资源的管理提供快捷入口。As an example of the present application, the prompt message includes prompt information of multiple network resources. Wherein, the prompt information of each network resource is used to provide a quick entry for the user to manage each network resource.
作为本申请的一个示例,提示消息中包括的多个网络资源的提示信息根据资源下载时间进行更新。As an example of the present application, the prompt information of multiple network resources included in the prompt message is updated according to resource download time.
举例来说,当存在待显示的网络资源的提示信息时,电子设备可以将提示消息中最早显示的网络资源的提示信息删除,并将待显示的网络资源的提示信息在提示消息中置顶显示,以对提示消息中的网络资源的提示信息进行更新。For example, when there is prompt information of a network resource to be displayed, the electronic device may delete the prompt information of the network resource displayed earliest in the prompt message, and display the prompt information of the network resource to be displayed on top of the prompt message, In order to update the prompt information of the network resource in the prompt message.
作为本申请的一个示例,在提示消息中的第一网络资源的提示信息消失的情况下,检测第一网络资源的打开事件,重新在提示消息中显示第一网络资源的提示信息。As an example of the present application, when the prompt information of the first network resource in the prompt message disappears, the opening event of the first network resource is detected, and the prompt information of the first network resource is redisplayed in the prompt message.
如前文所述,由于提示消息中包括的多个网络资源的提示信息是根据资源下载时间进行更新的,所以在一种情况下,提示消息中第一网络资源的提示信息可能被删掉了。当电子设备检测到第一网络资源被打开时,可以在提示消息中重新显示第一网络资源的提示信息,以便于用户可以再次基于提示消息对第一网络资源进行快捷管理。As mentioned above, since the prompt information of multiple network resources included in the prompt message is updated according to the resource download time, in one case, the prompt information of the first network resource in the prompt message may be deleted. When the electronic device detects that the first network resource is opened, it may redisplay the prompt information of the first network resource in the prompt message, so that the user can quickly manage the first network resource again based on the prompt message.
作为本申请的一个示例,若目标存储路径下存储有第一网络资源,则在显示提示消息之前,还可以判断是否满足消息提示条件,若满足消息提示条件,则电子设备执行显示提示消息的操作。As an example of the present application, if the first network resource is stored in the target storage path, before displaying the prompt message, it may also be judged whether the message prompt condition is satisfied, and if the message prompt condition is met, the electronic device performs the operation of displaying the prompt message .
其中,消息提示条件可以根据实际需求进行设置。示例性地,消息提示条件可以是:第一网络时间的格式为预置格式,譬如,预置格式可以包括但不限于doc,docx,xls,xlsx,pdf,ppt,pptx,zip,alz,rar。Wherein, the message prompt condition may be set according to actual requirements. Exemplarily, the message prompt condition may be: the format of the first network time is a preset format, for example, the preset format may include but not limited to doc, docx, xls, xlsx, pdf, ppt, pptx, zip, alz, rar .
示例性地,由于目标存储空间中可能会存储各种类型的网络资源,作为一种示例,可以在检测到有文档生成的情况下进行消息提示。所以,若目标存储空间中存储有第一网络资源,则电子设备可以判断第一网络资源是否为预置格式的文档。若第一网络 资源是预置格式的文档,则显示提示消息。如此,可以使得电子设备有针对性地监控和提示。Exemplarily, since various types of network resources may be stored in the target storage space, as an example, a message prompt may be performed when it is detected that a document is generated. Therefore, if the first network resource is stored in the target storage space, the electronic device can determine whether the first network resource is a document in a preset format. If the first network resource is a document in a pre-formatted format, a prompt message is displayed. In this way, the electronic device can be monitored and prompted in a targeted manner.
在本申请实施例中,通过电子设备中的第一应用获取第一网络资源,监听第一应用下载网络资源时的目标存储空间中存储有第一网络资源,说明通过第一应用下载了第一网络资源,此时显示提示消息。提示消息用于提供对第一网络资源进行操作的快捷选项。快捷选项用于直接将第一网络资源传输给目标应用或者目标设备,和/或,快捷选项用于直接将第一网络资源从目标存储空间存储至指定存储空间。如此,以便于用户对第一网络资源进行快捷管理,避免需要用户多次操作进入第一网络资源的实际存储位置后进行管理,从而可以提高网络资源的管理效率。In the embodiment of the present application, the first network resource is obtained through the first application in the electronic device, and the first network resource is stored in the target storage space when the first application downloads the network resource, indicating that the first network resource is downloaded through the first application. network resources, a prompt message is displayed. The prompt message is used to provide shortcut options for operating the first network resource. The shortcut option is used to directly transfer the first network resource to the target application or the target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to the specified storage space. In this way, it is convenient for the user to quickly manage the first network resource, avoiding the need for the user to perform multiple operations to enter the actual storage location of the first network resource for management, thereby improving the management efficiency of the network resource.
作为本申请的一个示例,电子设备可以生成不同形式的提示消息进行提示。作为示例而非限定,基于上文所述的实施例的基础上,接下来通过如下实施例对几种提示方式分别进行介绍。As an example of the present application, the electronic device may generate prompt messages in different forms for prompting. As an example rather than a limitation, based on the above-mentioned embodiments, several prompting methods are introduced respectively through the following embodiments.
请参考图18,图18是根据另一示例性实施例示出的一种网络资源的处理方法的流程图。该方法可以应用于上述电子设备中,这里以该方法由电子设备包括的模块执行为例进行介绍。作为示例而非限定,该方法可以包括如下部分或者全部内容:Please refer to FIG. 18 , which is a flowchart of a method for processing network resources according to another exemplary embodiment. The method can be applied to the above-mentioned electronic device, and the introduction will be made here by taking the method executed by a module included in the electronic device as an example. As an example but not a limitation, the method may include some or all of the following:
1801:系统服务模块获取消息通知开关的状态。1801: The system service module acquires the status of the message notification switch.
作为一种示例,消息通知开关设于资源管理应用中。As an example, the message notification switch is set in the resource management application.
系统服务模块获取消息通知开关的状态,并根据消息通知开关的状态相应地开启或关闭下载网络资源的监控功能。譬如,在消息通知开关处于开启状态的情况下开启下载网络资源的监控功能,在消息通知开关处于关闭状态的情况下关闭或不开启下载网络资源的监控功能。The system service module acquires the status of the message notification switch, and correspondingly enables or disables the monitoring function of downloading network resources according to the status of the message notification switch. For example, when the message notification switch is turned on, the monitoring function of downloading network resources is enabled, and when the message notification switch is turned off, the monitoring function of downloading network resources is turned off or not enabled.
1802:在消息通知开关处于开启状态的情况下,系统服务模块监听目标存储空间。1802: When the message notification switch is turned on, the system service module monitors the target storage space.
目标存储空间对应的目标存储路径由系统服务模块定时地从配置服务器中获取得到。这里需要说明的是,系统服务模块获取目标存储路径的过程与执行的其他操作之间没有先后执行顺序。The target storage path corresponding to the target storage space is periodically obtained by the system service module from the configuration server. It should be noted here that there is no sequential execution sequence between the process of obtaining the target storage path and other operations performed by the system service module.
作为本申请的一个示例,若消息通知开关处于关闭状态,则系统服务模块不执行监听操作,此时不开启下载网络资源的监控功能,也即不执行本申请实施例提供的网络资源的处理方法。As an example of the present application, if the message notification switch is turned off, the system service module does not perform the monitoring operation, and the monitoring function of downloading network resources is not enabled at this time, that is, the processing method for network resources provided by the embodiment of the present application is not executed .
作为本申请的一个示例,系统服务模块在监听目标存储空间的过程中,可以继续监听消息通知开关的状态,若监听到消息通知开关的状态由开启状态切换至关闭状态,则关闭下载网络资源的监控功能。As an example of this application, the system service module can continue to monitor the state of the message notification switch during the process of monitoring the target storage space. monitoring function.
值得一提的是,上述通过设置消息通知开关的状态来开启或关闭本申请实施例涉及的下载网络资源的监控功能,使得用户可以根据实际需求开启或关闭消息通知开关,从而开启或关闭下载网络资源的监控功能,进而提高了用户体验。It is worth mentioning that the monitoring function of the download network resources involved in the embodiment of the present application is turned on or off by setting the state of the message notification switch, so that the user can turn on or off the message notification switch according to actual needs, thereby turning on or off the download network resource. The resource monitoring function improves the user experience.
需要说明的是,上述是以系统服务模块在监听目标存储空间之前获取消息通知开关的状态为例进行说明。在另一实施例中,获取消息通知开关的状态的步骤是可选地,也即,也可以不获取消息通知开关的状态,系统服务模块直接执行监听目标存储空间的操作,本申请实施例对此不作限定。It should be noted that, the above is described by taking the state of the message notification switch obtained by the system service module before monitoring the target storage space as an example. In another embodiment, the step of obtaining the state of the message notification switch is optional, that is, the state of the message notification switch may not be obtained, and the system service module directly performs the operation of monitoring the target storage space. This is not limited.
1803:系统服务模块监听目标存储空间存储有第一网络资源,通知资源管理模块。1803: The system service module monitors that the first network resource is stored in the target storage space, and notifies the resource management module.
示例性地,若第一网络资源为文档,且文档的格式为doc,docx,xls,xlsx,pdf,ppt,pptx,zip,alz,rar中的任一种,则系统服务模块向资源管理模块发送通知,该通知用于指示目标存储空间中有新文档生成。Exemplarily, if the first network resource is a document, and the format of the document is any one of doc, docx, xls, xlsx, pdf, ppt, pptx, zip, alz, rar, then the system service module sends the resource management module Send a notification indicating that a new document is generated in the target bucket.
1804:资源管理模块生成提示框。1804: The resource management module generates a prompt box.
也即,资源管理模块接收系统服务模块的通知后,生成提示消息,这里以提示消息是提示框为例进行说明。That is, the resource management module generates a prompt message after receiving the notification from the system service module. Here, the prompt message is a prompt box as an example for illustration.
1805:资源管理模块将生成的提示框发送给UI模块。1805: The resource management module sends the generated prompt box to the UI module.
也即,资源管理模块将提示消息发送至界面显示模块,这里以界面显示模块是UI模块为例进行说明。That is, the resource management module sends the prompt message to the interface display module. Here, the interface display module is a UI module as an example for illustration.
1806:UI模块显示提示框。1806: The UI module displays a prompt box.
也即,UI模块将提示框作为提示消息显示于电子设备当前的显示界面中。示例性地,显示效果如图3中的(b)图所示。That is, the UI module displays the prompt box as a prompt message on the current display interface of the electronic device. Exemplarily, the display effect is as shown in figure (b) of FIG. 3 .
作为本申请的一个示例,提示框中包括分享快捷选项、转移快捷选项中的至少一项。提示框响应于如下几种事件:As an example of the present application, the prompt box includes at least one of a share shortcut option and a transfer shortcut option. Tooltips respond to the following events:
在一个实施例中,响应于分享快捷选项(如图3中的(b)图中的分享触发按键)的触发操作,资源管理模块通知分享模块。分享模块接收资源管理模块的通知后,搜索电子设备中具备分享功能的目标应用以及开启分享功能的目标设备。分享模块显示分享提示框,如图所示4中的(b)图所示,分享提示框中包括搜索到的目标应用和/或目标设备,响应于对分享提示框中包括的目标应用和/或目标设备的选择操作,资源管理模块从目标存储空间中获取第一网络资源,并将第一网络资源发送给选择操作所选择的目标应用或者目标设备。也即,用户可以基于分享提示框将第一网络资源快速分享给分享提示框中的目标设备或目标应用。In one embodiment, in response to the trigger operation of the share shortcut option (such as the share trigger button in (b) of FIG. 3 ), the resource management module notifies the share module. After receiving the notification from the resource management module, the sharing module searches the electronic device for a target application with a sharing function and a target device with a sharing function enabled. The sharing module displays a sharing prompt box, as shown in Figure 4 (b), the sharing prompt box includes the searched target application and/or target device, in response to the target application and/or target device included in the sharing prompt box Or the selection operation of the target device, the resource management module obtains the first network resource from the target storage space, and sends the first network resource to the target application or target device selected by the selection operation. That is, based on the sharing prompt box, the user can quickly share the first network resource to the target device or target application in the sharing prompt box.
在另一个实施例中,响应于转移快捷选项的触发操作,资源管理模块调用路径选择器,以通过所述路径选择器获取路径内容。资源管理模块基于路径内容显示路径管理界面。响应于基于路径管理界面输入的路径选择操作,资源管理模块确定路径选择操作所选择的指定存储空间。资源管理模块从目标存储空间中获取第一网络资源,并将第一网络资源存储至指定存储空间。资源管理模块将目标存储空间中存储的第一网络资源删除。In another embodiment, in response to the trigger operation of the transfer shortcut option, the resource management module invokes a path selector to obtain path content through the path selector. The resource management module displays the path management interface based on the path content. In response to the path selection operation input based on the path management interface, the resource management module determines the specified storage space selected by the path selection operation. The resource management module obtains the first network resource from the target storage space, and stores the first network resource in the designated storage space. The resource management module deletes the first network resource stored in the target storage space.
如此用户即可选择目录或者新建目标,从而可以将第一网络资源转移至指定存储空间中。如此,可以将不同的第一应用下载的网络资源收集至统一的存储路径下,从而可以便于用户查看和管理。In this way, the user can select a directory or create a new target, so that the first network resource can be transferred to the designated storage space. In this way, the network resources downloaded by different first applications can be collected under a unified storage path, which is convenient for users to view and manage.
在又一个实施例中,提示框是可触发的。响应于提示框的触发操作,进入资源管理应用的指定页面,资源管理应用用于管理电子设备中的第一应用下载的网络资源,指定页面中包括在当前时间之前且距离当前时间预设时长内生成的至少一个资源标签,每个资源标签用于触发对每个资源标签对应的网络资源的打开操作,至少一个资源标签按照生成时间顺序排列。In yet another embodiment, the tooltip is triggerable. In response to the trigger operation of the prompt box, enter the specified page of the resource management application. The resource management application is used to manage the network resources downloaded by the first application in the electronic device. At least one resource tag is generated, each resource tag is used to trigger the opening operation of the network resource corresponding to each resource tag, and the at least one resource tag is arranged in order of generation time.
其中,预设时长可以根据实际需求进行设置。示例性地,预设时长可以为1个月,此时,在当前时间之前且距离当前时间预设时长内是指最近的一个月内。Wherein, the preset duration can be set according to actual needs. Exemplarily, the preset time period may be 1 month, and in this case, before the current time and within the preset time period from the current time refers to within the nearest month.
作为一种示例,资源管理应用为前文所述的文件管理应用,指定页面为文件管理应用中的最近页签。As an example, the resource management application is the aforementioned file management application, and the specified page is the latest tab in the file management application.
譬如,当用户想要查看电子设备中的第一应用最近下载的网络资源时,可以点击提示框。响应于提示框的触发操作,电子设备启动文件管理应用,并跳转至文件管理应用的最近页签,最近页签中包括最近下载的文档的资源标签。用户可以触发资源标签以查看对应的文档。如此,响应于提示框的触发操作,电子设备进入资源管理应用的指定页面,从而使得用户可以方便的查看最近下载的文档。For example, when the user wants to view the network resources recently downloaded by the first application in the electronic device, the prompt box can be clicked. In response to the trigger operation of the prompt box, the electronic device starts the file management application, and jumps to the recent tab of the file management application, where the recent page includes the resource tag of the most recently downloaded document. Users can trigger the resource tab to view the corresponding document. In this way, in response to the trigger operation of the prompt box, the electronic device enters the specified page of the resource management application, so that the user can conveniently view the recently downloaded files.
在一个实施例中,在检测到用户对提示框的操作后,电子设备可以不再显示提示框。In an embodiment, after detecting the user's operation on the prompt box, the electronic device may no longer display the prompt box.
在本申请实施例中,通过第一应用获取第一网络资源,监听目标存储空间存储有第一网络资源,通过弹出提示框来对用户进行提示,并使得用户可以基于提示框对第一网络资源进行快捷管理,避免需要用户手动多次操作进入第一网络资源的实际存储位置进行管理,提高了网络资源管理的效率。In this embodiment of the present application, the first network resource is obtained through the first application, the first network resource is stored in the monitoring target storage space, and a prompt box is popped up to prompt the user, and the user can check the first network resource based on the prompt box Quick management is performed, avoiding the need for the user to enter the actual storage location of the first network resource through multiple manual operations for management, thereby improving the efficiency of network resource management.
请参考图19,图19是根据另一示例性实施例示出的一种网络资源的处理方法的流程图。该方法可以应用于上述电子设备中,这里以该方法由电子设备包括的模块执行为例进行介绍。作为示例而非限定,该方法可以包括如下部分或者全部内容:Please refer to FIG. 19 , which is a flowchart showing a method for processing network resources according to another exemplary embodiment. The method can be applied to the above-mentioned electronic device, and the introduction will be made here by taking the method executed by a module included in the electronic device as an example. As an example but not a limitation, the method may include some or all of the following:
1901:系统服务模块获取消息通知开关的状态。1901: The system service module obtains the state of the message notification switch.
1902:在消息通知开关处于开启状态的情况下,系统服务模块监听目标存储空间。1902: When the message notification switch is turned on, the system service module monitors the target storage space.
1903:系统服务模块监听目标存储空间存储有第一网络资源,通知资源管理模块。1903: The system service module monitors that the target storage space stores the first network resource, and notifies the resource management module.
需要说明的是,步骤1901至步骤1903的实现可以参见上述步骤1801至步骤1803的实现,这里不再重复赘述。It should be noted that for the implementation of steps 1901 to 1903, reference may be made to the implementation of steps 1801 to 1803 above, which will not be repeated here.
1904:资源管理模块生成悬浮窗。1904: The resource management module generates a floating window.
也即,资源管理模块接收系统服务模块的通知后,生成提示消息,这里以提示消息是悬浮窗为例进行说明。That is, the resource management module generates a prompt message after receiving the notification from the system service module. Here, the prompt message is a floating window as an example for illustration.
在一个实施例中,悬浮窗包括第一网络资源的属性信息,该属性信息包括但不限于名称、格式、资源大小。In one embodiment, the floating window includes attribute information of the first network resource, and the attribute information includes but not limited to name, format, and resource size.
作为本申请的一个示例,悬浮窗用于触发对第一网络资源的分享或打开。As an example of the present application, the floating window is used to trigger sharing or opening of the first network resource.
作为本申请的一个示例,若第一网络资源为文档,且文档的格式为PDF,则生成的悬浮窗中包括PDF图标。或者,悬浮窗中包括文档的名称等信息,本申请实施例对此不作限定。As an example of the present application, if the first network resource is a document, and the format of the document is PDF, the generated floating window includes a PDF icon. Alternatively, the floating window includes information such as the name of the document, which is not limited in this embodiment of the present application.
1905:资源管理模块将悬浮窗发送给UI模块。1905: The resource management module sends the floating window to the UI module.
也即,资源管理模块将提示消息发送至界面显示模块,这里以界面显示模块是UI模块为例进行说明。That is, the resource management module sends the prompt message to the interface display module. Here, the interface display module is a UI module as an example for illustration.
1906:UI模块显示悬浮窗。1906: The UI module displays a floating window.
也即,UI模块将悬浮窗作为提示消息显示至电子设备的当前显示界面。That is, the UI module displays the floating window as a prompt message on the current display interface of the electronic device.
作为本申请的一个示例,悬浮窗响应于如下几种事件:As an example of this application, the floating window responds to the following events:
在一个实施例中,响应于悬浮窗的划动操作,电子设备通过资源管理模块和分享模块执行分享操作,具体实现可以参见图18所示实施例,这里不再重复赘述。In one embodiment, in response to the swipe operation of the floating window, the electronic device executes the sharing operation through the resource management module and the sharing module. For specific implementation, refer to the embodiment shown in FIG. 18 , which will not be repeated here.
作为示例而非限定,分享提示框中还包括复制快捷选项和/或转移快捷选项,复制快捷选项用于触发对第一网络资源的复制,转移快捷选项用于触发对第一网络资源的位置转移。As an example but not a limitation, the sharing prompt box also includes a copy shortcut option and/or a transfer shortcut option, the copy shortcut option is used to trigger the copying of the first network resource, and the transfer shortcut option is used to trigger the position transfer of the first network resource .
在一个实施例中,响应于复制快捷选项的触发操作,资源管理模块调用路径选择器,以通过路径选择器获取路径内容。资源管理模块基于路径内容显示路径管理界面。响应于基于路径管理界面输入的路径选择操作,资源管理模块确定路径选择操作所选择的指定存储空间。资源管理模块从目标存储空间中获取第一网络资源,并将第一网络资源拷贝至指定存储空间。In one embodiment, in response to the trigger operation of the copy shortcut option, the resource management module invokes the path selector to obtain path content through the path selector. The resource management module displays the path management interface based on the path content. In response to the path selection operation input based on the path management interface, the resource management module determines the specified storage space selected by the path selection operation. The resource management module obtains the first network resource from the target storage space, and copies the first network resource to the specified storage space.
如此用户即可选择目录或者新建目标,从而可以将第一网络资源备份至指定存储空间中。如此,可以将不同的第一应用下载的网络资源收集至统一的存储路径下,从而可以便于用户查看和管理。In this way, the user can select a directory or create a new target, so that the first network resource can be backed up to the designated storage space. In this way, the network resources downloaded by different first applications can be collected under a unified storage path, which is convenient for users to view and manage.
转移的具体实现可以参见前文,这里不再重复赘述。For the specific implementation of the transfer, refer to the above, and will not repeat it here.
作为示例而非限定,分享提示框中还包括打印快捷选项。响应于打印快捷选项的触发操作,资源管理模块确定电子设备中的打印应用为目标应用。资源管理模块从目标存储空间中获取第一网络资源,并将第一网络资源发送给打印应用,以通过打印应用打印第一网络资源。也即,本申请实施例还可以支持对第一网络资源进行快速打印。As an example but not a limitation, the sharing prompt box also includes a printing shortcut option. In response to the trigger operation of the printing shortcut option, the resource management module determines that the printing application in the electronic device is the target application. The resource management module acquires the first network resource from the target storage space, and sends the first network resource to the printing application, so as to print the first network resource through the printing application. That is, the embodiment of the present application may also support fast printing of the first network resource.
在一个实施例中,悬浮窗是可点击的。当检测对悬浮窗的点击操作后,确定检测到对打开快捷选项的触发操作。也即,此时的打开快捷选项是悬浮窗本身。In one embodiment, the floating window is clickable. After the click operation on the floating window is detected, it is determined that the trigger operation on opening the shortcut option is detected. That is, the opening shortcut option at this time is the floating window itself.
响应于打开快捷选项的触发操作,资源管理模块根据第一网络资源的格式属性,从电子设备包括的应用中确定能够用于打开第一网络资源的目标应用。资源管理模块从目标存储空间中获取第一网络资源,并将第一网络资源发送给目标应用,以通过目标应用打开第一网络资源。In response to the trigger operation of opening the shortcut option, the resource management module determines a target application that can be used to open the first network resource from applications included in the electronic device according to the format attribute of the first network resource. The resource management module obtains the first network resource from the target storage space, and sends the first network resource to the target application, so as to open the first network resource through the target application.
在一个实施例中,电子设备中能够用于打开第一网络资源的目标应用的数量可能为一个。譬如,在第一网络资源是文档的情况下,目标应用为WPS office。当检测到用户对悬浮窗的点击操作时,资源管理模块调用WPS office,将该文档发送给WPS office,并通过WPS office打开该文档。In an embodiment, the number of target applications that can be used to open the first network resource in the electronic device may be one. For example, in the case that the first network resource is a document, the target application is WPS office. When detecting the user's click operation on the floating window, the resource management module calls the WPS office, sends the document to the WPS office, and opens the document through the WPS office.
在另一实施例中,电子设备中能够用于打开第一网络资源的目标应用的数量可能为多个。在该种情况下,响应于悬浮窗的点击操作,显示应用列表,应用列表中包括能够用于打开第一网络资源的多个目标应用,应用列表用于选择打开第一网络资源的目标应用。In another embodiment, the number of target applications that can be used to open the first network resource in the electronic device may be multiple. In this case, in response to the click operation of the floating window, an application list is displayed, the application list includes multiple target applications that can be used to open the first network resource, and the application list is used to select a target application to open the first network resource.
也即,在该种实现方式中,当检测到用户对悬浮窗的点击操作时,资源管理模块通过应用列表显示能够用于打开第一网络资源的多个目标应用。用户可以基于应用列表根据实际需求从多个目标应用中选择一个目标应用。响应于用户的选择操作,资源管理模块通过用户选择的目标应用打开第一网络资源。如此,通过向用户展示多个目标应用,使得用户可以根据实际需求选择一个目标应用打开第一网络资源,提高了用户体验。That is, in this implementation manner, when the user's click operation on the floating window is detected, the resource management module displays multiple target applications that can be used to open the first network resource through the application list. The user may select a target application from multiple target applications according to actual needs based on the application list. In response to the user's selection operation, the resource management module opens the first network resource through the target application selected by the user. In this way, by presenting multiple target applications to the user, the user can select a target application to open the first network resource according to actual needs, thereby improving user experience.
在本申请实施例中,通过第一应用接收第一网络资源,监听目标存储空间存储有第一网络资源,通过弹出悬浮窗来对用户进行提示,并使得用户可以基于悬浮窗对第一网络资源进行快捷管理,避免需要用户多次操作进入第一网络资源的实际存储位置 进行管理,提高了网络资源管理的效率。In this embodiment of the application, the first application receives the first network resource, monitors the target storage space to store the first network resource, pops up a floating window to prompt the user, and allows the user to view the first network resource based on the floating window Quick management is performed, avoiding the need for the user to enter the actual storage location of the first network resource through multiple operations for management, and improves the efficiency of network resource management.
请参考图20,图20是根据另一示例性实施例示出的一种网络资源的处理方法的流程图。该方法可以应用于上述电子设备中,这里以该方法由电子设备包括的模块执行为例进行介绍。作为示例而非限定,该方法可以包括如下部分或者全部内容:Please refer to FIG. 20 , which is a flowchart of a method for processing network resources according to another exemplary embodiment. The method can be applied to the above-mentioned electronic device, and the introduction will be made here by taking the method executed by a module included in the electronic device as an example. As an example but not a limitation, the method may include some or all of the following:
2001:系统服务模块获取消息通知开关的状态。2001: The system service module acquires the state of the message notification switch.
2002:在消息通知开关处于开启状态的情况下,系统服务模块监听目标存储空间。2002: When the message notification switch is turned on, the system service module monitors the target storage space.
2003:系统服务模块监听目标存储空间存储有第一网络资源,通知资源管理模块。2003: The system service module monitors that the target storage space stores the first network resource, and notifies the resource management module.
需要说明的是,步骤2001至步骤2003的实现可以参见上述步骤1801至步骤1803的实现,这里不再重复赘述。It should be noted that for the implementation of steps 2001 to 2003, reference may be made to the implementation of steps 1801 to 1803 above, which will not be repeated here.
另外需要说明的是,系统服务模块在通知资源管理模块有第一网络资源生成时,将第一网络资源的目标存储路径传递给资源管理模块。In addition, it should be noted that when the system service module notifies the resource management module that the first network resource is generated, it transmits the target storage path of the first network resource to the resource management module.
2004:资源管理模块获取第一网络资源的属性信息。2004: The resource management module acquires attribute information of the first network resource.
在一个实施例中,资源管理模块基于目标存储路径获取第一网络资源的属性信息。In one embodiment, the resource management module acquires attribute information of the first network resource based on the target storage path.
2005:资源管理模块通知卡片管理模块。2005: The resource management module notifies the card management module.
2006:卡片管理模块生成桌面卡片。2006: The card management module generates desktop cards.
作为一种示例,请参考图21,图21是根据一示例性实施例示出的一种资源管理模块与卡片管理模块之间的交互流程图。卡片管理模块中包括第一管理单元和第二管理单元,其中,第一管理单元在接收到资源管理模块的通知后,确定待生成的桌面卡片的显示位置,显示位置可以根据实际需求进行设置。譬如,确定的显示位置用于将桌面卡片置顶显示。之后,由第二管理单元通过回调的方式从资源管理模块中获取第一网络资源的属性信息,并基于属性信息进行信息布局,生成待显示的桌面卡片。As an example, please refer to FIG. 21 . FIG. 21 is a flowchart showing an interaction between a resource management module and a card management module according to an exemplary embodiment. The card management module includes a first management unit and a second management unit, wherein the first management unit determines the display position of the desktop card to be generated after receiving the notification from the resource management module, and the display position can be set according to actual needs. For example, the determined display position is used to display the desktop card on top. Afterwards, the second management unit obtains the attribute information of the first network resource from the resource management module through callback, and performs information layout based on the attribute information to generate a desktop card to be displayed.
2007:卡片管理模块显示桌面卡片。2007: The card management module displays desktop cards.
在一个实施例中,卡片管理模块通过第一管理单元将桌面卡片在电子设备的桌面上置顶显示。如此,用户即可基于桌面卡片对第一网络资源进行进一步地管理。In one embodiment, the card management module displays the desktop card on top of the desktop of the electronic device through the first management unit. In this way, the user can further manage the first network resource based on the desktop card.
在一个实施例中,桌面卡片中包括第一网络资源的卡片信息,卡片信息包括第一网络资源的属性信息和分享快捷选项,第一网络资源的属性信息用于触发对第一网络资源的打开操作,分享快捷选项用于触发对第一网络资源的分享。桌面卡片响应于如下几种事件:In one embodiment, the desktop card includes card information of the first network resource, and the card information includes attribute information of the first network resource and share shortcut options, and the attribute information of the first network resource is used to trigger opening of the first network resource Operation, the sharing shortcut option is used to trigger the sharing of the first network resource. Table cards respond to the following events:
作为一种示例,响应于分享快捷选项的触发操作,电子设备通过资源管理模块和分享模块执行分享操作,其具体实现可以参见图18所示实施例,这里不再重复赘述。As an example, in response to the trigger operation of the sharing shortcut option, the electronic device performs a sharing operation through the resource management module and the sharing module, and its specific implementation can refer to the embodiment shown in FIG. 18 , which will not be repeated here.
可选地,分享提示框中包括复制快捷选项、转移快捷选项、打印快捷选项中的至少一项,复制快捷选项用于触发对第一网络资源的复制,转移快捷选项用于触发对第一网络资源的位置转移,打印快捷选项用于触发对第一网络资源的打印。具体实现可以参见前文,这里不再重复赘述。Optionally, the share prompt box includes at least one of a copy shortcut option, a transfer shortcut option, and a print shortcut option, the copy shortcut option is used to trigger the copying of the first network resource, and the transfer shortcut option is used to trigger the first network resource The location of the resource is transferred, and the printing shortcut option is used to trigger the printing of the first network resource. For specific implementation, please refer to the foregoing, and details will not be repeated here.
如此,通过分享提示框为用户提供复制快捷选项和/或转移快捷选项,使得用户可以根据实际需求快速将第一网络资源复制或转移至熟知的指定存储空间中,也即,为用户对网络资源的统一管理提供了便利。另外,通过分享提示框为用户提供打印快捷选项,使得用户可以根据实际需求快速打印。In this way, the user is provided with a copy shortcut option and/or a transfer shortcut option through the sharing prompt box, so that the user can quickly copy or transfer the first network resource to a well-known designated storage space according to actual needs, that is, for the user to control the network resource Unified management provides convenience. In addition, the user is provided with a quick printing option through the sharing prompt box, so that the user can quickly print according to actual needs.
作为一种示例,桌面卡片中还包括目标存储路径下在第一网络资源的下载时间之前且距离下载时间最近的时间点打开或下载的第二网络资源的卡片信息,在桌面卡片中第一网络资源的卡片信息排于第二网络资源的卡片信息之前。也即是,桌面卡片中不仅包括第一网络资源,还包括在第一网络资源下载之前打开或下载的第二网络资源。As an example, the desktop card also includes the card information of the second network resource opened or downloaded at the time point before and closest to the download time of the first network resource under the target storage path. In the desktop card, the first network resource The card information of the resource is ranked before the card information of the second network resource. That is, the desktop card not only includes the first network resource, but also includes the second network resource opened or downloaded before the download of the first network resource.
作为一种示例,若存在待显示的第三网络资源的卡片信息,则在桌面卡片中将第三网络资源的卡片信息显示于第一网络资源的卡片信息之前,且删除第二网络资源的卡片信息。As an example, if there is card information of the third network resource to be displayed, display the card information of the third network resource before the card information of the first network resource in the desktop card, and delete the card of the second network resource information.
也即,在桌面卡片生成后,若存在新的第三网络资源的卡片信息待显示,则卡片管理模块可以更新桌面卡片中的卡片信息。具体地,将第三网络资源的卡片信息显示于首位,并删除排于末尾的第二网络资源的卡片信息,也即利用第三网络资源的卡片信息冲刷掉第二网络资源的卡片信息。如此,通过动态地更新桌面卡片,可以为用户提供电子设备中最新下载或打开的网络资源的卡片信息。That is, after the desktop card is generated, if there is new card information of the third network resource to be displayed, the card management module may update the card information in the desktop card. Specifically, the card information of the third network resource is displayed at the top, and the card information of the second network resource at the bottom is deleted, that is, the card information of the second network resource is flushed out by using the card information of the third network resource. In this way, by dynamically updating the desktop card, the card information of the latest downloaded or opened network resource in the electronic device can be provided to the user.
需要说明的是,上述是以桌面卡片中包括两个网络资源的卡片信息为例进行说明,在另一实施例中,桌面卡片中还可以包括两个以上网络资源的卡片信息,本申请实施例对此不作限定。It should be noted that the above is an example of card information including two network resources in the desktop card. In another embodiment, the card information of more than two network resources may be included in the desktop card. The embodiment of the present application There is no limit to this.
作为一种示例,在桌面卡片中的第一网络资源的卡片信息被删除的情况下,若检测到第一网络资源的打开事件,则重新在桌面卡片中显示第一网络资源的卡片信息。As an example, when the card information of the first network resource in the desktop card is deleted, if an opening event of the first network resource is detected, the card information of the first network resource is redisplayed in the desktop card.
由于桌面卡片中的卡片信息可以是动态更新的,所以,在一种情况下,第一网络资源的卡片信息可能就被删除掉了。在该种情况下,在下载第一网络资源后,当检测到第一网络资源的打开操作时,卡片管理模块可以在桌面卡片中重新显示第一网络资源的卡片信息,并且,将第一网络资源的卡片信息显示于桌面卡片的首位。Since the card information in the desktop card can be updated dynamically, in one case, the card information of the first network resource may be deleted. In this case, after downloading the first network resource, when the opening operation of the first network resource is detected, the card management module may re-display the card information of the first network resource on the desktop card, and the first network resource The card information of the resource is displayed at the top of the desktop card.
作为一种示例,响应于第一网络资源的属性信息的触发操作,通过目标应用打开第一网络资源。As an example, in response to the trigger operation of the attribute information of the first network resource, the first network resource is opened by the target application.
示例性地,假设该属性信息包括名称和图标,则当检测到用户对第一网络资源的名称或图标的触发操作时,电子设备通过默认的目标应用打开第一网络资源,譬如目标应用为WPS office。Exemplarily, assuming that the attribute information includes a name and an icon, when detecting a user's trigger operation on the name or icon of the first network resource, the electronic device opens the first network resource through a default target application, for example, the target application is WPS office.
作为另一种示例,响应于第一网络资源的属性信息的触发操作,显示应用列表,应用列表中包括能够用于打开第一网络资源的多个目标应用,应用列表用于选择打开第一网络资源的目标应用。As another example, in response to the trigger operation of the attribute information of the first network resource, an application list is displayed, the application list includes multiple target applications that can be used to open the first network resource, and the application list is used to select to open the first network resource. The resource's target application.
也即,在该种实现方式中,当检测到用户对第一网络资源的属性信息的触发操作时,电子设备通过应用列表显示能够用于打开第一网络资源的多个目标应用。在该种情况下,用户可以基于应用列表根据实际需求从多个目标应用中选择一个目标应用。响应于用户对多个目标应用的选择操作,电子设备通过用户选择的目标应用打开第一网络资源。如此,通过向用户展示多个目标应用,使得用户可以根据实际需求选择一个目标应用打开第一网络资源,提高了用户体验。That is, in this implementation manner, when a user's trigger operation on the attribute information of the first network resource is detected, the electronic device displays a plurality of target applications that can be used to open the first network resource through an application list. In this case, the user can select a target application from multiple target applications according to actual needs based on the application list. In response to the user's selection operation on multiple target applications, the electronic device opens the first network resource through the target application selected by the user. In this way, by presenting multiple target applications to the user, the user can select a target application to open the first network resource according to actual needs, thereby improving user experience.
另外不难理解,当检测到用户对桌面卡片中的第二网络资源的属性信息的触发操作时,响应于用户的触发操作,电子设备可以按照打开第一网络资源的方式打开第二网络资源。In addition, it is not difficult to understand that when a user's trigger operation on the attribute information of the second network resource in the desktop card is detected, in response to the user's trigger operation, the electronic device may open the second network resource in the same manner as the first network resource.
作为一种示例,桌面卡片中还包括查看快捷选项,查看快捷选项用于触发进入资 源管理应用的指定页面。作为一种示例,资源管理应用为前文所述的文件管理应用,指定页面为文件管理应用中的最近页签。As an example, the desktop card also includes a view shortcut option, and the view shortcut option is used to trigger entering a specified page of the resource management application. As an example, the resource management application is the aforementioned file management application, and the specified page is the latest tab in the file management application.
如此,通过桌面卡片为用户提供查看快捷选项,使得用户可以快速通过查看快捷选项查看最近电子设备中下载或打开的网络资源,提高了用户体验。In this way, the user is provided with viewing shortcut options through the desktop card, so that the user can quickly view the recently downloaded or opened network resources in the electronic device through the viewing shortcut options, which improves user experience.
作为本申请的一个示例,当卡片管理模块检测到桌面卡片从生成时间起显示时长已超过预置时长时,将桌面卡片从电子设备的桌面上移除。其中,预置时长可以根据实际需求进行设置。也即是,在桌面卡片显示一段时长后,可以不再显示该桌面卡片。As an example of the present application, when the card management module detects that the display time of the desktop card has exceeded a preset time since the generation time, the desktop card is removed from the desktop of the electronic device. Wherein, the preset duration can be set according to actual needs. That is, after the desktop card is displayed for a period of time, the desktop card may not be displayed any more.
作为本申请的一个示例,当卡片管理模块检测到桌面卡片从最后一次的更新时间起显示时长已超过预置时长时,将桌面卡片从电子设备的桌面上移除。也即,由于桌面卡片中的卡片信息是动态更新的,在一种情况下,当桌面卡片中的卡片信息不再更新且桌面卡片的显示时长超过预置时长时,说明桌面卡片中的卡片信息已经显示了较长时间,此时可以不再显示该桌面卡片。As an example of the present application, when the card management module detects that the display time of the desktop card has exceeded a preset time since the last update time, the desktop card is removed from the desktop of the electronic device. That is, since the card information in the desktop card is dynamically updated, in one case, when the card information in the desktop card is no longer updated and the display duration of the desktop card exceeds the preset duration, it means that the card information in the desktop card It has been displayed for a long time, and the desktop card can no longer be displayed at this time.
在桌面卡片被移除的情况下,电子设备销毁本次对目标存储空间进行监控的任务。In the case that the desktop card is removed, the electronic device destroys the current task of monitoring the target storage space.
在本申请实施例中,通过第一应用获取第一网络资源,监听目标存储空间存储有第一网络资源,通过弹出桌面卡片对用户进行提示,并使得用户可以基于桌面卡片对第一网络资源进行快捷管理,避免需要用户多次操作进入第一网络资源的实际存储位置进行管理,提高了网络资源管理的效率。In this embodiment of the present application, the first network resource is obtained through the first application, the first network resource is stored in the monitoring target storage space, and the user is prompted by popping up the desktop card, and the user can perform the first network resource based on the desktop card. Quick management avoids the need for the user to enter the actual storage location of the first network resource through multiple operations for management, and improves the efficiency of network resource management.
应理解,上述实施例中各步骤的序号并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
对应于上文实施例所述的网络资源的处理方法,图22是本申请实施例提供的一种电子设备的结构框图,该电子设备可以用于执行网络资源的处理方法。为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the method for processing network resources described in the above embodiments, FIG. 22 is a structural block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may be used to execute the method for processing network resources. For ease of description, only the parts related to the embodiment of the present application are shown.
请参考图22,电子设备2210包括:包括触摸屏2201,存储器2202,一个或多个处理器2203,多个应用程序2204,以及一个或多个程序2205;其中所述一个或多个程序2205被存储在所述存储器2202中;所述一个或多个处理器2203在执行所述一个或多个程序2205时,用于:Please refer to FIG. 22 , an electronic device 2210 includes: a touch screen 2201, a memory 2202, one or more processors 2203, a plurality of application programs 2204, and one or more programs 2205; wherein the one or more programs 2205 are stored In the memory 2202; the one or more processors 2203 are used to: when executing the one or more programs 2205:
通过所述电子设备中的第一应用获取第一网络资源;Obtaining a first network resource through a first application in the electronic device;
监听目标存储空间存储有所述第一网络资源,显示提示消息,所述目标存储空间是所述第一应用下载网络资源时的资源存储空间,所述提示消息用于提供对所述第一网络资源进行操作的快捷选项;Listen to the first network resource stored in the target storage space, and display a prompt message, the target storage space is the resource storage space when the first application downloads the network resource, and the prompt message is used to provide information on the first network resource. Shortcut options for resource operations;
其中,所述快捷选项用于直接将所述第一网络资源传输给目标应用或者目标设备,和/或,所述快捷选项用于直接将所述第一网络资源从所述目标存储空间存储至指定存储空间。Wherein, the shortcut option is used to directly transfer the first network resource to the target application or target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to Specify storage space.
作为本申请的一个示例,在所述快捷选项用于直接将所述第一网络资源传输给所述目标应用或者目标设备的情况下,所述提示消息包括分享快捷选项、打开快捷选项、打印快捷选项中的至少一项,所述分享快捷选项用于触发直接将所述第一网络资源分享给所述目标应用或者目标设备,所述打开快捷选项用于触发直接将所述第一网络资源发送给所述目标应用进行打开,所述打印快捷选项用于触发直接将所述第一网络资 源发送给所述目标应用进行打印;在所述快捷选项用于直接将所述第一网络资源从所述目标存储空间存储至所述指定存储空间的情况下,所述提示消息包括复制快捷选项、转移快捷选项中的至少一项,所述复制快捷选项用于触发直接将所述第一网络资源从所述目标存储空间拷贝至所述指定存储空间,所述转移快捷选项用于触发直接将所述第一网络资源从所述目标存储空间转移至所述指定存储空间。As an example of the present application, when the shortcut option is used to directly transmit the first network resource to the target application or target device, the prompt message includes share shortcut option, open shortcut option, print shortcut option At least one of the options, the sharing shortcut option is used to trigger directly sharing the first network resource to the target application or target device, and the opening shortcut option is used to trigger directly sending the first network resource Opening the target application, the printing shortcut option is used to trigger directly sending the first network resource to the target application for printing; the shortcut option is used to directly send the first network resource from the In the case where the target storage space is stored in the specified storage space, the prompt message includes at least one of a copy shortcut option and a transfer shortcut option, and the copy shortcut option is used to trigger the direct transfer of the first network resource from The target storage space is copied to the specified storage space, and the transfer shortcut option is used to trigger the direct transfer of the first network resource from the target storage space to the specified storage space.
作为本申请的一个示例,所述电子设备包括资源管理模块和分享模块;所述提示消息包括所述分享快捷选项,所述一个或多个处理器2203还用于:As an example of the present application, the electronic device includes a resource management module and a sharing module; the prompt message includes the sharing shortcut option, and the one or more processors 2203 are further configured to:
通过所述资源管理模块响应于所述分享快捷选项的触发操作,通知所述分享模块;Notifying the sharing module through the resource management module in response to the trigger operation of the sharing shortcut option;
通过所述分享模块接收所述资源管理模块的通知后,搜索所述电子设备中具备分享功能的目标应用以及开启分享功能的目标设备;After receiving the notification from the resource management module through the sharing module, search the electronic device for a target application with a sharing function and a target device with a sharing function enabled;
通过所述分享模块显示分享提示框,所述分享提示框中包括搜索到的目标应用和/或目标设备;Displaying a sharing prompt box through the sharing module, the sharing prompt box including the searched target application and/or target device;
通过所述资源管理模块响应于对所述分享提示框中包括的目标应用和/或目标设备的选择操作,从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述选择操作所选择的目标应用或者目标设备。The resource management module acquires the first network resource from the target storage space in response to the selection operation of the target application and/or target device included in the sharing prompt box, and stores the first network resource The resource is sent to the target application or target device selected by the selection operation.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括所述打开快捷选项,所述一个或多个处理器2203还用于:As an example of the present application, the electronic device includes a resource management module; the prompt message includes the opening shortcut option, and the one or more processors 2203 are further configured to:
通过所述资源管理模块响应于所述打开快捷选项的触发操作,根据所述第一网络资源的格式属性,从所述电子设备包括的应用中确定能够用于打开所述第一网络资源的目标应用;The resource management module responds to the trigger operation of the opening shortcut option, and according to the format attribute of the first network resource, determines the target that can be used to open the first network resource from the applications included in the electronic device application;
通过所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述目标应用,以通过所述目标应用打开所述第一网络资源。Obtaining the first network resource from the target storage space by the resource management module, and sending the first network resource to the target application, so as to open the first network resource by the target application.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括所述打印快捷选项,所述一个或多个处理器2203还用于:As an example of the present application, the electronic device includes a resource management module; the prompt message includes the printing shortcut option, and the one or more processors 2203 are further configured to:
通过所述资源管理模块响应于所述打印快捷选项的触发操作,确定所述电子设备中的打印应用为所述目标应用;Determining, by the resource management module, the print application in the electronic device as the target application in response to the trigger operation of the print shortcut option;
通过所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述打印应用,以通过所述打印应用打印所述第一网络资源。Obtaining the first network resource from the target storage space by the resource management module, and sending the first network resource to the printing application, so as to print the first network resource by the printing application.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括转移快捷选项,所述一个或多个处理器2203还用于:As an example of the present application, the electronic device includes a resource management module; the prompt message includes a transfer shortcut option, and the one or more processors 2203 are further configured to:
通过所述资源管理模块响应于所述转移快捷选项的触发操作,调用路径选择器,以通过所述路径选择器获取路径内容;Invoking a path selector through the resource management module in response to the trigger operation of the transfer shortcut option, so as to obtain path content through the path selector;
通过所述资源管理模块基于所述路径内容显示路径管理界面;displaying a path management interface based on the path content through the resource management module;
通过所述资源管理模块响应于基于所述路径管理界面输入的路径选择操作,确定所述路径选择操作所选择的指定存储空间;determining the specified storage space selected by the path selection operation by the resource management module in response to the path selection operation input based on the path management interface;
通过所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源存储至所述指定存储空间;Obtaining the first network resource from the target storage space through the resource management module, and storing the first network resource in the designated storage space;
通过所述资源管理模块将所述目标存储空间中存储的第一网络资源删除。The resource management module deletes the first network resource stored in the target storage space.
作为本申请的一个示例,所述电子设备包括资源管理模块;所述提示消息包括复 制快捷选项,所述一个或多个处理器2203还用于:As an example of the present application, the electronic device includes a resource management module; the prompt message includes a copy shortcut option, and the one or more processors 2203 are further configured to:
通过所述资源管理模块响应于所述复制快捷选项的触发操作,调用路径选择器,以通过所述路径选择器获取路径内容;Invoking a path selector through the resource management module in response to the trigger operation of the copy shortcut option, so as to obtain path content through the path selector;
通过所述资源管理模块基于所述路径内容显示路径管理界面;displaying a path management interface based on the path content through the resource management module;
通过所述资源管理模块响应于基于所述路径管理界面输入的路径选择操作,确定所述路径选择操作所选择的指定存储空间;determining the specified storage space selected by the path selection operation by the resource management module in response to the path selection operation input based on the path management interface;
通过所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源拷贝至所述指定存储空间。Obtaining the first network resource from the target storage space through the resource management module, and copying the first network resource to the designated storage space.
作为本申请的一个示例,所述提示消息包括分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项,所述提示消息包括多级提示菜单,所述分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项通过所述多级提示菜单分级显示。As an example of the present application, the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, transfer shortcut options, the prompt message includes a multi-level prompt menu, and the share shortcut options, open shortcut options Options, printing shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through the multi-level prompt menu.
作为本申请的一个示例,所述提示消息为桌面卡片、悬浮窗、提示框中的任意一种。As an example of the present application, the prompt message is any one of a desktop card, a floating window, and a prompt box.
作为本申请的一个示例,所述提示消息中包括多个网络资源的提示信息。As an example of the present application, the prompt message includes prompt information of multiple network resources.
作为本申请的一个示例,所述提示消息中包括的多个网络资源的提示信息根据资源下载时间进行更新。As an example of the present application, the prompt information of multiple network resources included in the prompt message is updated according to resource download time.
作为本申请的一个示例,所述一个或者多个处理器2203还用于:As an example of the present application, the one or more processors 2203 are further configured to:
在所述提示消息中的所述第一网络资源的提示信息消失的情况下,检测所述第一网络资源的打开事件,重新在所述提示消息中显示所述第一网络资源的提示信息。When the prompt information of the first network resource in the prompt message disappears, an opening event of the first network resource is detected, and the prompt information of the first network resource is redisplayed in the prompt message.
作为本申请的一个示例,所述电子设备包括系统服务模块、资源管理模块、界面显示模块;所述一个或多个处理器2203用于:As an example of the present application, the electronic device includes a system service module, a resource management module, and an interface display module; the one or more processors 2203 are used to:
通过所述系统服务模块获取消息通知开关的状态,所述消息通知开关用于指示是否开启下载网络资源的监听功能;The state of the message notification switch is obtained through the system service module, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources;
在所述消息通知开关处于开启状态的情况下,通过所述系统服务模块监听所述目标存储空间存储有所述第一网络资源,通知所述资源管理模块;When the message notification switch is turned on, the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module;
通过所述资源管理模块接收所述系统服务模块的通知后,生成所述提示消息;After receiving the notification from the system service module through the resource management module, generating the prompt message;
通过所述资源管理模块将所述提示消息发送至所述界面显示模块;sending the prompt message to the interface display module through the resource management module;
通过所述界面显示模块显示所述提示消息。The prompt message is displayed through the interface display module.
作为本申请的一个示例,所述一个或多个处理器2203还用于:As an example of the present application, the one or more processors 2203 are further configured to:
基于所述提示消息检测查看操作,调用资源管理应用,所述资源管理应用中显示有所述第一网络资源。A viewing operation is detected based on the prompt message, and a resource management application is called, where the resource management application displays the first network resource.
在本申请实施例中,通过电子设备中的第一应用获取第一网络资源,监听第一应用下载网络资源时的目标存储空间中存储有第一网络资源,说明通过第一应用下载了第一网络资源,此时显示提示消息。提示消息用于提供对第一网络资源进行操作的快捷选项。快捷选项用于直接将第一网络资源传输给目标应用或者目标设备,和/或,快捷选项用于直接将第一网络资源从目标存储空间存储至指定存储空间。如此,以便于用户对第一网络资源进行快捷管理,避免需要用户多次操作进入第一网络资源的实际存储位置后进行管理,从而可以提高网络资源的管理效率。In the embodiment of the present application, the first network resource is obtained through the first application in the electronic device, and the first network resource is stored in the target storage space when the first application downloads the network resource, indicating that the first network resource is downloaded through the first application. network resources, a prompt message is displayed. The prompt message is used to provide shortcut options for operating the first network resource. The shortcut option is used to directly transfer the first network resource to the target application or the target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to the designated storage space. In this way, it is convenient for the user to quickly manage the first network resource, avoiding the need for the user to perform multiple operations to enter the actual storage location of the first network resource for management, thereby improving the management efficiency of the network resource.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发 介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program codes to electronic equipment, recording media, computer memory, read-only memory (read-only memory, ROM), random access memory (random access) memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that: the above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application shall be covered by this application. within the scope of the application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (16)

  1. 一种网络资源的处理方法,其特征在于,应用于电子设备,所述方法包括:A method for processing network resources is characterized in that it is applied to electronic equipment, and the method includes:
    通过所述电子设备中的第一应用获取第一网络资源;Obtaining a first network resource through a first application in the electronic device;
    监听目标存储空间存储有所述第一网络资源,显示提示消息,所述目标存储空间是所述第一应用下载网络资源时的资源存储空间,所述提示消息用于提供对所述第一网络资源进行操作的快捷选项;Listen to the first network resource stored in the target storage space, and display a prompt message, the target storage space is the resource storage space when the first application downloads the network resource, and the prompt message is used to provide information on the first network resource. Shortcut options for resource operations;
    其中,所述快捷选项用于直接将所述第一网络资源传输给目标应用或者目标设备,和/或,所述快捷选项用于直接将所述第一网络资源从所述目标存储空间存储至指定存储空间。Wherein, the shortcut option is used to directly transfer the first network resource to the target application or target device, and/or the shortcut option is used to directly store the first network resource from the target storage space to Specify storage space.
  2. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that,
    在所述快捷选项用于直接将所述第一网络资源传输给所述目标应用或者目标设备的情况下,所述提示消息包括分享快捷选项、打开快捷选项、打印快捷选项中的至少一项,所述分享快捷选项用于触发直接将所述第一网络资源分享给所述目标应用或者目标设备,所述打开快捷选项用于触发直接将所述第一网络资源发送给所述目标应用进行打开,所述打印快捷选项用于触发直接将所述第一网络资源发送给所述目标应用进行打印;In the case where the shortcut option is used to directly transmit the first network resource to the target application or target device, the prompt message includes at least one of a share shortcut option, an open shortcut option, and a print shortcut option, The sharing shortcut option is used to trigger directly sharing the first network resource to the target application or target device, and the opening shortcut option is used to trigger directly sending the first network resource to the target application for opening , the printing shortcut option is used to trigger directly sending the first network resource to the target application for printing;
    在所述快捷选项用于直接将所述第一网络资源从所述目标存储空间存储至所述指定存储空间的情况下,所述提示消息包括复制快捷选项、转移快捷选项中的至少一项,所述复制快捷选项用于触发直接将所述第一网络资源从所述目标存储空间拷贝至所述指定存储空间,所述转移快捷选项用于触发直接将所述第一网络资源从所述目标存储空间转移至所述指定存储空间。When the shortcut option is used to directly store the first network resource from the target storage space to the specified storage space, the prompt message includes at least one of a copy shortcut option and a transfer shortcut option, The copy shortcut option is used to trigger directly copying the first network resource from the target storage space to the designated storage space, and the transfer shortcut option is used to trigger directly copy the first network resource from the target The storage space is transferred to the specified storage space.
  3. 根据权利要求2所述的方法,其特征在于,所述电子设备包括资源管理模块和分享模块;所述提示消息包括所述分享快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:The method according to claim 2, wherein the electronic device includes a resource management module and a sharing module; the prompt message includes the sharing shortcut option, and the monitoring target storage space stores the first network resource , after displaying the prompt message, also include:
    响应于所述分享快捷选项的触发操作,所述资源管理模块通知所述分享模块;In response to the trigger operation of the sharing shortcut option, the resource management module notifies the sharing module;
    所述分享模块接收所述资源管理模块的通知后,搜索所述电子设备中具备分享功能的目标应用以及开启分享功能的目标设备;After receiving the notification from the resource management module, the sharing module searches the electronic device for a target application with a sharing function and a target device with a sharing function enabled;
    所述分享模块显示分享提示框,所述分享提示框中包括搜索到的目标应用和/或目标设备;The sharing module displays a sharing prompt box, and the sharing prompt box includes the searched target application and/or target device;
    响应于对所述分享提示框中包括的目标应用和/或目标设备的选择操作,所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述选择操作所选择的目标应用或者目标设备。In response to a selection operation of a target application and/or a target device included in the sharing prompt box, the resource management module acquires the first network resource from the target storage space, and stores the first network resource and sent to the target application or target device selected by the selection operation.
  4. 根据权利要求2所述的方法,其特征在于,所述电子设备包括资源管理模块;所述提示消息包括所述打开快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:The method according to claim 2, wherein the electronic device includes a resource management module; the prompt message includes the opening shortcut option, the monitoring target storage space stores the first network resource, and a prompt is displayed After the message, also include:
    响应于所述打开快捷选项的触发操作,所述资源管理模块根据所述第一网络资源的格式属性,从所述电子设备包括的应用中确定能够用于打开所述第一网络资源的目标应用;In response to the trigger operation of the open shortcut option, the resource management module determines, from the applications included in the electronic device, a target application that can be used to open the first network resource according to the format attribute of the first network resource ;
    所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述目标应用,以通过所述目标应用打开所述第一网络资源。The resource management module obtains the first network resource from the target storage space, and sends the first network resource to the target application, so as to open the first network resource through the target application.
  5. 根据权利要求2所述的方法,其特征在于,所述电子设备包括资源管理模块;所述提示消息包括所述打印快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:The method according to claim 2, wherein the electronic device includes a resource management module; the prompt message includes the print shortcut option, the monitoring target storage space stores the first network resource, and a prompt is displayed After the message, also include:
    响应于所述打印快捷选项的触发操作,所述资源管理模块确定所述电子设备中的打印应用为所述目标应用;In response to the trigger operation of the printing shortcut option, the resource management module determines that the printing application in the electronic device is the target application;
    所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源发送给所述打印应用,以通过所述打印应用打印所述第一网络资源。The resource management module acquires the first network resource from the target storage space, and sends the first network resource to the printing application, so as to print the first network resource through the printing application.
  6. 根据权利要求2所述的方法,其特征在于,所述电子设备包括资源管理模块;所述提示消息包括转移快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:The method according to claim 2, wherein the electronic device includes a resource management module; the prompt message includes a transfer shortcut option, and the monitoring target storage space stores the first network resource, after the prompt message is displayed ,Also includes:
    响应于所述转移快捷选项的触发操作,所述资源管理模块调用路径选择器,以通过所述路径选择器获取路径内容;In response to the trigger operation of the transfer shortcut option, the resource management module calls a path selector to obtain path content through the path selector;
    所述资源管理模块基于所述路径内容显示路径管理界面;The resource management module displays a path management interface based on the path content;
    响应于基于所述路径管理界面输入的路径选择操作,所述资源管理模块确定所述路径选择操作所选择的指定存储空间;In response to a path selection operation input based on the path management interface, the resource management module determines a designated storage space selected by the path selection operation;
    所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源存储至所述指定存储空间;The resource management module obtains the first network resource from the target storage space, and stores the first network resource in the designated storage space;
    所述资源管理模块将所述目标存储空间中存储的第一网络资源删除。The resource management module deletes the first network resource stored in the target storage space.
  7. 根据权利要求2所述的方法,其特征在于,所述电子设备包括资源管理模块;所述提示消息包括复制快捷选项,所述监听目标存储空间存储有所述第一网络资源,显示提示消息之后,还包括:The method according to claim 2, wherein the electronic device includes a resource management module; the prompt message includes a copy shortcut option, and the monitoring target storage space stores the first network resource, after the prompt message is displayed ,Also includes:
    响应于所述复制快捷选项的触发操作,所述资源管理模块调用路径选择器,以通过所述路径选择器获取路径内容;In response to the trigger operation of the copy shortcut option, the resource management module invokes a path selector to obtain path content through the path selector;
    所述资源管理模块基于所述路径内容显示路径管理界面;The resource management module displays a path management interface based on the path content;
    响应于基于所述路径管理界面输入的路径选择操作,所述资源管理模块确定所述路径选择操作所选择的指定存储空间;In response to a path selection operation input based on the path management interface, the resource management module determines a designated storage space selected by the path selection operation;
    所述资源管理模块从所述目标存储空间中获取所述第一网络资源,并将所述第一网络资源拷贝至所述指定存储空间。The resource management module obtains the first network resource from the target storage space, and copies the first network resource to the specified storage space.
  8. 根据权利要求2-7中任一项所述的方法,其特征在于,所述提示消息包括分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项,所述提示消息包括多级提示菜单,所述分享快捷选项、打开快捷选项、打印快捷选项、复制快捷选项、转移快捷选项通过所述多级提示菜单分级显示。The method according to any one of claims 2-7, wherein the prompt message includes share shortcut options, open shortcut options, print shortcut options, copy shortcut options, and transfer shortcut options, and the prompt message includes multiple In a multi-level prompt menu, the share shortcut options, open shortcut options, print shortcut options, copy shortcut options, and transfer shortcut options are displayed hierarchically through the multi-level prompt menu.
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述提示消息为桌面卡片、悬浮窗、提示框中的任意一种。The method according to any one of claims 1-8, wherein the prompt message is any one of a desktop card, a floating window, and a prompt box.
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述提示消息中包括多个网络资源的提示信息。The method according to any one of claims 1-9, wherein the prompt message includes prompt information of multiple network resources.
  11. 根据权利要求10所述的方法,其特征在于,所述提示消息中包括的多个网络 资源的提示信息根据资源下载时间进行更新。The method according to claim 10, wherein the prompt information of multiple network resources included in the prompt message is updated according to resource download time.
  12. 根据权利要求10或11所述的方法,其特征在于,所述方法还包括:The method according to claim 10 or 11, wherein the method further comprises:
    在所述提示消息中的所述第一网络资源的提示信息消失的情况下,检测所述第一网络资源的打开事件,重新在所述提示消息中显示所述第一网络资源的提示信息。When the prompt information of the first network resource in the prompt message disappears, an opening event of the first network resource is detected, and the prompt information of the first network resource is redisplayed in the prompt message.
  13. 根据权利要求1-12中任一项所述的方法,其特征在于,所述电子设备包括系统服务模块、资源管理模块、界面显示模块;The method according to any one of claims 1-12, wherein the electronic device includes a system service module, a resource management module, and an interface display module;
    所述监听目标存储空间存储有所述第一网络资源,显示提示消息,包括:The first network resource is stored in the monitoring target storage space, and a prompt message is displayed, including:
    所述系统服务模块获取消息通知开关的状态,所述消息通知开关用于指示是否开启下载网络资源的监听功能;The system service module obtains the state of a message notification switch, and the message notification switch is used to indicate whether to enable the monitoring function of downloading network resources;
    在所述消息通知开关处于开启状态的情况下,所述系统服务模块监听所述目标存储空间存储有所述第一网络资源,通知所述资源管理模块;When the message notification switch is turned on, the system service module monitors that the target storage space stores the first network resource, and notifies the resource management module;
    所述资源管理模块接收所述系统服务模块的通知后,生成所述提示消息;The resource management module generates the prompt message after receiving the notification from the system service module;
    所述资源管理模块将所述提示消息发送至所述界面显示模块;The resource management module sends the prompt message to the interface display module;
    所述界面显示模块显示所述提示消息。The interface display module displays the prompt message.
  14. 根据权利要求1-13中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-13, further comprising:
    基于所述提示消息检测查看操作,调用资源管理应用,所述资源管理应用中显示有所述第一网络资源。A viewing operation is detected based on the prompt message, and a resource management application is called, where the resource management application displays the first network resource.
  15. 一种电子设备,包括触摸屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至14中任一项所述的方法。An electronic device, comprising a touch screen, memory, one or more processors, multiple application programs, and one or more programs; wherein the one or more programs are stored in the memory; it is characterized in that the When the one or more processors execute the one or more programs, the electronic device implements the method according to any one of claims 1 to 14.
  16. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1至14中任一项所述的方法。A computer-readable storage medium, with instructions stored in the computer-readable storage medium, is characterized in that, when the computer-readable storage medium is run on a computer, it causes the computer to execute the method according to any one of claims 1 to 14.
PCT/CN2022/089760 2021-06-17 2022-04-28 Network resource processing method, electronic device, and computer-readable storage medium WO2022262439A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110675108.0 2021-06-17
CN202110675108.0A CN113805797B (en) 2021-06-17 2021-06-17 Processing method of network resource, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2022262439A1 true WO2022262439A1 (en) 2022-12-22

Family

ID=78942551

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/089760 WO2022262439A1 (en) 2021-06-17 2022-04-28 Network resource processing method, electronic device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN113805797B (en)
WO (1) WO2022262439A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116996496A (en) * 2023-07-12 2023-11-03 荣耀终端有限公司 Internet surfing system and method and wearable device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113805797B (en) * 2021-06-17 2023-04-28 荣耀终端有限公司 Processing method of network resource, electronic equipment and computer readable storage medium
CN116048617B (en) * 2022-08-16 2024-05-24 荣耀终端有限公司 Information acquisition method, device, chip, electronic equipment and medium
CN117931746A (en) * 2022-10-14 2024-04-26 荣耀终端有限公司 File management method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019061040A1 (en) * 2017-09-26 2019-04-04 华为技术有限公司 File management method and device
CN111240547A (en) * 2020-01-08 2020-06-05 华为技术有限公司 Interactive method for cross-device task processing, electronic device and storage medium
US20210149693A1 (en) * 2019-05-24 2021-05-20 Huawei Technologies Co., Ltd. Interface display method and apparatus, terminal, and storage medium
CN113805797A (en) * 2021-06-17 2021-12-17 荣耀终端有限公司 Network resource processing method, electronic device and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10346030B2 (en) * 2015-06-07 2019-07-09 Apple Inc. Devices and methods for navigating between user interfaces
CN105227444B (en) * 2015-10-23 2019-08-23 阿里巴巴集团控股有限公司 Message informing method and device based on instant messaging
CN107193976B (en) * 2017-05-25 2024-03-29 北京小米移动软件有限公司 Information resource display method, device and computer readable storage medium
CN108874466B (en) * 2018-06-08 2021-10-29 Oppo(重庆)智能科技有限公司 Control calling method, electronic device and computer readable storage medium
CN111913750B (en) * 2019-05-10 2022-04-22 华为技术有限公司 Application program management method, device and equipment
CN112860445B (en) * 2019-11-27 2023-06-20 华为技术有限公司 Method and terminal for sharing data between fast application and native application
CN111327589B (en) * 2020-01-19 2021-09-10 腾讯科技(深圳)有限公司 Resource sharing method and device, computer readable storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019061040A1 (en) * 2017-09-26 2019-04-04 华为技术有限公司 File management method and device
US20210149693A1 (en) * 2019-05-24 2021-05-20 Huawei Technologies Co., Ltd. Interface display method and apparatus, terminal, and storage medium
CN111240547A (en) * 2020-01-08 2020-06-05 华为技术有限公司 Interactive method for cross-device task processing, electronic device and storage medium
CN113805797A (en) * 2021-06-17 2021-12-17 荣耀终端有限公司 Network resource processing method, electronic device and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116996496A (en) * 2023-07-12 2023-11-03 荣耀终端有限公司 Internet surfing system and method and wearable device

Also Published As

Publication number Publication date
CN113805797A (en) 2021-12-17
CN113805797B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
KR102470275B1 (en) Voice control method and electronic device
KR102630338B1 (en) Application display method and electronic device
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2021103981A1 (en) Split-screen display processing method and apparatus, and electronic device
CN112148400B (en) Display method and device in locking state
WO2022262439A1 (en) Network resource processing method, electronic device, and computer-readable storage medium
WO2021036770A1 (en) Split-screen processing method and terminal device
WO2020010584A1 (en) Data recovery method for when restoring factory settings of terminal, and terminal
WO2021159746A1 (en) File sharing method and system, and related device
CN111913750B (en) Application program management method, device and equipment
WO2022068483A1 (en) Application startup method and apparatus, and electronic device
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
WO2023005282A9 (en) Message pushing method and apparatus
WO2023015963A1 (en) File management method, electronic device, and computer-readable storage medium
WO2020107463A1 (en) Electronic device control method and electronic device
WO2023273543A1 (en) Folder management method and apparatus
WO2021190524A1 (en) Screenshot processing method, graphic user interface and terminal
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
WO2023138305A1 (en) Card display method, electronic device, and computer readable storage medium
WO2023226922A1 (en) Widget management method, electronic device, and computer-readable storage medium
WO2024093703A1 (en) Instance management method and apparatus, and electronic device and storage medium
CN114244951B (en) Method for opening page by application program, medium and electronic equipment thereof
WO2023160455A1 (en) Object deletion method and electronic device
WO2022247678A1 (en) Dragging method and electronic device
WO2023020528A1 (en) Mirroring method, device, storage medium, and computer program product

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: 22823922

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE