WO2022228005A1 - 一种消息提醒方法及终端设备 - Google Patents

一种消息提醒方法及终端设备 Download PDF

Info

Publication number
WO2022228005A1
WO2022228005A1 PCT/CN2022/084033 CN2022084033W WO2022228005A1 WO 2022228005 A1 WO2022228005 A1 WO 2022228005A1 CN 2022084033 W CN2022084033 W CN 2022084033W WO 2022228005 A1 WO2022228005 A1 WO 2022228005A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
window
message
simulator
identifier
Prior art date
Application number
PCT/CN2022/084033
Other languages
English (en)
French (fr)
Inventor
张波
王泽智
陈志彬
张志群
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22794478.2A priority Critical patent/EP4318240A4/en
Publication of WO2022228005A1 publication Critical patent/WO2022228005A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a message reminder method and terminal device.
  • the Android emulator is an emulator that allows users to run and simulate the Android operating system on the personal computer in addition to the native computer system, and can install, use, and uninstall Android applications. software.
  • Android emulators users can use Android applications on electronic devices equipped with Android emulators even without mobile phone hardware.
  • an Android emulator can simulate the operating environment of an Android phone on a computer, allowing users to experience Android games and applications on a computer.
  • Each application can correspond to a window. These windows can be displayed in the taskbar in a minimized form, or in a non-minimized form. (normal state, maximized) is displayed on the display screen, but no matter whether the window corresponding to the application is in a minimized state or covered by windows of other applications, these applications are all foreground applications by default.
  • the Android system will not generate a notification (reminder) message.
  • the present application provides a message reminding method and a terminal device, which are used to realize a reminder when an application in an emulator receives a message, thereby improving user experience.
  • the present application provides a message reminder method, the method includes: a first application receives a first message sent by a second application, the first message includes an identifier of the second application, and the second application receives A new message application, and the first application and the second application are application programs under the system mounted on the simulator; the first application sends a second message to the simulator application, the second message The identifier of the second application is included, and the second message is used to instruct the simulator to determine whether to remind the new message received by the second application.
  • the second application is a foreground application after it is opened, through the above technical solution, when the second application in the simulator receives a new message, the first application in the simulator can send the identifier of the second application to the simulator, so that the The simulator further determines whether to remind the new message, so as to realize the message reminder for the foreground application on the simulator, so that the user can view the new message in time and improve the user experience.
  • the first message includes at least one.
  • the first application when multiple application programs receive new messages, the first application can receive multiple first messages, and then send the identifiers of multiple application programs to the simulator.
  • the receiving, by the first application, the first message sent by the second application includes: the first application receiving, by the first application, the first message sent by the second application through the third application.
  • the second application when the second application receives a new message, the second application can call the interface of the third application to send the first message to the third application, and then forward the first message to the first application.
  • the first message further includes: the number of new messages received by the second application, and the content of the new messages received by the second application.
  • the first application can send the number and/or content of the new message to the simulator, so that the simulator will subsequently send the number and/or content of the new message to the simulator. / or content reminders to users, thereby improving user experience.
  • the emulator is an Android emulator.
  • the application in the emulator is an Android application
  • the system of the simulator is not specifically limited in this application.
  • the first application is a desktop application
  • the second application is an email application and a Huawei video application.
  • the present application also provides a message reminder method, including:
  • the simulator receives a first message sent by a first application, where the first message includes an identifier of a second application, the second application is the application that received the new message, and the first application and the second application are The application program under the system carried by the simulator; the simulator determines the corresponding second window identifier according to the identifier of the second application; the simulator determines the corresponding second window identifier according to the second window identifier and the window of the mouse focus window The identifier is used to determine whether to remind the new message received by the second application.
  • the simulator can know which application program in the simulator has received the new message through the application ID included in the first message, and then compare the window ID corresponding to the application ID with the window ID of the mouse focus window, and then Determine if you need to be alerted for new messages.
  • the first message is sent by the second application to the first application.
  • the first message is sent by the second application to the first application through a third application.
  • the first message may be directly sent by the second application to the first application, or may be sent by the second application to the third application, and then forwarded by the third application to the first application.
  • the simulator determines whether to remind the new message received by the second application according to the second window identifier and the window identifier of the mouse focus window, including:
  • the simulator determines that the second window identifier is different from the window identifier of the mouse focus window, it determines to remind the new message received by the second application; if the simulator determines that the second window identifier is different from that of the mouse focus window If the window identifiers of the mouse focus windows are the same, it is determined not to remind the new message received by the second application.
  • the new message needs to be reminded at this time; if the window identifier of the new message is the same as the window identifier of the mouse focus window, it means that the user can directly see the For new messages, there is no need to remind the user by means of a reminder at this time.
  • the first message further includes: the number of new messages received by the second application, and the content of the new messages received by the second application.
  • the reminder method for reminding the new message received by the second application includes at least one of the following methods: application icon flashing, application window flashing, pop-up window, notification, and application window shaking,
  • the pop-up window or the notification includes the quantity and/or content of the new message.
  • the simulator can remind new messages by means of application icon flickering, application window flickering, notification, etc., so that the user can view and process the new message in time, and the user experience can be improved.
  • the present application further provides a terminal device, the terminal device comprising a display screen; one or more processors; one or more memories; a plurality of applications; and one or more computer programs; wherein the one or more A plurality of computer programs are stored in the one or more memories, the one or more computer programs include instructions that, when invoked for execution by the one or more processors, cause the terminal device to execute.
  • the present application further provides a terminal device, the electronic device includes a module/unit for executing the first aspect, the second aspect, or any one of the possible design methods of the first aspect and the second aspect; these modules/units
  • the unit may be implemented by hardware, or by executing corresponding software by hardware.
  • an embodiment of the present application further provides a chip, which is coupled to a memory in an electronic device, and implements any possible design of the first aspect, the second aspect, and the first and second aspects of the embodiment of the present application
  • "coupling” means that two components are directly or indirectly combined with each other.
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program is run on an electronic device, the electronic device is made to execute the first embodiment of the present application.
  • the embodiments of the present application further provide a computer program product, which, when the computer program product is run on a terminal device, enables the computer program product to execute the second aspect and any one of the second aspects of the embodiments of the present application possible technical solutions.
  • FIG. 1 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application
  • FIG. 2 is a structural block diagram of a terminal device 100 according to an embodiment of the application.
  • FIG. 3 is a schematic diagram of a user interface provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a user interface provided by an embodiment of the present application.
  • 6A is a schematic diagram of a user interface provided by an embodiment of the present application.
  • 6B is a schematic diagram of a user interface provided by an embodiment of the present application.
  • 6C is a schematic diagram of a user interface provided by an embodiment of the present application.
  • 6D is a schematic diagram of a user interface provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
  • the applications involved in the embodiments of the present application are software programs capable of implementing one or more specific functions.
  • multiple applications can be installed in a terminal device.
  • camera application email application, video application, music application, chat application, WeChat, WeLink, etc.
  • the application mentioned below may be an application that has been installed when the terminal device leaves the factory, or may be an application downloaded from a network or acquired by a user in the process of using the terminal device.
  • the message reminder method provided by the embodiments of the present application may be applicable to terminal devices with display screens, such as personal computers (Personal Computers, PCs), (such as tablet computers, notebook computers, ultra-mobile personal computers (ultra-mobile personal computers) mobile personal computer, UMPC), smart screen, etc.
  • the embodiments of the present application are not limited.
  • exemplary embodiments of the terminal device include but are not limited to carrying Hongmeng Or terminal devices of other operating systems.
  • the structure of the terminal device is described below.
  • the terminal device 100 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a universal serial bus (USB) interface 130 , a charging management module 140 , a power management module 141 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • a processor 110 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a universal serial bus (USB) interface 130 , a charging management module 140 , a power management module 141 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 1
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the terminal device 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices.
  • the charging management module 140 is used to receive charging input from the charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in terminal device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the 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 wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the wireless communication module 160 can provide applications on the terminal device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • a communication connection may be established between different electronic devices through BT or WLAN.
  • the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), fifth generation (the fifth generation) , 5G) mobile communication systems, future communication systems, such as 6th generation (6G) systems, etc., BT, GNSS, WLAN, NFC, FM and/or IR technologies, etc.
  • 6G 6th generation
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the display screen 194 is used to display the display interface of the application and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • emitting diode, AMOLED organic light-emitting diode
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the terminal device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the display screen 194 may be used to display multiple application interfaces at the same time.
  • Camera 193 is used to capture still images or video.
  • the camera 193 may include a front camera and a rear camera.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the terminal device 100 by executing the 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 the operating system, and the software code of at least one application (eg, iQIYI application, WeChat application, etc.).
  • the storage data area may store data (eg, images, videos, etc.) and the like generated during the use of the terminal device 100 .
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. Such as saving pictures, videos and other files in an external memory card.
  • the terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the terminal device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the components shown in FIG. 1 do not constitute a specific limitation on the electronic device, and the electronic device may also include more or less components than those shown in the figure, or combine some components, or split some components, Or a different component arrangement.
  • the terminal device 100 shown in FIG. 1 is used as an example for introduction.
  • FIG. 2 is a structural block diagram of a terminal device 100 according to an embodiment of the present application.
  • the terminal device 100 may be an electronic device equipped with a windows system, and multiple applications, such as simulator applications (simulator name.exe), may be installed under the windows system.
  • the simulator application may be an application equipped with an Android system, and the Android system may include multiple Android applications, such as an email application, a Huawei video application, and a desktop.
  • the email APP when an application (eg, email) under the Android system receives a new message, the email APP can call the interface of the desktop APP under the Android system, so that the desktop APP can know that the email APP has received a new message. message, at this time the desktop APP can inform the simulator application of the application ID (application identifier) of the email APP.
  • the simulator application can determine whether the user needs to be reminded according to the relationship between the window on which the user's mouse is focused and the window of the email APP.
  • the simulator may determine that the user needs to be reminded; if the window where the user's mouse focus is located is the same as the window of the email APP, the simulator may determine that the user does not need to be reminded.
  • At least one involved in the following embodiments includes one or more; wherein, multiple refers to greater than or equal to two.
  • words such as “first” and “second” are only used for the purpose of distinguishing and describing.
  • the terminal device is a notebook computer as an example.
  • an emulator application (hereinafter referred to as an emulator) may be installed on the notebook computer, and the notebook computer may be a windows system.
  • the emulator installed on the laptop is an Android emulator, you can use Android apps on the laptop.
  • the interface 300 may include at least one application icon, for example, an emulator application icon 301, an email application icon 302, and a Huawei video application icon.
  • an application mall application icon 304 a calculator application icon 305 , and the like.
  • the interface 300 may also include a task bar 306 . It should be understood that, when the actual product is realized, the simulator application icon 301 may or may not be displayed.
  • the laptop computer can respond to the user's click operation to enter the display interface of the email application, for example, the interface 310 can be displayed on the laptop computer.
  • the interface 310 may include an application window 311 of the email.
  • the user can click on the Huawei video application icon 303, and the interface 320 can be displayed on the laptop computer.
  • the interface 320 may include an email application window 311 and a Huawei video application window 321 . That is to say, multiple application windows can be displayed on the notebook computer, and each application window corresponds to an application program.
  • the application window 311 and the application window 321 may further include a minimize icon, a maximize icon, a close button, and the like.
  • the minimize icon is used to minimize and display the application window on the taskbar 306
  • the maximize icon is used to display the application window in full screen on the display interface of the laptop computer
  • the close button is used to close the application window.
  • the simulator and the applications opened under the Android system carried by the simulator can be understood as different processes for the Windows system, or the process corresponding to the simulator can be understood as a process, and then the applications opened under the Android system can be understood as It is understood as a child process under a process.
  • the simulator may assign a window identity number (ID) (or may also be referred to as: window number, window identifier) for the window where the application program is located,
  • ID window identity number
  • the windows of an Android app running in the emulator are distinguished by their window identifiers.
  • the simulator can send a first notification message to the Android system to notify the Android system which application to start, and then the Android system receives the notification After the message, the Android application may be launched, and after the application is launched, a second notification message carrying the application ID of the Android application is returned to the emulator to inform the emulator that the Android application has been opened.
  • the simulator When the simulator receives the second notification message, it can assign a corresponding window ID to the application according to the application ID. That is to say, according to the above method, the simulator can actively allocate a window ID corresponding to the Android application to the Android application when the Android application is opened, and establish a corresponding relationship between the Android application ID and the application window ID.
  • the user can also open an Android application or the like by means of a voice trigger, which is not limited in this application.
  • Table 1 the corresponding relationship between the application ID and the window ID can be referred to as shown in Table 1 below. It should be understood that Table 1 is only a schematic description, and the present application does not limit the way of saving the corresponding relationship, the representation of the application ID and the window ID.
  • the application window when the application window is closed, that is, when the application is closed, the corresponding relationship between the application ID of the application and the window ID can be automatically deleted.
  • the window ID can be reassigned to the application.
  • the simulator may number the windows where the applications are located according to the opening sequence of the applications in the simulator.
  • the sequence in which the user opens the applications is: App Market APP, WeChat APP, Reading APP, and Huawei Video APP
  • the window where the App Market APP is located can be recorded as window 1
  • the window where the WeChat APP is located can be recorded as window 1.
  • window 2 the window where the reading APP is located is recorded as window 3
  • the window where the Huawei Video APP is located is recorded as window 4.
  • the number of the window where the application program is located is not fixed, and after the opened application program is closed, the simulator can renumber the window where the application program is located when it is opened again.
  • the window where the application market APP is located is recorded as window 1
  • the window where the WeChat APP is located is recorded as window 2
  • the window where the reading APP is located is recorded as window 3
  • the window where the Huawei Video APP is located is recorded as window 4
  • the user closes one of the above applications for example, closes the WeChat APP, and then opens the WeChat APP again after a period of time (for example, 30s or 5 minutes)
  • the window where the WeChat APP is located may be recorded as window 5.
  • a flowchart of a message reminder method provided by an embodiment of the present application, referring to FIG. 4 , the method may include the following steps:
  • the first application in the simulator receives the first message, that is, the application in the simulator receives a new message, and the new message may be a push message from the network or a message from other devices. It should be understood that the first message here may be one message or multiple messages, which is not limited in this application.
  • the first application is an Android application installed in the emulator, such as Huawei video, email, and the like.
  • S402 The first application in the simulator calls the interface of the second application, and sends the second message to the second application.
  • the second message may include the first application identifier, the quantity of the first message, and the content of the first message.
  • the Android application that receives the new message in the simulator may be recorded as the "first application”
  • the Android desktop application in the simulator may be recorded as the “second application”
  • the received new message may be recorded as the "second application”. "First News”.
  • the Android app that receives the new message usually calls the desktop APP's corner icon interface to inform the desktop APP that there is a new message, and then the desktop APP determines whether the corner icon needs to be updated according to the status of the application. number.
  • the desktop APP does not update the corner number.
  • the desktop APP updates the corner number. That is to say, when an application receives a new message, regardless of whether the application is a foreground application or a background application, the angular interface on the desktop APP will be called. Exemplarily, as shown in FIG. 5 , taking the application interface shown in FIG.
  • the laptop computer displays the interface 500 .
  • the interface 500 may include a desktop window 501 of an Android system and an application window 502 of an email that are mounted on the emulator.
  • the desktop may include application icons of Android applications, such as an email application icon 503, a Huawei video application icon 504, and the like.
  • the email application icon 503 may have a superscript number 2 displayed on it, and the superscript number 2 may be used to indicate that there are two unread emails in the email APP.
  • the email APP under the Android system carried by the simulator receives a new message, and the email APP can call the corner interface on the desktop APP.
  • the desktop APP judges whether to update the corner of the email APP according to the status of the email. Mark numbers. Since the email APP belongs to the foreground application at this time, there is no need to update the corner number on the application icon of the email.
  • the application can call the notification interface on the desktop APP to display the notification.
  • an application in the simulator when an application in the simulator receives a new message, whether it is calling the corner icon interface or the notification interface, it can register monitoring in the interface, so as to notify the simulator when a new message is detected. In this way, the message is reminded to the user.
  • the current display screen of the laptop displays the application interface of the Huawei Video APP, that is, the Huawei Video APP is the foreground application.
  • the WeChat APP can call the simulator.
  • the notification interface of the desktop APP under the equipped Android system automatically switches the WeChat APP to the foreground APP.
  • the first application when the first application receives the first message, the first application can send its own application name (or called: application identifier, application ID) to the desktop APP, and then the desktop APP sends the application name to the desktop APP. Sent to the emulator so that the emulator can determine the app window ID corresponding to the app name from the app name.
  • information can be transmitted between the desktop APP and the simulator through a pre-negotiated transmission channel. For example, a desktop APP can send the identity of the application to the emulator through the pipe channel.
  • the first application may also send its own application name to the third application, and then the third application sends the application name of the first application to the simulator.
  • the third application may be a preset application program specially used for exchanging information with the simulator.
  • S404 The simulator determines the window identifier where the first message is located according to the first application identifier.
  • the simulator application can know the application ID of the Android application, so that the simulator can allocate the window to the application according to the application ID. ID.
  • the simulator may determine the window identifier corresponding to the application identifier of the first application according to the application identifier of the first application. For example, assuming that the email APP receives a new message, the email APP can send a message to the desktop APP of the simulator, and the message can carry its own application identifier. Correspondingly, the desktop APP can send the message to the simulator. The simulator then determines the window ID corresponding to the email according to the application identifier (email) carried in the message, for example, the window ID is 1-1.
  • S405 The simulator determines whether the window identifier where the first message is located is a window identifier corresponding to the window where the user's mouse focus is located. If not, continue to execute S406, if yes, continue to execute S407.
  • the mouse focus means that when window 1 is clicked by the mouse, the window 1 has the focus; when the user moves the mouse to other positions, as long as other windows are not clicked, the mouse focus will always be the window where window 1 is located. , if the user clicks another window, such as window 2, then window 1 loses the mouse focus, and window 2 has the mouse focus. In other words, the window where the mouse focus is located can be understood as the window where the user's mouse was last acted upon.
  • the simulator may first obtain the window identifier corresponding to the window where the user's mouse focus is located. Then the simulator determines whether the window identifier where the first message is located is the same as the window identifier corresponding to the window where the user's mouse focus is located. Specifically, the simulator can determine whether the window where the user's mouse focus is located is the same as the window where the first message is located by reading the value of the window ID. For example, if the window ID of the window where the user's mouse focus is read by the simulator is 3, and the window ID of the window where the first message is located is 2, then the window where the user's mouse focus is located is different from the window where the first message is located.
  • S406 The simulator determines to display prompt information.
  • the simulator may determine that the user needs to be reminded at this time, so that the user can process the message in time , which can improve the user experience.
  • the simulator when the simulator determines that a new message needs to be reminded to the user, that is, the window corresponding to the new message is the same as the window where the mouse focus is located, it can notify the windows simulator process which sub-process corresponding to the window needs to flash, and The blinking time interval and blinking duration can be set, so that windows can blink the corresponding window according to the window ID of the child process, the blinking time interval, and the blinking duration.
  • the identifier of the window where the first message is located may be marked as a "first identifier”, and the identifier of the window corresponding to the window where the user's mouse focus is located is marked as a "second identifier”. It should be understood that the first identification and the second identification may be the same or different, the first identification and the second identification are different in S405, and the first identification and the second identification are the same in S406.
  • Scenario 1 The first window where the first message is located is displayed on the interface.
  • the first type As shown in (a) of FIG. 6A , assuming that an interface 600 is displayed on the laptop computer, two application windows can be displayed on the interface 600, such as the application window 601 of email and the application window 602 of Huawei Video respectively. , Taskbar 603. There is no overlap between the two windows, the application window 601 of email and the application window 602 of Huawei Video. Also, the taskbar 603 may include icons of applications opened by the user. Of course, the interface 600 may also include other application icons, etc., which are not limited in this application. It should be understood that the application window corresponding to the application interface of email is window 601 , and the application window corresponding to the application interface of Huawei Video is window 602 . The task bar may also be displayed on the right side of the display screen, etc., which is not limited in this application.
  • the application window 602 of Huawei Video can obtain the mouse focus. At this time, no matter how the user moves the mouse, as long as other windows are not clicked, the window where the mouse focus is always The application window of Huawei Video. It should be understood that the arrow shown on the window 602 is the position where the mouse focus is located.
  • the "inbox (0)" displayed in the application window 601 of the email can be understood as the email APP has not received new emails at this time.
  • the email APP receives a new message, such as a new mail, the "inbox (0)" can be changed to "inbox (1)”.
  • the simulator may remind the user with prompt information of the application icon flashing.
  • the application icon of the email may flash at a certain frequency, for example, as shown in (b) of FIG. 6A .
  • the interface 610 can be displayed on the laptop computer.
  • the interface 610 may include an email application window 611 and a task bar 612 .
  • the “Inbox (0)” in the window 602 in the interface 600 can be updated to the “Inbox (1)” in the application window 611, and a new email is added at the same time (That is, "the sender is John, and the reception time is "just now”).
  • the application icon of the email on the taskbar is blinking. When the user clicks the application icon of the email, the blinking can be stopped.
  • the second type As shown in (a) of FIG. 6B , assuming that an interface 620 is displayed on the notebook computer, two application windows can be displayed on the interface 620, such as the application window 621 of email and the application window 622 of Huawei Video respectively. , Taskbar 623.
  • the application window 621 of the email is covered by the application window 622 of Huawei Video, that is, there is an overlap between the two windows. Icons of applications opened by the user may be included in the taskbar 623 .
  • the mouse focus is on the application window 622 of Huawei Video. No matter how the user moves the mouse, as long as other windows are not clicked, the window on which the mouse focus is always the application window of Huawei Video.
  • the interface 620 may also include other application icons, etc., which are not limited in this application.
  • the simulator may use a pop-up window as prompt information to remind the user.
  • the email APP application in the simulator receives a new email
  • the number of new messages can be displayed in a pop-up window, such as shown in (b) of FIG. 6B .
  • an interface 630 can be displayed on the laptop computer, and the interface 630 can include an email application window 631 and a pop-up window 632, and the window 632 can specifically include first prompt information, such as "email reminder" 633, second prompt information "You have a new message.” 634 and "Close button” 635.
  • first prompt information such as "email reminder" 633, second prompt information "You have a new message.” 634 and "Close button” 635.
  • the notebook computer can close the pop-up window displayed on the interface in response to the user's operation. The user can then click on the email's application icon to view new messages received.
  • the first prompt information is used to prompt the user of the source of the new message
  • the second prompt information is used to prompt the user of the number of new messages.
  • the way of reminding can also be as follows: the application icon of the email flashes at a certain frequency, and at the same time, the number of new messages is displayed by means of a pop-up window.
  • the laptop can respond to the user's operation and close the pop-up window displayed on the interface.
  • the application icon of the email can continue to flash until the user clicks the application icon of the email, and the user can click the application icon of the email. Stop blinking.
  • Scenario 2 The first window where the first message is located is minimized.
  • each application corresponds to one application window
  • the first window where the first message is located is the application window corresponding to the first application.
  • an interface 640 can be displayed on the laptop computer, and the interface 640 can include a taskbar 641 and an application window 642 of Huawei Video.
  • the taskbar 641 may include a minimized email window 643 and an application icon of Huawei Video.
  • the interface 640 may also include other application icons, etc., which are not limited in this application.
  • the simulator may use the notification as prompt information to remind the user.
  • the email APP in the simulator receives a new email
  • the number of new messages can be displayed by means of the application window flashing and notification, for example, as shown in (b) in FIG. 6C
  • the notebook The interface 650 may be displayed on the computer.
  • the interface 650 may include a notification box 651, and the notification box 651 may include first prompt information, such as "email reminder" 652, third prompt information, such as "John” 653, and fourth prompt information, such as "you Well, there is a meeting in the conference room at 2:00 this afternoon, please come on time" 654.
  • the sender's avatar can also be displayed in the notification box 651 .
  • the first prompt information is used to prompt the user of the source of the new message
  • the third prompt information is used to prompt the sender of the new message
  • the fourth prompt information is used to prompt the user of the content of the new message.
  • the time for displaying the notification may be a set duration, for example, 30s, and when the time reaches 30s, the notification may be automatically closed. The user can then click on the application window of the flashing email to view new messages received.
  • the application in the simulator receives a new message
  • the user can also be reminded only by displaying a notification.
  • the notification may also be displayed at fixed time intervals until the user clicks the application icon of the email to view new messages received, so as to avoid the user missing new messages.
  • the content of the new message displayed in the notification may include part or all of the content.
  • the entire content of the new message may be displayed in the notification; when the content of the new message is relatively large, part of the content may be displayed in the notification. , which is not limited in this application.
  • the message reminder method is only an illustration of a specific scenario.
  • the message reminder method is not limited to a certain fixed scenario, such as the scenario shown in (a) in FIG. 6A , also The reminder can be given in the form of a pop-up window or a notification; or in the scenario shown in (a) in FIG. 6B , the reminder can also be given in the form of a flashing application icon, and so on.
  • S407 The simulator determines not to display the prompt information.
  • the first message can be directly displayed in the first window. In this case, the user can also directly see the new message without reminding the user.
  • the interface 670 may include: an application window 671 of email, an application window 662 of Huawei Video, and a task bar 663 .
  • the task bar 663 may include the application icon of email and the application icon of Huawei Video.
  • the terminal device can remind the new message received by the application in the simulator, so as to realize the message reminder function of the foreground application, and make Users can obtain and process new messages in a timely manner, improving user experience.
  • the methods provided by the embodiments of the present application are introduced from the perspective of interaction between applications on a terminal device.
  • the electronic device may include a hardware structure and/or software modules, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • the electronic device may be a terminal device with a display screen.
  • the electronic device 700 includes: a display screen 701; one or more processors 702; one or more memories 703; a plurality of applications 704 (not shown in the figure); and one or more computers Procedure 705 (not shown in the figure), the various devices described above may be connected through one or more communication buses 706 .
  • the display screen 701 is used to display the display interface of the application in the terminal device, or to display prompt information.
  • One or more computer programs are stored in the memory 703, and the one or more computer programs include instructions; the processor 702 invokes the instructions stored in the memory 703, so that the terminal device 700 can use the message reminder method of the above embodiment.
  • the processor 702 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which may implement Alternatively, each method, step, and logic block diagram disclosed in the embodiments of the present application are executed.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the software module may be located in the memory 703, and the processor 702 reads the program instructions in the memory 703, and completes the steps of the above method in combination with its hardware.
  • the memory 703 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), For example RAM.
  • the memory may also be, but is not limited to, any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing instructions and/or data.
  • the present application also provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by a computer, the computer causes the computer to execute the message reminder method provided by the above embodiments.
  • Embodiments of the present application further provide a computer program product, including instructions, which when run on a terminal device, cause the computer program product to execute the message reminding method provided by the above embodiments.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

一种消息提醒方法及终端设备,方法包括:第一应用接收第二应用发送的第一消息,第一消息包括第二应用的标识,第二应用为接收到新消息的应用,且第一应用与第二应用为模拟器所搭载的系统下的应用程序;第一应用向模拟器应用发送第二消息,第二消息包括第二应用的标识,第二消息用于指示模拟器确定是否对第二应用接收到的新消息进行提醒。通过上述方法,可以实现在模拟器内的应用接收到新消息时进行提醒,以使用户能够及时的查看处理消息,提升用户体验。

Description

一种消息提醒方法及终端设备
相关申请的交叉引用
本申请要求在2021年04月30日提交中国专利局、申请号为202110480060.8、申请名称为“一种消息提醒方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种消息提醒方法及终端设备。
背景技术
当前市面上存在各种品牌的模拟器,例如安卓模拟器是一种可以使用户在个人计算机除原生计算机系统外,运行并模拟安卓操作系统的模拟器,并能安装、使用、卸载安卓应用的软件。利用安卓模拟器,用户即使没有手机硬件设备,也能在装有安卓模拟器的电子设备上使用安卓应用程序。例如,安卓模拟器能在电脑上模拟出安卓手机运行环境,让用户在电脑上也能体验安卓游戏和应用。
模拟器内可以安装多个应用,假设当用户在模拟器内打开多个应用之后,每一个应用可对应一个窗口,这些窗口可以以最小化的形式显示在任务栏中,也可以以非最小化(正常状态、最大化)的形式显示在显示屏上,但是不管应用对应的窗口为最小化状态还是被其它应用的窗口所覆盖等,这些应用都默认为前台应用。此时当某个应用接收到新消息时,由于应用为前台应用,安卓系统则不会生成通知(提醒)消息。也就是说,模拟器内的应用在接收到新消息时,如果应用对应的窗口为最小化状态或者被其它应用的窗口所覆盖,则用户在个人计算机上无法感知到有新消息,即无法对用户进行提醒。
发明内容
本申请提供一种消息提醒方法及终端设备,用以实现在模拟器内的应用接收到消息时进行提醒,提升用户体验。
第一方面,本申请提供一种消息提醒方法,该方法包括:第一应用接收第二应用发送的第一消息,所述第一消息包括第二应用的标识,所述第二应用为接收到新消息的应用,且所述第一应用与所述第二应用为所述模拟器所搭载的系统下的应用程序;所述第一应用向模拟器应用发送第二消息,所述第二消息包括所述第二应用的标识,所述第二消息用于指示所述模拟器确定是否对所述第二应用接收到的新消息进行提醒。
由于第二应用打开之后为前台应用,通过上述技术方案,可以在模拟器内的第二应用接收到新消息时,模拟器内的第一应用将第二应用的标识发送给模拟器,以使模拟器进一步确定是否对新消息进行提醒,从而实现对模拟器上的前台应用的消息提醒,使得用户能够及时地查看新消息,提升用户体验。
在一种可能的设计中,所述第一消息包括至少一条。
通过上述技术方案,当多个应用程序接收到新消息时,第一应用可以接收到多条第一 消息,进而将多个应用程序的标识发送给模拟器。
在一种可能的设计中,所述第一应用接收第二应用发送的第一消息,包括:所述第一应用接收第二应用通过第三应用发送的第一消息。
通过上述技术方案,当第二应用接收到新消息时,第二应用可以调用第三应用的接口向第三应用发送第一消息,然后再将第一消息转发给第一应用。
在一种可能的设计中,所述第一消息还包括:所述第二应用接收到的新消息的数量、所述第二应用接收到的新消息的内容。
通过上述技术方案,当第一消息中还包括新消息的数量和/或内容时,第一应用可以将新消息的数量和/或内容发送给模拟器,使得模拟器后续将新消息的数量和/或内容提醒给用户,从而提升用户体验。
在一种可能的设计中,所述模拟器为安卓模拟器。
当模拟器为安卓模拟器时,模拟器内的应用即为安卓应用。当然,本申请中对于模拟器的系统不作具体限定。
在一种可能的设计中,所述第一应用为桌面应用,所述第二应用为电子邮件应用、华为视频应用。
第二方面,本申请还提供一种消息提醒方法,包括:
模拟器接收第一应用发送的第一消息,所述第一消息包括第二应用的标识,所述第二应用为接收到新消息的应用,且所述第一应用与所述第二应用为所述模拟器所搭载的系统下的应用程序;所述模拟器根据所述第二应用的标识确定对应的第二窗口标识;所述模拟器根据所述第二窗口标识和鼠标焦点窗口的窗口标识,确定是否对所述第二应用接收到的新消息进行提醒。
通过上述技术方案,模拟器可以通过第一消息包括的应用标识知道模拟器内的哪个应用程序接收到了新消息,然后再将该应用标识对应的窗口标识与鼠标焦点窗口的窗口标识进行对比,进而确定是否需要对新消息进行提醒。
在一种可能的设计中,所述第一消息为所述第二应用发送给所述第一应用的。
在一种可能的设计中,所述第一消息为所述第二应用通过第三应用发送给所述第一应用的。
通过上述技术方案,第一消息可以为第二应用直接发给第一应用的,也可以为第二应用发送给第三应用,由第三应用转发给第一应用。
在一种可能的设计中,所述模拟器根据所述第二窗口标识和鼠标焦点窗口的窗口标识,确定是否对所述第二应用接收到的新消息进行提醒,包括:
所述模拟器若确定所述第二窗口标识与鼠标焦点窗口的窗口标识不同,则确定对所述第二应用接收到的新消息进行提醒;所述模拟器若确定所述第二窗口标识与鼠标焦点窗口的窗口标识相同,则确定不对所述第二应用接收到的新消息进行提醒。
通过上述技术方案,如果新消息的窗口标识与鼠标焦点窗口的窗口标识不同,此时需要对新消息进行提醒;如果新消息的窗口标识与鼠标焦点窗口的窗口标识相同,说明用户可以直接看到新消息,此时不需要通过提醒方式对用户进行提醒。
在一种可能的设计中,所述第一消息还包括:所述第二应用接收到的新消息的数量、所述第二应用接收到的新消息的内容。
在一种可能的设计中,对所述第二应用接收到的新消息进行提醒的提醒方式包括如下 方式中的至少一种:应用图标闪烁、应用窗口闪烁、弹窗、通知、应用窗口抖动,所述弹窗或所述通知中包括所述新消息的数量和/或内容。
通过上述技术方案,模拟器可以通过应用图标闪烁、应用窗口闪烁、通知等方式对新消息进行提醒,以使用户能够及时的查看并处理新消息,能够提升用户体验。
第三方面,本申请还提供一种终端设备,该终端设备包括显示屏;一个或多个处理器;一个或多个存储器;多个应用;以及一个或多个计算机程序;其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器调用执行时,使得所述终端设备执行上述第一方面、第二方面及其第一方面、第二方面任一可能设计的技术方案。
第四方面,本申请还提供一种终端设备,该电子设备包括执行第一方面、第二方面或者第一方面、第二方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第五方面,本申请实施例还提供一种芯片,所述芯片与电子设备中的存储器耦合,执行本申请实施例第一方面、第二方面及其第一方面、第二方面任一可能设计的技术方案;本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。
第六方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行本申请实施例第一方面、第二方面及其第一方面、第二方面任一可能设计的技术方案。
第七方面,本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在终端设备上运行时,使得所述计算机程序产品执行本申请实施例第二方面及其第二方面任一可能设计的技术方案。
上述第三方面至第七方面中的各个方面以及各个方面可能达到的技术效果请参照上述针对第一方面、第二方面中的各种可能方案可以达到的技术效果说明,这里不再重复赘述。
附图说明
图1为本申请实施例提供的一种终端设备的硬件结构示意图;
图2为本申请实施例的终端设备100的结构框图;
图3为本申请实施例提供的一种用户界面示意图;
图4为本申请实施例提供的消息提醒方法流程图;
图5为本申请实施例提供的一种用户界面示意图;
图6A为本申请实施例提供的一种用户界面示意图;
图6B为本申请实施例提供的一种用户界面示意图;
图6C为本申请实施例提供的一种用户界面示意图;
图6D为本申请实施例提供的一种用户界面示意图;
图7为本申请实施例提供的另一种终端设备的结构示意图。
具体实施方式
下面将结合本申请以下实施例中的附图,对本申请实施例中的技术方案进行详尽描述。
本申请实施例涉及的应用,为能够实现某项或多项特定功能的软件程序。通常,终端设备中可以安装多个应用。比如,相机应用、邮箱应用、视频应用、音乐应用、聊天应用、WeChat、WeLink等。下文中提到的应用,可以是终端设备出厂时已安装的应用,也可以是用户在使用终端设备的过程中从网络下载或其他终端设备获取的应用。
需要说明的是,本申请实施例提供的消息提醒方法,可以适用于具有显示屏的终端设备,诸如个人计算机(Personal Computer,PC),(比如平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC))、智慧屏等,本申请实施例不作限定。并且,终端设备的示例性实施例包括但不限于搭载
Figure PCTCN2022084033-appb-000001
鸿蒙
Figure PCTCN2022084033-appb-000002
或者其它操作系统的终端设备。
下面介绍终端设备的结构。
如图1所示,终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是终端设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外 一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。示例性的,在本申请实施例中,不同的电子设备之间可通过BT或WLAN建立通信连接。
在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),第五代(the fifth generation,5G)移动通信系统,未来通信系统,如第六代(6th generation,6G)系统等,BT,GNSS,WLAN,NFC,FM和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
显示屏194用于显示应用的显示界面等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。在本申请实施例中,显示屏194可用于同时显示多个应用界面。
摄像头193用于捕获静态图像或视频。摄像头193可以包括前置摄像头和后置摄像头。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端设备100的各种功能应 用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序(例如爱奇艺应用,微信应用等)的软件代码等。存储数据区可存储终端设备100使用过程中所产生的数据(例如图像、视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。
可以理解的是,图1所示的部件并不构成对电子设备的具体限定,电子设备还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。以下的实施例中,以图1所示的终端设备100为例进行介绍。
图2是本申请实施例的终端设备100的结构框图。如图2所示,终端设备100可以是搭载windows系统的电子设备,在该windows系统下可以安装多个应用,比如模拟器应用(模拟器名称.exe)。其中,模拟器应用可以是搭载安卓系统的应用,安卓系统下可以包括多个安卓应用,比如电子邮件应用、华为视频应用、桌面等。
本申请实施例中,当安卓系统下的应用程序(比如,电子邮件)接收到新消息时,电子邮件APP可调用安卓系统下的桌面APP的接口,这样桌面APP可知道电子邮件APP接收到新消息,此时桌面APP可将电子邮件APP的应用ID(应用标识)告知模拟器应用。相应的,模拟器应用可根据用户鼠标焦点所在窗口与电子邮件APP的窗口的关系来判断是否需要对用户进行提醒。如果用户鼠标焦点所在窗口与电子邮件APP的窗口不同,模拟器可确定需要对用户进行提醒;如果用户鼠标焦点所在窗口与电子邮件APP的窗口相同,模拟器可确定不需要对用户进行提醒。
以下实施例以应用在图1所示的终端设备100所示的架构中为例进行描述。
此外,下述实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的。
首先,对本申请实施例的应用场景进行介绍。终端设备以笔记本电脑为例,在本申请中可以在笔记本电脑上安装模拟器应用(以下简称:模拟器),并且笔记本电脑可以为windows系统。假设笔记本电脑上安装的模拟器为安卓模拟器,那么可以在笔记本电脑上使用安卓应用。示例性的,如图3所示,假设笔记本电脑上显示界面300,该界面300中可包括至少一个应用程序的图标,例如可包括模拟器应用图标301、电子邮件应用图标302、 华为视频应用图标303、应用商城应用图标304、计算器应用图标305等。其中,电子邮件、华为视频以及应用商城可以为安装在模拟器中的应用程序,即模拟器安装完应用后将应用图标放置在Windows的桌面上。当然,界面300中还可以包括任务栏306。应理解,在实际产品实现时,模拟器应用图标301可以显示,也可以不显示。
当用户点击电子邮件应用图标302之后,笔记本电脑可响应用户的点击操作,进入电子邮件应用的显示界面,例如笔记本电脑上可显示界面310。其中,界面310可包括电子邮件的应用窗口311。接着用户可点击华为视频应用图标303,此时笔记本电脑上可显示界面320。其中,界面320中可包括电子邮件应用窗口311和华为视频应用窗口321。也就是说,笔记本电脑上可以显示多个应用窗口,且每一个应用窗口对应一个应用程序。
需要说明的是,应用窗口311、应用窗口321中还可以包括最小化图标、最大化图标、关闭按钮等。其中,最小化图标用于将应用窗口最小化显示在任务栏306,最大化图标用于将应用窗口全屏显示在笔记本电脑的显示界面上,关闭按钮用于将应用窗口关闭。
需要说明的是,模拟器内的应用程序被打开之后,不管是直接显示在显示屏上,还是被最小化显示在任务栏中,对于模拟器上搭载的安卓系统而言,均默认为前台应用。其中,模拟器以及模拟器搭载的安卓系统下打开的应用程序对于Windows系统而言可以理解为不同的进程,或者可以将模拟器对应的进程理解为一个进程,然后将安卓系统下打开的应用程序理解为一个进程下的子进程。
应理解,上述界面仅是一种示意性说明,在实际产品实现时,显示界面上可能会显示更多或更少的图标,本申请对此不作具体限定。
在一些实施例中,当模拟器内的应用程序被打开时,模拟器可以为应用程序所在的窗口分配窗口身份标识号(identity,ID)(或者也可以称为:窗口编号、窗口标识),通过窗口身份标识号区分在模拟器中运行的安卓应用的窗口。具体来说,当用户点击模拟器所搭载的安卓系统下的安卓应用的应用图标之后,模拟器可向安卓系统发送第一通知消息,以通知安卓系统哪个应用要启动,然后安卓系统接收到通知消息之后,可启动安卓应用,并在启动应用之后向模拟器返回携带用安卓应用的应用ID的第二通知消息,以告知模拟器安卓应用已打开。当模拟器接收到第二通知消息时,可根据应用ID为该应用分配相应的窗口ID。也就是说,按照上述方式,模拟器可以在安卓应用打开时,主动为安卓应用分配安卓应用对应的窗口ID,建立安卓应用ID与应用窗口ID之间的对应关系。
当然,用户还可以通过语音触发的方式打开安卓应用等,本申请对此不作限定。
示例性的,应用ID与窗口ID的对应关系可以参阅如下表1所示。应理解,表1仅是一种示意性说明,本申请对于对应关系的保存方式、应用ID以及窗口ID的表示形式并不做限定。
表1
应用ID 窗口ID
应用1 1
应用2 2
应用3 3
需要说明的是,当应用窗口被关闭,即应用被关闭时,该应用的应用ID与窗口ID之间的对应关系可自动删除。当该应用程序下次被打开时,可重新为该应用程序分配窗口ID。
作为一种可能的实现方式,模拟器可以按照模拟器内应用程序的打开顺序对应用程序 所在的窗口进行编号。示例性的,假设用户打开应用程序的前后顺序依次为:应用市场APP、微信APP、阅读APP、华为视频APP,那么可以将应用市场APP所在的窗口记为窗口1,将微信APP所在的窗口记为窗口2,将阅读APP所在的窗口记为窗口3,将华为视频APP所在的窗口记为窗口4。
需要说明的是,上述编号仅是一种示意性说明,本申请对此不作限定。例如,还可以将应用市场APP所在的窗口记为窗口1-1,将微信APP所在的窗口记为窗口1-2,将阅读APP所在的窗口记为窗口1-3,将华为视频APP所在的窗口记为窗口1-4等。
可选的,在一些实施例中,应用程序所在窗口的编号并不是固定不变的,当打开的应用程序被关闭之后,再次打开时模拟器可以对应用程序所在的窗口重新编号。示例性的,假设应用市场APP所在的窗口记为窗口1,将微信APP所在的窗口记为窗口2,将阅读APP所在的窗口记为窗口3,将华为视频APP所在的窗口记为窗口4,此时若用户关闭上述应用程序中的一个应用程序,比如关闭微信APP,然后在一段时间(比如,30s或者5min)之后再次打开微信APP时,可以将微信APP所在的窗口记为窗口5。
以下基于上述应用场景,对本申请实施例的消息提醒方法进行详细介绍。
如图4所示,为本申请实施例提供的消息提醒方法流程图,参阅图4所示,该方法可包括如下步骤:
S401:模拟器内的第一应用接收到第一消息。
模拟器内的第一应用接收到第一消息,即模拟器内的应用收到新消息,该新消息可以是来自网络的推送消息,也可以来自其他设备的消息。应理解,这里的第一消息可以为一个消息,也可以为多个消息,本申请对此不作限定。第一应用为模拟器内安装的安卓应用,例如华为视频、电子邮件等。
S402:模拟器内的第一应用调用第二应用的接口,向第二应用发送第二消息。
其中,第二消息中可包括第一应用标识、第一消息的数量、第一消息的内容。
为了描述方便,可将模拟器内接收到新消息的安卓应用记为“第一应用”,将模拟器内的安卓桌面应用程序记为“第二应用”,并将接收到的新消息记为“第一消息”。
需要说明的是,当应用接收到新消息时,接收到新消息的安卓应用通常会调用桌面APP的角标接口告知桌面APP有新消息,然后桌面APP根据应用的状态来判断是否需要更新角标数字。当应用为前台应用时,桌面APP不更新角标数字,当应用为后台应用时,桌面APP更新角标数字。也就是说,在应用接收到新消息时,不管应用为前台应用还是后台应用,都会调用桌面APP上的角标接口。示例性的,如图5所示,以图3所示的应用界面为例,当用户点击界面310上的模拟器应用图标301之后,假设笔记本电脑显示界面500。其中,界面500可包括模拟器搭载的安卓系统的桌面窗口501、电子邮件的应用窗口502。该桌面上可包括安卓应用的应用图标,比如电子邮件应用图标503、华为视频应用图标504等。电子邮件应用图标503上可显示有角标数字2,该角标数字2可用于表示电子邮件APP中有两封邮件未读。此时假设模拟器搭载的安卓系统下的电子邮件APP接收到新消息,电子邮件APP可调用桌面APP上的角标接口,此时桌面APP根据电子邮件的状态判断是否要更新电子邮件APP的角标数字。由于此时电子邮件APP属于前台应用,因此,不需要更新电子邮件的应用图标上的角标数字。
值得注意的是,在一些特殊场景,比如视频聊天/语音聊天场景下,应用可调用桌面APP上的通知接口来显示通知。在本申请实施例中,当模拟器内的应用程序接收到新消息 时,不管是调用角标接口还是通知接口,都可以在接口中注册监听,从而在监听到有新消息时告知模拟器,进而实现将消息提醒给用户。示例性的,假设笔记本电脑当前显示屏上的显示的是华为视频APP的应用界面,即华为视频APP为前台应用,此时当微信APP接收到视频聊天的通知消息时,微信APP可调用模拟器搭载的安卓系统下的桌面APP的通知接口,将微信APP自动切换为前台APP。
S403:模拟器内的第二应用将第一应用标识发送给模拟器。
在本申请实施例中,当第一应用接收到第一消息时,第一应用可以将自身的应用名称(或者称为:应用标识、应用ID)发送给桌面APP,然后桌面APP再将应用名称发送给模拟器,以使模拟器能够根据应用名称确定与应用名称对应的应用窗口ID。作为一种可能的实现方式,桌面APP与模拟器之间可以通过预先协商的传输通道来传输信息。比如桌面APP可以通过pipe通道将应用的标识发送给模拟器。
可选的,当第一应用接收到第一消息时,第一应用还可以将自身的应用名称发送给第三应用,然后由第三应用再将第一应用的应用名称发送给模拟器。应理解,第三应用可以为预先设置的专门用于与模拟器交互信息的应用程序。
S404:模拟器根据第一应用标识确定该第一消息所在的窗口标识。
基于图3所示实施例中对应用ID与应用窗口ID的对应关系的介绍可知,安卓应用在打开之后,模拟器应用可以知道安卓应用的应用ID,这样模拟器可以根据应用ID为应用分配窗口ID。
当模拟器接收到第一应用发送的应用标识之后,可根据第一应用的应用标识确定与第一应用的应用标识相对应的窗口标识。举例来说,假设电子邮件APP接收到新消息,那么电子邮件APP可向模拟器的桌面APP发送消息,该消息中可携带自身的应用标识。相应的,桌面APP可将该消息发送给模拟器。模拟器再根据该消息中携带的应用标识(电子邮件)确定与电子邮件对应的窗口ID,例如窗口ID为1-1。
S405:模拟器判断该第一消息所在的窗口标识是否为用户鼠标焦点所在的窗口对应的窗口标识。若否,则继续执行S406,若是,则继续执行S407。
应理解,鼠标焦点指的是当窗口1被鼠标点击之后,该窗口1就拥有了焦点;当用户将鼠标移动到其它位置,只要不点击其它的窗口,鼠标焦点就一直为窗口1所在的窗口,此时若用户点击了另外一个窗口,例如窗口2之后,此时窗口1失去了鼠标焦点,窗口2拥有了鼠标焦点。换言之,鼠标焦点所在的窗口可以理解为用户鼠标最后一次作用的窗口。
在一些实施例中,在S404执行之前,模拟器可先获取用户鼠标焦点所在的窗口对应的窗口标识。然后模拟器再判断第一消息所在的窗口标识与用户鼠标焦点所在的窗口对应的窗口标识是否相同。具体来说,模拟器可通过读取窗口ID的数值来判断用户鼠标焦点所在的窗口是否与第一消息所在的窗口相同。比如,模拟器读取到的用户鼠标焦点所在的窗口的窗口ID为3,第一消息所在的窗口的窗口ID为2,那么用户鼠标焦点所在的窗口与第一消息所在的窗口不同。
S406:模拟器确定显示提示信息。
在本申请实施例中,当模拟器通过S405判断出用户鼠标焦点所在的窗口与第一消息所在的窗口不同时,模拟器可确定此时需要对用户进行提醒,以使得用户能够及时的处理消息,能够提升用户体验。
示例性的,模拟器在确定需要将新消息提醒给用户时,即新消息对应的窗口与鼠标焦 点所在的窗口一致,则可以通知windows模拟器进程下的哪个子进程对应的窗口需要闪烁,并且可设置闪烁的时间间隔、闪烁的时长,这样windows可以根据子进程的窗口标识、闪烁的时间间隔、闪烁的时长对相应的窗口进行闪烁。
以下为了描述方便,可将第一消息所在的窗口标识记为“第一标识”,将用户鼠标焦点所在的窗口对应的窗口标识记为“第二标识”。应理解,第一标识与第二标识可能相同,也可能不同,在S405中第一标识与第二标识不同,在S406中第一标识与第二标识相同。
下面结合几种可能的应用场景,对第一标识与第二标识不同的情况进行详细介绍。
场景1:第一消息所在的第一窗口显示在界面上。
针对场景1,具体可包括如下两种可能的实现方案:
第一种:如图6A中的(a)所示,假设笔记本电脑上显示界面600,该界面600上可显示两个应用窗口,比如分别为电子邮件的应用窗口601、华为视频的应用窗口602、任务栏603。其中,电子邮件的应用窗口601和华为视频的应用窗口602这两个窗口之间没有重叠部分。并且,任务栏603中可包括用户打开的应用程序的图标。当然,界面600中还可以包括其它的应用图标等,本申请对此不作限定。应理解,电子邮件的应用界面对应的应用窗口为窗口601,华为视频的应用界面对应的应用窗口为窗口602。其中,任务栏也可以显示在显示屏的右边等位置,本申请对此不作限定。
当用户将鼠标在华为视频的应用窗口上进行点击之后,华为视频的应用窗口602可获得鼠标焦点,此时不管用户如何移动鼠标,只要不点击其它的窗口,那么鼠标焦点所在的窗口就始终为华为视频的应用窗口。应理解,窗口602上所示的箭头即为鼠标焦点所在的位置。
需要说明的是,电子邮件的应用窗口601中显示的“收件箱(0)”可以理解为电子邮件APP此时没有接收到新的邮件。当电子邮件APP接收到新消息,比如有一封新邮件时,该“收件箱(0)”可变为“收件箱(1)”。
作为一种可能的实现方式,模拟器可以以应用图标闪烁的提示信息对用户进行提醒。示例性的,假设模拟器内的电子邮件APP接收到一封新邮件,此时电子邮件的应用图标可以以一定频率进行闪烁,例如图6A中的(b)所示。此时笔记本电脑上可显示界面610。其中,界面610中可包括电子邮件的应用窗口611,任务栏612。该界面610与界面600相比,界面600中的窗口602中的“收件箱(0)”可更新为应用窗口611中的“收件箱(1)”,同时增加了一封新的邮件(即“发件人为约翰,接收时间为“刚刚”的邮件)。其次,任务栏的电子邮件的应用图标在闪烁。当用户点击电子邮件的应用图标之后,可停止闪烁。
应理解,本申请实施例中的图标闪烁仅是以图中所示的线条填充的方式来示意闪烁,在实际产品实现时,闪烁的颜色可以是红色,也可以是蓝色等,本申请对此不作限定。
第二种:如图6B中的(a)所示,假设笔记本电脑上显示界面620,该界面620上可显示两个应用窗口,比如分别为电子邮件的应用窗口621、华为视频的应用窗口622、任务栏623。其中,电子邮件的应用窗口621被华为视频的应用窗口622覆盖,即这两个窗口之间有重叠部分。任务栏623中可以包括用户打开的应用程序的图标。此时鼠标焦点在华为视频的应用窗口622上,不管用户将鼠标如何移动,只要不点击其它窗口,那么鼠标焦点所在的窗口就始终为华为视频的应用窗口。当然,界面620中还可以包括其它的应用图标等,本申请对此不作限定。
作为另一种可能的实现方式,模拟器可以以弹窗作为提示信息对用户进行提醒。示例 性的,假设模拟器内的电子邮件APP应用接收到一封新邮件,此时可以通过弹窗的方式显示新消息的数量,例如图6B中的(b)所示。此时笔记本电脑上可以显示界面630,该界面630中可包括电子邮件的应用窗口631、弹窗632,窗口632中具体可包括第一提示信息,比如“电子邮件提醒”633、第二提示信息“您有一封新邮件。”634和“关闭按钮”635。这样用户就可以知道模拟器内的哪个应用程序接收到了新消息以及接收到的新消息的数量。当用户点击弹窗上的“关闭”按钮635,笔记本电脑可响应用户的操作,关闭界面上显示的弹窗。然后用户可点击电子邮件的应用图标查看接收到的新消息。
应理解,第一提示信息用于提示用户新消息的来源,第二提示信息用于提示用户新消息的数量。
当然,提醒的方式还可以为:电子邮件的应用图标以一定频率进行闪烁,同时通过弹窗的方式显示新消息的数量。当用户点击弹窗上的“关闭”按钮,笔记本电脑可响应用户的操作,关闭界面上显示的弹窗,此时电子邮件的应用图标可以继续闪烁,直至用户点击电子邮件的应用图标之后,可停止闪烁。
场景2:第一消息所在的第一窗口被最小化。
由于在本申请实施例中,每一个应用对应一个应用窗口,因此,第一消息所在的第一窗口即为第一应用对应的应用窗口。如图6C中的(a)所示,假设用户将电子邮件的应用窗口最小化,此时笔记本电脑上可显示界面640,该界面640中可包括任务栏641、华为视频的应用窗口642。其中,任务栏641中可包括最小化的电子邮件窗口643、华为视频的应用图标。当然,界面640中还可以包括其它的应用图标等,本申请对此不作限定。
作为又一种可能的实现方式,模拟器可以以通知作为提示信息对用户进行提醒。示例性的,假设模拟器内的电子邮件APP接收到一封新邮件,此时可以通过应用窗口闪烁以及通知的方式显示新消息的数量,例如图6C中的(b)所示,此时笔记本电脑上可显示界面650。其中,界面650中可包括通知框651,该通知框651中可包括第一提示信息,例如“电子邮件提醒”652、第三提示信息,例如“约翰”653、第四提示信息,例如“你好,今天下午2点在会议室有个会议,请按时参加”654。当然,通知框651中还可以显示发件人的头像。
其中,第一提示信息用于提示用户新消息的来源,第三提示信息用于提示新消息的发件人,第四提示信息用于提示用户新消息的内容。
这样用户就可以知道模拟器内的哪个应用程序接收到了新消息以及接收到的新消息的内容。其中,通知显示的时间可以为设定时长,例如30s,当时间达到30s之后,该通知可自动关闭。然后,用户可点击闪烁的电子邮件的应用窗口查看接收到的新消息。
当然,当模拟器内的应用接收到新消息时,还可以仅通过显示通知的方式来提醒用户等。在一些实施例中,该通知还可以以固定的时间间隔进行显示,直至用户点击电子邮件的应用图标查看接收到的新消息,以避免用户遗漏新消息。
需要说明的是,通知中显示的新消息的内容可以包括部分内容或全部内容,当新消息内容比较短时,可以全部显示在通知中;当新消息内容比较多时,可以显示部分内容在通知中,本申请对此不作限定。
上述仅是以一些可能的提醒方式进行了示意,在实际产品实现时,也可以将上述几种提醒方式进行结合或者通过其它的方式来提醒用户,比如可以通过窗口抖动的方式来提醒用户等,本申请实施例不做具体限定。
应理解,上述消息提醒的方式仅是以具体场景进行的示意,在实际应用中,消息提醒的方式并不限定用于某个固定场景,例如图6A中的(a)所示的场景,也可以通过弹窗或者通知的形式进行提醒;或者图6B中的(a)所示的场景,也可以通过应用图标闪烁的方式进行提醒等等。
S407:模拟器确定不显示提示信息。
如果用户鼠标焦点在第一应用对应的第一窗口,那么此时可以直接将第一消息显示在第一窗口中,这种情况下用户也可以直接看到新消息,无需对用户进行提醒。
示例性的,如图6D中的(a)所示,假设笔记本电脑上显示界面660,该界面660上可显示两个应用窗口,比如分别为电子邮件的应用窗口661、华为视频的应用窗口662、任务栏663。假设用户鼠标焦点在电子邮件的应用窗口661上。
此时,若电子邮件接收到一封新邮件,则模拟器可确定此时用户可以看到新邮件,即不需要通过图标闪烁等方式对用户进行提醒,因此笔记本电脑上可显示图6D中的(b)所示界面670。该界面670中可包括:电子邮件的应用窗口671、华为视频的应用窗口662、任务栏663。其中,任务栏663中可包括电子邮件的应用图标、华为视频的应用图标。从图中可以看出:新邮件为“发件人为约翰,接收时间为“刚刚”的邮件。
通过本申请实施例的方案,当模拟器内的应用程序接收到新消息时,终端设备可以对模拟器内的应用程序接收到的新消息进行提醒,从而实现前台应用的消息提醒功能,并且使得用户能够及时的获取并处理新消息,提升用户体验。
上述本申请提供的实施例中,从终端设备上的应用程序之间的交互的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
如图7所示,本申请另外一些实施例公开了一种电子设备,该电子设备可以是具有显示屏的终端设备。参阅图7所示,所述电子设备700包括:显示屏701;一个或多个处理器702;一个或多个存储器703;多个应用704(图中未示出);以及一个或多个计算机程序705(图中未示出),上述各器件可以通过一个或多个通信总线706连接。
其中,显示屏701用于显示终端设备中的应用的显示界面,或者显示提示信息。存储器703中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令;处理器702调用存储器703中存储的所述指令,使得终端设备700可以上述实施例的消息提醒方法。
在本申请实施例中,处理器702可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储器703中,处理器702读取存储器703中的程序指令,结合其硬件完成上述方法的步骤。
在本申请实施例中,存储器703可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory), 例如RAM。存储器还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储指令和/或数据。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
基于以上实施例,本申请还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得所述计算机执行以上实施例提供的消息提醒方法。
本申请实施例中还提供一种计算机程序产品,包括指令,当其在终端设备上运行时,使得计算机程序产品执行以上实施例提供的消息提醒方法。
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。

Claims (17)

  1. 一种消息提醒方法,其特征在于,包括:
    第一应用接收第二应用发送的第一消息,所述第一消息包括第二应用的标识,所述第二应用为接收到新消息的应用,且所述第一应用与所述第二应用为所述模拟器所搭载的系统下的应用程序;
    所述第一应用向模拟器应用发送第二消息,所述第二消息包括所述第二应用的标识,所述第二消息用于指示所述模拟器确定是否对所述第二应用接收到的新消息进行提醒。
  2. 如权利要求1所述的方法,其特征在于,所述第一消息包括至少一条。
  3. 如权利要求1或2所述的方法,其特征在于,所述第一应用接收第二应用发送的第一消息,包括:
    所述第一应用接收第二应用通过第三应用发送的第一消息。
  4. 如权利要求1所述的方法,其特征在于,所述第一消息还包括:所述第二应用接收到的新消息的数量、所述第二应用接收到的新消息的内容。
  5. 如权利要求1所述的方法,其特征在于,所述模拟器为安卓模拟器。
  6. 如权利要求1所述的方法,其特征在于,所述第一应用为桌面应用,所述第二应用为电子邮件应用、华为视频应用。
  7. 一种消息提醒方法,其特征在于,包括:
    模拟器接收第一应用发送的第一消息,所述第一消息包括第二应用的标识,所述第二应用为接收到新消息的应用,且所述第一应用与所述第二应用为所述模拟器所搭载的系统下的应用程序;
    所述模拟器根据所述第二应用的标识确定对应的第二窗口标识;
    所述模拟器根据所述第二窗口标识和鼠标焦点窗口的窗口标识,确定是否对所述第二应用接收到的新消息进行提醒。
  8. 如权利要求7所述的方法,其特征在于,所述第一消息为所述第二应用发送给所述第一应用的。
  9. 如权利要求7所述的方法,其特征在于,所述第一消息为所述第二应用通过第三应用发送给所述第一应用的。
  10. 如权利要求7所述的方法,其特征在于,所述模拟器根据所述第二窗口标识和鼠标焦点窗口的窗口标识,确定是否对所述第二应用接收到的新消息进行提醒,包括:
    所述模拟器若确定所述第二窗口标识与鼠标焦点窗口的窗口标识不同,则确定对所述第二应用接收到的新消息进行提醒。
  11. 如权利要求10所述的方法,其特征在于,所述方法还包括:
    所述模拟器若确定所述第二窗口标识与鼠标焦点窗口的窗口标识相同,则确定不对所述第二应用接收到的新消息进行提醒。
  12. 如权利要求7-11任一项所述的方法,其特征在于,所述第一消息还包括:所述第二应用接收到的新消息的数量、所述第二应用接收到的新消息的内容。
  13. 如权利要求7-12任一项所述的方法,其特征在于,对所述第二应用接收到的新消息进行提醒的提醒方式包括如下方式中的至少一种:应用图标闪烁、应用窗口闪烁、弹窗、通知、应用窗口抖动,所述弹窗或所述通知中包括所述新消息的数量和/或内容。
  14. 一种终端设备,其特征在于,所述电子设备包括显示屏;一个或多个处理器;一个或多个存储器;多个应用;以及一个或多个计算机程序;
    其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器调用执行时,使得所述终端设备执行如权利要求1至6中任一项所述的方法,或者7至13中任一项所述的方法。
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1至6中任一项所述的方法,或者7至13中任一项所述的方法。
  16. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在终端设备的模拟器上运行时,使得所述计算器程序产品执行如权利要求1至6任一项所述的方法。
  17. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在终端设备上运行时,使得所述计算机程序产品执行如权利要求7至13任一项所述的方法。
PCT/CN2022/084033 2021-04-30 2022-03-30 一种消息提醒方法及终端设备 WO2022228005A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22794478.2A EP4318240A4 (en) 2021-04-30 2022-03-30 MESSAGE REMINDER METHOD AND TERMINAL DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110480060.8 2021-04-30
CN202110480060.8A CN115269212A (zh) 2021-04-30 2021-04-30 一种消息提醒方法及终端设备

Publications (1)

Publication Number Publication Date
WO2022228005A1 true WO2022228005A1 (zh) 2022-11-03

Family

ID=83745955

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/084033 WO2022228005A1 (zh) 2021-04-30 2022-03-30 一种消息提醒方法及终端设备

Country Status (3)

Country Link
EP (1) EP4318240A4 (zh)
CN (1) CN115269212A (zh)
WO (1) WO2022228005A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08129527A (ja) * 1994-10-31 1996-05-21 Mitsubishi Electric Corp 端末制御方式及び端末制御方法
US20060047665A1 (en) * 2001-01-09 2006-03-02 Tim Neil System and method for simulating an application for subsequent deployment to a device in communication with a transaction server
CN108111675A (zh) * 2017-12-13 2018-06-01 维沃移动通信有限公司 通知消息的处理方法、装置及移动终端
CN109862187A (zh) * 2019-01-31 2019-06-07 Oppo广东移动通信有限公司 消息处理方法、装置、终端及存储介质
CN111930283A (zh) * 2020-10-12 2020-11-13 武汉深之度科技有限公司 一种消息显示方法及计算设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10771566B2 (en) * 2016-10-13 2020-09-08 Sierraware, Llc Device and system for cloud based mobile application virtualization
US10826861B1 (en) * 2018-01-24 2020-11-03 Parallels International Gmbh System and method for managing notifications from published applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08129527A (ja) * 1994-10-31 1996-05-21 Mitsubishi Electric Corp 端末制御方式及び端末制御方法
US20060047665A1 (en) * 2001-01-09 2006-03-02 Tim Neil System and method for simulating an application for subsequent deployment to a device in communication with a transaction server
CN108111675A (zh) * 2017-12-13 2018-06-01 维沃移动通信有限公司 通知消息的处理方法、装置及移动终端
CN109862187A (zh) * 2019-01-31 2019-06-07 Oppo广东移动通信有限公司 消息处理方法、装置、终端及存储介质
CN111930283A (zh) * 2020-10-12 2020-11-13 武汉深之度科技有限公司 一种消息显示方法及计算设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4318240A4 *

Also Published As

Publication number Publication date
EP4318240A1 (en) 2024-02-07
EP4318240A4 (en) 2024-03-13
CN115269212A (zh) 2022-11-01

Similar Documents

Publication Publication Date Title
CN110622123B (zh) 一种显示方法及装置
WO2021164554A1 (zh) 通知处理系统、方法以及电子设备
WO2021013134A1 (zh) 一种摄像头升降控制方法与电子设备
WO2021000807A1 (zh) 一种应用程序中等待场景的处理方法和装置
WO2021185105A1 (zh) SIM卡和eSIM卡的切换方法及电子设备
US20170237930A1 (en) Method of controlling the sharing of videos and electronic device adapted thereto
WO2021063090A1 (zh) 一种建立应用组合的方法与电子设备
WO2021036651A1 (zh) 一种显示方法及电子设备
WO2022089208A1 (zh) 一种文件拖拽方法及电子设备
CN116360725B (zh) 显示交互系统、显示方法及设备
WO2021017935A1 (zh) 一种唤醒锁的管理方法及电子设备
US20170244890A1 (en) Electronic device and method for controlling operation thereof
EP4261676A1 (en) Distributed application processing method and apparatus
WO2020151408A1 (zh) 一种显示联系人的方法及相关装置
WO2023029983A1 (zh) 一种控件内容的拖拽方法、电子设备及系统
WO2023088459A1 (zh) 设备协同方法及相关装置
WO2022228005A1 (zh) 一种消息提醒方法及终端设备
WO2022206848A1 (zh) 一种应用小部件的显示方法及设备
WO2022042765A1 (zh) 一种显示方法及电子设备
WO2022068646A1 (zh) 一种数据传输方法及电子设备
WO2020216144A1 (zh) 一种添加邮件联系人的方法和电子设备
WO2023011216A1 (zh) 一种设备热插拔方法及终端设备
WO2023231818A1 (zh) 一种应用界面显示方法及电子设备
WO2024067256A1 (zh) 应用管理方法、电子设备和可读存储介质
WO2023207683A1 (zh) 应用压缩方法、解压缩方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22794478

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18288701

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2022794478

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022794478

Country of ref document: EP

Effective date: 20231031

NENP Non-entry into the national phase

Ref country code: DE