CN116567548B - Application positioning information acquisition method and device - Google Patents

Application positioning information acquisition method and device Download PDF

Info

Publication number
CN116567548B
CN116567548B CN202310840784.8A CN202310840784A CN116567548B CN 116567548 B CN116567548 B CN 116567548B CN 202310840784 A CN202310840784 A CN 202310840784A CN 116567548 B CN116567548 B CN 116567548B
Authority
CN
China
Prior art keywords
application
positioning
information
positioning information
display
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.)
Active
Application number
CN202310840784.8A
Other languages
Chinese (zh)
Other versions
CN116567548A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202310840784.8A priority Critical patent/CN116567548B/en
Publication of CN116567548A publication Critical patent/CN116567548A/en
Application granted granted Critical
Publication of CN116567548B publication Critical patent/CN116567548B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/033Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services

Abstract

The disclosure relates to the technical field of computer applications, and in particular relates to an application positioning information acquisition method and device, wherein the method comprises the following steps: under the condition that the target application is detected to call the positioning service, application positioning information corresponding to the target application is obtained, wherein the application positioning information comprises at least one of the following items: the registration time point of the positioning service, positioning related information for positioning based on the positioning service and the cancellation time point of the positioning service; and sending the application positioning information to a display device under the condition that the display request is detected, so that the display device displays the application positioning information in real time. The method can improve the transparency degree of the application positioning process by acquiring the related information of the application positioning process and displaying the related information in real time, and can improve the transparency degree of the application positioning process to the user by displaying the application positioning information.

Description

Application positioning information acquisition method and device
Technical Field
The disclosure relates to the technical field of computer applications, and in particular relates to an application positioning information acquisition method and device.
Background
With the popularity of computing devices, applications on computing devices may provide rich functionality to users. For example, a mobile phone, a tablet computer, a notebook computer, etc. may provide video functions, communication functions, positioning functions, etc.
With respect to the positioning function, the application uses the positioning function to acquire the current position information of the user to realize positioning for subsequent service processing on a computing device with the positioning function. For example, the map application may help the user determine the geographic location where they are currently located through a positioning function; the take-away application may help the user determine the shipping address, etc. via a location function.
In order to use a part of services of an application, the authority of the application to perform positioning is usually required to be opened, but the current position information of a user belongs to user privacy, so that the computing equipment needs to manage the related situation of the application to perform positioning, and the transparency degree of the application positioning process is improved.
Therefore, there is a need for a method for acquiring application positioning information.
Disclosure of Invention
In view of the above, the present disclosure provides a method and an apparatus for acquiring application positioning information, which can acquire and display relevant information of an application positioning process in real time, so as to improve transparency of the application positioning process.
According to a first aspect of an embodiment of the present disclosure, there is provided an application positioning information acquisition method, including:
under the condition that the target application is detected to call the positioning service, application positioning information corresponding to the target application is obtained, wherein the application positioning information comprises at least one of the following items: the registration time point of the positioning service, positioning related information for positioning based on the positioning service and the cancellation time point of the positioning service;
and sending the application positioning information to a display device under the condition that the display request is detected, so that the display device displays the application positioning information in real time.
Optionally, the sending the application positioning information to a display device, so that the display device displays the application positioning information in real time, includes:
and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
Optionally, the method further comprises: under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
The sending the application positioning information to a display device so that the display device displays the application positioning information in real time includes:
and sending the application positioning information in the preset information set to a display device so that the display device displays the received application positioning information in real time.
Optionally, the method further comprises: under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
and sending the application positioning information to a display device under the condition that a display request is detected, so that the display device displays the application positioning information in real time, wherein the method comprises the following steps:
in the case where the display request is detected, the following steps are performed:
transmitting application positioning information in the preset information set to a display device so that the display device displays the received application positioning information in real time;
and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
Optionally, the sending the acquired application positioning information to the display device in real time includes any one of the following:
Transmitting the obtained application positioning information in real time in an encryption manner to the display equipment so as to obtain application positioning information plaintext in a decryption manner by the display equipment;
the obtained application positioning information is sent in real time in a broadcasting mode, so that the display equipment obtains the broadcasted application positioning information;
and sending the obtained application positioning information in real time in a dynamic broadcasting mode, so that the display equipment obtains application positioning information plaintext according to the dynamically broadcasted application positioning information.
Optionally, the obtaining the application positioning information corresponding to the target application includes at least one of:
under the condition that a positioning request of a target application is detected, registering a positioning service aiming at the target application, and acquiring a registration time point of the positioning service;
acquiring positioning related information of the positioning service when the positioning based on the positioning service is detected;
and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring the logout time point of the positioning service.
Optionally, the obtaining the application positioning information corresponding to the target application includes:
Acquiring application positioning information of at least one of the following: the registration time point of the positioning service, positioning related information for positioning based on the positioning service and the cancellation time point of the positioning service;
and carrying out preset processing on the acquired at least one item of application positioning information to acquire other application positioning information.
Optionally, the sending the application positioning information to a display device, so that the display device displays the application positioning information in real time, includes:
transmitting display image data corresponding to the application positioning information to a display device so that the display device displays the display image data in real time;
wherein the displaying image data includes: a waveform for indicating a change in the application positioning information over time;
the waveform comprises a rising edge and a falling edge; the time point corresponding to the position of the rising edge of the waveform comprises a registration time point; the time point corresponding to the position of the falling edge in the waveform comprises a logout time point.
Optionally, the positioning related information includes: a time point of acquiring the position information;
the waveform also comprises a preset mark; the time point corresponding to the position of the preset mark in the waveform comprises: a point in time at which the location information is acquired.
According to a second aspect of the embodiments of the present disclosure, there is provided an application positioning information acquisition apparatus, the apparatus including:
the information unit is used for acquiring application positioning information corresponding to the target application under the condition that the target application is detected to call the positioning service, wherein the application positioning information comprises at least one of the following items: the registration time point of the positioning service, positioning related information for positioning based on the positioning service and the cancellation time point of the positioning service;
and the display unit is used for sending the application positioning information to the display equipment under the condition that the display request is detected, so that the display equipment displays the application positioning information in real time.
Optionally, the display unit is configured to: and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
Optionally, the information unit is further configured to: under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
optionally, the display unit is configured to: and sending the application positioning information in the preset information set to a display device so that the display device displays the received application positioning information in real time.
Optionally, the information unit is further configured to: under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
optionally, the display unit is configured to: in the case where the display request is detected, the following steps are performed:
transmitting application positioning information in the preset information set to a display device so that the display device displays the received application positioning information in real time;
and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
Optionally, the display unit is configured to perform any one of the following:
transmitting the obtained application positioning information in real time in an encryption manner to the display equipment so as to obtain application positioning information plaintext in a decryption manner by the display equipment;
the obtained application positioning information is sent in real time in a broadcasting mode, so that the display equipment obtains the broadcasted application positioning information;
and sending the obtained application positioning information in real time in a dynamic broadcasting mode, so that the display equipment obtains application positioning information plaintext according to the dynamically broadcasted application positioning information.
Optionally, the information unit is configured to perform at least one of:
under the condition that a positioning request of a target application is detected, registering a positioning service aiming at the target application, and acquiring a registration time point of the positioning service;
acquiring positioning related information of the positioning service when the positioning based on the positioning service is detected;
and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring the logout time point of the positioning service.
Optionally, the information unit is configured to: acquiring application positioning information of at least one of the following: the registration time point of the positioning service, positioning related information for positioning based on the positioning service and the cancellation time point of the positioning service;
and carrying out preset processing on the acquired at least one item of application positioning information to acquire other application positioning information.
Optionally, the display unit is configured to: transmitting display image data corresponding to the application positioning information to a display device so that the display device displays the display image data in real time;
wherein the displaying image data includes: a waveform for indicating a change in the application positioning information over time;
The waveform comprises a rising edge and a falling edge; the time point corresponding to the position of the rising edge of the waveform comprises a registration time point; the time point corresponding to the position of the falling edge in the waveform comprises a logout time point.
Optionally, the positioning related information includes: a time point of acquiring the position information;
the waveform also comprises a preset mark; the time point corresponding to the position of the preset mark in the waveform comprises: a point in time at which the location information is acquired.
According to a third aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the methods of the first aspect described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the steps of the method of any of the first aspects above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the specific condition of the application positioning process can be conveniently mastered by acquiring the related information of the application positioning process and displaying the related information in real time, the transparency degree of the application positioning process is improved, and the transparency degree of the application positioning process to a user is improved by displaying the application positioning information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method for acquiring application positioning information according to an exemplary embodiment of the present disclosure;
FIG. 2 is a schematic waveform diagram illustrating an application positioning information display according to an exemplary embodiment of the present disclosure;
fig. 3 is a schematic diagram of an application positioning information obtaining method according to an exemplary embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an application positioning process according to an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a dynamic broadcast according to an exemplary embodiment of the present disclosure;
FIG. 6 is a schematic diagram of another application positioning process shown in an exemplary embodiment of the present disclosure;
FIG. 7 is a schematic diagram of an application positioning information display according to an exemplary embodiment of the present disclosure;
FIG. 8 is a schematic diagram of another application positioning information display, shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 9 is a display mode setting interface diagram illustrating an exemplary embodiment of the present disclosure;
FIG. 10 is a block diagram of an application positioning information acquisition device according to an exemplary embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an application positioning information obtaining apparatus 1500 according to an exemplary embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of another application positioning information obtaining apparatus 1600 according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) according to the embodiments of the present disclosure are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
With the popularity of computing devices, applications on computing devices may provide rich functionality to users. For example, a mobile phone, a tablet computer, a notebook computer, etc. may provide video functions, communication functions, positioning functions, etc.
With respect to the positioning function, the application uses the positioning function to acquire the current position information of the user to realize positioning for subsequent service processing on a computing device with the positioning function. For example, the map application may help the user determine the geographic location where they are currently located through a positioning function; the take-away application may help the user determine the shipping address, etc. via a location function.
In order to use a part of services of an application, the authority of the application to perform positioning is usually required to be opened, but the current position information of a user belongs to user privacy, so that the computing equipment needs to manage the related situation of the application to perform positioning, and the transparency degree of the application positioning process is improved.
Therefore, there is a need for a method for acquiring application positioning information.
Therefore, the application positioning information acquisition method is provided, related information of an application positioning process can be acquired, and the transparency degree of the application positioning process is improved.
The process of positioning by the application is explained first.
When positioning is performed in the equipment according to the application requirement, positioning service needs to be registered for the application, so that positioning resources are conveniently allocated for the application, positioning can be performed based on the registered positioning service, current position information of the equipment is obtained and sent to the application for subsequent business processing.
The application may perform a plurality of locations based on the registered location services, and may then be operated by the user or automatically de-register the registered location services, releasing the location resources.
The location service may specifically be a program for calling a device location function.
In order to acquire the related information of the application positioning process, a time point of registering the positioning service, the related information of positioning based on the positioning service, a time point of logging out the positioning service, and the like may be acquired.
When positioning is performed based on the positioning service, the positioning service may acquire the position information through different positioning modes, or acquire the position information from different position information providers.
The positioning modes can specifically comprise satellite positioning, base station positioning, network IP positioning and the like,
the location information providers can be categorized into four categories, three of which are active and one of which is passive.
The active method comprises GPS-Provider, network-Provider, fused-Provider, wherein the former two are respectively based on satellite positions acquired by a positioning engine (hardware) and network positions obtained through information calculation of network IP, base stations and the like, and the Fused mode is to combine the former two and further calculate position information through a prediction algorithm (generally called fusion position).
The Passive is Passive-Provider, the position information Provider does not actively locate, and the provided position information is the active position information Provider which obtains the position information last time at present.
Thus, the relevant information for positioning based on the positioning service may include a positioning manner, a position information provider, acquired position information, a point in time at which the position information is acquired, and the like.
By acquiring the application positioning information, the specific situation of the application positioning process can be conveniently mastered, and the transparency degree of the application positioning process is improved.
In order to improve the grasping degree of the application positioning process by the user and improve the transparency degree of the application positioning process to the user, the obtained application positioning information can be displayed to the user.
The display can be specifically displayed on a screen of the equipment, so that the user can conveniently check the display.
For example, the acquired application positioning information is displayed on a desktop of the mobile phone, or in the case that the user triggers the display function, the acquired application positioning information is displayed on the interface.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for acquiring application positioning information according to an exemplary embodiment of the present disclosure.
Embodiments of the present disclosure are not limited to the execution body of the method. Alternatively, the method can be applied to any computing device, and can be a mobile terminal device, a server device, a client device and the like. Such as cell phones, tablet computers, smart bracelets, AR glasses, and the like.
Wherein, the execution main body can be provided with a positioning service, and can provide a positioning function.
The method may comprise the steps of:
s101: and under the condition that the target application is detected to call the positioning service, acquiring application positioning information corresponding to the target application.
Wherein the application positioning information may include at least one of: a registration time point of the positioning service, positioning related information for positioning based on the positioning service, and a cancellation time point of the positioning service.
S102: and sending the application positioning information to the display device under the condition that the display request is detected, so that the display device displays the application positioning information in real time.
The method can conveniently grasp the specific condition of the application positioning process by acquiring the related information of the application positioning process and displaying the related information in real time, improve the transparency degree of the application positioning process, and improve the transparency degree of the application positioning process to the user by displaying the application positioning information.
Wherein the disclosure is not limited to the target application. The target application may be any application, and for convenience of description, any application targeted is referred to as a target application, so as to obtain information related to a positioning process of the target application, that is, application positioning information. The application positioning information to be acquired may include at least one of the following: registration time point, positioning related information, and deregistration time point.
It should be noted that, the method flow is explained for the target application, and for a plurality of different applications, the method flow can be adopted for each application to obtain and display the application positioning information, so that the transparency degree of each application positioning process can be improved.
The present disclosure is also not limited to the running device of the target application. Alternatively, the target application may be run on the execution subject, or may be run on a device other than the execution subject.
Alternatively, the target application may be run on other devices, with the location being by the device running the subject. For example, the target application may be a mobile phone running on a smart band, which is connected via bluetooth for positioning.
The present disclosure is also not limited to a particular form of location services, as long as the location services can be used for location determination. Optionally, the positioning Service may specifically be Location-Manager-Service in the android system, or may be a positioning engine control module in the device, which controls the positioning engine to perform positioning.
The present disclosure is not limited in the manner in which positioning is performed based on positioning services. Alternatively, the location information is obtained by a location service through different location modes, or from different location information providers. See in particular the explanation above.
The present disclosure is not limited to the form of the display device. Alternatively, the display device may be a device other than the execution subject device for information display. The display device may also be part of the execution body device, integral with the execution body device.
For example, the execution subject device may be a mobile terminal with a positioning service, and the display device may be VR glasses connected to the execution subject device, so that application positioning information in the mobile terminal may be displayed on the VR glasses, so that the user can view the application positioning information conveniently. In particular by bluetooth or by a wired connection.
Of course, VR glasses herein are for illustrative purposes only, and it is understood that other devices having display capabilities may also be used as display devices. Such as LED screens, cell phones, computers, screens for various types of devices, etc.
For another example, the execution subject device may be a mobile terminal with a location service, and the display device may be a GPU and a display panel integral with the mobile terminal. The mobile terminal may be a mobile phone, and the display device may be a mobile phone screen, for displaying application positioning information.
The following explanation is made separately from the four aspects.
1. With respect to acquiring application positioning information.
The embodiment of the disclosure is not limited to a specific manner of acquiring the application positioning information corresponding to the target application. Optionally, the generated application positioning information can be obtained in real time in the process of calling the positioning service by the target application; or after the target application invokes the positioning service to complete positioning, the generated application positioning information can be acquired.
In the process of calling the positioning service by the target application, positioning can be performed after the positioning service is registered, and the positioning service is cancelled after the positioning is completed.
Embodiments of the present disclosure are not limited in the manner in which location services are registered and deregistered. Optionally, the method specifically includes registering a positioning service according to the positioning request of the application; the location services may also be logged out according to a log-out request by the application. The trigger condition of the application logout request is not limited. The application may be stopped running, or the user may terminate the positioning authorization, or the application may be scheduled to run in the background, etc.
And the specific process of calling the positioning service for the application can further acquire the related positioning information.
Optionally, obtaining application positioning information corresponding to the target application may include at least one of:
Under the condition that a positioning request of a target application is detected, registering a positioning service aiming at the target application, and acquiring a registration time point of the positioning service;
under the condition that positioning based on positioning service is detected, positioning related information of the positioning service for positioning at the present time is obtained;
and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring a logout time point of the positioning service.
In an alternative embodiment, the above 3 steps of acquiring the application positioning information may be directly performed by the execution body device to acquire the application positioning information.
Optionally, the executing main device may specifically call the function module deployed inside, and execute the above 3 steps of acquiring the application positioning information respectively.
The embodiment is not limited to specific execution of the functional module.
Alternatively, the above 3 steps of acquiring the application positioning information may be performed by different functional modules, respectively. The method specifically comprises the step that a registration module, a callback module and a cancellation module are deployed on the execution main equipment.
Alternatively, the above 3 steps of acquiring the application positioning information may be performed by a single functional module; the registration and the cancellation of the positioning service and the acquisition of the application positioning information can also be respectively executed by different functional modules.
1. With respect to registration.
In an alternative embodiment, a registration module may be deployed in the execution body device. The present embodiment does not limit the function of the registration module.
Alternatively, the registration module may be configured to register the location service for the target application in case a location request of the target application is detected.
Alternatively, the registration module may be used to register the location service for the target application. The execution body device may invoke the registration module to register the location service for the target application if a location request of the target application is detected.
In order to conveniently obtain the registration time point of the positioning service, the deployed registration module is utilized, optionally, the registration module can be modified in advance, specifically, the function of modifying the registration module can be realized, and the function of obtaining the registration time point of the positioning service is newly added.
The registration module has a function of registering the positioning service for the application, so that the registration time point of the positioning service can be acquired relatively accurately, and the accuracy of the registration time point is improved.
Thus, alternatively, the above-described method flow may be applied to a device in which a registration module is deployed.
Optionally, in the case that the location request of the target application is detected, registering the location service for the target application and acquiring the registration time point of the location service may include: calling a registration module to execute: in the case of detecting a location request of a target application, a location service is registered for the target application, and a registration time point of the registered location service is acquired.
Of course, a function of sending the registration time point of the location service to other modules may be newly added to the registration module, so that the other modules acquire the registration time point of the registered location service.
In addition, the registration module with the two functions can be directly developed and deployed on the execution subject device.
For easy understanding, in a specific embodiment, the android mobile phone supports a positioning function, and the positioning service is automatically operated as a basic service of the android system along with the starting of the mobile phone. The logic of the third party application using the system Location function includes obtaining a proxy of a Location Service LMs (Location-Manager-Service) through a Location Manager LM (Location-Manager), thereby using the Location function.
Wherein the registration location service LMS may be a call function oneremoblelistenerviceregister ().
Therefore, a logic implementation may be added in advance in the onremoblelistenerviceregistration () function, so that when registration of the location service is successful, the current system time point may be further acquired as a registration time point.
Of course, the positioning service in other systems can also be based on the same principle, and the new logic realizes the acquisition of the registration time point.
2. With respect to positioning.
In an alternative embodiment, a callback module may be deployed in the execution body device. The present embodiment does not limit the functionality of the callback module.
Optionally, the callback module may be configured to send the location information callback acquired based on the location service to the upper layer application.
Optionally, the callback module may also be configured to send location information determined by the location service to an upper layer application when the location based on the location service is detected.
In order to conveniently acquire more information in the positioning process of the positioning service, the deployed callback module is utilized, optionally, the callback module can be modified in advance, specifically, the function of modifying the callback module can be realized, and the function of acquiring the related information of the positioning service in the positioning process is newly added.
The present embodiment does not limit the information related to the positioning service in the positioning process. Optionally, the positioning related information may include at least one of: location information, positioning mode, location information provider, identification information of target application, time point of obtaining location information, positioning result, positioning times, etc.
The information may reflect the positioning process of the positioning service from multiple angles, thereby enabling an improved degree of transparency of the positioning process.
The callback module can send the location information callback acquired by the location service to the upper layer application, so that the related information of the location service in the location process can be conveniently and directly acquired, and particularly, the information uploaded by the location service can be modified or the parameters of the callback module can be modified, so that the callback module can acquire more information of the location service in the location process.
And the callback module is used for acquiring the positioning related information, so that the transparency degree of the positioning process and the acquisition efficiency of the positioning related information can be improved.
Thus, alternatively, the above-described method flow may be applied to a device in which a callback module is deployed.
Optionally, in the case of detecting positioning based on the positioning service, acquiring positioning related information of the positioning service for positioning the time may include: calling a callback module to execute: and under the condition that the positioning based on the positioning service is detected, acquiring positioning related information of the positioning service for positioning.
Of course, the function of sending the positioning related information to other modules can be added for the callback module, so that the other modules acquire the positioning related information of the registered positioning service.
In addition, the callback module can be directly developed, and the positioning related information of the positioning service for the current positioning can be obtained under the condition that the positioning based on the positioning service is detected, so that the callback module is deployed on the execution main equipment.
In order to facilitate understanding, in a specific embodiment, a third party application in the android mobile phone may call a callback function to obtain location information in the process of using the positioning function, and report the location information upwards through callback. The method specifically may be to call the onReportLocation () function inside the locationprovidermanager.
Therefore, a logic implementation can be added in the onReportLocation () function in advance, so that the callback function can acquire the positioning related information of the positioning service for the positioning when the positioning based on the positioning service is detected.
3. With respect to logoff.
In an alternative embodiment, a logoff module may be deployed in the execution body device. The present embodiment does not limit the function of the cancellation module.
Alternatively, the cancellation module may be configured to cancel the location service registered for the target application in case a cancellation request of the target application is detected.
Alternatively, the cancellation module may be used to cancel a location service registered for the target application. The execution body device may invoke the cancellation module to cancel the location service registered for the target application if a cancellation request of the target application is detected.
In order to conveniently obtain the cancellation time point of the positioning service, the deployed cancellation module is utilized, optionally, the cancellation module can be modified in advance, and specifically, the function of modifying the cancellation module can be realized, and the function of obtaining the cancellation time point of the positioning service is newly added.
The cancellation module has a function of canceling the positioning service for the application, so that the cancellation time point of the positioning service can be acquired relatively accurately, and the accuracy of the cancellation time point is improved.
Thus, alternatively, the above-described method flow may be applied to a device with a cancellation module deployed.
Optionally, in the case that a logout request of the target application is detected, logging out the location service registered for the target application, and acquiring a logout time point of the location service may include: calling a logout module to execute: and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring a logout time point of the positioning service.
Of course, the function of sending the cancellation time point of the positioning service to other modules may be newly added to the cancellation module, so that other modules acquire the cancellation time point of the registered positioning service.
In addition, the cancellation module with the two functions can be directly developed and deployed on the execution main device.
In order to facilitate understanding, in a specific embodiment, a third party application on the android mobile phone may log off the positioning service and release the positioning resource when positioning ends, or related services end, or the user stops opening positioning rights, etc. Specifically, a function onRemovableListenerUnRegisteration () for deregistering the LMS is called.
Therefore, a logic implementation can be added in advance in the onremoblelistenerun registration () function, so that when the positioning service cancellation is successful, the current system time point can be further acquired as the cancellation time point.
Of course, the positioning service in other systems can also be based on the same principle, and the newly added logic can achieve to acquire the logout time point.
It should be noted that the above embodiments may be combined with each other to configure a plurality of functional modules in the execution body apparatus.
2. The above 3 steps of acquiring application positioning information are explained in detail.
1. And registering the positioning service for the target application under the condition that the positioning request of the target application is detected, and acquiring the registration time point of the positioning service.
Embodiments of the present disclosure are not limited in the manner in which a target application location request is specifically detected.
Alternatively, in the case that the target application is deployed on the execution subject device, the positioning request of the target application may be directly monitored for detection.
Alternatively, in the case where the target application is deployed on a device other than the execution subject device, it may be that, in the case where a positioning request of the target application is received, a positioning service is registered for the target application, and a registration time point of the positioning service is acquired.
Alternatively, in the case of calling the registration module to perform the above steps, the registration module may be called to perform: and under the condition that the registration module receives the positioning request of the target application, registering the positioning service aiming at the target application, and acquiring the registration time point of the positioning service.
Embodiments of the present disclosure are not limited to the content and form of the location request. Alternatively, the location request may include information of the target application, facilitating determination of registration of the location service for the target application based on the location request.
In addition, optionally, in order to facilitate subsequent processing, the identification information of the target application may be additionally acquired, so as to determine that the application corresponding to the registration time point of the positioning service is the target application, and facilitate subsequent distinguishing of different application positioning information according to the application.
Embodiments of the present disclosure are not limited to a particular form of target application identification information. Optionally, the identification information of the target application may include at least one of: application package name, application unique identification information, etc.
2. And under the condition that the positioning based on the registered positioning service is detected, acquiring the positioning related information of the current positioning of the registered positioning service.
Embodiments of the present disclosure are not limited to a particular manner of detecting a location service for locating.
Alternatively, the detection may be based on location information determined by the location services. Specifically, in the case where the location information determined by the location service is acquired, it may be determined that a location is performed based on the registered location service.
After registering the positioning service, one or more times of positioning can be performed according to the actual requirement of the application. And the positioning result has the possibility of successful positioning or failed positioning. And when the positioning fails, the position information cannot be acquired. Thus, alternatively, in the case where successful positioning based on the positioning service is detected, positioning related information of the present positioning of the registered positioning service may be acquired.
Alternatively, the detection may be performed directly according to the operation condition of the positioning service, for example, whether the positioning service operates a function with a positioning function. The detection mode is more comprehensive and accurate.
Alternatively, the result of successful or failed positioning may also be used as a positioning related information.
Alternatively, the positioning related information of the present positioning of the registered positioning service may be acquired each time the positioning based on the registered positioning service is detected. Thus, the number of detected positioning can also be used as a type of positioning related information.
In addition, optionally, in order to facilitate subsequent processing, the identification information of the target application may be additionally acquired, so as to determine that the application corresponding to the positioning related information is the target application, and facilitate subsequent distinguishing of different application positioning information according to the application.
3. In the case of detecting a cancellation request of a target application, a location service registered for the target application is cancelled, and a cancellation time point of the registered location service is acquired.
Embodiments of the present disclosure are not limited to the manner in which a target application logout request is specifically detected.
Alternatively, in the case that the target application is deployed on the execution subject device, the detection may be performed by directly monitoring the logout request of the target application.
Alternatively, in the case where the target application is deployed on a device other than the execution subject device, it may be that, in the case where a cancellation request of the target application is received, a location service registered for the target application is cancelled, and a cancellation time point of the registered location service is acquired.
Alternatively, in the case of calling the cancellation module to perform the above steps, the cancellation module may be called, and in the case that the cancellation module receives a cancellation request of the target application, the cancellation module cancels the location service registered for the target application, and acquires a cancellation time point of the registered location service.
Embodiments of the present disclosure are not limited to the content and form of the logoff request. Alternatively, the cancellation request may include information of the target application, facilitating determination of cancellation of the location service for the target application based on the cancellation request.
In addition, optionally, in order to facilitate subsequent processing, the identification information of the target application may be additionally acquired, so as to determine that the application corresponding to the logout time point of the positioning service is the target application, and facilitate subsequent distinguishing of different application positioning information according to the application.
3. Processing is performed for the acquired application positioning information.
The disclosed embodiments are not limited to application positioning information that needs to be obtained.
In an alternative embodiment, further processing may be performed for the acquired one or more application location information, and further application location information is acquired.
The present embodiment is not limited to a specific processing method. Alternatively, the directly acquired application positioning information may be integrated, and more application positioning information may be determined by means of mathematical operations or the like.
Alternatively, for the registration time point and the cancellation time point, the duration between the registration time point and the cancellation time point may be determined as the registration duration of the location service as one type of application location information.
Optionally, the number of positioning times may be further divided by the registration duration of the positioning service to obtain the positioning frequency, so that the positioning frequency is also used as an application positioning information.
Alternatively, the location information of the plurality of locations may be integrated to determine a location range as one type of application location information.
Alternatively, the number of times of using the positioning method of the multiple positioning or the number of times of providing by the position information provider may be counted as one type of application positioning information.
Optionally, the application positioning information to be acquired may include at least one of: registration time point of location service, location related information, and cancellation time point of location service.
Optionally, obtaining application positioning information corresponding to the target application includes: acquiring application positioning information of at least one of the following: registration time point of positioning service, positioning related information for positioning based on positioning service, and cancellation time point of positioning service; and carrying out preset processing on the acquired at least one item of application positioning information to acquire other application positioning information. Specific explanations can be found in the above explanations. Other application positioning information here also belongs to the application positioning information that needs to be acquired.
Optionally, the application positioning information sent to the display device may include at least one piece of application positioning information obtained above, and/or other application positioning information obtained through a preset process.
The preset processing is not limited to a specific manner, and may be a mathematical calculation or a range estimation, as long as information of the application positioning process can be obtained.
Wherein the obtained other application positioning information may include at least one of: registration duration of location service, location frequency, location range, number of location mode uses, number of location information provider offerings, etc.
Further, optionally, the acquired application positioning information may be used for additional analysis. Such as energy consumption analysis, safety analysis, etc. The obtained application positioning information can be sent to a service end for analysis, for example, the application positioning information is periodically sent to a cloud end for storage, and the subsequent service analysis is facilitated.
4. And displaying the acquired application positioning information.
In order to improve the grasping degree of the application positioning process by the user and the transparency degree of the application positioning process to the user, the obtained application positioning information can be displayed to the user.
For S102: and sending the application positioning information to the display device under the condition that the display request is detected, so that the display device displays the application positioning information in real time. The explanation follows from 3 aspects, respectively.
1. Display mode.
The embodiments of the present disclosure are not limited to a specific display mode. Alternatively, an active or triggered display mode may be employed.
The active display mode can be active display of application positioning information, and the trigger display mode can be display of the application positioning information according to the request trigger.
For easy understanding, in a specific example, the registration time point and the logout time point of each application can be actively displayed on a screen of the device, specifically, the device can be displayed on a desktop of a mobile phone for a user to view; and an interface containing application positioning information display can be rendered and displayed to the user in the case that the user triggers a specific button, such as the button displayed in the application positioning condition.
Alternatively, a real-time display mode or a delayed display mode may be adopted.
The real-time display may be to display the obtained application positioning information in real time, and the delay display may be to store the obtained application positioning information first and display the application positioning information when the display is needed.
The real-time display can conveniently improve the timeliness of the displayed application positioning information.
Optionally, the real-time display may be combined with the active display or the triggered display, and specifically, the obtained application positioning information may be sent to the display function module or the display device in real time, so that the display function module performs the active display or the triggered display.
For easy understanding, in a specific example, the obtained application positioning information may be sent to the display function module in real time, and then the display function module actively displays the application positioning information received in real time on the desktop of the mobile phone; the obtained application positioning information can be sent to the display function module in real time, and after the display function module is triggered, an interface containing the application positioning information is rendered, and the received application positioning information can be updated and displayed on the interface in real time. In particular, application positioning information which changes with time is displayed on an interface.
Optionally, the time-lapse display may also incorporate the active display or the trigger display described above. Specifically, the stored application positioning information is displayed according to the requirement of active display; the stored application positioning information may also be displayed according to the need to trigger the display.
For easy understanding, in a specific example, the mobile phone desktop may be set to periodically display application positioning information, so that pre-stored application positioning information may be displayed at a specific period time; or an interface for displaying the stored application positioning information can be rendered after the display function module is triggered.
While, for display requests, embodiments of the present disclosure are not limited to a particular form and manner of detection of display requests.
Alternatively, the display request may be generated based on an active display. For example, a process running in the execution main device can periodically and actively generate a display request, so that application positioning information can be conveniently and actively displayed.
Alternatively, the display request may be generated based on a manner of triggering the display. For example, the execution subject device determines that the application positioning information needs to be displayed based on the user operation, so that the display request can be generated.
Alternatively, the display request may be generated based on a real-time display. For example, the execution subject device may generate a display request in real time for real-time display when any application positioning information is acquired.
Alternatively, the display request may be generated based on a delayed display. For example, the executing device may store the acquired application positioning information first, and display the stored application positioning information according to a periodically actively generated display request or trigger a generated display request.
Of course, the generation modes of the display request may be combined with each other. The present disclosure is not limited.
Optionally, the manner of detecting the display request may specifically be detecting whether the display request is received or not, or detecting whether the display request is generated or not.
For an explanation of the display device, see above.
Optionally, based on the manner of real-time display, sending the application positioning information to the display device, so that the display device displays the application positioning information in real time, may include: and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
Of course, it may specifically be that any module in the execution main device obtains any application positioning information, and sends the obtained application positioning information to the display device in real time. The execution subject device may also control the display device to display the received application positioning information in real time.
Any module in the device may specifically be a registration module, a callback module or a logout module, or may also be other modules in the device. For example, other modules for obtaining positioning information of other applications according to the registration time point of the positioning service, the positioning related information, and the cancellation time point of the positioning service.
After the modules acquire the application positioning information, the modules can send the acquired application positioning information to the display module in real time.
Alternatively, a delayed display mode may be adopted. The method flow may further include: under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set; transmitting the application positioning information to the display device to cause the display device to display the application positioning information in real time may include: and sending the application positioning information in the preset information set to the display equipment so that the display equipment displays the received application positioning information in real time.
The storage mode is not limited, and the storage position or form of the preset information set is not limited, so long as the storage space can be used, and the application positioning information in the preset information set can be conveniently sent to the display device for display. The preset information set may store application positioning information acquired by the executing subject device, specifically may be application positioning information acquired in a history period, and the acquired application positioning information may be added over time.
In addition, optionally, the real-time display and the time delay display may be combined with each other, so as to improve the information display effect.
Optionally, the method flow may further include: and under the condition that any application positioning information is acquired, storing the acquired application positioning information into a preset information set.
Optionally, in the case of detecting the display request, sending the application positioning information to the display device, so that the display device displays the application positioning information in real time, may include: and under the condition that the display request is detected, if any application positioning information is acquired, sending the acquired application positioning information and the application positioning information in the preset information set to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
The method comprises the steps of acquiring any application positioning information in real time, and sending the application positioning information acquired in real time and the application positioning information in a preset information set to display equipment in real time.
Of course, there is also a case where, in the case where the display request is detected, no application positioning information is currently acquired. Therefore, the application positioning information in the preset information set can be directly sent for display.
Optionally, in the case of detecting the display request, sending the application positioning information to the display device, so that the display device displays the application positioning information in real time, may include: and under the condition that the display request is detected, if any application positioning information is not currently acquired, presetting the application positioning information in the information set to the display equipment, so that the display equipment displays the received application positioning information in real time.
Alternatively, the real-time display and the time-lapse display may be performed in parallel. In the case that the display request is detected, transmitting the application positioning information to the display device so that the display device displays the application positioning information in real time may include: in the case where the display request is detected, the following steps are performed: the method comprises the steps of sending application positioning information in a preset information set to display equipment in real time, so that the display equipment displays the received application positioning information in real time; and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
In this embodiment, on the one hand, the pre-stored application positioning information may be sent, and on the other hand, the application positioning information acquired in real time may be sent in parallel, so that the display device may display the application positioning information in real time, and thus, the display device may display the application positioning information comprehensively, and the display effect may be improved.
Specific explanations can be found above.
Embodiments of the present disclosure are not limited in the manner in which application positioning information is transmitted.
Optionally, the application positioning information can be directly sent, encrypted sent, broadcast-mode sent to the display device, dynamic broadcast-mode sent to the display device, and further dynamic broadcast-mode setting can enable the display device with authority or decryption capability to acquire application positioning information plaintext.
Optionally, sending the obtained application positioning information to the display device in real time may include any of the following:
1) The obtained application positioning information is transmitted to the display equipment in real time in an encryption mode, and the display equipment decrypts to obtain application positioning information plaintext;
2) The obtained application positioning information is sent in real time in a broadcasting mode, so that the display equipment can obtain the broadcasted application positioning information;
3) And sending the obtained application positioning information in real time in a dynamic broadcasting mode, so that the display equipment obtains the application positioning information plaintext according to the application positioning information which is dynamically broadcasted.
The present embodiment is not limited to a specific manner of encrypted transmission. Alternatively, a symmetric encryption manner may be adopted, and an asymmetric encryption manner may also be adopted.
Alternatively, the display device may have dynamic broadcast rights, enabling decryption for dynamically broadcasted content.
2. Content displayed.
In S102, the display device may display application positioning information.
The specific content of the displayed application positioning information is not limited in the embodiments of the present disclosure.
Alternatively, the display device may display the application positioning information received from the execution subject device in real time. And the application positioning information transmitted by the specific execution subject device may include: the application positioning information is acquired in real time and/or the application positioning information in a pre-stored preset information set.
And aiming at the application positioning information in the preset information set, part of application positioning information can be selected for display through condition screening.
In an alternative embodiment, the application location information may be filtered on a time period basis for ease of viewing by the user.
Optionally, the execution main device may send the application positioning information acquired in real time to the display device in real time, so that the display device can dynamically display the application positioning information acquired in real time. And further, a user can conveniently master the current real-time application positioning condition.
For example, after the display device starts to display, application positioning information currently acquired in real time by the execution subject device is displayed in real time, so that the application positioning information can be gradually accumulated on the display interface for display.
Alternatively, when the execution subject device transmits the pre-stored application positioning information to the display device, since the application positioning information is acquired in the history period, a part thereof may be selected for transmission and display.
The present embodiment is not limited to a specific selection manner. Alternatively, the application positioning information within the preset history period may be selected and sent to the display device, so that the display device displays the selected application positioning information in real time. The historical period selected here may be determined according to the user's needs.
For ease of understanding, for example, application location information within the day, application location information yesterday, application location information within the week, application location information within the month, and the like may be selected.
For example, the user may select a specified date, and the execution subject device may transmit application positioning information within the specified date to the display device to cause the display device to display.
Alternatively, the application positioning information acquired in real time currently and the application positioning information of the history period in the preset information set may be sent to the display device together for display.
Of course, the screening of the time period is an optional embodiment, and application positioning information in the preset information set can be screened out for display through other conditions.
For example, the positioning time period is greater than a preset time period threshold, application positioning information within a specified period, and so forth.
Optionally, sending the application positioning information in the preset information set to the display device may include: and sending application positioning information meeting preset conditions in the preset information set to the display equipment.
Optionally, sending the obtained application positioning information and the application positioning information in the preset information set to the display device in real time, so that the display device displays the received application positioning information in real time, which may include: and sending the obtained application positioning information and the application positioning information meeting the preset conditions in the preset information set to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
The present embodiment is not limited to the specific contents of the preset conditions. Optionally, the preset condition may be application positioning information in a preset history period, application positioning information with a positioning time longer than a preset time threshold, application positioning information in a specified application or a specified period, and so on.
The source of the preset conditions is not limited in this embodiment. Alternatively, the preset condition may be specified by the user, or may be preset.
3. Display form.
Embodiments of the present disclosure are not limited to a particular display form.
Alternatively, the application positioning information may be directly displayed in the form of a table. Specifically, application identification is taken as a primary key, and application positioning information of each application is displayed.
Alternatively, application positioning information of each application may be displayed separately based on the application, and specifically may be displayed in a graphical manner.
In an alternative embodiment, to increase the visual degree of the display, waveforms that vary over time may be displayed separately for each application. The specific waveform form is not limited.
Alternatively, the waveform may include high and low levels, and rising and falling edges. And particularly when displaying the waveform corresponding to the application, the position of the registration time point can be set to display the rising edge, the position of the cancellation time point can be set to display the falling edge, the high level is displayed during registration of the positioning service, and the low level is displayed during cancellation of the positioning service.
Wherein the positioning related information can be displayed in a high level portion.
Optionally, the method may further include displaying the acquired application positioning information in real time: in the case where the display request is detected, the following operations are performed: displaying a waveform corresponding to the target application and varying with time; under the condition that a registration time point of the positioning service is acquired, controlling a waveform corresponding to the target application, and displaying a rising edge at the position of the registration time point; under the condition that positioning related information is acquired, controlling a waveform corresponding to the target application, and displaying the positioning related information; and under the condition that the logout time point of the positioning service is acquired, controlling the waveform corresponding to the target application, and displaying the falling edge at the position of the logout time point.
Optionally, in combination with the display device, to cause the display device to display the application positioning information in real time may include: so that the display device performs the following operations: displaying waveforms corresponding to the target application in real time and varying with time; under the condition that a registration time point of the positioning service is received, controlling a waveform corresponding to the target application, and displaying a rising edge at the position of the registration time point in real time; under the condition that positioning related information is received, controlling a waveform corresponding to the target application, and displaying the positioning related information in real time; and under the condition that a logout time point of the positioning service is received, controlling a waveform corresponding to the target application, and displaying a falling edge at the position of the logout time point in real time.
Optionally, the execution subject device may specifically control the display device to display the application positioning information in real time. In the case where the display device is part of an execution subject device, the execution subject device may invoke the display device to display application positioning information in real time.
Wherein, optionally, the positioning related information may include: a point in time at which the location information is acquired. The controlling the waveform corresponding to the target application, displaying the positioning related information in real time may include: and the control target applies the corresponding waveform and displays the positioning related information in real time at the time point position of acquiring the position information.
The waveform corresponding to the target application is displayed in real time, so that the display effect can be improved, and the timeliness of application positioning information display can be improved conveniently.
Of course, a delayed display mode may also be adopted.
Optionally, the method flow may further include: in the case where the display request is detected, the following operations are performed: displaying a waveform corresponding to the target application and varying with time; the method comprises the steps of obtaining pre-stored application positioning information; the control target applies the corresponding waveform, displays the rising edge at the position of the prestored registration time point, displays the prestored positioning related information, and displays the falling edge at the position of the prestored cancellation time point.
Alternatively, the display image data corresponding to the application positioning information, that is, the waveform, may be determined directly by the execution subject device and sent to the display device, so that the display device directly displays the received display image data.
Optionally, sending the application positioning information to the display device, so that the display device displays the application positioning information in real time, may include: and sending display image data corresponding to the application positioning information to the display equipment so that the display equipment displays the received display image data in real time.
The display image data corresponding to the application positioning information may belong to the application positioning information, and be used as a display mode of the application positioning information.
The present embodiment is not limited to the generation method of the display image data. Alternatively, the execution subject device may generate the corresponding display image data according to the acquired application positioning information.
The present embodiment is not limited to a specific form of displaying the image data. Alternatively, the waveform may be in the form of the waveform, or other patterns may be used. Other graphics such as line graphs, bar graphs, etc.
Alternatively, the display image data may include waveforms for indicating a change in application positioning information over time. Alternatively, the waveform may include a rising edge and a falling edge; the time point corresponding to the position of the rising edge of the waveform may include a registration time point; the time point corresponding to the position of the falling edge in the waveform can comprise a logout time point.
Optionally, the positioning related information may include: a time point of acquiring the position information; the waveform can also contain a preset mark; the time point corresponding to the position of the preset mark in the waveform may include: a point in time at which the location information is acquired.
The visual degree of the displayed image data can be improved through the embodiment, and a user can conveniently and well grasp the situation of the application positioning process.
For ease of understanding, fig. 2 is a waveform diagram of an application positioning information display according to an exemplary embodiment of the present disclosure.
Which includes a time abscissa and waveforms corresponding to the target application. Registration time points are 2:00 and 6:00, and deregistration time points are 4:00 and 8:00. Thus there may be two high levels, 2:00-4:00, and 6:00-8:00, respectively.
The two high levels can display positioning related information, and particularly can display positioning modes, namely satellite positioning and base station positioning.
By displaying the waveform diagrams, the situation of the application positioning process can be visually displayed, so that a user can conveniently grasp the application positioning process, and the transparency degree of the application positioning process is improved.
For ease of understanding, the present disclosure also provides an application embodiment. The application positioning information acquisition method under the android system can be explained.
The following concepts are explained first.
GNSS Global Navigation Satellite System, based on the positioning module, the system can provide all-weather, all-day, high-precision positioning, navigation and time service for global users. By means of the positioning module on the mobile phone, the system can provide relatively accurate geographical position information for the user.
LM: location Manager, the Location service Manager in the android system, the open Location service of android system calls the interface agency, can call the positioning module of the mobile phone system to carry on the Location information reporting based on this, has shielded the complicated bottom communication protocol to be correlated, can be convenient to operate the mobile phone and locate the function and carry on the secondary development.
And Location Manager Service, receiving registration of the LM so as to call the system API, and further realizing the issuing of the positioning command and the reporting of the position information from top to bottom.
GLP: gnss Location Provider, satellite positioning position provider.
NLP: network Location Provider, network location provider.
FLP: fused Location Provider, converged location provider.
PLP: passive Location Provider, passive location provider.
The four types of location information providers can be explained above.
1. Application background.
GNSS is currently a very important function on mobile phones, and is one of the most frequently used functions of people in daily life, and in terms of the android system, the application of a request for location information is not limited to the use of a satellite positioning module (satellite positioning, with higher precision), but also network positioning based on network IP, a "fused position" based on fusion algorithm of the two, and a "passive positioning" mode based on the latest positioning data of the former three.
The above providers of location information are referred to as (abbreviated GLP/NLP/FLP/PLP), respectively.
In the android system layer, an application starts from a position information request, which position information provider the application uses, and when the application terminates a position information request, which is often difficult for a user to directly see, and has an opaque problem.
At present, a complete code logic framework exists under the condition that the android system requests position information for an application, the application needs to apply through the framework when the application wants to use the position information, and meanwhile, the position information reported by the framework is received, so that the code logic framework is the coding specification of the android system.
However, when the application applies for what positioning and when it terminates, these are only specific functions (corresponding) within the framework, and the application needs the location information frequently, regardless of the location, and the actual application scenario of the user is exemplified:
1) Lane-level navigation during driving requires map application and continuous use of GLP-provided position information (higher accuracy satellite positioning position).
2) The location is typically provided on the basis of NLP in indoor scenario, because no satellite positioning signal is present in the indoor, such as indoor use of ordering software, which is typically location information derived from route IP.
The above location information provider, which determines what location information is needed by the application itself, will of course generally apply for one or more (this is the freedom of the application) and when the application cancels the registration is also the freedom of the application.
This information should also be displayed to the user, increasing the transparency of the application localization process to the user.
2. The current technical proposal.
In the current technical scheme, the android system side displays the position information requested by the application in a status bar in an icon mode, which is a design that the position information is requested to be displayed to a user, but only displays that the application is requesting positioning, and the display of the application positioning process is relatively brief.
There is also a technical solution to display the number of positioning per day for the application. But this display is also somewhat simplified.
3. The technical scheme provided by the application embodiment is briefly explained.
The technical field that this technical scheme belongs to is GNSS that is the location navigation field, and present technical scheme is based on the design of android mobile phone native positioning frame and realizes, through carrying out improvement processing on the position information request, the reporting passageway of android system native positioning frame, includes:
1) The application that initiated the current positioning request (specifically, an application, named as map application [ package name: com.autonavi.minimap) as an example.
2) The time nodes (T1, T2) from the start of the request to the end of the request are recorded.
3) Based on the recorded time nodes (T1 and T2), the application behavior of the mobile phone is transmitted to the UI side in a dynamic android system broadcasting mode (integrated in the APK of a mobile phone manager and set here) and displayed in real time in a waveform mode in an oscilloscope.
According to the technical scheme, the user can intuitively know the situation of the application positioning process, and the function can display the mobile phone positioning function (system level) clearly and clearly by the calling situation of the three-party application (or system application) and display the mobile phone positioning function clearly to the user in a real-time waveform mode in terms of the user safety privacy level, so that the user-oriented function design is very friendly and transparent for the application position information request behavior.
In addition, the function can be opened to a developer in a dynamic broadcasting mode, and the development design of the more diversified system position information requested behavior record level is derived in a concentrated thinking mode.
The user may develop his own monitoring APK. This has made a further cushion to some extent on the secondary developability of the system (developer-oriented way of using APK, on the basis of not altering the source code).
For ease of understanding, fig. 3 is a schematic diagram of an application positioning information obtaining method according to an exemplary embodiment of the present disclosure.
When the mobile phone opens the position information switch, the mobile phone application (APK, system or three-party) is allowed to use the position information service, and based on this, a more accurate record (which can be dumped to a database) is made on the system side (layer) for the request of the three-party application for the position information.
And visual display (real-time) can be realized on the UI side, which is the most intuitive and closest to the user (the user has intuitive knowledge of the use condition of the positioning resource of the user equipment).
In particular, it is possible to obtain the time nodes (T1, T2) from the beginning of the request to the end of the request.
A location information provider (GLP/NLP/FLP/PLP) and a time node Tp for obtaining location information may also be obtained.
T1, T2 and Tp can then be shown in the waveform diagram.
4. The technical scheme provided by the application embodiment is explained in detail.
At present, the android mobile phone can support a positioning function, and a positioning service is used as a basic service of the android system and runs automatically along with the starting of the mobile phone.
The third party application uses the logic of the System Location function to obtain the proxy of Location Service LMs (Location-Manager-Service) through Location Manager LM (Location-Manager), and further call the System interface (System-API) provided by the Service to initiate Location and obtain Location information through "callback function". The process of initiating positioning and the process of feeding back position information from the bottom layer to the upper layer through callback can be briefly summarized by the following fig. 4.
As shown in fig. 4, fig. 4 is a schematic diagram of an application positioning process according to an exemplary embodiment of the present disclosure.
The third party application APP registers a location service LMS through a location manager locator.
Here, emphasis is placed on three functions (in the entire positioning procedure):
1) The function onremovanblelisteneresistationj () (which may be referred to as a registration function) of registering the LMS service.
2) The function onRemovableListenerUnRegistration () (which may be referred to as a deregistration function) that deregisters the LMS service.
3) The bottom layer reports the position information upwards through callback, namely:
the onReportLocation () function (which may be referred to as a callback function) inside the localisation management localprovidermanager.
Four types of location information providers may be used when the positioning is explained earlier.
All four types of location information providers can be called by the upper layer APP through the location service flow shown in fig. 3, and finally the upper layer APP feeds back the location information in a callback manner, and the complete process has to go through the three functions:
registration function onemovablelisteneresistationo ();
callback function onReportLocation ();
the cancellation function onRemovabbleListenerUnRegisteration ().
Through the above analysis of the positioning process of the android system, an important conclusion can be obtained that the whole positioning process (certain application) can be monitored in real time, and various information in the positioning process can be obtained.
For example, when an application registers an LMS, to which Application (APP) the system is currently reporting Location information, which Location information provider's Location information is used, the Location information details of the reporting [ quantitative parameters of latitude and longitude, altitude, speed, etc. ], all encapsulated within the Location class ], when an application logs out of an LMS, etc.
The method specifically comprises the steps of pre-developing the 3 functions, and additionally developing a function to acquire various information in the positioning process; or developing aiming at the interior of 3 functions to acquire various information in the positioning process.
Based on this, real-time display can be visually performed by dynamic broadcasting.
Dynamic broadcasting refers to broadcasting logic under an android framework, which provides a sendcast () function, the sendcast () function takes Intent as an input parameter, and the Intent can integrate a Bundle data structure, and the structure can carry custom data structure logic, such as a (packet name, time node) logic structure used in the scheme.
By setting the reception limit, only the broadcast receiver that has checked the limit can receive the broadcast content, which is actually a data encryption manner, by which the broadcast can be provided to the third party developer, so that it can design and monitor the APK.
In addition, the dynamic broadcasting can be logged off without being declared in advance, and the function of transmitting data information to the system globally (or opening to an APK layer) can be realized to the greatest extent.
As shown in fig. 5, fig. 5 is a schematic diagram of a dynamic broadcast according to an exemplary embodiment of the present disclosure.
Wherein the reception limit may be set for a module having a right so that the module may receive the dynamically broadcasted content for decryption.
Therefore, for the content sent by dynamic broadcasting, the module without the authority cannot decrypt and acquire the plaintext, the module with the authority can decrypt and acquire the plaintext, and the third-party developer can also further develop based on the content of dynamic broadcasting.
In this case, it is said that although the broadcast is broadcast to the system global, the receiving limitation of the dynamic broadcast is not satisfied, and the receiver cannot analyze the built-in data of the broadcast message, so that the data protection and the rights opening to the developer can be provided.
While specific steps in this application embodiment may include:
1) When the mobile phone is started, the LMS service is automatically tuned up and is always in an operation state as a system-level service.
2) The application must locate the resource through the logical paths of onRemovableListener registration () and onRemovableListenerUnRegistration () and onReportLocation () each time, these 3 functions are implemented in advance by code design, where the action logic is as follows:
(1) Acquiring the current application package name from the inside of the onRemovableListenerRegisteration function, recording the current request time T1, and broadcasting to the UI side in real time;
(2) acquiring the current application package name and recording the current report time Tp in the onReportlocation function, and broadcasting the current application package name to a UI side in real time (possibly no valid position report at this time, but the whole path flow is not influenced); other application location information, such as a location information provider, may also be recorded and broadcast herein.
(3) The onRemovableListenUnRegisteration function internally acquires the current application package name, records the current request time T2 and broadcasts the current request time T2 to the UI side in real time.
As shown in fig. 6, fig. 6 is a schematic diagram of another application positioning process according to an exemplary embodiment of the present disclosure.
Among them, the specific broadcasting is dynamic broadcasting using sendroadcast () function (which may be called a broadcasting function).
The UI side may display the received data in real time, and may specifically display the received data in a real-time waveform manner.
After the UI side directly receives the broadcast and analyzes the data, two-dimensional view display can be injected, and the time is taken as the horizontal axis (the time length of one-time use can be recorded [ positioning resource occupation ]), the package name and the specific provider of the position information (GLP/NLP/FLP/PLP) are displayed on the graph in a way, so that the visual display is carried out.
Of course, an application may correspond one-to-one to a waveform. Different applications may correspond to different waveforms.
As shown in fig. 7, fig. 7 is a schematic diagram illustrating an application positioning information display according to an exemplary embodiment of the present disclosure.
The rising edge of the waveform may be generated at the time point of registration of the LMS, specifically, may start rising at the time point of starting registration of the LMS and stop at the time point of successful registration of the LMS.
The falling edge of the waveform may also be generated at the point in time when the LMS is logged off. Specifically, the LMS may start to be logged off at a point in time when the LMS starts to be logged off, and stop at a point in time when the LMS is successfully logged off.
And for the information broadcast by the callback function, the time point of acquiring the location information and the location information provider can be included. Specifically, a flag may be displayed at the position of the point in time when the position information is acquired. Different identifications may represent different location information providers.
Therefore, through the scheme, the application positioning information can be displayed to the user more intuitively, and the transparency degree of the application positioning process is improved.
The specific display mode may be UI direct active display or may be display when triggered by the user.
Specifically, the user clicks a button of "application positioning condition" to display, or invokes an APK of a mobile phone manager to display.
As shown in fig. 8, fig. 8 is a schematic diagram illustrating another application positioning information display according to an exemplary embodiment of the present disclosure.
The mobile phone manager APK can call the display function step by step, render and display the broadcast content acquired in real time, and particularly can render waveforms corresponding to various applications, so that a user can conveniently and intuitively check application positioning conditions.
Of course, the display may also be performed in conjunction with application positioning information stored in the history.
According to the technical scheme, firstly, on the android underlying positioning framework side, the request positioning of a single application is started from the request position information (namely, the registration of the LMS) to the request termination (the cancellation of the LMS registration), and meanwhile, the position information provider of the request is recorded.
The method is based on the design of an android system side, the method is implanted in a source code mode, real-time recording of each position information request of the three-party application can be realized from a bottom layer, action information of the three-party application is transmitted to a UI side (a setting layer or a mobile phone manager APK side can be set or integrated at the same time) in a dynamic broadcasting mode, and the positioning condition of the application is displayed to a user in real time in an oscillographic display mode on the UI side.
And can store all application location information request behaviors of the current day, to the database (for later users to call and view or other), can also synchronize the data table to the cloud server [ can reduce the local storage consumption, for example, synchronize once every 24 hours, can delete the recorded data of the first 24 hours of the local time ].
In addition, the architecture is realized based on the android positioning service framework design, is a function integrated into the architecture, and can reduce the extra power consumption of the system (the broadcasting mode is actually extremely low in power consumption, and the architecture is used as one of four android components, so that the stability and the safety are better, and the risk of privacy exposure of a user is not increased).
In a specific display mode, the display can be directly performed on the desktop of the mobile phone, the display can be triggered, and whether the display is performed or not can be conveniently set by a user by adding a switch.
1) A control switch is added inside the setting option to control the on and off of the function, and the logic mainly acts inside the bottom-layer onReportLocation () function and on the upper-layer UI display side.
(1) Disable the function when the switch is closed and enable the function when the switch is opened.
(2) Because of the dynamic broadcasting mode, power consumption is not generated during closing, and meanwhile, the risk of crash, the risk of privacy disclosure and the like of the system are not caused.
2) The display may be selected on the "setup" side or the "desktop" side. It is also possible to choose whether to set the active display or to trigger the display.
As shown in fig. 9, fig. 9 is a display mode setting interface diagram illustrating an exemplary embodiment of the present disclosure.
In addition, the intelligent mobile phone can support various functional expansion (mainly embodied on a UI display layer, such as a user can customize and display curve types, topics, icons and the like), and the user can obtain better intelligent mobile phone use experience.
According to the technical scheme, the use condition of the application on the android system positioning resource is recorded on the system side and is broadcasted to the UI side in real time, and the transparency degree of the application positioning process is passed.
For the foregoing method embodiments, for simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will appreciate that the present disclosure is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the disclosure.
Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
Corresponding to the foregoing method embodiments, the present disclosure also provides apparatus embodiments.
Referring to fig. 10, which is a block diagram of an application positioning information acquiring apparatus according to an exemplary embodiment of the present disclosure, the apparatus may include:
an information unit 201, configured to obtain application positioning information corresponding to a target application when it is detected that the target application invokes a positioning service, where the application positioning information includes at least one of: registration time point of positioning service, positioning related information for positioning based on positioning service, and cancellation time point of positioning service;
and a display unit 202 for sending the application positioning information to the display device in case of detecting the display request, so that the display device displays the application positioning information in real time.
Optionally, the display unit 202 is configured to: and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
Optionally, the information unit 201 is further configured to: under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
Optionally, the display unit 202 is configured to: and sending the application positioning information in the preset information set to the display equipment so that the display equipment displays the received application positioning information in real time.
Optionally, the information unit 201 is further configured to: under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
optionally, the display unit 202 is configured to: and under the condition that the display request is detected, if any application positioning information is acquired, sending the acquired application positioning information and the application positioning information in the preset information set to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
Optionally, the display unit 202 is configured to: in the case where the display request is detected, the following steps are performed: transmitting application positioning information in a preset information set to display equipment so that the display equipment displays the received application positioning information in real time; and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
Optionally, the display unit 202 is configured to perform any of the following:
The obtained application positioning information is transmitted to the display equipment in real time in an encryption mode, and the display equipment decrypts to obtain application positioning information plaintext;
the obtained application positioning information is sent in real time in a broadcasting mode, so that the display equipment can obtain the broadcasted application positioning information;
and sending the obtained application positioning information in real time in a dynamic broadcasting mode, so that the display equipment obtains the application positioning information plaintext according to the application positioning information which is dynamically broadcasted.
Optionally, the information unit 201 is configured to perform at least one of: under the condition that a positioning request of a target application is detected, registering a positioning service aiming at the target application, and acquiring a registration time point of the positioning service; under the condition that positioning based on positioning service is detected, positioning related information of the positioning service for positioning at the present time is obtained; and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring a logout time point of the positioning service.
Optionally, the information unit 201 is configured to: calling a registration module to execute: and registering the positioning service for the target application under the condition that the positioning request of the target application is detected, and acquiring the registration time point of the positioning service.
Optionally, the information unit 201 is configured to: calling a callback module to execute: and under the condition that the positioning based on the positioning service is detected, acquiring positioning related information of the positioning service for positioning.
Optionally, the information unit 201 is configured to: calling a logout module to execute: and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring a logout time point of the positioning service.
Optionally, the positioning related information comprises at least one of: position information, a positioning mode, a position information provider, identification information of a target application, a time point for acquiring the position information, a positioning result and positioning times.
Optionally, the information unit 201 is configured to: acquiring application positioning information of at least one of the following: registration time point of positioning service, positioning related information for positioning based on positioning service, and cancellation time point of positioning service;
and carrying out preset processing on the acquired at least one item of application positioning information to acquire other application positioning information.
Optionally, the display unit 202 is configured to: so that the display device performs the following operations:
displaying waveforms corresponding to the target application in real time and varying with time;
Under the condition that a registration time point of the positioning service is received, controlling a waveform corresponding to the target application, and displaying a rising edge at the position of the registration time point in real time;
under the condition that positioning related information is received, controlling a waveform corresponding to the target application, and displaying the positioning related information in real time;
and under the condition that a logout time point of the positioning service is received, controlling a waveform corresponding to the target application, and displaying a falling edge at the position of the logout time point in real time.
Optionally, the positioning related information includes: a time point of acquiring the position information;
the display unit 202 is configured to: under the condition that the display equipment receives the positioning related information, controlling the waveform corresponding to the target application, and displaying the positioning related information in real time at the time point position of acquiring the position information.
Optionally, the display unit 202 is configured to: and sending display image data corresponding to the application positioning information to the display equipment so that the display equipment displays the received display image data in real time.
Wherein displaying the image data may include: for indicating the waveform over time of the application positioning information. The waveform may include a rising edge and a falling edge; the time point corresponding to the position of the rising edge of the waveform comprises a registration time point; the time point corresponding to the position of the falling edge in the waveform comprises a logout time point.
Optionally, the positioning related information includes: a time point of acquiring the position information; the waveform also comprises a preset mark; the time point corresponding to the position of the preset mark in the waveform comprises: a point in time at which the location information is acquired.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements described above as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the disclosed solution. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Accordingly, in one aspect, an embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
under the condition that a positioning request of a target application is detected, registering a positioning service aiming at the target application, and acquiring a registration time point of the positioning service;
Under the condition that positioning based on positioning service is detected, positioning related information of the positioning service for positioning at the present time is obtained;
and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring a logout time point of the positioning service.
Fig. 11 is a schematic diagram showing a structure of an application positioning information acquiring apparatus 1500 according to an exemplary embodiment. For example, apparatus 1500 may be a user device, which may be embodied as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, smart bracelet, smart running shoe, and the like.
Referring to fig. 11, apparatus 1500 may include one or more of the following components: a processing component 1502, a memory 1504, a power component 1506, a multimedia component 1508, an audio component 1510, an input/output (I/O) interface 1512, a sensor component 1514, and a communications component 1516.
The processing component 1502 generally controls overall operation of the apparatus 1500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1502 may include one or more processors 1520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1502 may include one or more modules that facilitate interactions between the processing component 1502 and other components. For example, the processing component 1502 may include a multimedia module to facilitate interaction between the multimedia component 1508 and the processing component 1502.
The memory 1504 is configured to store various types of data to support operations at the apparatus 1500. Examples of such data include instructions for any application or method operating on the apparatus 1500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply assembly 1506 provides power to the various components of the apparatus 1500. The power supply component 1506 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1500.
The multimedia component 1508 comprises a screen between the device 1500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only a boundary of a touch or a sliding action but also a duration and a pressure related to the touch or the sliding operation. In some embodiments, multimedia assembly 1508 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1500 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1510 is configured to output and/or input audio signals. For example, the audio component 1510 includes a Microphone (MIC) configured to receive external audio signals when the device 1500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1504 or transmitted via the communication component 1516. In some embodiments, the audio component 1510 further comprises a speaker for outputting audio signals.
The I/O interface 1512 provides an interface between the processing component 1502 and peripheral interface modules, which can be keyboards, click wheels, buttons, and the like. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1514 includes one or more sensors for providing status assessment of various aspects of the apparatus 1500. For example, the sensor assembly 1514 may detect an open/closed state of the device 1500, a relative positioning of the components, such as a display and keypad of the device 1500, the sensor assembly 1514 may also detect a change in position of the device 1500 or one component of the device 1500, the presence or absence of a user's contact with the device 1500, an orientation or acceleration/deceleration of the device 1500, and a change in temperature of the device 1500. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1516 is configured to facilitate communication between the apparatus 1500 and other devices in a wired or wireless manner. The apparatus 1500 may access a wireless network based on a communication standard, such as WiFi,2G or 3G,4G LTE, 5G NR, or a combination thereof. In one exemplary embodiment, the communication component 1516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1516 described above further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as memory 1504 including instructions that, when executed by processor 1520 of apparatus 1500, enable apparatus 1500 to perform an application positioning information acquisition method, the method comprising:
Under the condition that a positioning request of a target application is detected, registering a positioning service aiming at the target application, and acquiring a registration time point of the positioning service;
under the condition that positioning based on positioning service is detected, positioning related information of the positioning service for positioning at the present time is obtained;
and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring a logout time point of the positioning service.
The non-transitory computer readable storage medium may be a ROM, random-access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
As shown in fig. 12, fig. 12 is a schematic structural diagram of another application positioning information acquisition device 1600 according to an exemplary embodiment. For example, apparatus 1600 may be provided as an application server. Referring to fig. 12, the apparatus 1600 includes a processing component 1622 that further includes one or more processors, and memory resources represented by a memory 1616, for storing instructions, such as application programs, executable by the processing component 1622. An application program stored in memory 1616 may include one or more modules each corresponding to a set of instructions. Further, the processing component 1622 is configured to execute instructions to perform the application positioning information acquisition method described above.
The apparatus 1600 may also include a power component 1626 configured to perform power management of the apparatus 1600, a wired or wireless network interface 1650 configured to connect the apparatus 1600 to a network, and an input output (I/O) interface 1658. The apparatus 1600 may operate an operating system based on storage in memory 1616, such as android, iOS, windows Server TM ,Mac OS X TM ,Unix TM ,Linux TM ,FreeBSD TM Or the like.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 1616, that includes instructions executable by the processing component 1622 of the apparatus 1600 to perform the above-described methods. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Wherein the instructions in the memory 1616, when executed by the processing component 1622, enable the apparatus 1600 to perform an application positioning information acquisition method comprising:
under the condition that a positioning request of a target application is detected, registering a positioning service aiming at the target application, and acquiring a registration time point of the positioning service;
under the condition that positioning based on positioning service is detected, positioning related information of the positioning service for positioning at the present time is obtained;
And under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring a logout time point of the positioning service.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. An application positioning information acquisition method, comprising:
under the condition that the target application is detected to call the positioning service, application positioning information corresponding to the target application is obtained, wherein the application positioning information comprises at least one of the following items: the registration time point of the positioning service, positioning related information for positioning based on the positioning service and the cancellation time point of the positioning service;
The obtaining the application positioning information corresponding to the target application includes: acquiring positioning related information of the positioning service when the positioning based on the positioning service is detected;
under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
sending the application positioning information to a display device under the condition that a display request is detected, so that the display device displays the application positioning information in real time;
the sending the application positioning information to a display device so that the display device displays the application positioning information in real time includes: and sending the application positioning information in the preset information set to a display device so that the display device displays the received application positioning information in real time.
2. The method of claim 1, wherein the sending the application positioning information to a display device to cause the display device to display the application positioning information in real time comprises:
and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
3. The method as recited in claim 1, further comprising: under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
and sending the application positioning information to a display device under the condition that a display request is detected, so that the display device displays the application positioning information in real time, wherein the method comprises the following steps:
in the case where the display request is detected, the following steps are performed:
transmitting application positioning information in the preset information set to a display device so that the display device displays the received application positioning information in real time;
and under the condition that any application positioning information is acquired, the acquired application positioning information is sent to the display equipment in real time, so that the display equipment displays the received application positioning information in real time.
4. A method according to claim 2 or 3, wherein the sending the acquired application positioning information to the display device in real time comprises any one of:
transmitting the obtained application positioning information in real time in an encryption manner to the display equipment so as to obtain application positioning information plaintext in a decryption manner by the display equipment;
The obtained application positioning information is sent in real time in a broadcasting mode, so that the display equipment obtains the broadcasted application positioning information;
and sending the obtained application positioning information in real time in a dynamic broadcasting mode, so that the display equipment obtains application positioning information plaintext according to the dynamically broadcasted application positioning information.
5. The method of claim 1, wherein the obtaining the application location information corresponding to the target application includes at least one of:
under the condition that a positioning request of a target application is detected, registering a positioning service aiming at the target application, and acquiring a registration time point of the positioning service;
acquiring positioning related information of the positioning service when the positioning based on the positioning service is detected;
and under the condition that the logout request of the target application is detected, logging out the positioning service registered for the target application, and acquiring the logout time point of the positioning service.
6. The method of claim 1, wherein the obtaining the application positioning information corresponding to the target application includes:
acquiring application positioning information of at least one of the following: the registration time point of the positioning service, positioning related information for positioning based on the positioning service and the cancellation time point of the positioning service;
And carrying out preset processing on the acquired at least one item of application positioning information to acquire other application positioning information.
7. The method of claim 1, wherein the sending the application positioning information to a display device to cause the display device to display the application positioning information in real time comprises:
transmitting display image data corresponding to the application positioning information to a display device so that the display device displays the display image data in real time;
wherein the displaying image data includes: a waveform for indicating a change in the application positioning information over time;
the waveform comprises a rising edge and a falling edge; the time point corresponding to the position of the rising edge of the waveform comprises a registration time point; the time point corresponding to the position of the falling edge in the waveform comprises a logout time point.
8. The method of claim 7, wherein the positioning-related information comprises: a time point of acquiring the position information;
the waveform also comprises a preset mark; the time point corresponding to the position of the preset mark in the waveform comprises: a point in time at which the location information is acquired.
9. An application positioning information acquisition apparatus, characterized by comprising:
The information unit is used for acquiring application positioning information corresponding to the target application under the condition that the target application is detected to call the positioning service, wherein the application positioning information comprises at least one of the following items: the registration time point of the positioning service, positioning related information for positioning based on the positioning service and the cancellation time point of the positioning service; the obtaining the application positioning information corresponding to the target application includes: acquiring positioning related information of the positioning service when the positioning based on the positioning service is detected; under the condition that any application positioning information is acquired, the acquired application positioning information is stored in a preset information set;
the display unit is used for sending the application positioning information to the display equipment under the condition that the display request is detected, so that the display equipment displays the application positioning information in real time; the sending the application positioning information to a display device so that the display device displays the application positioning information in real time includes: and sending the application positioning information in the preset information set to a display device so that the display device displays the received application positioning information in real time.
10. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the method of any of claims 1 to 8.
11. An electronic device, the electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured for implementing the method of any one of claims 1 to 8.
CN202310840784.8A 2023-07-10 2023-07-10 Application positioning information acquisition method and device Active CN116567548B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310840784.8A CN116567548B (en) 2023-07-10 2023-07-10 Application positioning information acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310840784.8A CN116567548B (en) 2023-07-10 2023-07-10 Application positioning information acquisition method and device

Publications (2)

Publication Number Publication Date
CN116567548A CN116567548A (en) 2023-08-08
CN116567548B true CN116567548B (en) 2023-10-13

Family

ID=87498599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310840784.8A Active CN116567548B (en) 2023-07-10 2023-07-10 Application positioning information acquisition method and device

Country Status (1)

Country Link
CN (1) CN116567548B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932735A (en) * 2012-10-22 2013-02-13 深圳市中兴移动通信有限公司 Dynamic inquiry method and system based on location based services
JP2016206161A (en) * 2015-04-21 2016-12-08 Esriジャパン株式会社 Application for portable terminal capable of searching regional information surrounding current position
CN108156313A (en) * 2017-12-13 2018-06-12 广东欧珀移动通信有限公司 Position control method, device, storage medium and terminal device
CN111259421A (en) * 2020-01-15 2020-06-09 奇安信科技集团股份有限公司 Privacy authority anti-disclosure processing method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100880889B1 (en) * 2006-12-05 2009-01-30 한국전자통신연구원 Customized location tracking service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932735A (en) * 2012-10-22 2013-02-13 深圳市中兴移动通信有限公司 Dynamic inquiry method and system based on location based services
JP2016206161A (en) * 2015-04-21 2016-12-08 Esriジャパン株式会社 Application for portable terminal capable of searching regional information surrounding current position
CN108156313A (en) * 2017-12-13 2018-06-12 广东欧珀移动通信有限公司 Position control method, device, storage medium and terminal device
CN111259421A (en) * 2020-01-15 2020-06-09 奇安信科技集团股份有限公司 Privacy authority anti-disclosure processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116567548A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
EP3200483B1 (en) Method and device for acquiring location information
EP2961128B1 (en) Method, system, computer program and computer program product for binding a token key to an account
US20150350858A1 (en) Systems and Methods for Monitoring Mobile Device Users
EP3407279A1 (en) Method, apparatus and terminal device for invoking a virtual public transport card
US20170091714A1 (en) Methods, devices and systems for managing calendar data
CN110460578B (en) Method and device for establishing association relationship and computer readable storage medium
KR102182294B1 (en) Method and device for controlling the alarm
US9723486B2 (en) Method and apparatus for accessing network
RU2615073C2 (en) Method, device and system for event reminder
CN113783774B (en) Cross-cluster network configuration method and device, communication equipment and storage medium
JP2018503271A (en) Network status information display method and apparatus
CN107395624B (en) Information processing method and device
CN107316207B (en) Method and device for acquiring display effect information
CN106850259B (en) Method and device for managing and controlling policy execution and electronic equipment
CN108009269B (en) Method and device for displaying page data
CN116567548B (en) Application positioning information acquisition method and device
CN110121148B (en) Interphone team method and device
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
US20210036830A1 (en) System information reception method and apparatus, and system information transmission method and apparatus
CN113206832B (en) Data processing method and device and data processing device
CN112866222B (en) Data processing method and device and data processing device
CN114846865A (en) Positioning method, device, equipment and storage medium
CN105892832B (en) Method and device for displaying display information
CN116644421A (en) Method and device for acquiring call information of positioning engine
US20170187824A1 (en) Method, device, and computer-readable medium for acquiring user information

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