CN111076741A - Navigation state acquisition method and device, storage medium and electronic equipment - Google Patents

Navigation state acquisition method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111076741A
CN111076741A CN201911222046.7A CN201911222046A CN111076741A CN 111076741 A CN111076741 A CN 111076741A CN 201911222046 A CN201911222046 A CN 201911222046A CN 111076741 A CN111076741 A CN 111076741A
Authority
CN
China
Prior art keywords
navigation
application
state
navigation state
identifier
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
CN201911222046.7A
Other languages
Chinese (zh)
Other versions
CN111076741B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202311106130.9A priority Critical patent/CN117129003A/en
Priority to CN201911222046.7A priority patent/CN111076741B/en
Publication of CN111076741A publication Critical patent/CN111076741A/en
Application granted granted Critical
Publication of CN111076741B publication Critical patent/CN111076741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3626Details of the output of route guidance instructions
    • G01C21/3641Personalized guidance, e.g. limited guidance on previously travelled routes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3626Details of the output of route guidance instructions
    • G01C21/3661Guidance output on an external device, e.g. car radio
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3664Details of the user input interface, e.g. buttons, knobs or sliders, including those provided on a touch screen; remote controllers; input using gestures
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3688Systems comprising multiple parts or multiple output devices (not client-server), e.g. detachable faceplates, key fobs or multiple output screens
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems

Abstract

The embodiment of the application discloses a navigation state obtaining method, a navigation state obtaining device, a storage medium and electronic equipment, wherein the method comprises the following steps: the method comprises the steps of receiving a navigation notice pushed by a navigation application, obtaining a navigation state identifier carried by the navigation notice, and determining a first navigation state of the navigation application based on the navigation state identifier. By adopting the embodiment of the application, the process of acquiring the navigation state can be simplified, and the navigation state acquisition efficiency is improved.

Description

Navigation state acquisition method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a navigation state obtaining method and apparatus, a storage medium, and an electronic device.
Background
With the development of wireless communication technology and the popularization of terminal devices, a plurality of applications, such as navigation applications, can be compatible on the terminal devices. The user can use the navigation function of the navigation application to conveniently and quickly find the destination to be searched. When the user uses the navigation application to navigate to the destination, the navigation application can identify corresponding navigation states, such as a driving navigation state, a walking navigation state, a riding navigation state and the like, according to different requirements of the user. The operating system of the terminal device generally needs to acquire the current navigation state of the navigation application to better provide services for the user.
At present, an operating system of a terminal obtains a navigation state by sending a query instruction for the navigation state to a navigation application and then receiving a query result fed back by the navigation application. However, this method requires an active request of the operating system, and the interaction process is cumbersome, so that the interaction time for querying the navigation state once is long, thereby reducing the efficiency of the operating system in acquiring the navigation state.
Disclosure of Invention
The embodiment of the application provides a navigation state acquisition method, a navigation state acquisition device, a storage medium and electronic equipment, which can simplify the navigation state acquisition process and improve the navigation state acquisition efficiency. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a navigation state obtaining method, where the method includes:
receiving a navigation notification pushed by a navigation application;
acquiring a navigation state identifier carried by the navigation notification;
determining a first navigation state of the navigation application based on the navigation state identifier.
In a second aspect, an embodiment of the present application provides a navigation state obtaining apparatus, including:
the navigation notification receiving module is used for receiving a navigation notification pushed by the navigation application;
a state identifier obtaining module, configured to obtain a navigation state identifier carried by the navigation notification;
and the navigation state determining module is used for determining a first navigation state of the navigation application based on the navigation state identifier.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, an operating system of a terminal receives a navigation notification pushed by a navigation application, acquires a navigation state identifier carried by the navigation notification, and determines a first navigation state of the navigation application based on the navigation state identifier. After receiving a navigation notification pushed by a navigation application, a first navigation state of the navigation application can be confirmed based on a navigation state identifier carried by the navigation notification. In the process, the operating system receives the navigation state actively pushed by the navigation application without sending a navigation state acquisition instruction to the navigation application, so that the navigation state acquisition process can be simplified, and the navigation state acquisition efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1A is a schematic view of a scenario of an operating system and a user space provided in an embodiment of the present application;
fig. 1B is a scene architecture diagram of an android operating system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a navigation state obtaining method according to an embodiment of the present application;
fig. 3 is a schematic view of a terminal display interface related to a navigation state obtaining method according to an embodiment of the present application;
fig. 4 is a schematic interface diagram of selecting a navigation state related to a navigation state acquisition method according to an embodiment of the present application;
fig. 5 is a schematic interface diagram of a navigation state acquisition method related to a driving navigation state according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another navigation state obtaining method according to an embodiment of the present application;
fig. 7 is a schematic priority diagram of a task process related to a navigation state obtaining method according to an embodiment of the present application;
fig. 8 is an interface schematic diagram of a custom response function related to a navigation state obtaining method provided in the embodiment of the present application;
fig. 9 is a schematic structural diagram of a navigation state obtaining apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another navigation state acquiring apparatus provided in the embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The present application will be described in detail with reference to specific examples.
Please refer to fig. 1A, which is a schematic view of a scene of an operating system and a user space provided in an embodiment of the present application. The terminal in the embodiment of the present application may include one or more of the following components: a processor, a memory, an input device, an output device, and a bus. The processor, memory, input device, and output device may be connected by a bus. The storage data area may store data (such as a phonebook, audio-video data, navigation log data) created by the terminal in use, and the like.
Referring to FIG. 1A, the memory can be divided into an operating system space, where the operating system runs, and a user space, where native and third-party applications run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in the animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program (such as the navigation application) are independent from each other, and the operating system often cannot sense the current application scene of the third-party application program (such as the navigation application) in time, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.
In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.
Taking an operating system as an Android system as an example, programs and data stored in the memory are as shown in fig. 1B, and a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380 may be stored in the memory, where the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the terminal, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, a power management, and the like. The system runtime library layer 340 provides a main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system runtime library layer 340 is an Android runtime library (Android runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building an application, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 380, and the application programs may be native application programs carried by the operating system, such as a contact program, a short message program, a clock program, a camera application, and the like; or a third-party application developed by a third-party developer, such as a game-type application, an instant messaging program, a navigation application, and the like.
In the embodiment of the present application, the main body of execution of each step may be the terminal described above. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.
In the embodiment of the application, an operating system of a terminal receives a navigation notification pushed by a navigation application, acquires a navigation state identifier carried by the navigation notification, and determines a first navigation state of the navigation application based on the navigation state identifier. After receiving a navigation notification pushed by a navigation application, a first navigation state of the navigation application can be confirmed based on a navigation state identifier carried by the navigation notification. In the process, the operating system receives the navigation state actively pushed by the navigation application without sending a navigation state acquisition instruction to the navigation application, so that the navigation state acquisition process can be simplified, and the navigation state acquisition efficiency is improved.
In one embodiment, as shown in fig. 2, a navigation state acquisition method is proposed, which may be implemented by means of a computer program and may be run on a von neumann-based navigation state acquisition device. The computer program may be integrated into the application or may run as a separate tool-like application.
Specifically, the navigation state acquiring method includes:
step 101: and receiving a navigation notification pushed by the navigation application.
The navigation application can be understood as a series of application software related to Positioning services, such as Positioning, position guidance, trip planning, and the like, which are performed on a terminal by using a satellite Positioning technology, wherein the satellite Positioning technology is commonly used by a Global Positioning System (GPS) Positioning technology, an a-GPS Positioning technology, a beidou satellite Positioning technology, a galileo satellite Positioning technology, a green nass satellite Positioning technology, and the like.
The notification is an event or information that informs or sends a related event or information to a specific subject to be known or executed by the specific subject. The navigation notification is to push the items or information about the navigation state to the specific subject, so that the specific subject can know or execute the items or information about the navigation. In the embodiment of the present application, the navigation notification may be understood as pushing a navigation item or navigation information to an operating system of a specific text object-terminal during a process of starting or running a navigation application of the terminal.
The navigation items/information may be navigation state items/information, navigation time items/information, navigation route items/information, navigation traffic items/information, navigation location items/information, and the like of the current navigation application.
Specifically, the user uses the navigation application of the terminal to navigate, and when the navigation application of the terminal is in a certain navigation state to navigate, the navigation application of the terminal may push and send a navigation notification for representing the certain navigation state to an operating system of the terminal. The operating system of the terminal can receive the navigation notification pushed by the navigation application.
In a specific implementation scenario, as shown in fig. 3, fig. 3 is a schematic diagram of a terminal application interface, when a user selects a navigation application- "a navigation" on a terminal touch screen by means of finger touch, the terminal starts the navigation application- "a navigation", and the user may use the navigation application of the terminal to perform location navigation, for example, the user may query a route to a destination and a way to the destination in the navigation application. As shown in fig. 4, fig. 4 is a schematic view of a navigation application navigation selection interface, a user may select a destination to be reached in a navigation application of a terminal in a finger touch manner, specifically, "a destination a" may be input in a location search box of the navigation application of fig. 4 for navigation, the navigation application of the terminal may simultaneously display a plurality of navigation states to the user for the navigation manner of travel selected by the user, fig. 4 shows a driving navigation state, a walking navigation state, a riding navigation state, and a bus navigation state.
Specifically, the terminal may include a touch screen having a function of sensing a touch operation of a user. The structure of the touch screen at least comprises 4 parts: the terminal comprises a screen glass layer, a sensor thin film, a display panel layer and a controller board, wherein the sensor thin film is provided with a touch sensor layer and contains various sensors such as a pressure sensor, a position sensor and the like, and when a user touches a driving navigation state option on a navigation application interface of the terminal, a touch screen of the terminal can acquire a touched position parameter through the sensors. Then, the position parameter is processed, it is recognized that a driving navigation state option in the navigation application corresponding to the position parameter is touched, the navigation application of the terminal can acquire the driving navigation state selected by the user, and by reading and executing a machine executable instruction corresponding to a control logic for starting the driving navigation state, as shown in fig. 5, fig. 5 is an interface schematic diagram in the driving navigation state, and the terminal enters the driving navigation state, navigates to the destination a, and generates a navigation notification including the representation of the driving navigation state. And sending the navigation notification to an operating system of the terminal.
Optionally, the form of characterizing the navigation state (such as driving navigation state) may be a key identifier, key feature information, a feature stack, and the like for indicating the navigation state, or may be a linear table for marking navigation. Preferably, the navigation state (e.g. driving navigation state) is characterized by a key identifier, i.e. navigation state identifier. Such as: the form of representing the driving navigation state is a key mark-driving navigation state mark.
Step 102: and acquiring the navigation state identifier carried by the navigation notification.
The navigation state identifier may be understood as indication information for characterizing a navigation state in which the navigation application is located, and generally, the navigation state identifier may be an id representing the navigation state, for example, 1, 2, 3, etc. represent a number of the id; may be a key character representing the navigation state, e.g., a, b, c, etc.; may be a key string representing the navigation state, e.g. pth _ a, pth _ b, pth _ c; and so on. In the embodiment of the application, when the navigation application is in a certain navigation state, the navigation application pushes a navigation notification containing a navigation state identifier to an operating system of the terminal, so that the operating system of the terminal identifies by acquiring the navigation state identifier to obtain the navigation state indicated by the navigation state identifier.
Specifically, after receiving a navigation notification sent by a navigation application, an operating system of the terminal analyzes the navigation notification to obtain a navigation state identifier after analysis.
In one particular implementation scenario, a fixed location or portion of the navigation notification is typically used to store the navigation status identifier.
For example, the navigation state identifier is stored in the fixed part-notification header of the navigation notification, and the operating system of the terminal parses the navigation state identifier from the fixed part-notification header of the navigation notification after receiving the navigation notification sent by the navigation application; for another example, if the navigation state identifier is stored in a fixed position of the navigation notification (e.g., stored in byte 4), the operating system of the terminal parses the navigation state identifier from the fixed position of the navigation notification (e.g., stored in byte 4) after receiving the navigation notification sent by the navigation application; for another example, the navigation state identifier may be composed of characters at a plurality of fixed positions of the navigation notification, such as: a navigation state identifier that may be composed of characters of 2 nd byte bit and 3 rd byte bit of the navigation notification, the operating system of the terminal parses the navigation state identifier from a plurality of fixed positions (e.g., characters of 2 nd byte bit and 3 rd byte bit) of the navigation notification after receiving the navigation notification sent by the navigation application, and so on.
Step 103: determining a first navigation state of the navigation application based on the navigation state identifier.
The first navigation state may be understood as the navigation state of the current navigation application. In practical applications, the navigation state may refer to a driving navigation state, a walking navigation state, a riding navigation state, a bus navigation state, a subway navigation state, and the like.
Specifically, an operating system of the terminal receives a navigation notification of a navigation application, acquires a navigation application identifier carried by the navigation notification, and performs matching processing on the navigation state identifier to acquire a first navigation state corresponding to the navigation application identifier after the matching processing.
Specifically, the operating system of the terminal usually stores reference state identifiers corresponding to the navigation states in advance. The matching process may be understood as that, in the reference state identifiers corresponding to the navigation states, the operating system of the terminal searches for a target reference state identifier matching with the navigation state identifier, and then takes the navigation state indicated by the target reference state identifier as the first navigation state of the navigation application.
In a possible embodiment, the target reference state identifier matching the navigation state identifier is searched, where matching may be that the navigation state identifier and the target reference state identifier are completely consistent, such as: when the navigation state identifier and the target reference state identifier are expressed in the form of id, the id of the matching navigation state identifier is completely consistent with the id of the target reference state identifier; when the navigation state identifier and the target reference state identifier are expressed in the form of characters, the characters of the matched navigation state identifier and the characters of the target reference state identifier are completely consistent; when the navigation state identifier and the target reference state identifier are represented in the form of character strings, the character strings of the matching navigation state identifier and the target reference state identifier are identical, and so on.
In a possible implementation manner, the target reference state identifier matching the navigation state identifier is searched, where matching may be understood as that a matching result of the navigation state identifier and the target reference state identifier meets a matching condition.
The matching may be calculated based on id/character string of the navigation state identifier and a reference state identifier corresponding to each navigation state, and similarity between the navigation state identifier and the reference state identifier is calculated, which may be calculating a similar distance between the navigation state identifier and the reference state identifier, calculating difference feature information between the navigation state identifier and the reference state identifier, and then performing rating or scoring based on the difference feature information, and so on.
One matching method is as follows: and calculating similarity based on the navigation state identifier and the id/character string of the reference state identifier corresponding to each navigation state, acquiring a target reference state identifier indicated by the maximum similarity in each similarity, and taking the navigation state indicated by the target reference state identifier as the first navigation state of the navigation application.
One matching method is as follows: calculating similar distances based on id/character strings of the navigation state identifiers and the reference state identifiers corresponding to the navigation states, acquiring target reference state identifiers indicated by the maximum similar distances from the recognizing distances, and taking the navigation state indicated by the target reference state identifiers as a first navigation state of the navigation application.
One matching method is as follows: calculating difference characteristic information based on the navigation state identification and the id/character string of the reference state identification corresponding to each navigation state, then carrying out rating or grading based on the difference characteristic information, obtaining a target reference state identification indicated by the highest rating or the highest grading from each rating or grading, and then taking the navigation state indicated by the target reference state identification as the first navigation state of the navigation application.
In the embodiment of the application, an operating system of a terminal receives a navigation notification pushed by a navigation application, acquires a navigation state identifier carried by the navigation notification, and determines a first navigation state of the navigation application based on the navigation state identifier. After receiving a navigation notification pushed by a navigation application, a first navigation state of the navigation application can be confirmed based on a navigation state identifier carried by the navigation notification. In the process, the operating system receives the navigation state actively pushed by the navigation application without sending a navigation state acquisition instruction to the navigation application, so that the navigation state acquisition process can be simplified, and the navigation state acquisition efficiency is improved.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating another embodiment of a navigation state obtaining method according to the present application. Specifically, the method comprises the following steps:
step 201: and acquiring the installed navigation application set, and adapting the selected navigation application in the navigation application set.
The navigation application set can be understood as a totality formed by summarizing at least one navigation application supporting navigation notification pushing. The navigation applications in the navigation application set may be third-party applications, that is, applications developed by a third party and carried by a non-terminal operating system, including some navigation applications, navigation applets, navigation plug-ins, and the like developed by the third party, or system applications, that is, applications carried by the terminal operating system.
In this embodiment of the application, after the application development of each navigation application in the navigation application set is completed or the navigation application is adapted, a navigation state pushing function (that is, pushing a navigation notification including a navigation state to an operating system) corresponding to the navigation application is compatible with the operating system, where the compatibility may be understood that the navigation application may normally push the navigation notification including the navigation state to the operating system. The navigation application set can be updated by an operating system, and in an actual application, the navigation application set can also be understood as a list of navigation applications.
The adaptation may be understood as performing adaptation processing on the navigation application after the installation of the navigation application is completed and before the navigation application is started or used for the first time, where the adaptation processing includes granting an application authority to the navigation application, authenticating the navigation application, allocating an interface for pushing a navigation notification to the navigation application, and the like.
Specifically, the operating system of the terminal obtains the installed navigation application set, and when a user starts a certain navigation application of the navigation application set or after the navigation application is installed, the operating system of the terminal may detect in advance whether the navigation application selected by the user is subjected to adaptation processing, where whether the adaptation processing is performed may be understood as whether to grant an application authority of the navigation application, whether to authenticate the navigation application, whether to allocate an interface for pushing a navigation notification to the navigation application, and the like.
When the operating system of the terminal detects that the selected navigation application is not subjected to adaptation processing, the operating system of the terminal performs adaptation processing on the navigation application, wherein the adaptation processing comprises granting of application permission to the navigation application, authentication of the navigation application, distribution of an interface for pushing a navigation notification to the navigation application, and the like.
Step 202: and receiving a navigation notification pushed by the navigation application.
Specifically, refer to step 101, which is not described herein again.
Step 203: and acquiring the navigation state identifier carried by the navigation notification.
Refer to step 102 specifically, and will not be described herein.
Step 204: and searching a target navigation state corresponding to the navigation state identifier in a navigation state set, and taking the target navigation state as a first navigation state of the navigation application.
The navigation state set comprises at least one navigation state, each navigation state corresponds to a unique navigation state identifier in the navigation state set, and the navigation state set is stored in a local storage space of the terminal. In the implementation of the application, when the operating system of the terminal needs to determine the first navigation state of the navigation application according to the navigation state identifier, the first navigation state corresponding to the navigation state identifier may be searched in the navigation state set.
The first navigation state may be understood as the navigation state of the current navigation application. In practical applications, the navigation state may refer to a driving navigation state, a walking navigation state, a riding navigation state, a bus navigation state, a subway navigation state, and the like.
Specifically, the operating system of the terminal usually stores a navigation state set in advance, and when receiving a navigation notification pushed after the navigation application is started, the operating system of the terminal acquires a navigation state identifier carried by the navigation notification. And then searching a target navigation state corresponding to the navigation state identifier in a pre-stored navigation state set based on the navigation state identifier. And taking the target navigation state as a first navigation state of the navigation application.
In a specific implementation scenario, the corresponding relationship between each navigation state in the navigation state set and the navigation state identifier may be referred to in table 1 below (where the navigation state identifier may be in the form of id):
TABLE 1
Navigation state identification Navigation state
999900000 General navigation states
999910000 Close navigation state
999910001 Driving navigation state
999910002 Navigation state of walking
999910003 Navigation state of riding
.... ....
For example: when the navigation application is turned on or in the driving navigation state, the navigation application generates a navigation notification containing a driving navigation state identifier- "999910001" and sends the navigation notification to the operating system of the terminal. And the operating system of the terminal receives the navigation notification of the navigation application, acquires the navigation state identifier- "999910001" carried by the navigation notification, searches a target navigation state corresponding to the navigation state identifier- "999910001" in a prestored navigation state set, and finds that the target navigation state is a driving navigation state. At this time, the operating system of the terminal takes the driving navigation state as the first navigation state of the navigation application.
Step 205: and acquiring a second navigation state at the previous moment, and judging whether the second navigation state is the same as the first navigation state.
The second navigation state may be understood as a navigation state of the navigation application at a previous time. In practical applications, the navigation state may refer to a driving navigation state, a walking navigation state, a riding navigation state, a bus navigation state, a subway navigation state, and the like.
Specifically, when the navigation application operates in a certain navigation state, a navigation notification including the navigation state identifier may be generated at certain time intervals (for example, 5s), and the navigation notification is sent to an operating system of the terminal. And the operating system of the terminal receives the navigation notification, acquires the navigation identifier carried by the navigation notification, and determines the target navigation state of the navigation application based on the navigation identifier. And recording the navigation state of the navigation application at the time point when the navigation notification is received.
And when an operating system of the terminal receives the navigation notification at the current time point and acquires a navigation identifier carried by the navigation notification, determining a first navigation state of the navigation application based on the navigation identifier. And then acquiring the navigation state of the navigation application at the last time point, namely a second navigation state. And then the operating system of the terminal judges whether the second navigation state is the same as the first navigation state, and when the second navigation state is the same as the first navigation state, the operating system of the terminal does not need to update the second navigation state. At this time, the operating system of the terminal may record the navigation state of the navigation application with the time point at which the navigation notification is received. After receiving a navigation notification of a navigation application at a next time point and determining a first navigation state of the navigation application at the next time point, executing the step of obtaining a second navigation state at a previous time and judging whether the second navigation state is the same as the first navigation state.
Step 206: and when the first navigation state is different from the second navigation state, updating the second navigation state of the navigation application from the second navigation state to the first navigation state.
Specifically, when an operating system of the terminal receives the navigation notification at the current time point and acquires a navigation identifier carried by the navigation notification, the first navigation state of the navigation application is determined based on the navigation identifier. And then acquiring the navigation state of the navigation application at the last time point, namely a second navigation state. And then the operating system of the terminal judges whether the second navigation state is the same as the first navigation state, and when the second navigation state is different from the first navigation state, the operating system of the terminal updates the second navigation state of the navigation application from the second navigation state to the first navigation state.
For example: when the operating system of the terminal receives the navigation notification at the current time point t1 and acquires the navigation identifier "999910002" carried by the navigation notification, it is determined that the first navigation state of the navigation application is the walking navigation state based on the navigation identifier "999910002". The navigation state of the navigation application at the last point in time t0, i.e. the second navigation state, is then obtained. And the second navigation state acquired by the operating system of the terminal is a driving navigation state. Then the operating system of the terminal judges whether the second navigation state-driving navigation state is the same as the first navigation state-walking navigation state, after the second navigation state is judged to be different from the first navigation state, the operating system of the terminal updates the second navigation state of the navigation application from the second navigation state to the first navigation state.
Specifically, the operating system of the terminal may record the navigation state of the navigation application with a time point at which the navigation notification is received. After receiving a navigation notification of a navigation application at a next time point and determining a first navigation state of the navigation application at the next time point, executing the step of obtaining a second navigation state at a previous time and judging whether the second navigation state is the same as the first navigation state.
Step 207: and when the navigation application is detected to be switched to the background of the operating system, searching whether the first navigation state exists in the keep-alive state set.
In the embodiment of the present application, it can be understood that when the navigation application is in a certain navigation state in the keep-alive state set, the task priority of the operating system corresponding to the navigation application is higher, and the keep-alive processing needs to be performed when the navigation application exits to the background.
The existing terminal operating system can support a plurality of application programs to be in a starting state at the same time, and the application programs in the starting state can be switched between a foreground and a background of the operating system to run (for example, a navigation application is switched from the foreground to the background to run). In an operation process in which an operating system supports the running of a plurality of applications at the same time, each application is called a task process, and the task process running in the background occupies processor resources of the terminal. If more background task processes contending for processor resources with the foreground task process are available, the operating system will not respond to the foreground task process timely, so that the foreground application program will have the problems of jamming, frame loss and the like.
Specifically, the operating system of the terminal may monitor the task process of the navigation application, and when it is monitored that the task process of the navigation application is switched from a foreground to a background of the operating system, based on the determined first navigation state of the navigation application, it is searched for whether the first navigation state exists in the keep-alive state set.
In a feasible implementation manner, the operating system of the terminal can monitor a task process running in a background in real time, and when it is monitored that the newly added background task process is a task process corresponding to the navigation application, the operating system of the terminal searches whether the first navigation state exists in the keep-alive state set based on the determined first navigation state of the navigation application.
Step 208: and if so, keeping the navigation application alive.
Specifically, when the first navigation state is found in the keep-alive state set, the task priority of the operating system corresponding to the navigation application is higher, and the operating system of the terminal performs keep-alive processing when the navigation application exits to the background.
In a specific implementation manner, the priority of the task process corresponding to the operating system of the terminal may be, as shown in fig. 7, the priority of the task process is ordered as: the method comprises the steps of 'foreground process (0) > visible process (1) > visible perception process (2) > backup process (3) > background heavyweight process (4) > service process (5) > program retreats to corresponding process (6) > after background through HOME key and priority (7)' after the program is covered in the running process, wherein the numerical value in bracket '()' represents the priority, and the smaller the numerical value is, the higher the numerical value is. When a common navigation application is switched to an operating system background, the priority of a task process corresponding to the navigation application is level 6 or level 7, and when the first navigation state is found in the keep-alive state set, the operating system of the terminal executes a task process priority improving mode on the task priority corresponding to the navigation application, such as: and promoting the task priority level-6 th level or 7 th level corresponding to the navigation application to the 2 nd level so as to reduce the cleaned recycling process when the operating system resources are insufficient.
Optionally, the keeping alive of the navigation application may be adding the task process corresponding to the navigation application into an application white list of an operating system, keeping alive of the task process corresponding to the navigation application in a dual-process daemon manner, keeping alive by using a system task process (using a system-owned timing task JobService to implement self-starting of the process), and the like.
The method for keeping alive by adopting a dual-process daemon mode comprises the following steps: and if one of the two task processes is cleaned, the other task process can pull up the cleaned task process again to protect each other, and the task processes are maintained to be continuously operated in a certain sense. Two processes of double-process guard, one task process is used for background operation of an operating system and is also called a local process, the other task process is only responsible for monitoring the state of the local process and is pulled up when the local process is cleaned, and meanwhile, the local process is also monitoring the task process and is ready to be pulled up when the local process is cleaned, and is also called a remote process.
Step 209: when a query instruction of a navigation query application for the navigation state of the navigation application is received, feeding back the first navigation state to the navigation query application; or, pushing the first navigation state to the navigation query application.
The instruction is an instruction or a command instructing the operation of the operating system of the terminal, and may be understood as a code specifying a certain control for executing a certain operation or realizing a function. The query instruction in this embodiment of the application may be understood as a code that instructs an operating system of the terminal to execute a query of a navigation state of the navigation application, and the operating system of the terminal queries the navigation state of the navigation application by executing the code.
Specifically, when the navigation query function on the navigation query application is triggered, the navigation state of the navigation application needs to be queried, and the navigation query application may send a query instruction for the navigation state of the navigation application to an operating system of the terminal, and may specifically call a query interface of a notification service corresponding to the operating system. The operating system of the terminal can receive an inquiry instruction of a navigation inquiry application aiming at the navigation state of the navigation application, and the operating system of the terminal responds to the inquiry instruction and searches the current first navigation state of the navigation application by executing a code of machine executable logic corresponding to the navigation state of the inquiry navigation application. And when the current first navigation state of the navigation application is found, feeding the first navigation state back to the navigation query application through a query interface of the notification service.
The navigation query application may be an application that establishes a binding relationship with the navigation application, for example, the navigation query application subscribes to a navigation state service of the navigation application, or the navigation query application may be an application that does not establish a binding relationship with the navigation application.
In a possible implementation manner, after the operating system of the terminal receives the navigation notification of the navigation application and determines the first navigation state of the navigation application, the first navigation state of the navigation application may be pushed to the navigation query application that establishes the binding link with the navigation application.
Step 210: and determining a navigation response function corresponding to the first navigation state, and starting the navigation response function.
The navigation response function corresponds to the navigation state, and can be understood as a corresponding auxiliary function which needs to be started after an operating system of the terminal determines the navigation state of the navigation application, and the navigation response function includes a no-disturbance function, a voice navigation function, an incoming call information broadcasting function, an incoming call rejection function and the like.
Specifically, after receiving the navigation notification of the navigation application and determining the first navigation state of the navigation application, the operating system of the terminal may obtain a navigation response function of the predetermined first navigation state, and after obtaining the navigation response function of the first navigation state, start the navigation response function.
In a possible implementation manner, the response function corresponding to the navigation state may be set by default by the operating system, for example, the driving navigation state defaults the corresponding navigation response function to be the disturbance-free function. The navigation response function can also be customized by the user to each navigation state in part or all navigation states in the use process of the user at the later stage.
Wherein the navigation state may correspond to at least one navigation response function, such as: the navigation response function corresponding to the driving navigation state is a no-disturbance function, an incoming call information broadcasting function and the like.
In a specific implementation scenario, a user may perform custom setting on all or part of the navigation response functions corresponding to the navigation states on a corresponding display interface of the terminal, as shown in fig. 8, where fig. 8 is a schematic diagram of a terminal response function setting interface, and the user may select the "response function for setting the navigation state" by opening the setting interface, and the terminal displays the setting interface of the "response function for setting the navigation state". Multiple navigation states are displayed on the setting interface, such as: driving navigation state, walking navigation state, riding navigation state, bus navigation state and the like. Each navigation state corresponds to a plurality of navigation response functions, and a user can set a self-defined navigation state for at least one navigation state on a 'response function for setting navigation states' interface shown in fig. 8. For example: the user can set a disturbance-free function and a voice navigation function in a self-defined mode aiming at the driving navigation state on a setting interface in a finger touch mode, and after the setting is completed, the user can click a 'confirm' button to store the navigation response function corresponding to the self-defined navigation state.
In the embodiment of the application, an operating system of a terminal receives a navigation notification pushed by a navigation application, acquires a navigation state identifier carried by the navigation notification, and determines a first navigation state of the navigation application based on the navigation state identifier. After receiving a navigation notification pushed by a navigation application, a first navigation state of the navigation application can be confirmed based on a navigation state identifier carried by the navigation notification. In the process, the operating system receives the navigation state actively pushed by the navigation application without sending a navigation state acquisition instruction to the navigation application, so that the navigation state acquisition process can be simplified, and the navigation state acquisition efficiency is improved; when an inquiry instruction of the navigation inquiry application for the navigation state is received, the first navigation state is fed back to the navigation inquiry application, or the first navigation state is pushed to the navigation inquiry application, so that the navigation inquiry application can inquire the navigation state of the navigation application conveniently, the navigation inquiry application does not need to be connected with the navigation application, and the interaction cost can be saved; meanwhile, when the navigation application is switched to the background of the operating system, whether the navigation application is kept alive or not is determined according to the first navigation state of the navigation application, so that the power consumption of the operating system can be reduced, and the navigation function corresponding to the first navigation state is prevented from being invalid when the first navigation state exists in the keep-alive state set; and the navigation response function corresponding to the first navigation state is started to assist the user in using, so that the use safety is improved, and the user experience is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 9, which illustrates a schematic structural diagram of a navigation state obtaining apparatus according to an exemplary embodiment of the present application. The navigation state acquisition means may be implemented as all or a part of the apparatus by software, hardware, or a combination of both. The device 1 comprises a navigation notification receiving module 11, a status identifier obtaining module 12 and a navigation status determining module 13.
A navigation notification receiving module 11, configured to receive a navigation notification pushed by a navigation application;
a state identifier obtaining module 12, configured to obtain a navigation state identifier carried by the navigation notification;
and a navigation state determining module 13, configured to determine a first navigation state of the navigation application based on the navigation state identifier.
Optionally, as shown in fig. 10, the apparatus 1 further includes:
and the navigation application adapting module 14 is configured to acquire the installed navigation application set and adapt the selected navigation application in the navigation application set.
Optionally, the navigation state determining module 13 is specifically configured to:
and searching a target navigation state corresponding to the navigation state identifier in a navigation state set, and taking the target navigation state as a first navigation state of the navigation application.
Optionally, as shown in fig. 10, the apparatus 1 further includes:
the navigation state judgment module 15 is configured to obtain a second navigation state at a previous time, and judge whether the second navigation state is the same as the first navigation state;
a navigation state updating module 16, configured to update the second navigation state of the navigation application from the second navigation state to the first navigation state when the first navigation state is different from the second navigation state.
Optionally, as shown in fig. 10, the apparatus 1 further includes:
the navigation application keep-alive module 17 is configured to, when it is detected that the navigation application is switched to the operating system background, search whether the first navigation state exists in a keep-alive state set;
the navigation application keep-alive module 17 is further configured to keep the navigation application alive if the navigation application exists.
Optionally, as shown in fig. 10, the apparatus 1 further includes:
the navigation state sending module 18 is configured to feed back the first navigation state to a navigation query application when receiving a query instruction of the navigation query application for the navigation state of the navigation application; or, pushing the first navigation state to the navigation query application.
Optionally, as shown in fig. 10, the apparatus 1 further includes:
and the navigation response starting module 19 is configured to determine a navigation response function corresponding to the first navigation state, and start the navigation response function.
It should be noted that, when the navigation state acquiring apparatus provided in the foregoing embodiment executes the navigation state acquiring method, only the division of the above functional modules is taken as an example, and in practical applications, the above functions may be distributed to different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. In addition, the navigation state obtaining device and the navigation state obtaining method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments, and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
An operating system of the terminal receives a navigation notification pushed by a navigation application, acquires a navigation state identifier carried by the navigation notification, and determines a first navigation state of the navigation application based on the navigation state identifier. After receiving a navigation notification pushed by a navigation application, a first navigation state of the navigation application can be confirmed based on a navigation state identifier carried by the navigation notification. In the process, the operating system receives the navigation state actively pushed by the navigation application without sending a navigation state acquisition instruction to the navigation application, so that the navigation state acquisition process can be simplified, and the navigation state acquisition efficiency is improved; when an inquiry instruction of the navigation inquiry application for the navigation state is received, the first navigation state is fed back to the navigation inquiry application, or the first navigation state is pushed to the navigation inquiry application, so that the navigation inquiry application can inquire the navigation state of the navigation application conveniently, the navigation inquiry application does not need to be connected with the navigation application, and the interaction cost can be saved; meanwhile, when the navigation application is switched to the background of the operating system, whether the navigation application is kept alive or not is determined according to the first navigation state of the navigation application, so that the power consumption of the operating system can be reduced, and the navigation function corresponding to the first navigation state is prevented from being invalid when the first navigation state exists in the keep-alive state set; and the navigation response function corresponding to the first navigation state is started to assist the user in using, so that the use safety is improved, and the user experience is improved.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the navigation state obtaining method according to the embodiments shown in fig. 1 to 8, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 8, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded by the processor and executes the navigation state obtaining method according to the embodiment shown in fig. 1 to 8, where a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 8, and is not described herein again.
Please refer to fig. 11, which is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 11, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. The processor 1001 connects various parts throughout the server 1000 using various interfaces and lines, and performs various functions of the server 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1001, but may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 10, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a navigation state acquisition application program.
In the electronic device 1000 shown in fig. 11, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 1001 may be configured to call the navigation state acquiring application stored in the memory 1005, and specifically perform the following operations:
receiving a navigation notification pushed by a navigation application;
acquiring a navigation state identifier carried by the navigation notification;
determining a first navigation state of the navigation application based on the navigation state identifier.
In one embodiment, before executing the receiving of the navigation notification pushed by the navigation application, the processor 1001 further executes the following operations:
and acquiring the installed navigation application set, and adapting the selected navigation application in the navigation application set.
In an embodiment, when the processor 1001 determines the first navigation state of the navigation application based on the navigation state identifier, specifically performs the following operations:
and searching a target navigation state corresponding to the navigation state identifier in a navigation state set, and taking the target navigation state as a first navigation state of the navigation application.
In one embodiment, after executing the determining of the first navigation state of the navigation application based on the navigation state identifier, the processor 1001 further performs the following operations:
acquiring a second navigation state at the previous moment, and judging whether the second navigation state is the same as the first navigation state or not;
and when the first navigation state is different from the second navigation state, updating the second navigation state of the navigation application from the second navigation state to the first navigation state.
In one embodiment, the processor 1001, after performing the determining the first navigation state of the navigation application, further performs the following operations:
when the navigation application is detected to be switched to an operating system background, searching whether the first navigation state exists in a keep-alive state set;
and if so, keeping the navigation application alive.
In one embodiment, after executing the determining of the first navigation state of the navigation application based on the navigation state identifier, the processor 1001 further performs the following operations:
when a query instruction of a navigation query application for the navigation state of the navigation application is received, feeding back the first navigation state to the navigation query application; or the like, or, alternatively,
pushing the first navigation state to the navigation query application.
In one embodiment, the processor 1001 further performs the following operations after performing the determining of the first navigation state indicated by the navigation application:
and determining a navigation response function corresponding to the first navigation state, and starting the navigation response function.
An operating system of the terminal receives a navigation notification pushed by a navigation application, acquires a navigation state identifier carried by the navigation notification, and determines a first navigation state of the navigation application based on the navigation state identifier. After receiving a navigation notification pushed by a navigation application, a first navigation state of the navigation application can be confirmed based on a navigation state identifier carried by the navigation notification. In the process, the operating system receives the navigation state actively pushed by the navigation application without sending a navigation state acquisition instruction to the navigation application, so that the navigation state acquisition process can be simplified, and the navigation state acquisition efficiency is improved; when an inquiry instruction of the navigation inquiry application for the navigation state is received, the first navigation state is fed back to the navigation inquiry application, or the first navigation state is pushed to the navigation inquiry application, so that the navigation inquiry application can inquire the navigation state of the navigation application conveniently, the navigation inquiry application does not need to be connected with the navigation application, and the interaction cost can be saved; meanwhile, when the navigation application is switched to the background of the operating system, whether the navigation application is kept alive or not is determined according to the first navigation state of the navigation application, so that the power consumption of the operating system can be reduced, and the navigation function corresponding to the first navigation state is prevented from being invalid when the first navigation state exists in the keep-alive state set; and the navigation response function corresponding to the first navigation state is started to assist the user in using, so that the use safety is improved, and the user experience is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A navigation state acquisition method, characterized in that the method comprises:
receiving a navigation notification pushed by a navigation application;
acquiring a navigation state identifier carried by the navigation notification;
determining a first navigation state of the navigation application based on the navigation state identifier.
2. The method of claim 1, wherein before receiving the navigation notification pushed by the navigation application, the method further comprises:
and acquiring the installed navigation application set, and adapting the selected navigation application in the navigation application set.
3. The method of claim 1, wherein determining the first navigation state of the navigation application based on the navigation state identifier comprises:
and searching a target navigation state corresponding to the navigation state identifier in a navigation state set, and taking the target navigation state as a first navigation state of the navigation application.
4. The method of claim 3, wherein after determining the first navigation state of the navigation application based on the navigation state identifier, further comprising:
acquiring a second navigation state at the previous moment, and determining whether the second navigation state is the same as the first navigation state;
and when the current navigation state is different from the second navigation state, updating the second navigation state of the navigation application from the second navigation state to the first navigation state.
5. The method of claim 1, wherein after determining the first navigation state of the navigation application based on the navigation state identifier, further comprising:
when the navigation application is detected to be switched to an operating system background, searching whether the first navigation state exists in a keep-alive state set;
and if so, keeping the navigation application alive.
6. The method of claim 1, wherein after determining the first navigation state of the navigation application based on the navigation state identifier, further comprising:
when a query instruction of a navigation query application for the navigation state of the navigation application is received, feeding back the first navigation state to the navigation query application; or the like, or, alternatively,
pushing the first navigation state to the navigation query application.
7. The method of claim 1, wherein after determining the first navigation state indicated by the navigation application based on the navigation state identifier, further comprising:
and determining a navigation response function corresponding to the first navigation state, and starting the navigation response function.
8. A navigation state acquisition apparatus, characterized in that the apparatus comprises:
the navigation notification receiving module is used for receiving a navigation notification pushed by the navigation application;
a state identifier obtaining module, configured to obtain a navigation state identifier carried by the navigation notification;
and the navigation state determining module is used for determining a first navigation state of the navigation application based on the navigation state identifier.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN201911222046.7A 2019-12-03 2019-12-03 Navigation state acquisition method and device, storage medium and electronic equipment Active CN111076741B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202311106130.9A CN117129003A (en) 2019-12-03 2019-12-03 Navigation state acquisition method and device, storage medium and electronic equipment
CN201911222046.7A CN111076741B (en) 2019-12-03 2019-12-03 Navigation state acquisition method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911222046.7A CN111076741B (en) 2019-12-03 2019-12-03 Navigation state acquisition method and device, storage medium and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311106130.9A Division CN117129003A (en) 2019-12-03 2019-12-03 Navigation state acquisition method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111076741A true CN111076741A (en) 2020-04-28
CN111076741B CN111076741B (en) 2023-09-29

Family

ID=70312790

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201911222046.7A Active CN111076741B (en) 2019-12-03 2019-12-03 Navigation state acquisition method and device, storage medium and electronic equipment
CN202311106130.9A Pending CN117129003A (en) 2019-12-03 2019-12-03 Navigation state acquisition method and device, storage medium and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311106130.9A Pending CN117129003A (en) 2019-12-03 2019-12-03 Navigation state acquisition method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (2) CN111076741B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181126A (en) * 2020-09-28 2021-01-05 珠海格力电器股份有限公司 Navigation application program detection method and device, computer equipment and storage medium
CN112925582A (en) * 2021-02-22 2021-06-08 深圳依时货拉拉科技有限公司 Method for improving background survival rate of application program under android system and mobile terminal
CN115086735A (en) * 2022-05-11 2022-09-20 深圳康佳电子科技有限公司 Application screen splicing and saving method under multi-window multi-task and related equipment thereof

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004361363A (en) * 2003-06-09 2004-12-24 Mitsubishi Electric Corp Navigation system, portable communication terminal, navigation method, incoming call notice mode selecting method, and program therefor
US20070067097A1 (en) * 2005-08-31 2007-03-22 Navicore Ltd. Power saving system for navigation device
JP2007212437A (en) * 2006-01-12 2007-08-23 Sharp Corp Portable navigation apparatus
US20120004841A1 (en) * 2010-07-02 2012-01-05 Ford Global Technologies, Llc Multi-modal navigation system and method
WO2013094290A1 (en) * 2011-12-22 2013-06-27 本田技研工業株式会社 Emergency reporting system
CN104019808A (en) * 2013-02-28 2014-09-03 联想(北京)有限公司 Navigation mode switching method and device
CN104168370A (en) * 2014-07-25 2014-11-26 惠州Tcl移动通信有限公司 Method and mobile terminal for automatically entering vehicle-mounted mode
US20150177013A1 (en) * 2011-10-18 2015-06-25 Google Inc. System and method for determining a mode of travel
CN104897167A (en) * 2015-05-28 2015-09-09 魅族科技(中国)有限公司 Navigation information prompting method and terminal
CN105115515A (en) * 2015-08-07 2015-12-02 百度在线网络技术(北京)有限公司 Map displaying method and device
CN107463445A (en) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 Application process priority management method, apparatus, storage medium and electronic equipment
CN107543554A (en) * 2016-06-24 2018-01-05 高德信息技术有限公司 A kind of navigation way determines method and device
CN107784597A (en) * 2017-09-19 2018-03-09 平安科技(深圳)有限公司 Trip mode recognition methods, device, terminal device and storage medium
CN108088453A (en) * 2017-11-29 2018-05-29 努比亚技术有限公司 A kind of generation method of navigation routine, terminal and computer readable storage medium
CN108205402A (en) * 2018-01-03 2018-06-26 上海传英信息技术有限公司 Mobile terminal and its background process processing method
US20180356243A1 (en) * 2017-06-08 2018-12-13 Microsoft Technology Licensing, Llc Selecting content items using map contexts by background applications
CN110413417A (en) * 2019-08-02 2019-11-05 广州小鹏汽车科技有限公司 The running optimizatin methods, devices and systems of onboard system process

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004361363A (en) * 2003-06-09 2004-12-24 Mitsubishi Electric Corp Navigation system, portable communication terminal, navigation method, incoming call notice mode selecting method, and program therefor
US20070067097A1 (en) * 2005-08-31 2007-03-22 Navicore Ltd. Power saving system for navigation device
JP2007212437A (en) * 2006-01-12 2007-08-23 Sharp Corp Portable navigation apparatus
US20120004841A1 (en) * 2010-07-02 2012-01-05 Ford Global Technologies, Llc Multi-modal navigation system and method
US20150177013A1 (en) * 2011-10-18 2015-06-25 Google Inc. System and method for determining a mode of travel
WO2013094290A1 (en) * 2011-12-22 2013-06-27 本田技研工業株式会社 Emergency reporting system
CN104019808A (en) * 2013-02-28 2014-09-03 联想(北京)有限公司 Navigation mode switching method and device
CN104168370A (en) * 2014-07-25 2014-11-26 惠州Tcl移动通信有限公司 Method and mobile terminal for automatically entering vehicle-mounted mode
CN104897167A (en) * 2015-05-28 2015-09-09 魅族科技(中国)有限公司 Navigation information prompting method and terminal
CN105115515A (en) * 2015-08-07 2015-12-02 百度在线网络技术(北京)有限公司 Map displaying method and device
CN107543554A (en) * 2016-06-24 2018-01-05 高德信息技术有限公司 A kind of navigation way determines method and device
US20180356243A1 (en) * 2017-06-08 2018-12-13 Microsoft Technology Licensing, Llc Selecting content items using map contexts by background applications
CN107463445A (en) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 Application process priority management method, apparatus, storage medium and electronic equipment
CN107784597A (en) * 2017-09-19 2018-03-09 平安科技(深圳)有限公司 Trip mode recognition methods, device, terminal device and storage medium
CN108088453A (en) * 2017-11-29 2018-05-29 努比亚技术有限公司 A kind of generation method of navigation routine, terminal and computer readable storage medium
CN108205402A (en) * 2018-01-03 2018-06-26 上海传英信息技术有限公司 Mobile terminal and its background process processing method
CN110413417A (en) * 2019-08-02 2019-11-05 广州小鹏汽车科技有限公司 The running optimizatin methods, devices and systems of onboard system process

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181126A (en) * 2020-09-28 2021-01-05 珠海格力电器股份有限公司 Navigation application program detection method and device, computer equipment and storage medium
CN112925582A (en) * 2021-02-22 2021-06-08 深圳依时货拉拉科技有限公司 Method for improving background survival rate of application program under android system and mobile terminal
CN115086735A (en) * 2022-05-11 2022-09-20 深圳康佳电子科技有限公司 Application screen splicing and saving method under multi-window multi-task and related equipment thereof

Also Published As

Publication number Publication date
CN111076741B (en) 2023-09-29
CN117129003A (en) 2023-11-28

Similar Documents

Publication Publication Date Title
CN111076741B (en) Navigation state acquisition method and device, storage medium and electronic equipment
CN110020292B (en) Webpage content extraction method and terminal equipment
CN107293294B (en) A kind of voice recognition processing method and device
WO2019148936A1 (en) Information reminder
US20050010932A1 (en) Information providing system
CN112416613A (en) Application data processing method, device, equipment and medium
US20160179296A1 (en) Method and device for video rendering
CN109117153B (en) Application processing method, device, terminal and storage medium
CN114138961A (en) Playing processing method of audio electronic book, computing equipment and computer storage medium
US20110283087A1 (en) Image forming apparatus, image forming method, and computer readable medium storing control program therefor
CN114282212A (en) Rogue software identification method and device, electronic equipment and storage medium
EP2728472A2 (en) User terminal, reliability management server, and method and program for preventing unauthorized remote operation
CN111935353A (en) Mobile terminal and short message display method thereof
US10412556B1 (en) Dynamic re-configuration of a user interface based on location information
CN111338710A (en) Application program control method and device, electronic equipment and storage medium
CN109840113B (en) Application data processing method and equipment, storage medium and terminal thereof
CN105610596B (en) Resource directory management method and network terminal
EP3972263A1 (en) System and method to control a media client using a message service
CN115061785A (en) Information issuing method and device, storage medium and server
JP6535503B2 (en) Content local delivery system, content local delivery program
CN116302295B (en) Interface display method
KR101655731B1 (en) Beacon service providing system and method
CN113918196B (en) Data processing method, upgrading method, device, server and mobile robot
CN109522014B (en) Algorithm processing method based on new product development, electronic device and readable storage medium
JP2009146206A (en) Multi-application execution device, multi-application execution support method and program

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