CN116033069A - Notification message display method, electronic device and computer readable storage medium - Google Patents

Notification message display method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN116033069A
CN116033069A CN202210840293.9A CN202210840293A CN116033069A CN 116033069 A CN116033069 A CN 116033069A CN 202210840293 A CN202210840293 A CN 202210840293A CN 116033069 A CN116033069 A CN 116033069A
Authority
CN
China
Prior art keywords
information
notification message
riding
electronic equipment
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210840293.9A
Other languages
Chinese (zh)
Other versions
CN116033069B (en
Inventor
李前国
黄龙
丁勇
章里鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210840293.9A priority Critical patent/CN116033069B/en
Publication of CN116033069A publication Critical patent/CN116033069A/en
Application granted granted Critical
Publication of CN116033069B publication Critical patent/CN116033069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a notification message display method, electronic equipment and a computer readable storage medium. The display method of the notification message comprises the following steps: detecting a first operation of opening a riding code of the electronic equipment under the condition that the electronic equipment is located in an inbound area; in response to the first operation, determining that information of the network device accessed by the electronic device matches information of the network device of the riding line under the condition that the electronic device is located outside the inbound area; because the information of the network equipment accessed by the electronic equipment reflects the position of the electronic equipment, the matching of the information of the network equipment accessed by the electronic equipment and the information of the network equipment of the riding line can determine that the electronic equipment is on the riding line, and the accuracy of determining the riding state is improved. And then, displaying a first notification message on a display interface of the electronic equipment to indicate that the user is in a riding state, so that the riding state displayed on the electronic equipment is consistent with the actual riding state of the user, and the user experience is improved.

Description

Notification message display method, electronic device and computer readable storage medium
Technical Field
The present invention relates to the field of terminals, and in particular, to a notification message display method, an electronic device, and a computer-readable storage medium.
Background
In the riding process of the user, the electronic equipment displays the riding state on the display interface, so that the shortcut operation of opening the corresponding application program or designating the page can be executed according to the operation of the user on the display interface, and convenience can be provided for the user. However, the existing method for judging the riding state of the user is not accurate enough, and a certain deviation exists between the riding state displayed on the display interface and the actual riding behavior of the user, so that the user experience is affected.
Disclosure of Invention
The application provides a notification message display method, electronic equipment and a computer readable storage medium, which are used for improving the accuracy of determining the riding state of a user.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, a method for displaying a notification message is provided, including:
detecting a first operation of opening a riding code under the condition that electronic equipment is located in an inbound area, and responding to the first operation, and determining that information of network equipment accessed by the electronic equipment is matched with information of network equipment of a riding line under the condition that the electronic equipment is located outside the inbound area; and displaying a first notification message on a display interface of the electronic equipment, wherein the first notification message is used for indicating that the user is in a riding state.
In the above embodiment, since the information of the network device to which the electronic device is connected reflects the position where the electronic device is located, by determining that the information of the network device to which the electronic device is connected is matched with the information of the network device of the riding line, it can be determined that the electronic device is on the riding line, thereby improving accuracy of determining the riding state, and according to the determined riding state, displaying the first notification message for representing the riding state on the display interface, so that the riding state displayed on the electronic device is consistent with the actual riding state of the user, and improving user experience.
Optionally, determining that the information of the network device accessed by the electronic device matches the information of the network device of the bus line includes: determining a departure station where the inbound area is located; if the information of the network equipment accessed by the electronic equipment is consistent with the information of the first network equipment, determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the bus taking line, wherein the first network equipment is the network equipment of any station on the bus taking line except the departure station.
In the above embodiment, if the information of the network device accessed by the electronic device is matched with the network device of any station other than the departure station on the riding line, it is indicated that the electronic device leaves the departure station and is located on the riding line, and further it can be indicated that the information of the network device accessed by the electronic device is matched with the information of the network device on the riding line, so that it can be determined that the user is in the riding state, and accuracy of determining the riding state is improved.
Optionally, determining that the information of the network device accessed by the electronic device matches the information of the network device of the bus line includes: if the information of the network equipment accessed by the electronic equipment is consistent with the information of the network equipment of at least two stations on the riding line in sequence within the preset duration, determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the riding line.
In the above embodiment, if the information of the network device accessed by the electronic device is sequentially consistent with the information of the network devices of at least two stations on the riding line within the preset time period, it is indicated that the electronic device is located on the riding line and the electronic device is in a motion state, so that it is indicated that the user is riding.
Optionally, after the first notification message is displayed on the display interface of the electronic device, the method further includes:
and responding to the operation of clicking the first notification message, and displaying the riding code on the display interface, so that a user can conveniently and quickly enter a riding code page, operation steps are saved, and user experience is improved.
Optionally, after the first notification message is displayed on the display interface of the electronic device, the method further includes:
Detecting a second operation of opening the ride; and responding to the second operation, and under the condition that the information of the network equipment accessed by the electronic equipment is not matched with the information of the network equipment of the bus taking line, not displaying the first notification message on the display interface, namely, after the user is determined to leave the bus taking line, not displaying the notification message, so that the interference of the display interface displaying too many notification messages to the user is avoided.
Optionally, after the first notification message is displayed on the display interface of the electronic device, the method further includes:
detecting a third operation of opening the riding code under the condition that the electronic equipment enters an outbound area;
and responding to the third operation, and under the condition that the information of the network equipment accessed by the electronic equipment indicates that the electronic equipment is positioned outside the outbound area, not displaying the first notification message on the display interface, namely not displaying the notification message after the user is determined to finish riding, so that the interference caused by displaying too many notification messages on the display interface to the user is avoided.
Optionally, the method further comprises:
uploading information of the network equipment accessed by the electronic equipment in a preset period to a server, wherein the information of the network equipment accessed by the electronic equipment in the preset period is used for updating the information of the network equipment of the riding line, so that the electronic equipment can receive the updated information of the network equipment of the riding line, and the accuracy of determining the riding state cannot be influenced when the information of the network equipment of the riding line changes.
Optionally, before the uploading the information of the network device accessed by the electronic device to the server in the preset period, the method further includes:
responding to the first operation, and collecting information of network equipment accessed by the electronic equipment;
when a termination condition is met, the acquired information of the network equipment accessed by the electronic equipment is used as the information of the network equipment accessed by the electronic equipment within the preset period, and the termination condition comprises that the set duration is reached or the operation of opening the riding code is detected again, so that the accuracy of the acquired information of the network equipment can be improved.
Optionally, the method further comprises:
and under the condition that the electronic equipment is positioned in the inbound area, displaying a second notification message on the display interface, wherein the second notification message is used for displaying a website where the inbound area is positioned, so that a user can know the riding condition in time conveniently.
Optionally, the method further comprises:
and responding to the operation of clicking the second notification message, and displaying the riding code on the display interface, so that the efficiency of entering a riding code page is improved.
In a second aspect, there is provided a display device of a notification message, including:
The detection module is used for detecting a first operation of opening a riding code of the electronic equipment under the condition that the electronic equipment is located in an inbound area;
the matching module is used for responding to the first operation, and determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the riding line under the condition that the electronic equipment is positioned outside the station entering area;
the display module is used for displaying a first notification message on a display interface of the electronic equipment, wherein the first notification message is used for indicating that a user is in a riding state.
Optionally, the matching module is specifically configured to:
determining a departure station where the inbound area is located;
if the information of the network equipment accessed by the electronic equipment is consistent with the information of the first network equipment, determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the bus taking line, wherein the first network equipment is the network equipment of any station on the bus taking line except the departure station.
Optionally, the matching module is specifically configured to:
if the information of the network equipment accessed by the electronic equipment is consistent with the information of the network equipment of at least two stations on the riding line in sequence within the preset duration, determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the riding line.
Optionally, the display module is further configured to:
and responding to the operation of clicking the first notification message, and displaying the riding code on the display interface.
Optionally, the display module is further configured to:
detecting a second operation of opening the ride;
and responding to the second operation, and if the information of the network equipment accessed by the electronic equipment is not matched with the information of the network equipment of the bus line, not displaying the first notification message on the display interface.
Optionally, the display module is further configured to:
detecting a third operation of opening the riding code under the condition that the electronic equipment enters an outbound area;
and responding to the third operation, and if the information of the network equipment accessed by the electronic equipment indicates that the electronic equipment is positioned outside the outbound area, not displaying the first notification message on the display interface.
Optionally, the device further includes an uploading module, where the uploading module is configured to upload information of the network device accessed by the electronic device in a preset period of time to a server, and the information of the network device accessed by the electronic device in the preset period of time is used to update information of the network device of the riding line.
Optionally, the uploading module is further configured to:
responding to the first operation, and collecting information of network equipment accessed by the electronic equipment;
and when the termination condition is met, taking the acquired information of the network equipment accessed by the electronic equipment as the information of the network equipment accessed by the electronic equipment within the preset period, wherein the termination condition comprises the operation of reaching a set duration or detecting the opening of the riding code again.
Optionally, the display module is further configured to:
and displaying a second notification message on the display interface under the condition that the electronic equipment is located in the inbound area, wherein the second notification message is used for displaying a site where the inbound area is located.
Optionally, the display module is further configured to:
and responding to the operation of clicking the second notification message, and displaying the riding code on the display interface.
In a third aspect, there is provided an electronic device comprising a processor for executing a computer program stored in a memory to implement the method of displaying a notification message as described in the first aspect above.
In a fourth aspect, there is provided a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for displaying a notification message according to the first aspect.
In a fifth aspect, a chip is provided, the chip including a processor, the processor being coupled to a memory, the processor executing a computer program or instructions stored in the memory to implement the method for displaying a notification message as described in the first aspect above.
In a sixth aspect, there is provided a computer program product for causing a terminal device to execute the method of displaying a notification message as described in the first aspect above when the computer program product is run on the terminal device.
It will be appreciated that the advantages of the second to sixth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
Fig. 1 is a schematic diagram of a display interface in a scene of entering an inbound area according to an embodiment of the present application;
FIG. 2 is a scene graph showing a notification message provided by an embodiment of the present application;
FIG. 3 is another scene graph showing a notification message provided by an embodiment of the present application;
FIG. 4 is a scene graph showing a ride code on a display interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a display interface in a riding status scenario according to an embodiment of the present disclosure;
FIG. 6 is a scene graph showing a ride code on a display interface according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a display interface after deleting a notification message according to an embodiment of the present application;
fig. 8 is a scene diagram for starting subway travel functions provided in the embodiment of the present application;
fig. 9 is a scene diagram for setting subway travel functions provided in the embodiment of the present application;
FIG. 10 is a flowchart of a method for displaying notification messages according to an embodiment of the present application;
fig. 11 is a coverage schematic diagram of a network device according to an embodiment of the present application;
FIG. 12 is a flowchart illustrating a method for displaying a notification message according to an embodiment of the present application;
FIG. 13 is a software architecture block diagram of an electronic device of an embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application, the terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
By way of example, the electronic device described in embodiments of the present application may be a cell phone, tablet, handheld computer, personal digital assistant (personal digital assistant, PDA), augmented reality (augmente)d reality, AR) \virtual reality (VR) devices, media players, wearable devices, and the like, which can be held/operated by a single hand, the specific form/type of the electronic device is not particularly limited in the embodiments of the present application. The electronic device includes but is not limited to a mounted device
Figure BDA0003748714710000051
Hong Mongolian System (Harmony OS) or other operating system devices.
In order to improve convenience of riding (e.g. taking a subway, taking a train) of a user, the electronic device displays corresponding notification messages on the display interface according to riding states (e.g. in-coming, out-coming) of the user. When the operation of clicking the notification message by the user is detected, the user can jump to an interface (such as a riding code interface and a ticket two-dimensional code interface) required by the user, and the user does not need to open the corresponding page or other application programs again.
For example, taking an electronic device as a mobile phone, when a user takes a subway, if the mobile phone detects that the mobile phone enters an inbound area, an inbound notification message is displayed on a display interface. When the user clicks the incoming notification message, the mobile phone displays the riding code on the display interface. After detecting that the display interface displays the riding code, if the mobile phone determines that the user turns the wrist to sweep the code according to the motion state of the mobile phone, or when detecting that the user turns the wrist and has walking or running motion behaviors, the mobile phone determines that the user starts riding. When it is determined that the user starts riding and the riding code is closed, the mobile phone switches the incoming notification message displayed on the display interface to the notification message that the user is riding. And then, when the user clicks the notification message of riding, the mobile phone displays the riding code again on the display interface. After detecting that the display interface displays the riding code, the mobile phone determines that the user turns the wrist to sweep the code according to the motion state of the mobile phone, determines that the user goes out of the station, and does not display the notification message of riding on the display interface.
However, the accuracy of the operation of determining the user to open the riding code, the wrist turning action and the determination of the movement behavior of the user is not high, so that a certain deviation exists between the riding state of the user determined by the mobile phone according to the information and the actual riding behavior of the user, the situation that the information of riding is displayed when the user is not riding or the information of not riding is displayed when the user is riding, and the user experience is affected is caused.
Therefore, the application provides a display method of notification messages, wherein the information of network equipment accessed by electronic equipment is matched with the information of network equipment of a riding line, and the operation information of a user determines whether the user is riding, and the riding state is displayed on a display interface when the user is riding. Because the information of the network equipment accessed by the electronic equipment reflects the position of the electronic equipment, the accuracy of the user riding state determined by the method provided by the application is higher, and the probability of deviation between the riding state displayed on the display interface and the actual riding behavior of the user is reduced.
An exemplary description is given below of a method for displaying a notification message provided in the present application.
Firstly, taking subway riding of a user and taking mobile phones as an example, an application scene of the notification message display method provided by the embodiment of the application is introduced.
As shown in fig. 1, when the mobile phone turns on the "subway trip" function, if it is detected that the mobile phone is located in the entrance area, a second notification message 11 is displayed on the display interface. The second notification message 11 may display "already-arrived" or may display a site where the inbound area is located, for example, as shown in fig. 1, and the second notification message 11 displays the current site "sakaguchi station". The handset may also display on the second notification message 11 the category of ride code determined according to the habit of the user. The mobile phone may display the type of the last car taking code used by the user, or may display the type of the car taking code used by the user for the largest number of times in a preset period of time. For example, the category of the last car code used by the user is
Figure BDA0003748714710000052
The mobile phone displays a "payment treasure subway train taking code" on the second notification message 11.
According to the category of the display interface, the mobile phone can display the second notification message on the display interface in a card, a floating window or a notification mode. For example, as shown in fig. 1, the display interface is a main page, and the mobile phone displays the second notification message 11 on the display interface in the form of a card. As shown in fig. 2, the display interface is a page of the application program, and the mobile phone displays the second notification message in the form of a floating window 21. As shown in fig. 3, the display interface is a lock screen page, and the mobile phone displays a second notification message on the notification bar 31.
As shown in fig. 4, when detecting the operation of clicking the second notification message by the user, the mobile phone jumps to the riding code interface associated with the second notification message (for example, jumps to the interface where the riding code is located, which is consistent with the category of the riding code displayed on the second notification message), that is, the riding code is displayed on the display interface, so that the function of entering the riding code by one key can be realized, the efficiency of opening the riding code is improved, and the user can get in after sweeping the code.
And the mobile phone determines whether the information of the network equipment accessed by the mobile phone is matched with the pre-stored information of the network equipment of the riding line under the condition that the mobile phone detects that the user opens the riding code and that the mobile phone is positioned outside the entering area. As shown in fig. 5, if the mobile phone determines that the user is in a riding state according to the matching result, and detects that the user is in a return operation of the riding code interface, the second notification message displayed on the display interface is switched to the first notification message 51. The first notification message 51 may display "in bus", or may display a city where a subway is located, for example, "Shenzhen subway", or may display an identification of a station where the subway is currently located. The mobile phone may also display the category of the ride code on the first notification message 51 according to the habit of the user.
The mobile phone may display the first notification message 51 on the display interface in the form of a card as shown in fig. 5, or may display the first notification message on the display interface in the form of a floating window or a notification bar, similar to the second notification message, according to the category of the display interface.
As shown in fig. 6, when detecting the operation of clicking the first notification message by the user, the mobile phone displays the riding code associated with the first notification message on the display interface, so that the mobile phone can enter the riding code page by one key, and can go out after scanning the code.
As shown in fig. 7, in an embodiment, if the mobile phone is determined to be located outside the outbound area when detecting that the user opens the riding code, the first notification message is not displayed on the display interface.
According to the notification message display method, whether the user takes the bus or not is determined by determining whether the information of the network equipment accessed by the mobile phone is matched with the information of the network equipment of the bus taking line, and then the corresponding bus taking state is displayed on the display interface, so that accuracy of determining the bus taking state is improved.
The subway trip function can be actively started by a user. For example, as shown in fig. 8, the mobile phone displays services supported by "YOYO advice" such as "flight travel", "subway travel", "high-speed rail travel", "calendar", and the like on the display interface in response to an operation of opening "yoyoyo advice" by the user. If the mobile phone detects clicking operation of 'subway travel', a service management interface of subway travel as shown in fig. 9 is opened. And if the click on the switch control of the subway trip is detected in the service management interface of the subway trip, starting the function of the subway trip. In the subway trip service interface, a 'floating window', 'card set', 'notification' and other service providing modes can be displayed, and the mobile phone is used for displaying a first notification message and a second notification message on the display interface according to the service providing mode selected by the user. For example, the mobile phone responds to the operation of clicking the switch controls of the floating window, the card set and the notification by the user, and when the information of the network equipment accessed by the mobile phone is determined to be matched with the pre-stored information of the network equipment of the bus line, the first notification message is displayed on the display interface in different forms according to the page currently displayed on the display interface.
Under the condition that a user actively starts a subway trip function, the mobile phone starts to acquire information or position information of network equipment accessed by the mobile phone, and whether the mobile phone enters an inbound area is determined.
The subway trip function can also be automatically started by the mobile phone. For example, when the mobile phone is in a preset period or the mobile phone is detected to be located at a preset position, whether to enter an inbound area is determined according to information or position information of network equipment accessed by the mobile phone.
In an exemplary embodiment, the mobile phone may determine, according to a pre-counted behavior habit of the user, a preset period of time for the user to take a subway or a preset position for the user to take a subway, and determine whether the user enters the inbound area when the preset period of time or the mobile phone is at the preset position.
In order to better understand the display method of the notification message provided by the embodiment of the application, the specific implementation procedure of the notification message is described in the following way.
As shown in fig. 10, the method for displaying a notification message according to an embodiment of the present application includes:
s1001: in the case that an electronic device is located in an inbound area, a first operation of opening a ride code of the electronic device is detected.
The electronic equipment can acquire the position information of the electronic equipment, and if the position information is consistent with the position of the station entering gate acquired in advance, the electronic equipment is determined to be positioned in the station entering area. The electronic device can also acquire the information of the network device accessed by the electronic device, and if the information of the network device accessed by the electronic device is consistent with the information of the network device nearby the inbound gate, the electronic device is determined to be located in the inbound area.
In an embodiment, the electronic device stores in advance position information of an inbound area and an outbound area of a usual riding station or information of a network device. For example, a preset application (e.g., "YOYO advice") installed on the electronic device downloads location information of the inbound and outbound areas or information of the network device from the server at a time period set by the user or the electronic device is powered on. And then, under the condition that the subway trip function is started, if the electronic equipment detects that the position information is consistent with the position information of one of the entering areas, or the information of the network equipment accessed by the electronic equipment is consistent with the network equipment information of one of the entering areas, determining that the electronic equipment enters the entering area. The network device information may be identification information of the base station or wireless fidelity (Wireless Fidelity, WIFI), such as the number or location of the base station, the internet protocol address of WIFI (Internet Protocol Address), and so on.
In another embodiment, the electronic device may also detect location information of the electronic device or information of the accessed network device when the preset application is started, and upload the location information or the information of the accessed network device to the server. The server determines whether the electronic equipment enters an inbound area according to the position information of the electronic equipment or the information of the accessed network equipment, and sends the information entering the inbound area to the electronic equipment under the condition that the electronic equipment is determined to enter the inbound area.
And the electronic equipment detects whether a user triggers a first operation of opening the riding code under the condition that the electronic equipment enters the inbound area.
In an embodiment, as shown in fig. 1 to 4, the electronic device displays the second notification message on the display interface after detecting that the electronic device is located in the inbound area, and when detecting that the user clicks the second notification message, the electronic device displays the ride code on the display interface according to the ride code link associated with the second notification message. The riding code link is used for opening the corresponding riding code, and the riding code corresponding to the riding code link can be set by a user or can be determined according to the use habit of the user. For example, the ride code displayed on the display interface is the last ride code used by the user, or the most used ride code by the user in the preset time period. The electronic device may determine that the electronic device opens the ride code when detecting an operation of the user clicking the second notification message.
In another embodiment, the user may enter an application where the ride is located to open the ride. Correspondingly, the electronic device can determine that the first operation of opening the riding code of the electronic device is detected when the activity of the page displayed on the display interface is detected to be consistent with the activity of the riding code page.
S102: and in response to the first operation, determining that the information of the network device accessed by the electronic device is matched with the information of the network device of the bus line under the condition that the electronic device is located outside the station entering area.
Specifically, if the first operation is detected, the user can be determined to ride by brushing the code, and further whether the user rides or not can be determined according to the information of the network device accessed by the electronic device under the condition that the electronic device is located outside the inbound area.
In an embodiment, in the event that a ride code is detected that turns on the electronic device, the user swipes the code for riding is determined. In another embodiment, the user swipes the code for riding is determined when the electronic device is detected to open the code for riding and the wrist turning action of the user is detected. The electronic device may determine that the wrist turning motion is detected when the detected motion state of the electronic device is consistent with a preset motion state, for example, when the electronic device is detected to rotate in a preset direction and the rotation angle is within a preset range, the wrist turning motion is determined to be detected.
After the user is determined to drive by the bus by brushing the codes, the electronic equipment determines whether the electronic equipment is located in an inbound area according to the position information of the electronic equipment or the information of the accessed network equipment. If the electronic equipment is determined to be located in the inbound area, continuing to display the riding code page on the display interface, or continuing to display a second notification message on the display interface when the riding code page detects a return operation.
If the electronic equipment is determined to be located outside the inbound area, whether the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the bus line or not is determined.
Specifically, as shown in fig. 11, the network devices of the bus line refer to network devices near each station on the bus line, each corresponding to a coverage area (in a circular area in the figure). After the location of the network device is fixed, the corresponding coverage area can be determined. The electronic device can access the corresponding network device in each coverage area. It is understood that when an electronic device is located in a region of overlap of two or more coverage areas, the corresponding two or more network devices may be accessed. Therefore, the coverage area of the electronic equipment can be determined according to the information of the network equipment accessed by the electronic equipment, and the position of the electronic equipment can be determined. Thus, the matching of the information of the network device to which the electronic device is connected with the information of the network device of the riding line may reflect whether the electronic device is located on the riding line and whether the electronic device is moving on the riding line.
For example, if it is detected that the information of the network device to which the electronic device is connected is identical to the information of the a network device, it is determined that the electronic device is located in the area (i.e., coverage area) a, and if the a network device is located in the inbound area, it is determined that the electronic device is located in the inbound area. If the information of the network equipment accessed by the electronic equipment is detected to be consistent with the information of the network equipment B, the electronic equipment is determined to be positioned in the area B, and if the network equipment B is positioned at one station on the riding line, the electronic equipment is determined to be positioned on the riding line. If the information of the network equipment accessed by the electronic equipment is detected to be consistent with the information of the network equipment C, the electronic equipment is determined to be positioned in the area C, and if the network equipment C is positioned in the outbound area, the electronic equipment is determined to be positioned in the outbound area.
The step of determining whether the information of the network device to which the electronic device has access matches the information of the network device of the bus tie may be performed by the electronic device. Specifically, the electronic device stores network device information of each station on the usual riding line in advance. For example, during a period of time when the electronic device is powered on or set by a user, a preset application program (e.g., "yoyoyo advice") installed on the electronic device downloads network device information for each site on a common riding line from a server. And then, determining whether the network equipment information accessed by the electronic equipment is matched with the prestored network equipment information of each station on the common riding line.
In one embodiment, the electronic device first determines a station associated with the inbound area, that is, a station where the inbound area is located, where the station is a departure station. If the information of the network device accessed by the electronic device is consistent with the information (first network information) of the network device of any station except the departure station on the riding line, determining that the information of the network device accessed by the electronic device is matched with the information of the network device of the riding line. For example, after determining the departure station, information of network devices of stations other than the departure station on one or more riding lines where the departure station is located is determined. If the information of the network equipment accessed by the electronic equipment is consistent with the information of the network equipment of one of the sites, determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the bus taking line. For example, the departure site where the inbound area is located is "sakagu", the riding line where "sakagu" is located is line 5, each site on line 5 except "sakagu" is "five sums", "civil control", "Yang Mei", etc., and if it is detected that the information of the network device accessed by the electronic device is identical to the information of the network device of "five sums", it is determined that the information of the network device accessed by the electronic device is matched with the information of the network device of the riding line.
The network information accessed by the electronic equipment reflects the position of the electronic equipment, and if the information of the network equipment accessed by the electronic equipment is consistent with the information of the network equipment of any station except the departure station on the riding line, the electronic equipment is indicated to leave the departure station and be positioned on the riding line, and then the vehicle is indicated to be started.
In another embodiment, if the information of the network device accessed by the electronic device is sequentially consistent with the information of the network devices of at least two stations on the bus line within the preset time period, it is determined that the information of the network device accessed by the electronic device is matched with the information of the network device on the bus line. In an exemplary embodiment, a departure station where an arrival area is located is first determined, a bus route is determined from the departure station, and information of network devices of stations on the bus route is further determined. And then starting timing, and if the information of the network equipment accessed by the electronic equipment is consistent with the information of the network equipment of at least two stations on the riding line in sequence within the preset duration (for example, 10 minutes), determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment on the riding line. For example, it is determined that the riding line is line 5, and if the information of the network device accessed by the electronic device is sequentially consistent with the information of the network devices of "five and" civil engineering ", it is determined that the information of the network device accessed by the electronic device matches the information of the network device of the riding line within 10 minutes.
The network information accessed by the electronic equipment reflects the position of the electronic equipment, and if the information of the network equipment accessed by the electronic equipment is consistent with the information of the network equipment of at least two stations on the riding line in sequence within the preset time length, the electronic equipment is indicated to move on the riding line, and then the vehicle is indicated to be in a motion state.
In other possible implementations, the step of determining whether the information of the network device to which the electronic device has access matches the information of the network device of the ride line may be performed by a server. Specifically, the electronic device detects information of the network device accessed by the electronic device and uploads the information of the network device accessed by the electronic device to the server under the condition that the electronic device is determined to leave the inbound area. And the server determines whether the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the bus line or not, and sends a matching result to the electronic equipment.
S1003: and displaying a first notification message on a display interface of the electronic equipment, wherein the first notification message is used for indicating that a user is in a riding state.
Specifically, when the information of the network device accessed by the electronic device matches the information of the network device of the riding line, it is indicated that the electronic device moves on the riding line, and further it is indicated that the user is riding, and the first notification message is displayed on the display interface. As shown in fig. 5, the electronic device may display "in-car" on the first notification message 51, or may display a city where a subway is located, for example, "shenzhen subway". It can be understood that if the display interface displays the second notification message before determining whether the information of the network device accessed by the electronic device matches the information of the network device on the bus line, after determining whether the information of the network device accessed by the electronic device matches the information of the network device on the bus line, the second notification message is switched to the first notification message, that is, the second notification message is deleted or hidden on the display interface, and the first notification message is displayed.
In an embodiment, the electronic device may also determine, according to information of the network device currently accessed, a current site or a site interval, and display, in the first notification message, an identifier of the current site or an identifier of the site interval. For example, if it is detected that the information of the network information currently accessed by the electronic device is consistent with the information of the network device of the "five-sum" station, the "current station five-sum" is displayed in the first notification message. For another example, if it is detected that the information of the network information currently accessed by the electronic device is consistent with the information of the network devices of the "five-and-station" and the "civil-control" station, and the riding direction is determined to be the direction from the "five-and-station to the" civil-control "station according to the departure station, the" five-and-civil-control "is displayed in the first notification message, so that the user can know the running state of the vehicle through the electronic device conveniently.
In an embodiment, the electronic device may also display the speed information of the vehicle in the first notification message according to the speed information collected by the sensor on the electronic device.
The electronic device may display the first notification message 51 on the display interface in the form of a card as shown in fig. 5, or may display the first notification message 51 on the display interface in the form of a floating window or a notification bar.
In an embodiment, when the electronic device detects that the user clicks the first notification message, the riding code is displayed on the display interface, so that the user can conveniently swipe the code and go out.
In the above embodiment, whether the user takes the bus is determined by determining whether the information of the network device accessed by the electronic device is matched with the information of the network device of the bus taking line, so that the corresponding bus taking state is displayed on the display interface, and the accuracy of determining the bus taking state is improved.
In an embodiment, the method for displaying a notification message provided in the embodiment of the present application further includes: if the information of the network equipment accessed by the electronic equipment is not matched with the information of the network equipment of the riding line, the first notification message is not displayed.
Optionally, before determining whether the information of the network device accessed by the electronic device matches the information of the network device of the bus line, the display interface of the electronic device displays a second notification message, and if the information of the network device accessed by the electronic device does not match the information of the network device of the bus line, the electronic device continues to display the second notification message.
In an embodiment, after determining whether the information of the network device accessed by the electronic device is matched with the information of the network device of the riding line, if the information of the network device accessed by the electronic device cannot be matched with the information of the network device of the riding line within a preset time, which indicates that the user is not riding, the second notification message on the display interface is hidden or deleted, so that the second notification message is not displayed on the display interface, and interference caused by displaying too many messages to the user is avoided.
In an embodiment, after the first notification message is displayed on the display interface of the electronic device, if the second operation of opening the riding code again is detected, and the information of the network device accessed by the electronic device is detected to be not matched with the information of the network device of the riding line, which indicates that the electronic device leaves the riding line, that is, the user is not in the riding state, the first notification message is hidden or deleted, so that the first notification message is not displayed on the display interface.
In an embodiment, after the first notification message is displayed on the display interface of the electronic device, if the third operation of opening the riding code again is detected under the condition that the electronic device enters the outbound area according to the information of the network device to which the electronic device is connected or according to the position information of the electronic device, and the electronic device is determined to be located outside the outbound area according to the information of the network device to which the electronic device is connected, the first notification message on the display interface is hidden or deleted, so that the first notification message is not displayed on the display interface.
The electronic device may determine that the electronic device opens the ride code when detecting an operation of clicking the second notification message by the user. And when the activity of the page displayed on the display interface is detected to be consistent with the activity of the riding code page, the electronic equipment can be determined to open the riding code.
In an embodiment, if the third operation of opening the riding code again and the action of turning the wrist of the user are detected and the electronic device is determined to leave the outbound area according to the information of the network device accessed by the electronic device, the first notification message is not displayed on the display interface under the condition that the electronic device is determined to enter the outbound area according to the information of the network device accessed by the electronic device or according to the position information of the electronic device, so that the accuracy of determining the riding state can be further improved.
As shown in fig. 12, the flow of the method for displaying a notification message according to an embodiment of the present application is as follows:
under the condition that the subway travel function is started, the electronic equipment determines whether the electronic equipment is located in an inbound area. If the electronic equipment is located outside the inbound area, the electronic equipment continues to detect whether the electronic equipment is located in the inbound area in real time or at intervals. If the electronic equipment is determined to be located in the inbound area, displaying a second notification message on the display interface, wherein the second notification message is used for displaying a site where the inbound area is located. And then, determining whether the electronic equipment is positioned outside the inbound area, if the electronic equipment is still positioned outside the inbound area, continuing to display the second notification message, and if the electronic equipment is positioned outside the inbound area, determining whether the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the riding line. And if the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the riding line, displaying a first notification message on a display interface, wherein the first notification message is used for indicating that the user is riding. If the information of the network equipment accessed by the electronic equipment is not matched with the information of the network equipment of the riding line, determining that the user is not riding, and ending the flow.
In the above embodiment, whether the user takes the bus is determined according to whether the information of the network device accessed by the electronic device is matched with the information of the network device of the bus taking line, so that the corresponding bus taking state is displayed on the display interface, and the accuracy of the displayed bus taking state is improved.
In an embodiment, after determining that the user enters the inbound area, the electronic device collects information of network devices accessed by the electronic device in a preset period, uploads the information of the network devices accessed by the electronic device in the preset period to the server, and the server updates information of the network devices of the riding line according to the information of the network devices accessed by the electronic device in the preset period. The updated information of the network equipment of the riding line is used for determining whether the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the riding line or not next time, so that the riding state of a user can be determined according to the latest information of the network equipment of the riding line, the network equipment information of the accurate riding line can be obtained when the network equipment is changed or abnormal, and the accurate riding state is determined. For example, the server pushes information of the updated network device of the bus line to the electronic device after the electronic device is powered on or at a set time of day. After the subway traveling function is started, the electronic equipment can determine whether the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the riding line according to the updated information of the network equipment of the riding line, so that the accuracy of the riding state determined later is improved.
In an embodiment, under the condition that the electronic device is located in the inbound area, if a first operation of opening the riding code is detected, information of network equipment accessed by the electronic device is acquired, the acquisition is finished when the operation of opening the riding code is detected again, the information of the network equipment accessed by the electronic device acquired in the period of time is used as the information of the network equipment accessed by the electronic device in a preset period of time, and the information is uploaded to a server, so that the information of the network equipment accessed by the electronic device in the riding process of a user can be uploaded to the server.
It can be understood that, if it is determined that the electronic device is located in the inbound area, if an operation of opening the riding code and a wrist turning action of the user are detected, information of the network device accessed by the electronic device is collected, and when an operation of opening the riding code and a wrist turning action of the user are detected again, collection is finished, and the information of the network device accessed by the electronic device collected in the period of time is used as information of the network device accessed by the electronic device in a preset period of time.
It will be appreciated that a minimum duration for collecting information of the network device to which the electronic device is connected may be set to ensure validity of the data. For example, after the information of the network device accessed by the electronic device is collected, if the operation of opening the riding code and the action of turning the wrist of the user are detected again, and the collection is finished when the time length from the beginning of the collection is longer than the minimum time length (for example, 10 minutes), the information of the network device accessed by the electronic device collected in the time period is used as the information of the network device accessed by the electronic device in the preset time period. After the information of the network equipment accessed by the electronic equipment is acquired, if the operation of opening the riding code and the wrist turning action of the user are detected again, and the acquisition is finished when the distance from the beginning of the acquisition is less than the minimum time, the acquired information is discarded.
In another embodiment, under the condition that the electronic device is located in the inbound area, if the operation of opening the riding code is detected, information of the network device accessed by the electronic device is collected, and when a set time period (for example, 1 hour) is reached, if the operation of opening the riding code is still not detected, the collection is finished, and the information of the network device accessed by the electronic device collected in the time period is used as the information of the network device accessed by the electronic device in a preset time period, so that the influence of uploading excessive data on the performance of the electronic device is avoided.
In an embodiment, the network device is a base station, and the information of the network device accessed by the electronic device may include information such as an operator name, a city in which the electronic device is located, an identifier of the accessed base station, and a collection time. For example, fields recorded in the information of the network device to which the electronic device accesses acquired by the electronic device include "mobile provider", "city", "cid", "timestamp". In the riding process of the user, the information collected by the electronic equipment is "mobile provider: chinese UNICOM "," city: shenzhen "," cid:1930000"," timetable: 1640163269952".
In an embodiment, the electronic device collects information of network devices accessed by the electronic device in a preset period, deletes information of network devices accessed first and information of network devices accessed last in the preset period, obtains information meeting a condition, and uploads the information meeting the condition to the server, so that accuracy of collected data can be improved. It will be appreciated that the electronic device may also upload all the data collected to the server, and the server may delete the information of the first network device accessed and the information of the last network device accessed within the preset period.
In an embodiment, the maximum number of times (for example, two times) of uploading information of the network device accessed by the electronic device in a preset period is set for each day of uploading the information of the network device, so that the probability of uploading repeated data can be reduced, and the influence of uploading excessive data on the performance of the electronic device can be avoided.
And the server receives the information of the network equipment accessed by the electronic equipment in the preset period uploaded by the electronic equipment, and performs the de-duplication processing on the data to obtain the data after the de-duplication processing. And then, the server determines the riding line of the user according to the riding line of the city where the electronic equipment is located, the station where the inbound area is located and the station where the outbound area is located, so that the information of the network equipment accessed by the electronic equipment in the riding line interval can be obtained, and then, the server can determine the information of the network equipment accessed by the electronic equipment corresponding to each station, namely the information of the network equipment of each station according to the operation time of the vehicle between every two adjacent stations and the acquisition time recorded by the electronic equipment. It will be appreciated that the information of the network devices of each site may be plural.
In an embodiment, the server may update the information of the network devices of each site (for example, sites on all subway lines in the current city) on multiple riding lines according to the information of the network devices accessed by the electronic devices in the preset period uploaded by the multiple electronic devices, and for the same riding line, may aggregate and compare the information of the accessed network devices uploaded by the multiple electronic devices, remove the abnormal data, and retain the normal data, thereby obtaining the information of the network devices of each site. Through big data analysis, more comprehensive and accurate information of network equipment of each site can be obtained.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, an Android system with a layered architecture is taken as an example, and the software structure of the electronic equipment is illustrated.
Fig. 13 is a software configuration block diagram of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 13, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 13, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Fig. 14 shows a schematic structural diagram of the electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a camera device/electronic apparatus, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Finally, it should be noted that: the foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for displaying a notification message, comprising:
detecting a first operation of opening a riding code of the electronic equipment under the condition that the electronic equipment is located in an inbound area;
in response to the first operation, determining that information of network equipment accessed by the electronic equipment is matched with information of network equipment of a bus line under the condition that the electronic equipment is located outside the station entering area;
and displaying a first notification message on a display interface of the electronic equipment, wherein the first notification message is used for indicating that a user is in a riding state.
2. The method of claim 1, wherein determining that the information of the network device to which the electronic device has access matches the information of the network device of the ride line comprises:
determining a departure station where the inbound area is located;
if the information of the network equipment accessed by the electronic equipment is consistent with the information of the first network equipment, determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the bus taking line, wherein the first network equipment is the network equipment of any station on the bus taking line except the departure station.
3. The method of claim 1, wherein determining that the information of the network device to which the electronic device has access matches the information of the network device of the ride line comprises:
If the information of the network equipment accessed by the electronic equipment is consistent with the information of the network equipment of at least two stations on the riding line in sequence within the preset duration, determining that the information of the network equipment accessed by the electronic equipment is matched with the information of the network equipment of the riding line.
4. A method according to any one of claims 1-3, wherein after the first notification message is displayed on the display interface of the electronic device, the method further comprises:
and responding to the operation of clicking the first notification message, and displaying the riding code on the display interface.
5. The method of any of claims 1-4, wherein after displaying the first notification message on the display interface of the electronic device, the method further comprises:
detecting a second operation of opening the ride;
and responding to the second operation, and if the information of the network equipment accessed by the electronic equipment is not matched with the information of the network equipment of the bus line, not displaying the first notification message on the display interface.
6. The method of any of claims 1-4, wherein after displaying the first notification message on the display interface of the electronic device, the method further comprises:
Detecting a third operation of opening the riding code under the condition that the electronic equipment enters an outbound area;
and responding to the third operation, and if the information of the network equipment accessed by the electronic equipment indicates that the electronic equipment is positioned outside the outbound area, not displaying the first notification message on the display interface.
7. The method according to any one of claims 1 to 6, further comprising:
uploading information of the network equipment accessed by the electronic equipment in a preset period to a server, wherein the information of the network equipment accessed by the electronic equipment in the preset period is used for updating the information of the network equipment of the riding line.
8. The method of claim 7, wherein before uploading the information of the network device accessed by the electronic device for the preset period to the server, the method further comprises:
responding to the first operation, and collecting information of network equipment accessed by the electronic equipment;
and when the termination condition is met, taking the acquired information of the network equipment accessed by the electronic equipment as the information of the network equipment accessed by the electronic equipment within the preset period, wherein the termination condition comprises the operation of reaching a set duration or detecting the opening of the riding code again.
9. The method according to any one of claims 1 to 8, further comprising:
and displaying a second notification message on the display interface under the condition that the electronic equipment is located in the inbound area, wherein the second notification message is used for displaying a site where the inbound area is located.
10. The method according to claim 9, wherein the method further comprises:
and responding to the operation of clicking the second notification message, and displaying the riding code on the display interface.
11. An electronic device comprising a processor for executing a computer program stored in a memory to implement the method of displaying a notification message according to any of claims 1-10.
12. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method of displaying a notification message according to any of claims 1 to 10.
CN202210840293.9A 2022-07-15 2022-07-15 Notification message display method, electronic device and computer readable storage medium Active CN116033069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210840293.9A CN116033069B (en) 2022-07-15 2022-07-15 Notification message display method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210840293.9A CN116033069B (en) 2022-07-15 2022-07-15 Notification message display method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN116033069A true CN116033069A (en) 2023-04-28
CN116033069B CN116033069B (en) 2023-10-20

Family

ID=86071253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210840293.9A Active CN116033069B (en) 2022-07-15 2022-07-15 Notification message display method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116033069B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506547A (en) * 2023-06-30 2023-07-28 荣耀终端有限公司 Information prompting method, electronic equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002169915A (en) * 2000-11-30 2002-06-14 Toshiba Corp Guiding system for changing train and its guiding method
CN109151168A (en) * 2018-07-20 2019-01-04 阿里巴巴集团控股有限公司 The switching method of code, device, mobile terminal and readable storage medium storing program for executing by bus
CN111401328A (en) * 2020-04-23 2020-07-10 Oppo广东移动通信有限公司 Data acquisition method, device, terminal and storage medium
CN111405478A (en) * 2020-03-02 2020-07-10 Oppo广东移动通信有限公司 Service providing method, device, terminal and storage medium
CN111966439A (en) * 2020-08-25 2020-11-20 维沃移动通信有限公司 Riding code display method and device and electronic equipment
CN113079252A (en) * 2021-03-29 2021-07-06 支付宝(杭州)信息技术有限公司 Subway taking reminding method and device
CN114390458A (en) * 2021-12-09 2022-04-22 中山大学 Method for identifying individual subway waiting behavior by applying mobile phone signaling data
CN114466102A (en) * 2021-08-12 2022-05-10 荣耀终端有限公司 Method for displaying application interface, electronic equipment and traffic information display system
CN114489868A (en) * 2021-08-04 2022-05-13 荣耀终端有限公司 Subway trip detection method and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002169915A (en) * 2000-11-30 2002-06-14 Toshiba Corp Guiding system for changing train and its guiding method
CN109151168A (en) * 2018-07-20 2019-01-04 阿里巴巴集团控股有限公司 The switching method of code, device, mobile terminal and readable storage medium storing program for executing by bus
CN111405478A (en) * 2020-03-02 2020-07-10 Oppo广东移动通信有限公司 Service providing method, device, terminal and storage medium
CN111401328A (en) * 2020-04-23 2020-07-10 Oppo广东移动通信有限公司 Data acquisition method, device, terminal and storage medium
CN111966439A (en) * 2020-08-25 2020-11-20 维沃移动通信有限公司 Riding code display method and device and electronic equipment
CN113079252A (en) * 2021-03-29 2021-07-06 支付宝(杭州)信息技术有限公司 Subway taking reminding method and device
CN114489868A (en) * 2021-08-04 2022-05-13 荣耀终端有限公司 Subway trip detection method and electronic equipment
CN114466102A (en) * 2021-08-12 2022-05-10 荣耀终端有限公司 Method for displaying application interface, electronic equipment and traffic information display system
CN114390458A (en) * 2021-12-09 2022-04-22 中山大学 Method for identifying individual subway waiting behavior by applying mobile phone signaling data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506547A (en) * 2023-06-30 2023-07-28 荣耀终端有限公司 Information prompting method, electronic equipment and readable storage medium
CN116506547B (en) * 2023-06-30 2023-10-24 荣耀终端有限公司 Information prompting method, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN116033069B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN111724775B (en) Voice interaction method and electronic equipment
CN115866121B (en) Application interface interaction method, electronic device and computer readable storage medium
CN114466102B (en) Method for displaying application interface, related device and traffic information display system
CN115348350B (en) Information display method and electronic equipment
CN110727381A (en) Application switching method and electronic equipment
CN110795007B (en) Method and device for acquiring screenshot information
CN112130714B (en) Keyword search method capable of learning and electronic equipment
CN112817634B (en) COTA package downloading method and device
CN111556479B (en) Information sharing method and related device
CN112835495B (en) Method and device for opening application program and terminal equipment
CN116033069B (en) Notification message display method, electronic device and computer readable storage medium
CN115422480A (en) Method, apparatus and storage medium for determining event occurrence area
CN113409041B (en) Electronic card selection method, device, terminal and storage medium
CN113554932B (en) Track playback method and device
CN111249728B (en) Image processing method, device and storage medium
CN116709180B (en) Geofence generation method and server
CN113790732B (en) Method and device for generating position information
CN113805771B (en) Notification reminding method, terminal equipment and computer readable storage medium
CN117009005A (en) Display method, automobile and electronic equipment
CN117376830B (en) Geofence matching method, electronic device and computer readable storage medium
CN116662638B (en) Data acquisition method and related device
CN115562967B (en) Application program prediction method, electronic device and storage medium
CN116033344B (en) Geofence determination method, equipment and storage medium
CN112014866B (en) Motion trail recording method and related equipment
CN116048710B (en) Application identifier display method, electronic device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant