CN118277003A - Comment method and electronic equipment - Google Patents

Comment method and electronic equipment Download PDF

Info

Publication number
CN118277003A
CN118277003A CN202211726048.1A CN202211726048A CN118277003A CN 118277003 A CN118277003 A CN 118277003A CN 202211726048 A CN202211726048 A CN 202211726048A CN 118277003 A CN118277003 A CN 118277003A
Authority
CN
China
Prior art keywords
electronic device
application
user
operating system
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211726048.1A
Other languages
Chinese (zh)
Inventor
黄记
刘伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Publication of CN118277003A publication Critical patent/CN118277003A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a comment method and electronic equipment, and relates to the field of electronic equipment. The method comprises the following steps: the electronic device displays an interface of the first application. The electronic device receives and responds to a first operation of a user by an operating system of the electronic device, and displays a first window comprising a first picture, wherein the first picture at least comprises a screenshot of an interface of a first application. The electronic device receives comment information for a first picture, which is input by a user on a first window, through an operating system of the electronic device. The electronic device receives and responds to a second operation of the user by an operating system of the electronic device, and the first picture and comment information are stored in an associated mode. According to the method, an operating system of the electronic equipment can respond to a first operation of a user, and a first window is displayed for the user to input comment information aiming at a first picture through the first window. Therefore, the electronic equipment can enable the user to comment on the interface of the first application displayed by the electronic equipment efficiently and quickly, and the use experience of the user is improved.

Description

Comment method and electronic equipment
Technical Field
The application relates to the field of electronic equipment, in particular to a comment method and electronic equipment.
Background
With the development of internet technology and electronic device technology, users can browse network resources such as documents, pictures, videos and the like in websites or application programs (APP) through electronic devices. And users can comment on the display content (such as the network resources) of the electronic equipment in the browsing process so as to record own ideas, feelings and the like.
In general, when a user reviews a display content, the user needs to review a specific review area in a website or APP where the display content is located. In the case where there is no comment area in the website or APP where the display content is located, the user cannot comment on the display content. Thus, the user cannot comment efficiently and quickly.
Disclosure of Invention
The embodiment of the application provides a comment method and electronic equipment, wherein the comment method can be applied to the electronic equipment, so that the electronic equipment can be received by an operating system of the electronic equipment and a first window is displayed in response to a triggering operation (namely a first operation) of a user, and the first window at least comprises a screenshot of an interface of a first application. Therefore, the user can efficiently and quickly comment and save the comments through the first window based on the screenshot of the interface of the first application.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
In a first aspect, a comment method is provided and applied to an electronic device, and the method includes: the electronic device displays an interface of the first application. The electronic device receives a first operation of a user by an operating system of the electronic device. In response to the first operation, the electronic device displays a first window on an interface of the first application by an operating system of the electronic device, the first window including a first picture, the first picture including at least a screenshot of the interface of the first application. The electronic device receives comment information for a first picture, which is input by a user on a first window, through an operating system of the electronic device. The electronic device receives a second operation of the user by an operating system of the electronic device. In response to the second operation, the electronic device stores the first picture and comment information in association by an operating system of the electronic device.
In the method, the electronic device can be received by an operating system of the electronic device and responds to a first operation of a user, and a first window comprising a first picture is displayed so that the user can input comment information for the first picture through the first window. The electronic device is further capable of receiving and storing the first picture in association with comment information by an operating system of the electronic device in response to a second operation by the user. Therefore, the electronic equipment can enable the user to comment on the interface of the first application displayed by the electronic equipment efficiently and quickly, and the use experience of the user is improved.
With reference to the first aspect, in an alternative implementation manner, after the electronic device receives, by an operating system of the electronic device, a first operation of a user, the method further includes: the electronic device obtains identification information of an interface of the first application by an operating system of the electronic device. Wherein the identification information includes one or more of the following: the method comprises the steps of enabling a name of an interface of a first application, an address of the interface of the first application, anchor point information of the interface of the first application and application program identification of the first application. After the electronic device receives the second operation of the user by the operating system of the electronic device, the method further comprises: in response to the second operation, the electronic device stores, by an operating system of the electronic device, the identification information in association with the first picture. In this implementation manner, the electronic device may further obtain, by the operating system of the electronic device, identification information of the interface of the first application, and store the identification information in association with the first picture in response to the second operation of the user. In this way, the electronic device can conveniently determine the interface of the first application corresponding to the first picture according to the identification information stored in association with the first picture, so that the user can continue browsing.
With reference to the first aspect, in an alternative implementation manner, the method further includes: the electronic device receives a third operation of the user by an operating system of the electronic device. In response to the third operation, the electronic device obtains and displays the first picture and comment information stored in association with the first picture by an operating system of the electronic device. In the implementation manner, the electronic device can receive and respond to the third operation of the user by the operating system of the electronic device, and acquire and display the first picture and comment information stored in association with the first picture, so that the user can intuitively browse the first picture and comment information corresponding to the first picture, and the use experience of the user is improved.
With reference to the first aspect, in an alternative implementation manner, the method further includes: the electronic device receives a third operation of the user by an operating system of the electronic device. In response to the third operation, the electronic device obtains and displays the first picture and comment information stored in association with the first picture by an operating system of the electronic device. And under the condition that the identification information stored in association with the first picture exists, the electronic equipment displays prompt information by an operating system of the electronic equipment, wherein the prompt information is used for a user to confirm whether to continue browsing an interface of the first application. The electronic device receives a fourth operation of the user by an operating system of the electronic device. And responding to the fourth operation, and displaying an interface of the first application by an operating system of the electronic equipment according to the identification information stored in association with the first picture. In the implementation manner, under the condition that the identification information stored in association with the first picture exists, the electronic device can display the interface of the first application by the operating system of the electronic device according to the identification information stored in association with the first picture, so that a user can conveniently and continuously browse the interface of the first application, and the use experience of the user is improved.
With reference to the first aspect, in an alternative implementation manner, the first operation is a sliding operation. The distance between the starting point position and the end point position of the sliding operation is larger than a first threshold value, the residence time of the finger at the starting point position when the user executes the sliding operation is larger than a second threshold value, and the included angle between the connecting line between the starting point position and the end point position and the preset straight line is smaller than a third threshold value. Or the stay time of the finger at the starting point position when the user executes the sliding operation is larger than a fourth threshold value, the maximum difference value of the coordinate values of the track points included in the track at the horizontal axis is larger than a fifth threshold value, and the maximum difference value of the coordinate values of the track points included in the track at the vertical axis is larger than a sixth threshold value in the track drawn when the user executes the sliding operation. In this way, the electronic device can accurately identify the intention of the user according to the operation of the user by the operating system of the electronic device to determine whether the user initiates the first operation of triggering the comment.
With reference to the first aspect, in an alternative implementation manner, an operating system of the electronic device includes: the application program framework layer comprises a monitoring module and a comment module. The electronic device receives a first operation of a user by an operating system of the electronic device, and the first operation comprises the following steps: the electronic equipment monitors the operation of the user by a monitoring module included in the application framework layer, and sends a notification message to a comment module of the application framework layer under the condition that the first operation is monitored, wherein the notification message is used for notifying that the first operation is monitored. In response to the first operation, the electronic device displays, by an operating system of the electronic device, a first window on an interface of a first application, comprising: the electronic device receives the notification message by a comment module included in the application framework layer and, in response, displays a first window on an interface of the first application.
With reference to the first aspect, in an optional implementation manner, the electronic device receives, by an operating system of the electronic device, comment information for a first picture input by a user on a first window, including: the electronic device receives comment information input by a user on a first window through a comment module included in the application framework layer. The electronic device receives, by an operating system of the electronic device, a second operation of the user, comprising: the electronic device receives a second operation by a comment module included in the application framework layer. In response to the second operation, the electronic device stores, by an operating system of the electronic device, the first picture and comment information in association, including: in response to the second operation, the electronic device stores the first picture in association with comment information by a comment module included in the application framework layer.
With reference to the first aspect, in an optional implementation manner, the electronic device obtains, by an operating system of the electronic device, identification information of an interface of the first application, including: the electronic device obtains the identification information by a comment module included in the application framework layer. In response to the second operation, the electronic device stores, by an operating system of the electronic device, the identification information in association with the first picture, including: in response to the second operation, the electronic device stores, by a comment module included in the application framework layer, the identification information in association with the first picture.
In a second aspect, there is provided an electronic device comprising: a memory, one or more processors; the memory is coupled with the processor; wherein the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of the first aspect and any of its alternatives as described above.
In a third aspect, there is provided a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of the first aspect and any of its alternatives as described above.
In a fourth aspect, there is provided a computer program product which, when run on a computer, causes the computer to perform the method of the first aspect and any of its alternatives as described above.
It will be appreciated that the advantages achieved by the electronic device of the second aspect, the computer readable storage medium of the third aspect, and the computer program product of the fourth aspect are referred to as advantages in the first aspect and any possible design manner thereof, and are not described herein.
Drawings
Fig. 1 is a schematic view of a scenario for user comment provided in the related art;
Fig. 2 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
FIG. 3 is a block diagram of a software architecture of an electronic device according to an embodiment of the present application;
FIG. 4 is a flow chart of a comment method according to an embodiment of the present application;
FIG. 5 is a schematic diagram showing a sliding track according to an embodiment of the present application;
FIG. 6 is a second schematic diagram of a sliding track according to an embodiment of the present application;
FIG. 7 is a third schematic diagram of a sliding track according to an embodiment of the present application;
FIG. 8 is a schematic diagram I of a first window according to an embodiment of the present application;
FIG. 9 is a second schematic diagram of a first window according to an embodiment of the present application;
FIG. 10 is a third schematic view of a first window according to an embodiment of the present application;
FIG. 11 is a schematic diagram IV of a first window according to an embodiment of the application;
fig. 12 is a schematic flow chart of storing and resolving identification information by an electronic device according to an embodiment of the present application;
Fig. 13 is a schematic diagram of identification information in a first picture according to an embodiment of the present application;
Fig. 14 is a schematic diagram of an electronic device displaying a target picture according to an embodiment of the present application;
FIG. 15 is a schematic view of a second window according to an embodiment of the present application;
Fig. 16 is a schematic diagram illustrating a system on a chip according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the present application, "/" means that the related objects are in a "or" relationship, unless otherwise specified, for example, a/B may mean a or B; the "and/or" in the present application is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B may indicate: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural. Also, in the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural. In addition, in order to facilitate the clear description of the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
With the development of internet technology and electronic equipment technology, users can browse network resources such as documents, pictures, videos and the like in websites or APP through electronic equipment. And users can comment on the display content (such as the network resources) of the electronic equipment in the browsing process so as to record own ideas, feelings and the like.
In general, when a user reviews a display content, the user needs to review a specific review area in a website or APP where the display content is located. Fig. 1 is a schematic view of a scenario of a comment made by a user according to the related art, as shown in fig. 1. When a user browses the XX forum through the electronic equipment, a display interface of the XX forum comprises a control part for writing comments, and the control part for writing comments has the function of providing a comment area for the user, wherein comment information can be input. The electronic device can display an interface comprising a comment area for the user to input comment information in response to the operation of clicking the control to write comments by the user, so that comments on the display content are realized. If the user needs to check or modify the comment, the user also needs to reenter the interface of the XX forum, and the comment information of the user is searched in the comment area so as to check or modify the comment. In the case that the comment area does not exist in the website or the APP where the display content is located, the user cannot comment on the display content. Therefore, in the related art, the comment of the user on the display content through the electronic device is limited by whether the website or the APP where the display content is located has the comment function, and the comment operation of the user is complicated. Thus, the user cannot comment on the display content of the electronic device efficiently and quickly.
In order to solve the above problems. The embodiment of the application provides a comment method which can be applied to electronic equipment. By adopting the method provided by the embodiment, the electronic device can be received by the operating system of the electronic device and the first window is displayed in response to the triggering operation (namely, the first operation) of the user. The first window comprises a first picture, and the first picture at least comprises a screenshot of an interface of a first application of the electronic device. Therefore, the user can comment on and save the interface of the first application through the first window efficiently and rapidly based on the first picture, and the use experience of the user is improved.
The electronic device in the embodiment of the present application may include, but is not limited to, a smart phone, a netbook, a tablet computer, a smart watch, a smart bracelet, a telephone watch, a smart camera, a palm computer, a personal computer (personal computer, PC), a Personal Digital Assistant (PDA), a portable multimedia player (portable multimedia player, PMP), an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a television, a projection device, or a motion sensing game machine in a human-computer interaction scene, etc. Or the electronic device may be another type or structure of electronic device, which is not limited by the present application.
Fig. 2 shows a schematic hardware configuration of the electronic device 100. The electronic device 100 shown in fig. 2 may be an electronic device in an embodiment of the present application, for example.
As shown in fig. 2, 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 charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, a subscriber identity module (subscriber identification module, SIM) card interface 195, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the 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 reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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 receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The wireless communication function of the electronic device 100 may be implemented 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.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to 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), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The 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 for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In the embodiment of the present application, when the electronic device 100 is the user device in the foregoing embodiment, the user device may send the query request to the APP server through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, and the like. The ue may also receive the query result data sent by the APP server through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, and the like.
In the embodiment of the present application, when the electronic device 100 is the APP server in the foregoing embodiment, the APP server may receive the query request sent by the user device through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, and the like. The APP server may also transmit query result data to the user equipment through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, etc.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband 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, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
In the embodiment of the present application, when the electronic device 100 is the user device in the foregoing embodiment, the user device may perform positioning through GPS, GLONASS, BDS, QZSS, SBAS and the like, to obtain the location information of the user device.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is 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 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
In an embodiment of the present application, when the electronic device 100 is the electronic device in the foregoing embodiment, the display screen 194 of the electronic device may display the interface of the first application for the user to browse. The display screen 194 of the electronic device may further display a first window including a first picture, so that a user may input comment information, and comment on an interface of the first application is implemented.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
FIG. 3 is a block diagram of the software architecture of an electronic device according to an embodiment of the present application;
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun rows (Android runtime) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application packages may include a consumption recommendation type application, a life type application, a shopping type application, a function type application, or the like. Specifically, applications such as cameras, gallery, calendar, talk, map, navigation, WLAN, bluetooth, music, video, short message, etc. are examples.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 3, the application framework layer may include a listening module, a comment module, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
In the embodiment of the application, the monitoring module is used for monitoring the operation of the user, namely determining whether the user initiates a first operation for triggering comments.
In an embodiment of the present application, the comment module may be configured to display the first window when the monitoring module monitors the first operation initiated by the user. The first window comprises a first picture, and the first picture at least comprises a screenshot of an interface of the first application. The comment module may be further configured to receive comment information for the first picture input by the user on the first window. The comment module may be further configured to store the first picture in association with comment information in response to a second operation initiated by the user.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), query module, etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises display drive, camera drive, audio drive, sensor drive, etc., which is not limited in this embodiment of the present application.
The comment method provided by the embodiment of the application is described below with reference to the electronic devices shown in fig. 2 and 3. The electronic device comprises an operating system (such as an application program framework layer of the operating system) of the electronic device, and a monitoring module and a comment module. Fig. 4 is a flow chart of a comment method according to an embodiment of the present application, and as shown in fig. 4, the method may include the following steps S101 to S108.
S101, the electronic equipment monitors whether a user initiates a first operation or not by an operating system.
In the embodiment of the application, the electronic equipment can display the interface of the first application through the display screen. The first application may be, for example: video play class applications, live broadcast class applications, or browser class applications, among others. The interface of the first application can comprise display contents such as images, videos, documents and the like, and the interface of the first application can also be a desktop for users to browse. Specifically, the display content in the interface of the first application may be a network resource, or may be a local resource of the electronic device.
The electronic device may identify the user intent by detecting an operation of the user to determine whether the user requires an interface of the first application to comment. For example, in the process of browsing the interface of the first application, when the user needs to comment on the interface of the first application, an operation (e.g., referred to as a first operation) of triggering the comment may be performed. In this way, the electronic device may determine whether the user needs to comment on the interface of the first application by detecting whether the user initiates the first operation.
In one implementation, S101 may be implemented by a listening module of an application framework layer in an operating system of the electronic device. Specifically, after the operating system of the electronic device is started (i.e., after the electronic device is started), the monitoring module may be started to monitor the operation initiated by the user, so as to identify the intention of the user. The monitoring module can determine whether the user needs to comment on the current display interface by judging whether the operation is the first operation.
In some embodiments, the first operation may be a sliding operation, and the listening module may identify an intent of the sliding operation by the user to determine whether the user needs to comment on the current display interface. Specifically, the sliding operation may be: the distance between the starting point position and the end point position of the sliding operation is larger than a first threshold value, the residence time of the finger at the starting point position when the user executes the sliding operation is larger than a second threshold value, and the included angle between the connecting line between the starting point position and the end point position and the preset straight line is smaller than a third threshold value. The first threshold may be, for example, 500 pixels or 2 cm, the second threshold may be, for example, 1 second or 500 milliseconds, and the third threshold may be, for example, 30 degrees or 45 degrees. The first threshold, the second threshold and the third threshold may be set according to actual requirements, for example, the first threshold, the second threshold and the third threshold may be set according to different horizontal and vertical screen states of the electronic device, which is not specifically limited in the present application.
In an example, fig. 5 is a schematic diagram of a sliding track shown in an embodiment of the present application, and as shown in fig. 5, in a state that an electronic device is vertical to a screen, a sliding track corresponding to a user performing a sliding operation on the electronic device is a track a. The starting point position of the track A is a point a, the end point position is a point B, the residence time of the finger at the starting point position when a user executes sliding operation is T A, the distance between the point a and the point B is L A, and the included angle between the connecting line of the point a and the point B and the bottom edge B in the vertical screen state of the electronic equipment is alpha. Taking the first threshold value as 2 cm, the second threshold value as 1 second, and the third threshold value as 30 degrees as an example, the monitoring module simultaneously satisfies the following when determining that the sliding operation executed by the user: if T A is greater than 1 second, L A is greater than 2 cm, and α is greater than 30 degrees, it may be determined that the sliding operation of the user is the first operation, that is, it indicates that the user wants to initiate a comment for the current display interface.
In a further example, fig. 6 is a schematic diagram two of a sliding track shown in an embodiment of the present application, as shown in fig. 6, in a state that an electronic device is in a landscape screen, a sliding track corresponding to a user performing a sliding operation on the electronic device is a track C. The starting point of the track C is a point C, the end point is a point D, the residence time of the finger at the starting point position when the user executes the sliding operation is T C, the distance between the point C and the point D is L C, and the included angle between the connecting line of the point C and the point D and the bottom edge D of the electronic equipment in the vertical screen state is beta. Taking the first threshold value as 500 pixel points, the second threshold value as 500 milliseconds, and the third threshold value as 45 degrees as an example, the monitoring module simultaneously satisfies the following when determining the sliding operation executed by the user: if T C is greater than 500 ms, L C is greater than 500 pixels, and β is greater than 45 degrees, it may be determined that the sliding operation of the user is the first operation, that is, it indicates that the user wants to initiate a comment for the current display interface.
In some embodiments, in the case where the first operation is a sliding operation, the first operation may further be: the residence time of the finger at the starting point position when the user performs the sliding operation is greater than a fourth threshold value, the maximum difference value of the coordinate values of the track points included in the track at the horizontal axis is greater than a fifth threshold value, and the maximum difference value of the coordinate values of the track points included in the track at the vertical axis is greater than a sixth threshold value in the track drawn when the user performs the sliding operation. The fourth threshold may be, for example, 1 second or 500 milliseconds, and the fifth threshold may be, for example, 600 pixels, or 3 centimeters. The sixth threshold may be, for example, 700 pixels, or 3.5 cm. The fourth threshold, the fifth threshold, and the sixth threshold may be set according to actual requirements, which is not particularly limited in the present application.
Fig. 7 is a schematic diagram three of a sliding track, as shown in fig. 7, where the sliding track corresponding to the sliding operation performed by the user on the electronic device is a track E. The starting point of the track E is the point E, the end point is the point d, and the residence time of the finger at the starting point position when the user executes the sliding operation is T E. The maximum difference of the coordinate values of the track points included in the track E on the horizontal axis is Δx E, and the maximum difference of the coordinate values of the track points included in the track E on the vertical axis is Δy E. Taking the fourth threshold of 500 milliseconds, the fifth threshold of 3 centimeters and the sixth threshold of 3.5 centimeters as an example. The listening module, upon determining that the sliding operation performed by the user simultaneously satisfies: if T E is greater than 500 ms, Δx E is greater than 3 cm, and Δy E is greater than 3.5 cm, it may be determined that the sliding operation of the user is the first operation, that is, it indicates that the user wants to initiate a comment for the current display interface.
S102, when the operating system monitors a first operation initiated by a user, the electronic device displays a first window.
In the embodiment of the present application, after detecting that the user initiates the first operation, that is, the operating system of the electronic device receives the first operation of the user, as shown in fig. 8, in response to the first operation, the electronic device may display a first interface (surface) or may also be referred to as a first window by the operating system of the electronic device. The first window comprises a first picture, and the first picture at least comprises a screenshot of an interface of the first application, so that users can comment on the basis of the content of the interface of the first application. In one implementation, the first picture may further include information such as a status bar of the electronic device. As shown in fig. 8, the first picture may further include: signal state information 801, battery state information 802, and time information 803 of the electronic device, and the like.
In one implementation, as shown in fig. 4, S102 may be implemented by a listening module and a comment module of an application framework layer in an operating system of an electronic device. Specifically, when the monitoring module detects that the user initiates the first operation, a notification message may be sent to the comment module. And the comment module receives and responds to the notification message, and acquires a screenshot of an interface of a first application displayed by the electronic device when the user executes a first operation so as to generate a first picture. Illustratively, the comment module may obtain a screenshot of an interface of the first application through a screenShot interface, a captureScreen interface, or the like.
The comment module may then display a first window including at least the first picture. As shown in fig. 8, the comment module may display a first window 800 on an interface of the first application through a display screen of the electronic device, so that a user may input comment information through the first window. In one implementation, the size of the first window may be set to be the same as the size of the interface of the first application such that the first window overlays the interface of the first application. In this way, the user can input comment information through the first window based on the first picture.
In some embodiments, other functionality controls may also be included in the first window for user operation. As an example, as shown in fig. 8, the first window 800 may further include: a save control 804, a cancel control 805, an edit control 806, or a share control 807. For example, the save control may be used to trigger the electronic device to save the first picture and comment information. The cancel control may be used to trigger the electronic device to close the first window to cancel the comment. The editing controls may provide a user with a movable text box, a selection box of various graphics (e.g., square, circular, etc.), a highlighter, a graffiti pen, or an eraser, etc. The sharing control may be used to trigger the electronic device to share the first picture and comment information to other users. It can be understood that the above functional controls and the names thereof are all exemplary descriptions, and the functional controls in the first window can be set in combination with actual application requirements, which is not particularly limited in the present application.
In some embodiments, when the monitoring module monitors that the user initiates the first operation, after sending a notification message to the comment module, the monitoring module may further stop monitoring the operation of the user until the user completes the comment, and the monitoring module monitors the operation initiated by the user again. Therefore, the monitoring module does not monitor the operation of the user in the comment process of the user, and the power consumption of the electronic equipment can be reduced.
S103, the electronic equipment receives comment information based on the first picture by the operation system.
In the embodiment of the application, after the electronic device displays the first window in S102, the electronic device may receive comment information input by the user based on the first picture in the first window. It may be understood that "comment information" in the embodiment of the present application may include text information, graphic information, or graffiti information, which is not specifically limited in the present application.
In one implementation, as shown in fig. 4, S103 may be implemented by a comment module of an application framework layer in an operating system of the electronic device. Specifically, the comment module may receive comment information input by a user through the first window. In one example, where a user enters text in a first window, the comment module may receive the text entered by the user (i.e., comment information) through the first window. For example, as shown in fig. 8, the user inputs comment information "good danger" through a first window 800 based on a first picture (i.e., play content of a video APP)! If yes, the comment information received by the comment module is "good danger" -! ". For another example, as shown in fig. 9, the user inputs comment information "today's weather good heat" through the first window based on the first picture (i.e., the weather small card on the desktop of the electronic device), and the comment information received by the comment module is "today's weather good heat".
In yet another example, where a user draws graphics in a first window, the comment module may receive the graphics drawn by the user (i.e., comment information) through the first window. As shown in FIG. 8, if the user draws the graphic 808 to select the play content based on the first picture (i.e., the play content of the video APP), the comment information received by the comment module is not "good danger-! ", also includes graphics 808.
S104, the electronic equipment acquires the identification information of the interface of the first application by the operating system.
In one implementation, as shown in fig. 4, S104 may be implemented by a comment module of an application framework layer in an operating system of the electronic device. Specifically, after receiving the notification message of the monitoring module, the comment module may further obtain, in response to the notification message, identification information corresponding to the interface of the first application. In this way, the comment module may be accurately and quickly positioned to the interface of the first application.
In some embodiments, the identification information may include one or more of the following: the method comprises the steps of enabling a name of an interface of a first application, an address of the interface of the first application, anchor point information of the interface of the first application and an APP identification of the first application. The name of the interface of the first application, the address of the interface of the first application and the application program identifier of the first application may be used to determine the first application, and the anchor point information of the interface of the first application may be used to determine the interface of the first application, that is, specific display content in the interface.
The name of the interface of the first application may be, for example, a title of a document, a name of a video, etc., the address of the interface of the first application may be, for example, an address of a web page (hereinafter, simply referred to as a web address), the application identifier of the first application may be an installation package name of the application (hereinafter, simply referred to as a package name), and the anchor information of the interface of the first application may be a playing duration of the video, a number of pages where text is located, a paragraph where text is located, etc. The electronic device can determine specific identification information according to the display content in the interface of the first application by the operating system.
In an example, in a case where the display content in the interface of the first application is web page text, the identification information corresponding to the interface of the first application may include: at least one of a website, a title of the webpage text, and an anchor point (e.g., paragraph, page number, etc.) of the webpage text. For example, fig. 10 is a schematic diagram three of a first window according to an embodiment of the present application, where, in the first window shown in fig. 10, identification information corresponding to an interface of a first application may include: web site "www.123.456", heading "ABCDEFG" of web page text, and paragraph "123" of web page text.
In still another example, in a case where the content displayed in the interface of the first application is web video, the identification information corresponding to the interface of the first application may include: at least one of a play address of the web page video, a name of the video, and a play duration of an anchor point (e.g., a tag of the video, a play duration, etc.) of the web page video.
In another example, in a case where the display content in the interface of the first application is APP video, the identification information corresponding to the interface of the first application may include: at least one of a packet name of the APP, a name of the video, an anchor point of the APP video (e.g., a tag of the video, a play duration, etc.).
In some embodiments, in the case of split-screen display of the electronic device, that is, in which the electronic device displays an interface of a plurality of first applications (such as at least two APPs), the identification information includes APP identifications corresponding to the at least two APPs respectively. In this way, the electronic device can be completely and accurately positioned to the interface of each first application.
As shown in fig. 11, when a user uses the split screen display function of the electronic device to browse two shopping APPs at the same time for commodity comparison, the electronic device may display the interface of shopping APP-1 and the interface of shopping APP-2 through the display screen. The first window is displayed after the electronic device detects a first user-initiated operation by the operating system. The first window comprises a first picture, and the first picture at least comprises a screenshot of an interface for displaying shopping APP-1 and a screenshot of an interface for displaying shopping APP-2. The user can input comment information through the first window based on the first picture. The electronic device may receive, by the operating system, comment information of the user based on the first picture, i.e. "which of the two pieces of clothing is better looking? ". The electronic device may further obtain, by the operating system, identification information of an interface of the first application, where the identification information includes at least an APP identifier of shopping APP-1 and an APP identifier of shopping APP-2. In this way, the electronic device can accurately determine the shopping APP-1 and the shopping APP-2 according to the APP identification of the shopping APP-1 and the APP identification of the shopping APP-2 so as to further determine the interfaces of the two first applications displayed by the electronic device.
Note that the electronic apparatus may execute S103 and S104 described above simultaneously. S104 may be performed first, and S103 may be performed later. Or S103 may be performed first and S104 may be performed later. The present application is not particularly limited thereto.
S105, the electronic equipment receives the first picture, comment information and identification information by the operating system and responds to a second operation initiated by the user, and the first picture, the comment information and the identification information are stored in an associated mode.
In one implementation, as shown in FIG. 4, S105 may be implemented by a comment module of an application framework layer in an operating system of an electronic device. Specifically, after the user inputs comment information, a save operation (i.e., a second operation) may be initiated to the electronic device. And the comment module in the electronic equipment receives and responds to the second operation, and the first picture and comment information corresponding to the first picture are associated and stored in a local storage of the electronic equipment.
Illustratively, as shown in FIG. 8, a save control is included in the first window 800. The second operation may be an operation, such as a click operation, on the save control. After the user inputs comment information based on the first picture through the first window, a second operation may be performed, such as by clicking on the save control 804, to trigger the electronic device to save the input comment information.
In some embodiments, the comment module may associate and store the first picture and the comment information in a local storage of the electronic device in a manner that integrates the first picture and the comment information into one picture. Thus, the user can intuitively browse the first picture and comment information.
In some embodiments, the comment module in the electronic device receives and responds to the second operation, and may further store the first picture and the identification information associated with the first picture in a local storage of the electronic device.
In an implementation manner, fig. 12 is a schematic flow chart of storing and analyzing identification information, which is shown in an embodiment of the present application, and as shown in fig. 12, the comment module may store the first picture and the corresponding identification information in a manner of adding the identification information in the first picture. For example, the comment module may add the identification information as an inherent attribute in the attribute of the first picture. Fig. 13 is a schematic diagram of identification information in a first picture according to an embodiment of the present application, and as shown in fig. 13, an electronic device may add corresponding identification information "XXXXXXXXXXX" to detailed information in an attribute of the first picture for storage. Thus, the electronic equipment is convenient for storing the identification information, and the electronic equipment is convenient for rapidly analyzing the identification information corresponding to the first picture.
In some embodiments, the electronic device may further close the display of the first window in the display screen of the electronic device in response to the second operation initiated by the user, and resume displaying the interface of the first application for the user to continue browsing.
S106, the electronic equipment responds to a third operation initiated by the user by the operating system to acquire and display the first picture and comment information stored in association with the first picture.
In one implementation, as shown in FIG. 4, S106 may be implemented by a comment module of an application framework layer in an operating system of the electronic device. Specifically, the comment module associates and stores the first picture with the corresponding comment information and the identification information. When the user needs to view the first picture and comment information, a viewing operation (i.e., a third operation) may be performed to trigger a comment module in the electronic device to acquire and display the first picture and comment information stored in association with the first picture.
In some embodiments, the first picture and comment information are stored in association with one another (e.g., referred to as a target picture). The comment module can display the target picture to the user through a gallery in the electronic device. Fig. 14 is a schematic diagram of displaying a target picture by an electronic device according to an embodiment of the present application, where, as shown in (1) in fig. 14, in a gallery of the electronic device, the target pictures may be displayed in a tiled thumbnail manner, that is, each thumbnail corresponds to one target picture. The third operation described above may be an operation of clicking on a thumbnail. The comment module receives and responds to the third operation, and as shown in (2) in fig. 14, can enlarge and display the target picture corresponding to the thumbnail. Thus, the user can intuitively and completely browse the target picture, namely the first picture and comment information stored in association with the first picture.
And S107, when the identification information stored in association with the first picture exists, the electronic equipment displays prompt information according to the identification information by the operating system.
In one implementation, as shown in fig. 4, S107 may be implemented by a comment module of an application framework layer in an operating system of the electronic device. Specifically, the comment module responds to a third operation initiated by the user, and can display prompt information through a display screen of the electronic device according to the identification information, so as to confirm whether the user continues to browse the interface of the first application corresponding to the first picture. For example, fig. 15 is a schematic diagram of a second window shown in the embodiment of the present application, and as shown in fig. 15, the comment module may display the second window through a display screen of the electronic device, where the second window may include a prompt message, and the prompt message may be, for example, "please confirm whether to continue browsing.
In some embodiments, as shown in fig. 12, in the case that the comment module stores the first picture and the corresponding identification information in association in a manner of adding the identification information to the first picture, the comment module may first parse the first picture to obtain the corresponding identification information thereof in response to a third operation of the user. And then, the comment module displays prompt information according to the identification information.
In some embodiments, to more accurately display the prompt information, the user's use experience is improved. The identification information may further include type information of the display content in the interface of the first application, the type information including, for example: video, documents, or web pages, etc. The comment module can display prompt information comprising text content corresponding to the type information according to the type information in the identification information.
In one example, if the type information is video, the text content of the prompt may be: whether to continue playing the video. In yet another example, if the type information is a document, the text content of the hint information may be: whether to continue reading the document. In another example, if the type information is a web page, the text content of the prompt may be: whether to continue browsing the web page. It will be appreciated that the text content of the prompt message is an exemplary illustration, and the specific content of the prompt message may be set according to actual requirements, which is not particularly limited in the present application.
S108, the electronic equipment receives the identification information associated with the first picture by the operating system and responds to the fourth operation of the user, and the interface of the first application is displayed.
In one implementation, as shown in FIG. 4, S108 may be implemented by a comment module of an application framework layer in an operating system of the electronic device. Specifically, after the comment module displays the prompt information, if the user needs to continue browsing the interface of the first application corresponding to the first picture, a confirmation operation (i.e., a fourth operation) may be performed, so as to trigger the comment module in the electronic device to jump and display the interface of the first application corresponding to the identification information according to the identification information stored in association with the first picture, so that the user continues browsing.
For example, as shown in fig. 15, in the case that the comment module displays the prompt information through the second window 150, the second window 150 may further include: a confirmation control 151 and a cancel control 152. The user may initiate a fourth operation to the electronic device by clicking on the confirmation control 151. It should be understood that the above functional controls and their names are all exemplary, and the confirmation control 151 may be replaced by a name having the same or similar function, such as "yes" control, and the cancel control 152 may be replaced by a name having the same or similar function, such as "no" control, which is not limited in this disclosure.
In one implementation, the identification information of the interface of the first application includes: the web address "www.xxx.xxx" and paragraph information "paragraph 15" are examples. Firstly, the comment module can call the browser to open the corresponding webpage according to the website 'www.xxx.xxx' in the identification information. And then, the comment module can jump to the 15 th section of content corresponding to the webpage according to the paragraph information in the identification information, and display the part of display content, namely, display the interface of the first application.
In yet another implementation, the identification information of the interface of the first application includes: APP packet name "ABC", video tag "movie", video name "ABC" and play duration "35 minutes 25 seconds" are examples. Firstly, the comment module can pull up the corresponding APP 'ABC' according to the APP packet name in the identification information. Then, the comment module can find the video "ABC" resource in APP "ABC" according to the video tag and video name in the identification information. Finally, the comment module can jump the video "abc" to 35 minutes and 25 seconds according to the playing time in the identification information, and continue playing the video "abc", namely displaying the interface of the first application.
By adopting the comment method provided by the embodiment of the application, the electronic equipment can be received by the operating system of the electronic equipment and respond to the triggering operation (namely the first operation) of the user to display the first window. The first window comprises a first picture, and the first picture at least comprises a screenshot of an interface of a first application of the electronic device. Therefore, the user can comment on the interface of the first application and save the comment through the first window efficiently and quickly based on the first picture. The electronic device may further obtain, by an operating system of the electronic device, identification information of an interface of the first application, and store, in association with the first picture, the identification information in response to a save operation (i.e., a second operation) of the user. In this way, the electronic device can determine and display the interface of the first application corresponding to the identification information according to the identification information by the operating system of the electronic device, so that the user can continue browsing, and the use experience of the user is improved.
It will be appreciated that, in order to achieve the above-mentioned functions, the electronic device includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can group the functional modules of the electronic device according to the method example, for example, each functional module can be correspondingly grouped, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the grouping of modules is merely a logical function grouping, and another grouping manner may be implemented in actual practice.
The embodiment of the application also provides electronic equipment, which can comprise: a display screen, a memory, and one or more processors. The display, memory, and processor are coupled. The memory is for storing computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform the various functions or steps performed by the electronic device in the method embodiments described above. Of course, the electronic device includes, but is not limited to, the display screen, memory, and one or more processors described above. For example, the structure of the electronic device may refer to the structure of the electronic device shown in fig. 2.
The embodiment of the application also provides a chip system which can be applied to the electronic equipment in the previous embodiment. As shown in fig. 16, the chip system includes at least one processor 301 and at least one interface circuit 302. The processor 301 may be a processor in the electronic device described above. The processor 301 and the interface circuit 302 may be interconnected by wires. The processor 301 may receive and execute computer instructions from the memory of the electronic device via the interface circuit 302. The computer instructions, when executed by the processor 301, may cause the electronic device to perform the various steps performed by the electronic device in the embodiments described above. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium for storing the computer instructions for the electronic equipment to operate.
The embodiment of the application also provides a computer program product comprising the computer instructions for the electronic equipment to operate.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A comment method, characterized by being applied to an electronic device, the method comprising:
the electronic equipment displays an interface of a first application;
the electronic device receives a first operation of a user by an operating system of the electronic device;
In response to the first operation, the electronic device displays a first window on an interface of the first application by an operating system of the electronic device, wherein the first window comprises a first picture, and the first picture at least comprises a screenshot of the interface of the first application;
Receiving comment information for the first picture, which is input by a user on the first window, by an operating system of the electronic device;
the electronic device receives a second operation of a user by an operating system of the electronic device;
In response to the second operation, the electronic device stores the first picture and the comment information in association by an operating system of the electronic device.
2. The method of claim 1, wherein after the electronic device receives the first operation of the user by the operating system of the electronic device, the method further comprises:
The electronic equipment acquires the identification information of the interface of the first application from an operating system of the electronic equipment; the identification information includes one or more of the following: the name of the interface of the first application, the address of the interface of the first application, the anchor point information of the interface of the first application and the application program identification of the first application;
after the electronic device receives a second operation of a user by an operating system of the electronic device, the method further comprises:
in response to the second operation, the electronic device stores the identification information in association with the first picture by an operating system of the electronic device.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the electronic equipment receives a third operation of a user by an operating system of the electronic equipment;
In response to the third operation, the electronic device acquires and displays the first picture and the comment information stored in association with the first picture by an operating system of the electronic device.
4. The method according to claim 2, wherein the method further comprises:
the electronic equipment receives a third operation of a user by an operating system of the electronic equipment;
In response to the third operation, the electronic device acquires and displays the first picture and the comment information stored in association with the first picture by an operating system of the electronic device;
Displaying, by an operating system of the electronic device, prompt information for a user to confirm whether to continue browsing an interface of the first application when identification information stored in association with the first picture exists;
the electronic device receives a fourth operation of a user by an operating system of the electronic device;
And responding to the fourth operation, and displaying an interface of the first application by an operating system of the electronic equipment according to the identification information stored in association with the first picture.
5. The method of any one of claims 1-4, wherein the first operation is a sliding operation;
The distance between the starting point position and the ending point position of the sliding operation is larger than a first threshold value, the residence time of a finger at the starting point position when a user executes the sliding operation is larger than a second threshold value, and the included angle between a connecting line between the starting point position and the ending point position and a preset straight line is smaller than a third threshold value;
Or the stay time of the finger at the starting point position when the user executes the sliding operation is larger than a fourth threshold value, in the track drawn when the user executes the sliding operation, the maximum difference value of the coordinate values of the track points included in the track at the horizontal axis is larger than a fifth threshold value, and the maximum difference value of the coordinate values of the track points included in the track at the vertical axis is larger than a sixth threshold value.
6. The method of any of claims 1-5, wherein the operating system comprises: the application program framework layer comprises a monitoring module and a comment module;
the electronic device receives, by an operating system of the electronic device, a first operation of a user, including:
The electronic equipment monitors the operation of a user by the monitoring module included in the application framework layer, and sends a notification message to the evaluation module of the application framework layer under the condition that the first operation is monitored, wherein the notification message is used for notifying that the first operation is monitored;
The electronic device displaying, by an operating system of the electronic device, a first window on an interface of the first application in response to the first operation, including:
The electronic device receives the notification message by the comment module included in the application framework layer and in response displays the first window on an interface of the first application.
7. The method of claim 6, wherein the electronic device receiving, by an operating system of the electronic device, comment information for the first picture entered by a user on the first window, comprises:
The electronic device receives the comment information input by a user on the first window by the comment module included in the application framework layer;
the electronic device receives, by an operating system of the electronic device, a second operation of a user, comprising:
The electronic device receiving the second operation by the evaluation module included in the application framework layer;
The responding to the second operation, the electronic device storing the first picture and the comment information in association by an operating system of the electronic device, including:
in response to the second operation, the electronic device stores the first picture in association with the comment information by the comment module included by the application framework layer.
8. The method according to claim 6 or 7, wherein the electronic device obtaining, by an operating system of the electronic device, identification information of an interface of the first application, comprises:
The electronic equipment acquires the identification information through the evaluation module included in the application framework layer;
the responding to the second operation, the electronic device storing the identification information and the first picture in association by an operating system of the electronic device, including:
in response to the second operation, the electronic device stores the identification information in association with the first picture by the comment module included by the application framework layer.
9. An electronic device, comprising: a memory, one or more processors; the memory is coupled with the processor; wherein the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-8.
10. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-8.
CN202211726048.1A 2022-12-30 Comment method and electronic equipment Pending CN118277003A (en)

Publications (1)

Publication Number Publication Date
CN118277003A true CN118277003A (en) 2024-07-02

Family

ID=

Similar Documents

Publication Publication Date Title
US11722449B2 (en) Notification message preview method and electronic device
WO2021013158A1 (en) Display method and related apparatus
CN112291764B (en) Content connection system
CN117008777A (en) Cross-equipment content sharing method, electronic equipment and system
EP4060475A1 (en) Multi-screen cooperation method and system, and electronic device
US20230244508A1 (en) Application starting method and apparatus, and electronic device
US20220358089A1 (en) Learning-Based Keyword Search Method and Electronic Device
CN112130788A (en) Content sharing method and device
CN115328358B (en) Display method and related device
CN116095413B (en) Video processing method and electronic equipment
US20240126424A1 (en) Picture sharing method and electronic device
CN111176766A (en) Communication terminal and component display method
CN116431044A (en) Method and device for starting application program and terminal equipment
WO2023005711A1 (en) Service recommendation method and electronic device
WO2023005751A1 (en) Rendering method and electronic device
CN118277003A (en) Comment method and electronic equipment
WO2023045774A1 (en) Display method and electronic device
WO2024037346A1 (en) Page management method and electronic device
WO2024109481A1 (en) Window control method and electronic device
CN115061758B (en) Application display method, terminal, electronic device and storage medium
WO2023274093A1 (en) Method and apparatus for scrolling to capture screenshot
CN117389437A (en) Multi-window display method and equipment
CN117938559A (en) Communication method and electronic equipment
CN116257201A (en) Content collaboration method, electronic device, and computer-readable storage medium
CN117827331A (en) Window display method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication