Method and device for displaying information, and electronic device
By determining the unobstructed display area in the terminal device and displaying the associated information, the problem of low efficiency for users to view information in the terminal is solved, the goal of quickly obtaining and viewing information is achieved, and the impact of obstructions is avoided.
Patent Information
- Application Number
- CN202110465203.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-04-27
AI Technical Summary
In terminal devices, users need to remember and open storage paths layer by layer when viewing information, resulting in low viewing efficiency. Especially when obstructions block the display screen, target information cannot be quickly obtained.
By determining the unoccluded target display area on the display screen of the terminal device and displaying information associated with the obstruction in this area, the target parameter value and communication channel are used to obtain information whose distance from the obstruction is less than or equal to the threshold to avoid Search layer by layer.
It improves the efficiency of users to view information, avoids the influence of obstructions, and ensures that users can view target information completely.
Smart Images

Figure CN113158108B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of terminal technology, and specifically relates to a method and device for displaying information, and an electronic device. Background Art
[0002] Terminals are electronic devices including mobile phones and computers, which provide great convenience for people's daily lives and occupy an indispensable position in people's lives. Usually, each terminal stores a large amount of information associated with each terminal, and different information has different storage paths in the terminal. When a user needs to view certain information on the terminal, the user needs to open the corresponding pages layer by layer according to the storage path, and finally open the display page of the information to view the information.
[0003] However, the above-mentioned way of viewing information is not user-friendly. The user needs to know the storage path of the information in advance, which requires the user to memorize a large number of storage paths. If the user cannot retrieve the storage path of the known information, the user will usually spend a lot of time trying to open different information pages until the information page he wants is opened. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method and device for displaying information, and an electronic device, which can solve the problem of low viewing efficiency when a user views terminal information in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a method for displaying information, the method comprising:
[0006] In the case where the display screen of the first terminal is blocked by an obstruction, determining a target display area of the display screen that is not blocked by the obstruction according to a target parameter value of the display screen;
[0007] Target information is displayed in the target display area, wherein the target information is information associated with the second terminal acquired by the first terminal when the distance between the first terminal and the second terminal is less than or equal to a target threshold.
[0008] In a second aspect, an embodiment of the present application provides a device for displaying information, the device comprising:
[0009] A determination module, configured to determine, when a display screen of the first terminal is blocked by an obstruction, a target display area in the display screen that is not blocked by the obstruction according to a target parameter value of the display screen;
[0010] The display module is configured to display target information in the target display area, wherein the target information is information associated with the second terminal acquired by the first terminal when the distance between the first terminal and the second terminal is less than or equal to a target threshold.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0014] In an embodiment of the present application, when the display screen of the first terminal is blocked by an obstruction, the target display area in the display screen that is not blocked by the obstruction is determined according to the target parameter value of the display screen. The first terminal can determine whether it is blocked by the target parameter value on the display screen. And when it is blocked by an obstruction, the target display area in the display screen that is not blocked by the obstruction is determined. The target information is displayed in the target display area; wherein the target information is the information associated with the second terminal obtained by the first terminal when the distance between the first terminal and the second terminal is less than or equal to the target threshold. That is to say, the first terminal will obtain the information of the second terminal whose distance value is less than or equal to the target threshold, and display the obtained information in the target display area that is not blocked by the obstruction. In an embodiment of the present application, the target information associated with the second terminal is obtained by the first terminal, and the target information is displayed, so that there is no need to view the target information in the second terminal, which can avoid the user from searching layer by layer in the second terminal, and improve the efficiency of the user viewing the target information. At the same time, when displaying the target information, the target information is displayed in the target display area that is not blocked, which can avoid the influence of the obstruction and view the complete target information. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a flowchart of the steps of the method for displaying information provided by an embodiment of the present application;
[0016] Figure 2 This is one of the schematic diagrams for displaying target information provided in the embodiments of the present application;
[0017] Figure 3 This is the second schematic diagram of displaying target information provided in the embodiment of the present application;
[0018] Figure 4 This is the third schematic diagram of displaying target information provided in the embodiment of the present application;
[0019] Figure 5 is an application schematic diagram of the method for displaying information in an embodiment of the present application;
[0020] Figure 6 is a structural block diagram of a device for displaying information provided in an embodiment of the present application;
[0021] Figure 7 This is one of the hardware structure diagrams of the electronic device provided in the embodiment of the present application;
[0022] Figure 8 This is the second schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] The following is a detailed description of the method for displaying information provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0026] like Figure 1 As shown, a method for displaying information provided by an embodiment of the present application includes:
[0027] Step 101: when a display screen of a first terminal is blocked by an obstruction, a target display area in the display screen that is not blocked by the obstruction is determined according to a target parameter value of the display screen.
[0028] In this step, the obstruction can form an obstruction effect on the display screen, so that the user cannot see the obstructed part. Specifically, the obstruction can be any object except the first terminal, such as other terminals, fingers, palms, books, etc. It is understandable that the obstruction can block the display screen by contact, such as placing the obstruction directly on the display screen, or the obstruction is in contact with the display screen and placed vertically and horizontally. Of course, the obstruction can also block the display screen without contacting the display screen. For example, the obstruction is placed at a position close to the display screen, and the display screen is blocked due to the small distance between the two (for example, 0.1 cm, but not limited to this).
[0029] The target parameter values of the display screen are different before and after being blocked by the blocking object. According to the target parameter value of the display screen or its change, the blocked area and the unblocked area can be determined.
[0030] Step 102: Display target information in the target display area.
[0031] In this step, the target information is information associated with the second terminal acquired by the first terminal when the distance between the first terminal and the second terminal is less than or equal to the target threshold. Here, the target information can be any information associated with the second terminal, for example, it can be information stored in the second terminal, or it can be information not stored in the second terminal but related to the second terminal. Accordingly, when acquiring the target information, the first terminal can acquire the target information directly from the second terminal, or it can acquire the target information from other devices that store information associated with the second terminal. Preferably, both the first terminal and the second terminal are provided with display screens, and the area of the display screen of the first terminal is larger than the area of the display screen of the second terminal. For example, the first terminal is a tablet computer with a larger screen size, and the second terminal is a mobile phone with a smaller screen size, but it is not limited to this. Figures 2 to 4 As shown, when the mobile phone 22 is placed on the left area 23 of the display screen of the tablet computer 21, the target information is displayed in the middle area 24 and the right area 25 of the display screen of the tablet computer 21. When the mobile phone 32 is placed on the middle area 34 of the display screen of the tablet computer 31, the target information is displayed in the left area 33 and the right area 35 of the display screen of the tablet computer 31. When the mobile phone 42 is placed on the right area 45 of the display screen of the tablet computer 41, the target information is displayed in the middle area 44 and the left area 43 of the display screen of the tablet computer 41.
[0032] In an embodiment of the present application, when the display screen of the first terminal is blocked by an obstruction, the target display area in the display screen that is not blocked by the obstruction is determined according to the target parameter value of the display screen. The first terminal can determine whether it is blocked by the target parameter value on the display screen. And when it is blocked by an obstruction, the target display area in the display screen that is not blocked by the obstruction is determined. The target information is displayed in the target display area; wherein the target information is the information associated with the second terminal acquired by the first terminal when the distance between the first terminal and the second terminal is less than or equal to the target threshold. That is to say, the first terminal will acquire the information of the second terminal whose distance value is less than or equal to the target threshold, and display the acquired information in the target display area that is not blocked by the obstruction. In an embodiment of the present application, the target information associated with the second terminal is acquired by the first terminal, and the target information is displayed, so that the target information does not need to be viewed in the second terminal, and the user can avoid searching layer by layer in the second terminal, thereby improving the efficiency of the user viewing the target information. At the same time, when displaying the target information, the target information is displayed in the target display area that is not blocked, so as to avoid the influence of the obstruction and view the complete target information.
[0033] Optionally, the obstruction includes a second terminal. In the above step 102: before displaying the target information in the target display area, the method further includes:
[0034] When the second terminal is placed on the display screen of the first terminal, a communication channel is established between the first terminal and the second terminal.
[0035] In this step, the obstruction is the second terminal, and the user can place the second terminal on the display screen of the first terminal, thereby triggering the two terminals to establish a communication channel. Among them, the first terminal can determine whether the second terminal is placed on the display screen of the first terminal by whether the second terminal exists within its communication distance. For example, the first terminal can detect other terminals whose distance values to itself are less than or equal to the target threshold. When other terminals are close to the first terminal and the distance to the first terminal is less than or equal to the target threshold, they will be detected by the first terminal and regarded as the detected terminal placed on the display screen of the first terminal. It can be understood that the target threshold can be the distance value between the first terminal and the second terminal when the second terminal is placed on the display screen of the first terminal. Therefore, when the user places the second terminal on the display screen of the first terminal, a communication channel between the first terminal and the second terminal will be established.
[0036] Of course, the target threshold can also be slightly larger than the above distance value, that is, the distance value between the first terminal and the second terminal when the second terminal is placed on the display screen of the first terminal. In this way, when the second terminal is very close to the first terminal, a communication channel between the two will be established, and the user can not only intuitively see which terminal has established a communication channel with the first terminal; at the same time, a communication channel between the two terminals can be established in more cases. Here, the first terminal and the second terminal establish a communication channel through their respective communication modules, and the distance detected by the first terminal from the second terminal is the distance between their respective communication modules.
[0037] The terminal identification of the second terminal is obtained through the communication channel.
[0038] In this step, each terminal has a unique terminal identifier, and a unique terminal, namely the second terminal, can be determined according to the terminal identifier of the second terminal. When the second terminal is a mobile phone, the terminal identifier can be a device identification code of the mobile phone.
[0039] Obtain information corresponding to the terminal identifier in the target database.
[0040] In this step, the target database pre-stores information associated with the second terminal indicated by the terminal identifier. For example, a large amount of information of different terminals can be pre-stored in the target database, and the terminal identifier can be used as an index. In this way, the information associated with the terminal indicated by the terminal identifier can be determined by the terminal identifier. Among them, the target database can be a local database of the first terminal or a cloud database. In other words, the target database can be established in the first terminal. The target database can also be established in a target server, wherein the first terminal can communicate with the target server through the Internet.
[0041] The information corresponding to the terminal identification is determined as the target information.
[0042] In this step, the information of each terminal in the target database is indexed by the terminal identifier, so the information associated with the terminal indicated by the terminal identifier, that is, the information associated with the second terminal, can be determined according to the terminal identifier.
[0043] In the embodiment of the present application, the user can place the second terminal whose information needs to be known on the display screen of the first terminal, so as to read the information associated with the second terminal on the first terminal, which can facilitate the user to quickly read the information associated with the second terminal.
[0044] like Figure 5 As shown, it is an application schematic diagram of the method for displaying information provided in an embodiment of the present application, including:
[0045] Step 501: Detect the second terminal and establish a communication channel with the second terminal. Specifically, the second terminal is placed on the display screen of the first terminal, and the first terminal detects the second terminal within its communication range and establishes a communication channel with the second terminal.
[0046] Step 502: Acquire the terminal identification of the second terminal, wherein the terminal identification may be a unique identification of the terminal, used to distinguish different terminals.
[0047] Step 503: Retrieve the target information of the second terminal in the information base, and retrieve the information corresponding to the terminal identifier in the information base according to the terminal identifier, that is, the target information of the second terminal. The information base pre-stores information of different terminals, with the terminal identifier as an index, and each index corresponds to the information of a terminal.
[0048] Step 504: Determine whether the target information is successfully retrieved, if so, execute step 505, if not, execute step 506.
[0049] Step 505: Determine the unblocked area and display the target information in the unblocked area. The first terminal detects the target display area in its display screen that is not blocked by the second terminal, and then uses the target display area to display the target information.
[0050] Step 506: Determine the unblocked area and display "No device information" in the unblocked area. The first terminal detects the target display area in its display screen that is not blocked by the second terminal, and then displays "No device information" in the target display area to remind the user that no information associated with the second terminal is found.
[0051] The method provided by the above-mentioned invention embodiment can be applied to sales scenarios, but is not limited thereto. For example, the first terminal is a tablet computer and the second terminal is a mobile phone. In the scenario of selling mobile phones, the shopping guide or the user places the mobile phone that needs to be known on the tablet computer, and then the information related to the mobile phone is displayed on the tablet computer. It should be noted that the second terminal can also directly send the target information to the first terminal, so that after the first terminal receives the target information, it does not need to query the target database.
[0052] Optionally, a first NFC (Near Field Communication) module is provided on the first terminal, and a second NFC module is provided on the second terminal;
[0053] Establishing a communication channel between a first terminal and a second terminal includes:
[0054] A communication channel is established between the first terminal and the second terminal through the first NFC module and the second NFC module.
[0055] It should be noted that after the first terminal and the second terminal establish a communication channel through the first NFC module and the second NFC module, information can be transmitted between the two terminals through the communication channel. The first NFC module and the second NFC module are both NFC modules that use NFC technology to achieve communication. Each NFC module can communicate with other NFC modules. It is understandable that other communication modules can also be set on the first terminal and the second terminal respectively to achieve communication between the two terminals, for example, radio frequency modules are set on the first terminal and the second terminal respectively, and radio frequency technology is used to achieve communication between the two terminals.
[0056] In the embodiment of the present application, the characteristics of NFC technology are utilized to facilitate communication between the first terminal and the second terminal, and the security of the communication process can also be improved.
[0057] Optionally, the information associated with the second terminal includes hardware information of the second terminal.
[0058] It should be noted that the hardware information of the second terminal may include the model of the terminal and the parameters of each functional module. For example, when the second terminal is a mobile phone, the hardware information may include: mobile phone memory, camera pixels, chip model, operating system related information, screen refresh rate, battery related information, etc. The operating system related information may be the name, version, update time, etc. of the operating system. The battery related information may be the battery capacity, supported charging methods, etc. It is understandable that in sales scenarios, the hardware information of the terminal is usually used as the main information displayed to customers. For example, in a mobile phone store, the hardware information of each mobile phone is displayed to customers for their reference.
[0059] In the embodiment of the present application, the hardware information of the second terminal is used as the target information and displayed on the display screen of the first terminal, so that the user can understand the hardware situation of the second terminal.
[0060] Optionally, the target parameter value includes a pressure value indicating the pressure borne by the display screen. It is understandable that when an obstruction is placed on the display screen and blocks the display screen, different areas on the display screen are subjected to different pressures due to the influence of the gravity of the obstruction. Based on this, the target display area that is not blocked by the obstruction can be determined. Specifically, a pressure sensor can be set under the display screen. When an obstruction is placed on the display screen, the pressure value of the pressure borne by the display screen detected by the pressure sensor will change due to the gravity of the obstruction. For example, the pressure value changes from zero to a non-zero value. The target display area is then determined based on the pressure value.
[0061] According to the target parameter value of the display screen, a target display area of the display screen that is not blocked by the blocking object is determined, including:
[0062] According to the pressure value of each position point in the display screen, at least one target position point having a pressure value less than or equal to a target pressure threshold is determined.
[0063] It should be noted that different position points in the display screen are position points with different coordinates in the display screen, and can also be understood as different positions in the display screen. Here, the target position point whose pressure value is less than or equal to the target pressure threshold can be regarded as a position point that is not pressed by the obstruction, that is, a position point that is not blocked by the obstruction. Specifically, position points corresponding to a preset number of coordinates in the display screen can be selected as pressure detection position points, and when detecting the pressure value of the pressure on the display screen, the pressure values of all pressure detection position points are detected, and then according to their respective pressure values, the pressure detection position points whose pressure values are less than or equal to the target pressure threshold are used as target position points. Among them, the target pressure threshold can be determined according to needs.
[0064] A display area corresponding to at least one target position point is determined as a target display area.
[0065] It should be noted that, in the display area corresponding to at least one target position point, there is no position point having a pressure value greater than the target pressure threshold.
[0066] In the embodiment of the present application, the unobstructed target display area in the display screen can be quickly and accurately determined by utilizing the pressure exerted on the display screen.
[0067] Optionally, the target parameter value includes a current value indicating that the display screen is touched by the conductor. It is understandable that the display screen of the first terminal is a capacitive screen, and when the conductor touches the display screen, the current value will change. The area of the conductor on the display screen can be determined by the change in the current value. For example, when we use a mobile phone with a capacitive screen, a finger touching the mobile phone screen will cause a current change, and then the mobile phone can determine the position touched by the finger based on the change in the current.
[0068] According to the target parameter value of the display screen, a target display area of the display screen that is not blocked by the blocking object is determined, including:
[0069] At least one target position point is determined according to the current value of the position touched by the conductor in the display screen, and the target position point includes a position point in the screen calculated according to the current value.
[0070] It should be noted that the display screen is a capacitive screen. When a conductor touches the display screen, it will cause a change in the current value, so the current value can be used to determine which position or area of the display screen the conductor touches. Based on this, when the part of the obstruction that contacts the display screen is a conductor, each position point where the obstruction contacts the display screen can be determined, that is, the target position point.
[0071] A display area corresponding to at least one target position point is determined as a target display area.
[0072] In the embodiment of the present application, the unobstructed target display area in the display screen can be quickly and accurately determined by utilizing the change in the current value caused by the conductor touching the display screen.
[0073] Optionally, sound waves or light can be used to detect whether the display screen of the first terminal is blocked, and the target display area that is not blocked if blocked. For example, ultrasonic waves or infrared rays can be emitted, and the situation that the display screen is blocked can be determined based on the received reflected ultrasonic waves or infrared rays, which will not be described in detail here.
[0074] In the embodiment of the present application, sound waves or light can be used to quickly and accurately detect whether the display screen is blocked.
[0075] It should be noted that the method for displaying information provided in the embodiments of the present application may be executed by a device for displaying information, or a control module in the device for displaying information for executing the method for displaying information. In the embodiments of the present application, the device for displaying information provided in the embodiments of the present application is described by taking the device for displaying information executing the method for displaying information as an example.
[0076] like Figure 6 As shown, the embodiment of the present application also provides a device for displaying information, the device comprising:
[0077] A determination module 61 is used to determine a target display area in the display screen that is not blocked by the blocker according to a target parameter value of the display screen when the display screen of the first terminal is blocked by the blocker;
[0078] The display module 62 is configured to display target information in the target display area, wherein the target information is information associated with the second terminal acquired by the first terminal when the distance between the first terminal and the second terminal is less than or equal to a target threshold.
[0079] Optionally, the shielding object includes a second terminal, and the device further includes:
[0080] A connection module, used to establish a communication channel between the first terminal and the second terminal when the second terminal is placed on the display screen of the first terminal;
[0081] A first acquisition module, used to acquire a terminal identification of a second terminal through a communication channel;
[0082] A second acquisition module, configured to acquire information corresponding to the terminal identifier in a target database, wherein the target database pre-stores information associated with the second terminal indicated by the terminal identifier;
[0083] The information module is used to determine the information corresponding to the terminal identifier as target information.
[0084] Optionally, a first near field communication module is provided on the first terminal, and a second near field communication module is provided on the second terminal;
[0085] The connection module is specifically used to establish a communication channel between the first terminal and the second terminal through the first near field communication module and the second near field communication module.
[0086] Optionally, the information associated with the second terminal includes hardware information of the second terminal.
[0087] Optionally, the target parameter value includes a pressure value indicating the pressure borne by the display screen, and the display module is specifically used to determine at least one target position point whose pressure value is less than or equal to the target pressure threshold value based on the pressure value borne by each position point in the display screen; and determine the display area corresponding to the at least one target position point as the target display area.
[0088] Optionally, the target parameter value includes a current value indicating that the display screen is touched by the conductor, and the display module is specifically used to determine at least one target position point based on the current value at the position touched by the conductor in the display screen, the target position point including a position point in the screen calculated based on the current value; and determine a display area corresponding to the at least one target position point as a target display area.
[0089] In an embodiment of the present application, when the display screen of the first terminal is blocked by an obstruction, the target display area in the display screen that is not blocked by the obstruction is determined according to the target parameter value of the display screen. The first terminal can determine whether it is blocked by the target parameter value on the display screen. And when it is blocked by an obstruction, the target display area in the display screen that is not blocked by the obstruction is determined. The target information is displayed in the target display area; wherein the target information is the information associated with the second terminal acquired by the first terminal when the distance between the first terminal and the second terminal is less than or equal to the target threshold. That is to say, the first terminal will acquire the information of the second terminal whose distance value is less than or equal to the target threshold, and display the acquired information in the target display area that is not blocked by the obstruction. In an embodiment of the present application, the target information associated with the second terminal is acquired by the first terminal, and the target information is displayed, so that the target information does not need to be viewed in the second terminal, and the user can avoid searching layer by layer in the second terminal, thereby improving the efficiency of the user viewing the target information. At the same time, when displaying the target information, the target information is displayed in the target display area that is not blocked, so as to avoid the influence of the obstruction and view the complete target information.
[0090] The device for displaying information in the embodiments of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiments of the present application.
[0091] The device for displaying information in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0092] The device for displaying information provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0093] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701, a memory 702, and a program or instruction stored in the memory 702 and executable on the processor 701. When the program or instruction is executed by the processor 701, each process of the above-mentioned method embodiment for displaying information is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0094] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0095] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0096] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810 and other components.
[0097] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0098] The processor 810 is configured to determine, when the display screen of the electronic device 800 is blocked by an obstruction, a target display area in the display screen that is not blocked by the obstruction according to a target parameter value of the display screen;
[0099] The display unit 806 is used to display target information in the target display area, wherein the target information is information associated with the second terminal acquired by the electronic device 800 when the distance between the electronic device 800 and the second terminal is less than or equal to a target threshold.
[0100] In the embodiment of the present application, when the display screen of the electronic device 800 is blocked by an obstruction, the target display area in the display screen that is not blocked by the obstruction is determined according to the target parameter value of the display screen. The electronic device 800 can determine whether it is blocked by the target parameter value on the display screen. And when it is blocked by an obstruction, the target display area in the display screen that is not blocked by the obstruction is determined. The target information is displayed in the target display area; wherein the target information is the information associated with the second terminal obtained by the electronic device 800 when the distance between the electronic device 800 and the second terminal is less than or equal to the target threshold. That is, the electronic device 800 will obtain the information of the second terminal whose distance value is less than or equal to the target threshold, and display the obtained information in the target display area that is not blocked by the obstruction. In the embodiment of the present application, the target information associated with the second terminal is obtained by the electronic device 800, and the target information is displayed, so that there is no need to view the target information in the second terminal, which can avoid the user from searching layer by layer in the second terminal, and improve the efficiency of the user viewing the target information. At the same time, when displaying the target information, the target information is displayed in the target display area that is not blocked, which can avoid the influence of the obstruction and view the complete target information.
[0101] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 809 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 810 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 810.
[0102] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned method embodiment for displaying information is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0103] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0104] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment for displaying information, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0105] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0106] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0108] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for displaying information, characterized in that: The method for displaying information comprises: In the case where the display screen of the first terminal is blocked by an obstruction, determining a target display area of the display screen that is not blocked by the obstruction according to a target parameter value of the display screen; displaying target information in the target display area, wherein the target information is information associated with the second terminal acquired by the first terminal when the distance between the first terminal and the second terminal is less than or equal to a target threshold; The target parameter value includes a pressure value indicating the pressure borne by the display screen, and determining a target display area of the display screen that is not blocked by the blocking object according to the target parameter value of the display screen includes: According to the pressure value of each position point in the display screen, determining at least one target position point whose pressure value is less than or equal to the target pressure threshold; Determine a display area corresponding to the at least one target location point as the target display area; The obstruction includes the second terminal, and before the target information is displayed in the target display area, the method further includes: When the second terminal is placed on the display screen of the first terminal, establishing a communication channel between the first terminal and the second terminal; Acquire a terminal identification of the second terminal through the communication channel; Acquire information corresponding to the terminal identifier in a target database, wherein the target database pre-stores information associated with the second terminal indicated by the terminal identifier; The information corresponding to the terminal identifier is determined as the target information.
2. The method for displaying information according to claim 1, characterized in that: The first terminal is provided with a first near field communication module, and the second terminal is provided with a second near field communication module; The establishing a communication channel between the first terminal and the second terminal includes: A communication channel is established between the first terminal and the second terminal through the first near field communication module and the second near field communication module.
3. The method for displaying information according to claim 1, characterized in that: The target parameter value also includes a current value indicating that the display screen is touched by a conductor. According to the target parameter value of the display screen, determining a target display area of the display screen that is not blocked by the blocking object includes: Determine at least one target position point according to the current value of the position touched by the conductor in the display screen, wherein the target position point includes a position point in the display screen calculated according to the current value; A display area corresponding to the at least one target location point is determined as the target display area.
4. A device for displaying information, characterized in that: The device for displaying information comprises: A determination module, configured to determine, when a display screen of the first terminal is blocked by an obstruction, a target display area in the display screen that is not blocked by the obstruction according to a target parameter value of the display screen; A display module, configured to display target information in the target display area, wherein the target information is information associated with the second terminal acquired by the first terminal when the distance between the first terminal and the second terminal is less than or equal to a target threshold; The target parameter value includes a pressure value indicating the pressure borne by the display screen, and the display module is specifically used to determine at least one target position point whose pressure value is less than or equal to the target pressure threshold value according to the pressure value borne by each position point in the display screen; and determine the display area corresponding to the at least one target position point as the target display area; The shielding object includes the second terminal, and the device further includes: a connection module, configured to establish a communication channel between the first terminal and the second terminal when the second terminal is placed on the display screen of the first terminal; A first acquisition module, configured to acquire a terminal identification of the second terminal through the communication channel; A second acquisition module, configured to acquire information corresponding to the terminal identifier in a target database, wherein the target database pre-stores information associated with a second terminal indicated by the terminal identifier; An information module is used to determine the information corresponding to the terminal identifier as the target information.
5. The device for displaying information according to claim 4, characterized in that: The first terminal is provided with a first near field communication module, and the second terminal is provided with a second near field communication module; The connection module is specifically configured to establish a communication channel between the first terminal and the second terminal through the first near field communication module and the second near field communication module.
6. The device for displaying information according to claim 5, characterized in that: The target parameter value includes a current value indicating that the display screen is touched by a conductor. The display module is specifically used to determine at least one target position point according to the current value of the position in the display screen touched by the conductor, and the target position point includes a position point in the display screen calculated according to the current value; and the display area corresponding to the at least one target position point is determined as the target display area.
7. An electronic device, characterized in that: The method comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for displaying information as described in any one of claims 1 to 3.
