Interface prompting method and electronic equipment
By activating the metal detection sensor in a dark light environment and using the indication module to indicate the interface location, the problem of users' difficulty in finding the interface of electronic devices is solved, improving the user experience and reducing energy waste and light pollution.
Patent Information
- Application Number
- CN202410166195.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2025-08-12
AI Technical Summary
In dark light environments, it is difficult for users to accurately find the interface location of electronic devices, resulting in poor user experience.
When the ambient light illumination is below the threshold, the metal detection sensor is activated to sense the user's interface usage intention and indicates the interface position by indicating the module to emit light or display the interface prompt icon.
Improve users' ability to accurately find interfaces in dark light environments, improve user experience, and reduce energy waste and light pollution.
Smart Images

Figure CN120475098A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an interface prompt method and electronic device. Background Art
[0002] Mobile phones, tablets, computers and other electronic devices are equipped with one or more interfaces, such as Type C interface, USB interface, etc. Users need to insert wired headphones, charging cables and other connecting cables into the Type C interface to use the corresponding functions. However, in a dim environment (for example, at night with the lights off), users cannot see the location of the interface on the electronic device. Taking a mobile phone as an example, even if the user turns on the screen in a dim environment, the side of the phone cannot be illuminated because the light from the phone screen is facing upwards, and the user cannot see the location of the interface on the phone. In a dim environment, when it is necessary to insert a charging cable or wired headphones into the interface, the user usually needs to grope with his hands to determine the location of the interface on the electronic device, and then try repeatedly for many times before successfully inserting the charging cable or wired headphones, resulting in a poor user experience. Summary of the Invention
[0003] In order to solve the above technical problems, the present application provides an interface prompt method and an electronic device, which prompts the interface location when the user needs to use the interface, so that the user can accurately determine the location of the interface in a dark environment and improve the user experience.
[0004] In a first aspect, the present application provides an interface prompt method, which is applied to an electronic device, wherein the electronic device includes an interface; in this method, when the ambient light illumination is less than or equal to a light illumination threshold, a metal detection sensor is started; the distance between the metal detection sensor and the corresponding interface and the distance between the metal detection sensor and the surface of the electronic device where the corresponding interface is located are both less than a first preset distance; when the metal detection value of the metal detection sensor is equal to or greater than the detection threshold, an interface prompt operation is performed; wherein the interface prompt operation includes: starting an indication module so that the indication module indicates the position of the interface when it emits light; on the surface of the electronic device where the interface is located, the distance between the indication module and the corresponding interface is less than a second preset distance; or, displaying a first interface, wherein the first interface includes an interface prompt icon corresponding to the interface, and the interface prompt icon is used to indicate the position of the corresponding interface.
[0005] In an embodiment of the present application, the user cannot see the location of the interface of the electronic device in a dark environment. Therefore, the electronic device starts the interface indication process when the ambient light illumination is less than or equal to the illumination threshold. Since the connectors of the connecting devices all contain metal materials, when the user wants to connect the connecting device to the interface of the electronic device, the connector of the connecting device will be close to the electronic device. Therefore, the electronic device can actively sense whether the user has the intention to use the interface by starting the metal detection sensor. When the metal detection value of any metal detection sensor is equal to or greater than the detection threshold, it means that the user has used the connector of the connecting device to approach the interface and the user wants to connect the connecting device to the interface. In this case, the electronic device starts the indication module so that the indication module indicates the location of the interface when it lights up, or the electronic device displays a first interface, which includes an interface prompt icon corresponding to the interface. The interface prompt icon is used to indicate the location of the corresponding interface, which is convenient for the user to accurately determine the location of the interface in a dark environment and improve the user experience.
[0006] According to the first aspect, the electronic device further includes a button; the method further includes: performing an interface prompt operation according to first input information; the first input information includes a button identifier of the button and an event identifier for starting the interface prompt.
[0007] In an embodiment of the present application, a button can be provided on the electronic device as a hardware switch for instructing the electronic device to perform an interface prompt operation. The user can interact with the electronic device through this button and actively instruct the electronic device to perform an interface prompt, making it easier for the user to accurately find the interface in a dimly lit environment, thereby improving the user experience.
[0008] According to the first aspect, the method further includes: performing an interface prompt operation according to a first operation of the user on a prompt object in the second interface; the prompt object includes an application icon or card for triggering the interface prompt operation.
[0009] In an embodiment of the present application, a prompt object can be set on the second interface of the electronic device as a start control for instructing the electronic device to perform an interface prompt operation. The user can actively instruct the electronic device to perform an interface prompt by clicking on the prompt object, which makes it easier for the user to accurately find the interface in a dark environment and can improve the user experience.
[0010] According to the first aspect, or any implementation of the first aspect above, after executing the interface prompt operation according to the first input information, the method also includes: closing the indication module according to the second input information, or canceling the display of the first interface; the second input information includes a key identifier of the key and an event identifier for closing the interface prompt.
[0011] In an embodiment of the present application, a button can be provided on the electronic device as a hardware switch for instructing the electronic device to perform an interface prompt operation. After the user no longer needs the electronic device to provide interface prompts, they can continue to press the button to actively instruct the electronic device to turn off the prompt module. This not only reduces energy waste in the electronic device but also avoids light pollution in dimly lit environments.
[0012] According to the first aspect, or any implementation of the first aspect above, after executing the interface prompt operation according to the user's first operation on the prompt object in the second interface, the method also includes: displaying the third interface according to the user's first operation on the prompt object in the second interface; the third interface includes a close control; closing the indication module according to the user's second operation on the close control, or canceling the display of the first interface.
[0013] In an embodiment of the present application, an electronic device can be provided with a prompt object on its display interface, serving as a start control for instructing the electronic device to perform an interface prompt operation. When a user clicks the prompt object, a corresponding close control appears on the electronic device's display interface. When the user no longer needs the electronic device to provide interface prompts, they can click the close control to proactively instruct the electronic device to shut down its indication module. This not only reduces energy waste in the electronic device but also avoids light pollution in dimly lit environments.
[0014] According to the first aspect, or any implementation of the first aspect above, after executing the interface prompt operation, the method further includes: when detecting that a connecting device is connected to any interface, turning off the indication module, or canceling the display of the first interface.
[0015] In an embodiment of the present application, after the electronic device performs the interface prompt operation, the user will connect the connected device to the interface according to the indication module or the interface prompt icon. After the electronic device performs the interface prompt operation, when it detects that a connected device is connected to any interface, it indicates that the user has accurately found the interface and no longer needs the interface prompt. Therefore, the electronic device turns off the indication module, or cancels the display of the first interface, thereby automatically ending the interface prompt process, which not only reduces energy waste of the electronic device, but also avoids light pollution problems in low-light environments.
[0016] According to the first aspect, or any implementation method of the first aspect above, after executing the interface prompt operation, the method also includes: when the startup time of the indication module is greater than the first preset time, turning off the indication module; or when the display time of the first interface is greater than the second preset time, canceling the display of the first interface.
[0017] In the embodiment of the present application, the user can connect the connected device to the interface according to the instructions of the indication module within the first preset time period, or according to the prompt of the interface prompt icon within the second preset time period. Therefore, the electronic device turns off the indication module or cancels the display of the first interface, thereby automatically ending the interface prompt process, which not only reduces energy waste of the electronic device but also avoids light pollution problems in low-light environments.
[0018] According to the first aspect, the indication module is started so that the indication module indicates the position of the interface when it emits light, including: when the remaining power is greater than or equal to the power threshold, the light-emitting brightness of the indication module is set to a first brightness; when the remaining power is less than the power threshold, the light-emitting brightness of the indication module is set to a second brightness; the first brightness is greater than the second brightness.
[0019] In an embodiment of the present application, the brightness of the indicator module can be adaptively adjusted according to the remaining power of the electronic device. When the remaining power of the electronic device is sufficient, the brightness of the indicator module can be set higher, for example, to the extent of illuminating the interface, so that the user can see the position of the interface clearly. When the remaining power of the electronic device is insufficient, allowing the brightness of the indicator module to reach the brightness of the interface position will accelerate the power consumption of the electronic device, and it may also be the case that the remaining power cannot support the indicator module to reach the brightness of the interface position. Therefore, the brightness of the indicator module can be set lower, for example, the brightness of the indicator module is set to only serve as an indication function, without reaching the extent of illuminating the interface position, so that the user can determine the position of the interface by the position of the indicator module.
[0020] In a second aspect, the present application provides an electronic device comprising: one or more processors; a memory; and a computer program, wherein the computer program is stored in the memory and, when the computer program is executed by one or more processors, enables the electronic device to execute instructions of the method in the first aspect or any possible implementation of the first aspect.
[0021] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.
[0022] In a third aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on an electronic device, cause the electronic device to execute the instructions of the method in the first aspect or any possible implementation of the first aspect.
[0023] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0025] Figure 2 A software structure block diagram of an electronic device provided in an embodiment of the present application;
[0026] Figure 3 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 1 ;
[0027] Figure 4 An example of an electronic device provided in an embodiment of the present application Figure 1 ;
[0028] Figure 5 This is an example diagram of the effect of starting an indication module provided in an embodiment of the present application;
[0029] Figure 6 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 2 ;
[0030] Figure 7 An example of an electronic device display interface prompt icon provided in an embodiment of the present application Figure 1 ;
[0031] Figure 8 An example of an electronic device provided in an embodiment of the present application Figure 2 ;
[0032] Figure 9 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 3 ;
[0033] Figure 10 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 4 ;
[0034] Figure 11a An example diagram of a desktop of an electronic device provided in an embodiment of the present application;
[0035] Figure 11b This is an example diagram of a display interface of an electronic device after a prompt object is clicked, provided by an embodiment of the present application;
[0036] Figure 12 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 5 ;
[0037] Figure 13 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 6 ;
[0038] Figure 14 An example of an electronic device display interface prompt icon provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0040] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0041] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.
[0042] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0043] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.
[0044] Mobile phones, tablets, computers and other electronic devices are equipped with one or more interfaces, such as Type C interface, USB interface, etc. Users need to insert wired headphones, charging cables and other connecting cables into the Type C interface to use the corresponding functions. However, in a dim environment (for example, at night with the lights off), users cannot see the location of the interface on the electronic device. Taking a mobile phone as an example, even if the user turns on the screen in a dim environment, the side of the phone cannot be illuminated because the light from the phone screen is facing upwards, and the user cannot see the location of the interface on the phone. In a dim environment, when it is necessary to insert a charging cable or wired headphones into the interface, the user usually needs to grope with his hands to determine the location of the interface on the electronic device, and then try repeatedly for many times before successfully inserting the charging cable or wired headphones, resulting in a poor user experience.
[0045] To this end, an embodiment of the present application provides an interface prompt method, in which the electronic device activates the metal detection sensor corresponding to the interface when the ambient light illumination is less than or equal to the illumination threshold, so as to actively sense whether the user has the intention to use the interface. When the metal detection value of any metal detection sensor is equal to or greater than the detection threshold, it means that the user has approached the interface using the connector of the connecting device, and the user wants to connect the connecting device to the interface. The electronic device activates the indication module so that the indication module indicates the position of the interface when it emits light, or displays a first interface, which includes an interface prompt icon corresponding to the interface. The interface prompt icon is used to indicate the position of the corresponding interface, so that the user can accurately determine the position of the interface in a dark environment and improve the user experience.
[0046] The method provided in the embodiments of the present application can be applied to electronic devices, and the electronic devices may be wearable electronic devices (such as watches), portable computers (such as mobile phones), tablet computers, laptop computers, personal computers (PCs), augmented reality (AR) and virtual reality (VR) devices, in-vehicle computers, and the like. The following embodiments do not impose any special restrictions on the specific form of the electronic devices.
[0047] Before describing the technical solutions of the embodiments of the present application, the electronic device of the embodiments of the present application will be described with reference to the accompanying drawings. Figure 1 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. It should be understood that, Figure 1 The illustrated electronic device 100 is merely one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. Figure 1The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0048] The electronic 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, 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, a button 190, a motor 191, an indication module 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a metal detection sensor 180M, etc.
[0049] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0050] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0051] The processor 110 may further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
[0052] In some embodiments, the processor 110 may include one or more interfaces, such as a subscriber identity module (SIM) interface, an inter-integrated circuit (I2C) interface, and / or a universal serial bus (USB) interface.
[0053] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, processor 110 may include multiple I2C busses. Processor 110 may be coupled to the following indicator module 192, camera 193, etc. via different I2C bus interfaces. For example, processor 110 may be coupled to indicator module 192 via an I2C bus interface, enabling processor 110 to communicate with indicator module 192 via the I2C interface and thereby controlling indicator module 192.
[0054] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0055] In some embodiments, the processor 110 may receive sensor information reported by a sensor and perform corresponding processing based on the sensor information. For example, the processor 110 may receive ambient light illumination reported by an ambient light sensor and, if the ambient light illumination is below a light illumination threshold, activate a metal detection sensor. For another example, the processor 110 may receive a detection value reported by a metal detection sensor and, if the detection value is above a detection threshold, power an indicator module 192 corresponding to the metal detection sensor. The indicator module 192 includes at least one light-emitting device, such as an LED.
[0056] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0057] The power management module 141 is used to connect 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 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.
[0058] In some embodiments, the power management module 141 may also provide power to the indication module 192 according to the power supply instruction of the process 110 , where the indication module 192 includes at least one light emitting device.
[0059] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 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 modify display information.
[0060] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0061] 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 electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0062] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0063] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor, etc. Among them, the headphone jack 170D is used to connect wired headphones.
[0064] The headphone interface 170D may be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0065] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0066] Ambient light sensor 180L is used to sense ambient light levels. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light levels. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0067] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0068] Metal detection sensor 180M is used to sense the approach and departure of external metal objects. The detection value of metal detection sensor 180M changes according to the approach and departure of the external metal object. The detection value increases as the metal object approaches and decreases as the metal object moves away. Metal detection sensor 180M can be an electromagnetic induction high-frequency oscillation sensor, a capacitance change sensor, or other sensors used for metal detection.
[0069] One or more metal detection sensors 180M may be provided in the electronic device. The metal detection sensor 180M may be provided near the interface of the electronic device, for example, on the left and / or right side of the interface 401. The distance between the metal detection sensor and the interface does not exceed a predetermined distance threshold to ensure that the metal detection sensor can promptly detect when a user approaches the interface of the electronic device using a connector connected to the device. The distance threshold can be set based on actual application conditions and is not specifically limited in the embodiments of the present application.
[0070] Keys 190 include a power button, a volume button, and the like. Keys 190 can be mechanical or touch-sensitive. Electronic device 100 can receive key inputs and generate key signal inputs related to user settings and function control of electronic device 100. In some embodiments, keys 190 also include an indication control key for turning indication module 192 on and off.
[0071] The indication module 192 includes at least one light-emitting device, such as at least one indicator light, which can be an LED light, for indicating the position of the interface in the electronic device. The indication module is arranged on the same surface as the interface in the electronic device. On the surface where the interface is located, the indication module can be arranged on at least one side of the upper, lower, left, and right sides of the interface, or arranged around the interface. In one embodiment, when the indication module is arranged on the left and right sides of the interface, the distance between the indication modules on the left and right sides and the interface is the same, so as to ensure that the interface is in the center of the position indicated by the two indication modules, which is convenient for accurately determining the position of the interface in a dark environment.
[0072] SIM card interface 195 is used to connect a SIM card. A SIM card can be connected to and disconnected from electronic device 100 by inserting or removing it from SIM card interface 195. Electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 is also compatible with external memory cards. Electronic device 100 interacts with the network through the SIM card, enabling functions such as phone calls and data communications.
[0073] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0074] Figure 2 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0075] The layered architecture of electronic device 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the framework layer, the Android runtime and system libraries, and the kernel layer.
[0076] The application layer can include a series of application packages.
[0077] like Figure 2 As shown, the application package may include programs such as camera, gallery, calendar, call, map, WLAN, music, short message, desktop launcher, etc.
[0078] Among them, the desktop launcher (Launcher) can launch other applications, settings, etc. according to the user's operations on the desktop (such as sliding, clicking icons, etc.).
[0079] In one possible implementation, the application also includes a prompt application. The prompt application is an application for providing prompts for interfaces in the electronic device. It should be noted that the prompt application can be displayed on the desktop in the form of an application icon or a desktop control, such as a desktop card or widget. Users can trigger interface prompts through the prompt application.
[0080] The framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The framework layer includes some predefined functions.
[0081] like Figure 2 As shown, the framework layer may include a window manager, a content provider, a view system, a resource manager, a prompt processing module, a notification manager, and the like.
[0082] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0083] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0084] The view system includes visual controls, such as those for displaying text and images. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface containing an interface reminder icon can include a view for displaying text and a view for displaying an image.
[0085] The resource manager provides various resources for the application, such as localized strings, icons, images, layout files, video files, etc. The icon is, for example, at least one interface reminder icon.
[0086] The prompt processing module is used to proactively sense whether the user intends to use the interface based on the ambient light sensor and the metal detection sensor, and proactively provides an interface prompt when the user's intention is sensed. The prompt processing module is also used to control the electronic device to provide an interface prompt based on the user's proactive instruction to provide an interface prompt. It should be noted that the prompt processing module can be an independent module in the framework layer, or it can be a submodule of an independent module in the framework layer, such as a submodule in the system server.
[0087] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0088] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0089] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0090] The application and framework layers run in a virtual machine. The virtual machine executes Java files from the application and framework layers as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0091] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0092] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0093] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files.
[0094] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0095] A 2D graphics engine is a drawing engine for 2D drawings.
[0096] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, Bluetooth drivers, etc.
[0097] In a possible implementation, the kernel layer further includes one or more driver programs such as a first driver, a second driver, and a sensor driver.
[0098] The first driver is a driver corresponding to the indicator module. The first driver is used to control the on / off state of the indicator module and the operation of the indicator module. In one embodiment, if the indicator module includes at least one LED light, the first driver may be an LED driver. The first driver may control the on / off state of one or more LED lights in the indicator module and the brightness of the one or more LED lights in the indicator module.
[0099] The second driver is a driver program corresponding to a physical button. Such physical buttons include the aforementioned power button, volume button, and indicator control button. When a physical button is pressed, the second driver program receives the key input information and, based on the key identifier in the key input information, reports the key input information to the corresponding upper-layer module for processing.
[0100] The sensor driver is the driver program for each sensor. It controls the operation of the sensor based on instructions from the upper-layer module. For example, it configures the sensor's operating parameters and turns the sensor on and off. It also receives data detected (or collected) by the sensor and sends it to the upper-layer module for processing.
[0101] It is understandable that Figure 2 The layers in the illustrated software structure and the components contained in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.
[0102] Figure 3 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 1 . Figure 4 An example of an electronic device provided in an embodiment of the present application Figure 1The following is combined Figure 3 and Figure 4 The interface prompt method provided in the embodiment of the present application is described.
[0103] like Figure 4 As shown, a mobile phone is used as an example of the electronic device 100. The electronic device 100 includes an interface 401, an ambient light sensor 402, a metal detection sensor 403 and an indication module 404.
[0104] The interface 401 is, for example, a Type-C interface, used to connect to headphones or a charging cable.
[0105] The metal detection sensor 403 is disposed near the interface 401, and the distance d1 between the metal detection sensor 403 and the corresponding interface 403, as well as the distance between the metal detection sensor 403 and the surface of the electronic device where the corresponding interface 403 is located, are both less than a first preset distance. The first preset distance is the maximum distance between the metal detection sensor and the corresponding interface, as well as the surface of the electronic device where the corresponding interface is located, and the first preset distance can be set according to actual application. It should be noted that the distance between the metal detection sensor 403 and the surface of the electronic device where the corresponding interface 403 is located is less than the first preset distance, which can ensure that the metal detection sensor 403 can effectively detect metal objects close to the surface of the electronic device; the distance between the metal detection sensor 403 and the corresponding interface 403 is less than the first preset distance, which can ensure that the metal detection sensor 403 can effectively detect metal objects close to the interface 401.
[0106] Indicator modules 404 are symmetrically positioned on the left and right sides of interface 401. On the surface of the electronic device where interface 401 is located, the distance d2 between indicator modules 404 and the corresponding interface is less than a second predetermined distance. This second predetermined distance is the maximum spacing between the indicator modules and the corresponding interface, and can be set based on actual application circumstances. It should be noted that the distance between the indicator modules and the corresponding interface is less than the second predetermined distance, effectively indicating the location of the interface, allowing the user to accurately locate the interface based on the illuminated indicator module.
[0107] like Figure 3 As shown, the ambient light sensor, metal detection sensor, and indicator module are hardware modules in the electronic device. For detailed description of the hardware module, please refer to the aforementioned Figure 2 and Figure 4 The corresponding detailed description is omitted here. The electronic device also includes a sensor driver, a first driver and a prompt processing module. Among them, the sensor driver and the first driver are modules of the core layer of the electronic device; the prompt processing module is a module of the framework layer of the electronic device. Figure 3 As shown, the interface prompt method includes: the following steps S301 to S310.
[0108] Step S301: The ambient light sensor sends ambient light illumination information to a sensor driver.
[0109] The ambient light illumination information includes the value of the ambient light illumination of the environment in which the electronic device is located. The unit of the ambient light illumination is Lux.
[0110] In an embodiment of the present application, the ambient light sensor detects the ambient light illumination of the environment in which the electronic device is located, and sends information containing the ambient light illumination to the sensor driver, so that the sensor driver sends the information to the upper module.
[0111] Step S302: The sensor module sends the ambient light illumination information to the prompt processing module.
[0112] Step S303: The prompt processing module determines whether the ambient light illumination is less than or equal to the illumination threshold according to the ambient light illumination information.
[0113] Among them, the illuminance threshold is used to indicate the illuminance at which the human eye cannot see clearly. The illuminance threshold can be set according to actual conditions, for example, to 1 Lux or 3 Lux, and is not specifically limited in the embodiments of the present application.
[0114] In the embodiment of the present application, when the ambient light intensity is greater than the light intensity threshold, the user of the electronic device is not in a dark environment, and the user can clearly see the location of the interface on the electronic device. When the user wants to charge the electronic device or connect a wired headset, the user can directly plug the charging cable or wired headset connector into the corresponding interface on the electronic device.
[0115] When the ambient light intensity is less than or equal to the illumination threshold, the user is in a dim environment and cannot see objects clearly. In some scenarios, when the user wants to charge the electronic device or connect a wired headset, the user cannot clearly see the location of the electronic device's interface. Therefore, the electronic device performs the following step S304 so that in subsequent processes, in a dim environment, the electronic device can determine whether the user intends to use the interface.
[0116] Step S304: When the ambient light illumination is less than or equal to the illumination threshold, the prompt processing module sends a first start instruction to the sensor driver.
[0117] The first start-up instruction is used to instruct the sensor to drive and start the metal detection sensor. The first start-up instruction includes a sensor identifier of the metal detection sensor.
[0118] Step S305: The sensor driver responds to the first start instruction and starts the metal detection sensor.
[0119] It should be noted that in one possible implementation, the metal detection sensor can be always on after the electronic device is started, without being turned on through the above steps S301-S305. However, in the case of a metal detection sensor, even when it is not necessary to detect whether a metal object is approaching the interface, the metal detection sensor will still operate, resulting in high energy consumption of the electronic device and waste of resources. Therefore, through the above steps S301-S305, the electronic device can control the metal detection sensor to be activated only in a dim environment to detect whether the user intends to use the interface, which can reduce the energy consumption of the electronic device and save device resources.
[0120] In the embodiments of the present application, the metal detection sensor, when activated, can detect the approach and departure of metal objects. Since the connectors of various connected devices (such as charging cables, headphone cables, USB flash drives, USB data cables, VGA cables, and HDMI cables, etc.) are generally made of metal, the metal detection sensor can detect whether a connector of a connected device is close to the interface of an electronic device.
[0121] In some scenarios, if a user wants to insert a connection device into an electronic device port but cannot clearly see the port's location, the user may place the device's connector near the port and attempt to insert the connection device. When the user places the device's connector near the port, the metal detection value of the metal detection sensor increases.
[0122] Step S306: The metal detection sensor sends metal detection information to the sensor driver.
[0123] The metal detection information includes at least the sensor identifier and metal detection value of the metal detection sensor. The metal detection value can be an actual detection value, such as a capacitance value or frequency, or a numerical value representing a level. For example, the metal detection value can be a number between 0 and 100, with a higher metal detection value indicating that the metal object is closer to the metal detection sensor.
[0124] Step S307: The sensor driver sends metal detection information to the prompt processing module.
[0125] Step S308: The prompt processing module determines whether the metal detection value is equal to or greater than the detection threshold based on the metal detection information.
[0126] The detection threshold can be set according to the actual application. For example, when the metal detection value is a value between 0-100, the detection threshold can be set to 70 or 80, which is not specifically limited in the embodiments of the present application.
[0127] In the embodiment of the present application, if the metal detection value is less than the detection threshold, it indicates that no metal object is near the interface of the electronic device. If the metal detection value is equal to or greater than the detection threshold, it indicates that a metal object is near the interface of the electronic device, and the user may intend to insert a connection object into the interface. Therefore, an interface prompt can be provided to facilitate the user to insert the connection object into the interface of the electronic device.
[0128] Step S309: When the metal detection value is equal to or greater than the detection threshold, the processing module is prompted to send a second start instruction to the first driver.
[0129] The second start instruction is an instruction for instructing the first drive start instruction module.
[0130] Step S310: The first driver starts the indication module in response to the second start instruction.
[0131] The indication module includes at least one light emitting device, such as an LED lamp. After the indication module is started, it can emit light to indicate the position of the user interface.
[0132] In the embodiment of the present application, the brightness of the indicator module can be set according to the actual application scenario. For example, the brightness of the indicator module can be set to a brightness that illuminates the interface position of the electronic device. However, in a dim environment, the scenario in which users use the interface is mostly charging, and the battery level of the electronic device is generally low. Therefore, setting the brightness of the indicator module to a brightness that illuminates the interface position will accelerate the power consumption of the electronic device, and it is also possible that the remaining power cannot support the indicator module to reach the brightness required to illuminate the interface position. Therefore, the brightness of the indicator module can also be set to only serve as an indicator, without reaching the level of illuminating the interface position.
[0133] In one possible implementation, the brightness of the indicator module can be adaptively adjusted according to the remaining power of the electronic device to improve the usability of the electronic device for interface prompts. For example, when the remaining power of the electronic device is greater than or equal to a power threshold (e.g., 20%), the luminous brightness of the indicator module after startup can be set to a first brightness, that is, a brightness that illuminates the interface position; when the remaining power of the electronic device is less than a power threshold (e.g., 20%), the luminous brightness of the indicator module after startup can be set to a second brightness, which does not reach the level of illuminating the interface position and only serves to indicate the position. It should be noted that the specific values of the first brightness and the second brightness can be set according to actual application conditions.
[0134] Figure 5 This is an example diagram of the effect of starting an indication module provided in an embodiment of the present application. Figure 5As shown in (1), the indicator modules (indicated by two white rectangular bars) on the electronic device 100 are symmetrically arranged on the left and right sides of the interface. After the indicator modules are started, the light emitted can indicate that the interface is between the two indicator modules, which can effectively prompt the location of the interface and improve the user experience of using the electronic device in a dark environment.
[0135] like Figure 5 As shown in (2), the electronic device 100 is a foldable screen mobile phone, and the interface is not located on the right side of the bottom of the electronic device 100. In the embodiment of the present application, the indicator module (shown as a white rectangular bar) can be located on the upper left side of the interface. After the indicator module is activated, the light emitted can indicate that the interface is on the right side of the indicator module, which can effectively indicate the location of the interface and improve the user experience of using the electronic device in a dark environment.
[0136] like Figure 5 As shown in (3), the electronic device 100 is a foldable screen mobile phone, and the interface is not located on the right side of the bottom of the electronic device 100. In the embodiment of the present application, the indicator module (shown in a white rectangular box) can be set around the interface. After the indicator module is started, the light emitted can indicate that the interface is in the area around the indicator module, which can effectively indicate the location of the interface and improve the user experience of using the electronic device in a dark environment.
[0137] In the embodiment of the present application, after the indication module is turned on, it can be turned off in the following two ways.
[0138] In one possible implementation, after the indication module is turned on, the prompt processing module can send a second shutdown instruction to the first driver upon detecting that the connected device is connected to the interface of the electronic device. The first driver responds to the second shutdown instruction and shuts down the indication module. In this embodiment of the present application, the indication module can be activated when the user needs it and automatically shut down when it is not needed, which not only reduces energy waste in the electronic device but also avoids light pollution in low-light environments.
[0139] In another possible implementation, if the activation duration of the indicator module exceeds a first preset duration, the indicator module automatically shuts down. The first preset duration can be set based on actual application circumstances, for example, to 10 seconds or 15 seconds, and is not specifically limited in the embodiments of this application. In the embodiments of this application, the indicator module automatically shuts down after a certain period of activation, which not only reduces energy waste in the electronic device but also avoids light pollution in dimly lit environments.
[0140] In this embodiment, the electronic device can proactively identify user intent through ambient light sensors and metal detection sensors. Upon sensing the user's intention to use an interface, the electronic device can proactively provide interface prompts through an indication module, improving the user's experience using the interface in low-light environments. After sensing that the interface has been used, or after the indication duration has reached a predetermined length, the indication module is proactively disabled to proactively shut down interface prompts when the user no longer needs them. This reduces energy waste in the electronic device and reduces light pollution in low-light environments.
[0141] In one possible implementation scenario, an electronic device includes multiple interfaces, and a metal detection sensor and an indicator module corresponding to each interface can be provided near each interface. When a user wants to use an interface, because the interface location is uncertain, the user can use the connector of a connecting device to approach any interface. When the metal detection value of the metal detection sensor near the interface (i.e., any metal detection sensor in the electronic device) is greater than or equal to the detection threshold, the electronic device activates the indicator modules corresponding to all interfaces to provide interface prompts.
[0142] In another possible implementation scenario, if the electronic device includes multiple interfaces, but the number is relatively small (e.g., less than or equal to three), each interface can be provided with a corresponding metal detection sensor and a pair of indicator modules. The pair of indicator modules are located on either side of an interface, and their distance from the interface is less than a preset distance, e.g., less than 2 mm. The correspondence between the metal detection sensor and the indicator module is pre-stored in the prompt processing module. In this scenario, due to the small number of interfaces, users generally have a vague memory of the interface locations. When using a plug close to an interface of the electronic device, the user is generally closer to the interface they need to use. Therefore, the electronic device can only activate the indicator module corresponding to the interface closest to the user. In step S309, if the prompt processing module determines that the metal detection value is equal to or greater than the detection threshold, the prompt processing module determines the module identifier of the indicator module corresponding to the sensor identifier based on the sensor identifier in the metal detection information and the pre-stored correspondence. The second activation instruction sent by the prompt processing module to the first driver includes the module identifier of the indicator module corresponding to the sensor identifier. In step S310, the first driver, in response to the second activation instruction, activates the indicator module corresponding to the sensor identifier.
[0143] In the interface prompt method provided in the above embodiment, an indication module needs to be set in the electronic device to implement the interface prompt. This application also provides an interface prompt method, which can also perform interface prompts without setting an indication module, thereby reducing costs. The interface prompt method is described below. Figure 6 Corresponding detailed description.
[0144] Figure 6A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 2 The interface prompt method is applied to an electronic device, which includes an ambient light sensor, a metal detection sensor, a sensor driver, a prompt processing module and a desktop launcher. Among them, the ambient light sensor and the metal detection sensor are hardware modules in the electronic device; the sensor driver is a module of the kernel layer in the electronic device; the prompt processing module is a module of the framework layer in the electronic device; and the desktop launcher is a module of the application layer in the electronic device. Figure 6 As shown, the interface prompt method includes: steps S601 to S610.
[0145] Step S601: The ambient light sensor sends ambient light illumination information to the sensor driver.
[0146] Step S602: The sensor driver sends the ambient light illumination information to the prompt processing module.
[0147] Step S603: The prompt processing module determines whether the ambient light illumination is less than or equal to the illumination threshold according to the ambient light illumination information.
[0148] Step S604: When the ambient light illumination is less than or equal to the illumination threshold, the prompt processing module sends a first start instruction to the sensor driver.
[0149] Step S605: The sensor driver responds to the first start instruction and starts the metal detection sensor.
[0150] Step S606: The metal detection sensor sends metal detection information to the sensor driver.
[0151] Step S607: The sensor driver sends metal detection information to the prompt processing module.
[0152] Step S608: The prompt processing module determines whether the metal detection value is equal to or greater than the detection threshold based on the metal detection information.
[0153] Among them, steps S601 to S608 are the same as steps S301 to S308 in the aforementioned embodiment. The explanation of steps S601 to S608 can be found in the aforementioned detailed description of steps S301 to S308, which will not be repeated here.
[0154] Step S609: When the metal detection value is equal to or greater than the detection threshold, the prompt processing module sends an interface prompt message to the desktop launcher.
[0155] Among them, when the metal detection value is equal to or greater than the detection threshold, it means that there is a metal object near the interface of the electronic device, and the user may intend to insert the connection object into the interface. Therefore, an interface prompt can be provided to facilitate the user to insert the connection object into the interface of the electronic device.
[0156] Step S6010: The desktop launcher displays the interface prompt icon according to the interface prompt information.
[0157] The interface prompt information is used to instruct the desktop to display an interface prompt icon. The interface prompt icon includes a picture and / or text. The picture in the interface prompt icon is used to indicate the interface location, and the text is used to indicate the interface type.
[0158] In a possible implementation, the interface prompt information includes information of a first interface pre-stored in the view system, where the first interface is a display interface corresponding to the interface reminder icon.
[0159] In a possible implementation, the desktop launcher displays a first interface according to the interface prompt information, and the first interface includes an interface prompt icon. The interface prompt icon is located at the edge of the screen close to the interface in the first interface. The first interface can be seen below. Figure 7 The first interface reminder interface and the second interface reminder interface are shown in FIG.
[0160] Figure 7 An example of an electronic device display interface prompt icon provided in an embodiment of the present application Figure 1 Taking a mobile phone as an example of the electronic device 100, Figure 7 As shown in (1), the interface 703 of the electronic device 100 is located at the center of the bottom of the body, and the desktop launcher displays the first interface reminder interface 701 according to the interface prompt information. The first interface reminder interface 701 includes an interface prompt icon 702. The interface prompt icon 702 is located at the edge of the screen close to the interface 703 and is used to indicate the location of the interface 703. The picture in the interface prompt icon is used to indicate the location of the interface, and the text "Type C" is used to indicate the type of the interface.
[0161] like Figure 7 As shown in (2), the electronic device 100 is a foldable screen mobile phone. The interface 703 of the electronic device 100 is located at the edge of the bottom of the body. Then, the desktop launcher displays a second interface reminder interface 705 according to the interface prompt information. The second interface reminder interface 705 includes an interface prompt icon 706. The interface prompt icon 706 is located at the edge of the screen close to the interface 704 and is used to indicate the location of the interface 704. The image in the interface prompt icon is used to indicate the location of the interface, and the text "Type C" is used to indicate the type of interface.
[0162] It is understandable that Figure 7 The interface reminder interface and interface prompt icon shown in the figure are only exemplary. The interface reminder interface and interface prompt icon can be specifically designed according to actual applications. For example, when an electronic device includes multiple interfaces, the interface reminder interface can display multiple interface prompt icons, each interface prompt icon is used to indicate the location and interface type of the corresponding interface. The interface prompt icon can also be used to indicate the function of the interface, such as when the user inserts a USB flash drive, inserts a headphone cable / charging cable, etc., which is not specifically limited in the embodiments of the present application.
[0163] In the embodiment of the present application, after the user displays the interface prompt icon, he can close it in the following two ways.
[0164] In one possible implementation, upon detecting that an interface of the electronic device is in use, the prompt processing module may send a prompt cancellation message to the desktop launcher. In response to the prompt cancellation message, the desktop launcher cancels the display of the interface prompt icon. In this embodiment of the present application, the interface prompt icon can be displayed when the user requires it and automatically canceled when it is no longer needed, thereby reducing energy waste in the electronic device.
[0165] In another possible implementation, the desktop launcher displays an interface prompt icon based on the interface prompt information, and cancels the display of the interface prompt icon when the display duration of the interface prompt information exceeds a second preset duration. The second preset duration can be set according to actual application conditions, for example, to 10s or 15s, and is not specifically limited in the embodiments of the present application. In the embodiments of the present application, the interface prompt icon can automatically disappear after being displayed for a certain period of time, which can reduce energy waste in electronic devices.
[0166] In this embodiment, the electronic device can proactively identify user intent through ambient light sensors and metal detection sensors. Upon sensing the user's intention to use an interface, the device can proactively display an interface prompt icon to provide an interface prompt, improving the user's experience using the interface in low-light environments. After sensing that the interface has been used, or after the indication duration has reached a predetermined length, the device proactively cancels the display of the interface prompt icon, effectively disabling the prompt when the user no longer needs it. This reduces energy waste in the electronic device and reduces light pollution in low-light environments.
[0167] In the two interface prompt methods provided in the above examples, both require the combination of an ambient light sensor and a metal detection sensor to sense whether the user intends to use the interface. The embodiment of the present application also provides an interface prompt method for the user to interact with the electronic device through a hardware switch and actively instruct the electronic device to perform an interface prompt. The interface prompt method can be found in the following Figure 8 and Figure 9 Detailed description.
[0168] Figure 8 An example of an electronic device provided in an embodiment of the present application Figure 2 . Figure 9 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 3 The following is combined Figure 8 and Figure 9 The interface prompt method provided in the embodiment of the present application is described.
[0169] like Figure 8 As shown, a mobile phone is used as an example of an electronic device 100. The electronic device 100 includes an interface 801, two indication modules 802, and a button 803. The interface 801 is, for example, a Type-C interface for connecting headphones or a charging cable; the two indication modules 802 are symmetrically arranged on both sides of the interface 801, and the button 803 is arranged on the side of the electronic device 100. It should be noted that the button 803 can be the original power button and / or volume button in the electronic device, or it can be a newly added button, and the button 803 has the function of starting the indication module 802.
[0170] like Figure 9 As shown, the indicator module and the button are hardware modules in the electronic device. The specific description of the hardware module can be found in the aforementioned Figure 2 and Figure 4 The corresponding detailed description is omitted here. The electronic device also includes a first driver, a second driver and a prompt processing module. Among them, the first driver and the second driver are modules of the core layer of the electronic device; the prompt processing module is a module of the framework layer of the electronic device. Figure 9 As shown, the interface prompt method includes: steps S901 to S908.
[0171] Step S901: When the user presses a button, the second driver receives first button input information.
[0172] The first key input information includes a key identifier and an event identifier, wherein the key identifier indicates which key generates the input, and the event identifier indicates what event the input generates. In an embodiment of the present application, the event identifier in the first key input information may be an event identifier for opening an interface prompt.
[0173] It should be noted that, when the user presses a key, the input management module can detect the key input, thereby generating the first key input information, and sending the first key input information to the second driver.
[0174] Step S902: The second driver sends the first key input information to the prompt processing module.
[0175] Step S903: The prompt processing module sends a second start instruction to the first driver according to the first key input information.
[0176] The second start instruction is an instruction for instructing the first drive start instruction module.
[0177] Step S904: The first driver starts the indication module in response to the second start instruction.
[0178] Here, step S904 is similar to the aforementioned step S310. The detailed description of step S904 can be found in the aforementioned step S310 and will not be repeated here.
[0179] In one implementation scenario, when the user cannot clearly see the interface in a dimly lit environment, the user can press a button to cause the electronic device to activate the indication module and provide interface prompts through the above steps S901 to S904. After the user is prompted to use the interface through the interface, the user can press the button again to cause the electronic device to deactivate the indication module through the following steps S905 to S908.
[0180] Step S905: When the user presses the button next time, the second driver receives the second button input information.
[0181] The second key input information includes a key identifier and an event identifier, wherein the key identifier indicates which key generates the input, and the event identifier indicates what event the input generates. In an embodiment of the present application, the event identifier in the second key input information can be an event identifier for closing the interface prompt.
[0182] In one possible implementation, different counts generated when a button is pressed result in different input events. For example, when a user presses a button for the first time, the count is 1, generating an input event to enable the interface prompt. When the user presses the button a second time, the count is 2, generating an input event to disable the interface prompt. After the interface prompt is disabled, the count corresponding to the button is reset to zero. After the count is reset to zero, the electronic device restarts the count when the user presses the button. This embodiment enables the interface prompt to be enabled and disabled by pressing the button twice in succession.
[0183] Step S906: The second driver sends the second key input information to the prompt processing module.
[0184] Step S907: The prompt processing module sends a second closing instruction to the first driver according to the second key input information.
[0185] The second closing instruction is used to instruct the first driving closing instruction module.
[0186] Step S908: The first driver responds to the second closing instruction and closes the indication module.
[0187] In an embodiment of the present application, when the user needs the electronic device to provide an interface prompt, the user can start the indication module by pressing a button to control it, which can facilitate the user to use the interface in a dark environment; when the interface prompt is not needed, the indication module can be turned off by pressing a button to control it, thereby reducing energy waste of the electronic device and light pollution problems in a dark environment, and improving the user experience.
[0188] The embodiment of the present application also provides an interface prompt method, in which a hardware switch is provided on the electronic device for the user to interact with the electronic device, and the electronic device is actively instructed to perform an interface prompt, but the interface prompt is implemented through the display interface of the electronic device. Figure 10 Detailed description.
[0189] Figure 10 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 4 The interface prompt method is applied to an electronic device, which includes a button, a second driver, a prompt processing module and a desktop launcher. The button is a hardware module in the electronic device; the second driver is a module of the kernel layer in the electronic device; the prompt processing module is a module of the framework layer in the electronic device; and the desktop launcher is a module of the application layer in the electronic device. Figure 10 As shown, the interface prompt method includes: steps S1001 to S1008.
[0190] Step S1001: When the user presses a button, the second driver receives third button input information.
[0191] The third key input information includes a key identifier and an event identifier, wherein the key identifier indicates which key generates the input, and the event identifier indicates what event the input generates. In an embodiment of the present application, the event identifier in the third key input information may be an event identifier for opening an interface prompt.
[0192] Step S1002: The second driver sends the third key input information to the prompt processing module.
[0193] Step S1003: The prompt processing module sends interface prompt information to the desktop launcher according to the third key input information.
[0194] Step S1004: The desktop launcher displays an interface prompt icon according to the interface prompt information.
[0195] Among them, step S1004 is similar to the aforementioned step S6010. The step S1004 can be described in detail with reference to the aforementioned step S6010 and will not be repeated here.
[0196] Step S1005: When the user presses the button next time, the second driver receives the fourth button input information.
[0197] The fourth key input information includes a key identifier and an event identifier, wherein the key identifier indicates which key generates the input, and the event identifier indicates what event the input generates. In an embodiment of the present application, the event identifier in the fourth key input information may be an event identifier for closing the interface prompt.
[0198] In one possible implementation, different counts generated when a button is pressed result in different input events. For example, when a user presses a button for the first time, the count is 1, generating an input event to enable the interface prompt. When the user presses the button a second time, the count is 2, generating an input event to disable the interface prompt. After the interface prompt is disabled, the count corresponding to the button is reset to zero. After the count is reset to zero, the electronic device restarts the count when the user presses the button. This embodiment enables the interface prompt to be enabled and disabled by pressing the button twice in succession.
[0199] Step S1006: The second driver sends the fourth key input information to the prompt processing module.
[0200] Step S1007: The prompt processing module sends a prompt cancellation message to the desktop launcher according to the fourth key input information.
[0201] Step S1008: The desktop launcher cancels the display of the interface prompt icon according to the prompt cancellation information.
[0202] In an embodiment of the present application, when the user needs the electronic device to provide an interface prompt, the user can control the desktop to display an interface prompt icon through a button, which can facilitate the user to use the interface in a dim environment; when the interface prompt is not needed, the user can control the desktop to cancel the display of the interface prompt icon through a button, thereby reducing energy waste of the electronic device and light pollution problems in a dim environment, and improving the user experience.
[0203] In the above Figure 9 and Figure 10In the two interface prompt methods shown, a button can be set on the electronic device as a hardware switch for the interface prompt. When the user presses the button, the electronic device generates first input information (such as the first button input information mentioned above, or the third button input information), and the first input information includes the button identifier of the button and the event identifier for turning on the interface prompt. The electronic device can start the indication module according to the first input information, or display the first interface. When the user does not need the interface prompt, the user can press the button again, and the electronic device generates second input information (the second button input information mentioned above, or the fourth button input information), and the second input information includes the button identifier of the button and the event identifier for turning off the interface prompt. The electronic device turns off the indication module according to the second input information, or cancels the display of the first interface.
[0204] In the above Figure 9 and Figure 10 In the two interface prompt methods shown, when the user actively instructs the electronic device to perform interface prompts, both are implemented through hardware switches. The embodiment of the present application also provides an interface prompt method for the user to interact with the electronic device through a software switch, so that the user actively instructs the electronic device to perform interface prompts. The interface prompt method can be referred to as follows: Figure 11a 、 11b and Figure 12 Detailed description.
[0205] Figure 11a This is an example diagram of the desktop of an electronic device provided in an embodiment of the present application. Figure 11b This is an example diagram of the display interface of an electronic device after a prompt object is clicked, provided in an embodiment of the present application. Figure 12 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 5 The following is combined Figure 11a 、 11b and Figure 12 The interface prompt method provided in the embodiment of the present application is described.
[0206] Take a mobile phone as an example of the electronic device 100. Figure 11a As shown in (1), the first display interface 1101 of the electronic device 100 is a desktop of the electronic device. The first display interface 1101 includes an application icon of a prompt application 1102, and the prompt application 1102 is used to trigger the electronic device to perform an interface prompt.
[0207] like Figure 11aAs shown in (2), the second display interface 1103 of the electronic device 100 is another desktop of the electronic device. The second display interface 1103 includes an interface prompt control, such as an interface prompt card 1104, which is used to trigger the electronic device to perform an interface prompt.
[0208] See also Figure 12 The interface prompt method is applied to an electronic device, which includes a prompt object, a desktop launcher, a prompt processing module, a first driver and an indication module. Among them, the prompt object and the desktop launcher are modules of the application layer in the electronic device; the prompt processing module is a module of the framework layer in the electronic device; the first driver is a module of the kernel layer in the electronic device; and the indication module is a hardware module in the electronic device. Figure 12 As shown, the interface prompt method includes: steps S1201 to S1208.
[0209] Step S1201: When the user clicks the prompt object, the desktop launcher receives a first event.
[0210] The prompt object is a software module for triggering the electronic device to perform interface prompts, such as the application icon or interface prompt card of the prompt application shown in Figure 11. The first event is used to indicate an event in which the prompt object is clicked.
[0211] In a possible implementation, the second interface of the electronic device (such as the aforementioned Figure 11a The prompt object is included on the first display interface and the second display interface shown in the figure. The second interface can be the desktop of the electronic device or other interfaces in the electronic device, which is not specifically limited in the embodiment of the present application. When the user requires the electronic device to perform an interface prompt, a first operation (such as a click operation, a touch operation) is performed on the prompt object in the second interface to trigger the electronic device to perform an interface prompt. In the embodiment of the present application, the user clicks on the prompt object, and the input management module of the electronic device detects the user's click operation on the prompt object on the second interface, generates a corresponding first event, and sends the first event to the desktop launcher for processing.
[0212] Step S1202: The desktop launcher sends a first request to the prompt processing module according to the first event.
[0213] The first request is used to request to start the interface prompt process.
[0214] Step S1203: The prompt processing module sends a second start instruction to the first driver according to the first request.
[0215] Step S1204: The first driver starts the indication module in response to the second start instruction.
[0216] Here, step S1204 is similar to the aforementioned step S310. The detailed description of step S1204 can be found in the aforementioned step S310 and will not be repeated here.
[0217] In one implementation scenario, when a user cannot clearly see the interface in a dimly lit environment, they can click on the prompt object, causing the electronic device to activate the indication module and provide an interface prompt through steps S1201 to S1204. If the user does not need the interface prompt, the user can end the interface prompt through steps S1205 to S1208.
[0218] Step S1205: When the user clicks the close control corresponding to the indication module, the desktop launcher receives a second event.
[0219] The second event is an event indicating that a close control corresponding to the instruction module is clicked.
[0220] In a possible implementation, after the user clicks the prompt object, the display interface of the electronic device changes to Figure 11a The first display interface 1101 or the second display interface 1102 shown in FIG is refreshed to a third interface. The third interface is, for example, Figure 11b The third display interface 1106 is shown. The third display interface 1106 includes a close control 1107 corresponding to the instruction module. The user can click the close control 1107 to trigger the close instruction module process. It should be noted that after the user clicks the close control 1107, the electronic device responds to the user's click operation on the close control 1107 and can return to the state of the instruction module. Figure 11a The first display interface 1101 or the second display interface 1102 is shown in FIG.
[0221] Step S1206: The desktop launcher sends a second request to the prompt processing module according to the second event.
[0222] The second request is used to request closing the interface prompt process.
[0223] Step S1207: The prompt processing module sends a second closing instruction to the first driver according to the second request.
[0224] Step S1208: The first driver responds to the second closing instruction and closes the indication module.
[0225] In an embodiment of the present application, when the user needs the electronic device to provide an interface prompt, the user activates the indication module through a software switch to implement the interface prompt; when the interface prompt is not required, the software switch turns off the indication module, which can facilitate the user to use the interface in a dark environment and improve the user experience.
[0226] The embodiment of the present application also provides an interface prompt method, which allows the user to instruct the electronic device to provide an interface prompt through the icon displayed on the desktop through a software switch. Figure 13 Detailed instructions in.
[0227] Figure 13 A flowchart of an interface prompt method is provided for the embodiment of the present application Figure 6 The interface prompt method is applied to an electronic device, which includes a prompt object, a desktop launcher and a prompt processing module. Among them, the prompt application and the desktop launcher are modules of the application layer in the electronic device; the prompt processing module is a module of the framework layer in the electronic device. Figure 13 As shown, the interface prompt method includes: steps S1301 to S1308.
[0228] Step S1301: When the user clicks a prompt object, the desktop launcher receives a first event.
[0229] Step S1302: The desktop launcher sends a first request to the prompt processing module according to the first event.
[0230] Among them, steps S1301-1302 are similar to steps S1201-1202. The steps S1301-1302 can be described in detail with reference to the corresponding steps S1201-1202, and will not be repeated here.
[0231] Step S1303: The prompt processing module sends interface prompt information to the desktop launcher according to the first request.
[0232] The interface prompt information is used to instruct the desktop to display an interface prompt icon. The interface prompt icon includes a picture and / or text. The picture in the interface prompt icon is used to indicate the interface location, and the text is used to indicate the interface type.
[0233] In a possible implementation, the prompt processing module constructs an event response process corresponding to the first event according to the first request, and sends interface prompt information to the desktop launcher when the event response process corresponding to the first event is completed.
[0234] Step S1304: The desktop launcher displays an interface prompt icon according to the interface prompt information.
[0235] In one possible implementation, the interface prompt information includes information about a display interface corresponding to an interface prompt icon pre-stored in the view system. Based on the interface prompt information, the desktop launcher displays a first interface, which includes an interface prompt icon. In the first interface, the interface prompt icon is located at a screen edge proximate to the interface.
[0236] Figure 14 An example of an electronic device display interface prompt icon provided in an embodiment of the present application Figure 2 Taking a mobile phone as an example of the electronic device 100, Figure 14 As shown in , the interface 1403 of the electronic device 100 is located at the center of the bottom of the body, then the desktop launcher displays the first interface according to the interface prompt information, and the first interface also includes the third interface. The first interface is, for example, the third interface reminder interface 1401, and the third interface reminder interface 1401 includes an interface prompt icon 1402 and a third interface, and the third interface includes a close control 1404. The interface prompt icon 1402 is located at the edge of the screen close to the interface 1403, and is used to indicate the location of the interface 1403. The picture in the interface prompt icon is used to indicate the interface location, and the text "Type C" is used to indicate the interface type.
[0237] Step S1305: When the user clicks the close control corresponding to the interface prompt icon, the desktop launcher receives the third event.
[0238] The close control corresponding to the interface prompt icon is used to trigger the process of closing the display interface prompt icon. The third event is an event indicating that the close control corresponding to the interface prompt icon is clicked.
[0239] In a possible implementation, the electronic device responds to the user on the second interface ( Figure 11a The first interface 1101 or the second interface 1102 shown in FIG. 1 shows a click operation on the prompt object to display the first interface, which includes the third interface. The first interface is for example Figure 14 The third interface reminder interface 1401 shown includes a third interface, which is a close control 1404 corresponding to the interface prompt icon. In response to the user's click operation (or touch operation) on the close control 1404 corresponding to the interface prompt icon, the electronic device returns to display Figure 11a The first display interface 1101 or the second display interface 1102 is shown in FIG.
[0240] Step S1306: The desktop launcher sends a third request to the prompt processing module according to the third event.
[0241] The third request is used to request closing the interface prompt process.
[0242] Step S1307: The prompt processing module sends a prompt cancellation message to the desktop launcher according to the third request.
[0243] The prompt cancellation information is used to instruct the electronic device to cancel the display of the interface prompt icon.
[0244] Step S1308: The desktop launcher cancels the display of the interface prompt icon according to the prompt cancellation information.
[0245] In an embodiment of the present application, when the user needs the electronic device to provide an interface prompt, the user can trigger the electronic device to provide an interface prompt through the display interface through a software switch, which can facilitate the user to use the interface in a dark environment and improve the user experience; when the interface prompt is not needed, the electronic device can be controlled through the software switch to cancel the display of the interface prompt icon, thereby reducing energy waste of the electronic device.
[0246] It should be noted that the electronic device may cancel the display of the interface prompt icon in other ways instead of going through steps S1305 to S1308. See the following two possible implementations.
[0247] In one possible implementation, upon detecting that a connected device is connected to an interface of an electronic device, the prompt processing module may send a prompt cancellation message to a desktop launcher. In response to the prompt cancellation message, the desktop launcher cancels the display of the interface prompt icon. In this embodiment of the present application, the interface prompt icon can be displayed when the user requires it and automatically canceled when it is no longer needed, thereby reducing energy waste in the electronic device.
[0248] In another possible implementation, the desktop launcher displays an interface prompt icon based on the interface prompt information, and cancels the display of the interface prompt icon when the display duration of the interface prompt information exceeds a second preset duration. The second preset duration can be set according to actual application conditions, for example, to 10s or 15s, and is not specifically limited in the embodiments of the present application. In the embodiments of the present application, the interface prompt icon can automatically disappear after being displayed for a certain period of time, which can reduce energy waste in electronic devices.
[0249] The steps performed by the electronic device in the interface prompt method provided in the embodiment of the present application can also be performed by a chip system included in the electronic device, wherein the chip system may include a processor and a Bluetooth chip. The chip system can be coupled to a memory so that when the chip system is running, it calls a computer program stored in the memory to implement the steps performed by the above-mentioned electronic device. The processor in the chip system can be an application processor or a processor other than an application processor.
[0250] This embodiment further provides a computer-readable medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0251] This embodiment further provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the method in the above-mentioned embodiment.
[0252] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the methods in the above-mentioned method embodiments.
[0253] Among them, the electronic device, computer-readable medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0254] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0255] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0256] The units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. In combination with the algorithm steps of the various examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
[0257] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above contents is within the scope of the present application. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for making a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0258] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An interface prompt method, characterized in that: Applied to an electronic device, the electronic device includes an interface; the method includes: When the ambient light illumination is less than or equal to the illumination threshold, the metal detection sensor is activated; the distance between the metal detection sensor and the corresponding interface and the distance between the metal detection sensor and the surface of the electronic device where the corresponding interface is located are both less than a first preset distance; When the metal detection value of the metal detection sensor is equal to or greater than the detection threshold, an interface prompt operation is performed; the interface prompt operation includes: activating an indication module so that the indication module indicates the position of the interface when emitting light; and on a surface of the electronic device where the interface is located, a distance between the indication module and the corresponding interface is less than a second preset distance; or, A first interface is displayed, where the first interface includes an interface prompt icon corresponding to the interface, and the interface prompt icon is used to indicate a location of the corresponding interface.
2. The method according to claim 1, characterized in that The electronic device further includes a button; and the method further includes: An interface prompt operation is performed according to first input information; the first input information includes a key identifier of the key and an event identifier for starting the interface prompt.
3. The method according to claim 1, characterized in that The method further comprises: An interface prompt operation is performed according to a first operation of the user on a prompt object in the second interface; the prompt object includes an application icon or a card for triggering the interface prompt operation.
4. The method according to claim 2, characterized in that After performing the interface prompt operation according to the first input information, the method further includes: According to the second input information, the indication module is closed, or the first interface is canceled; the second input information includes the key identifier of the key and the event identifier of closing the interface prompt.
5. The method according to claim 3, characterized in that After performing the interface prompt operation according to the first operation of the user on the prompt object in the second interface, the method further includes: Displaying the third interface according to the user's first operation on the prompt object in the second interface; the third interface includes a close control; According to the user's second operation on closing the control, the indication module is closed, or the first interface is canceled.
6. The method according to any one of claims 1 to 3, characterized in that After the interface prompt operation is performed, the method further includes: When it is detected that a connection device is connected to any of the interfaces, the indication module is turned off, or the first interface is canceled.
7. The method according to any one of claims 1 to 3, characterized in that After the interface prompt operation is performed, the method further includes: If the activation time of the indication module is longer than a first preset time, shutting down the indication module; or, When the display time of the first interface is longer than the second preset time, the first interface is canceled.
8. The method according to claim 1, characterized in that The starting the indication module so that the indication module emits light to indicate the position of the interface includes: When the remaining power is greater than or equal to the power threshold, setting the light emitting brightness of the indicator module to a first brightness; When the remaining power is less than the power threshold, the luminous brightness of the indicator module is set to a second brightness; and the first brightness is greater than the second brightness.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the one or more processors, causes the electronic device to perform the method according to any one of claims 1 to 8.
10. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method according to any one of claims 1 to 8.