[go: up one dir, main page]

CN111355848B - Positioning control method, device, storage medium and electronic device for electronic equipment - Google Patents

Positioning control method, device, storage medium and electronic device for electronic equipment Download PDF

Info

Publication number
CN111355848B
CN111355848B CN202010167969.3A CN202010167969A CN111355848B CN 111355848 B CN111355848 B CN 111355848B CN 202010167969 A CN202010167969 A CN 202010167969A CN 111355848 B CN111355848 B CN 111355848B
Authority
CN
China
Prior art keywords
positioning
application
target application
electronic device
type
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.)
Expired - Fee Related
Application number
CN202010167969.3A
Other languages
Chinese (zh)
Other versions
CN111355848A (en
Inventor
彭冬炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010167969.3A priority Critical patent/CN111355848B/en
Publication of CN111355848A publication Critical patent/CN111355848A/en
Application granted granted Critical
Publication of CN111355848B publication Critical patent/CN111355848B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The embodiment of the application discloses a positioning control method and device of electronic equipment, a storage medium and the electronic equipment. The method comprises the following steps: acquiring an application program set capable of realizing a positioning function in the electronic equipment; obtaining positioning types in the electronic equipment, wherein the positioning types at least comprise one type; selecting target application programs from the application program set according to the positioning types, wherein the target application programs at least comprise two types; based on the positioning type, acquiring positioning use data of the target application program; and sequencing the target application programs according to the positioning use data and the positioning type. According to the scheme, based on the arrangement of the positioning use data of different positioning types called by the application program, the positioning control of the user on the application program is improved, so that the power consumption is reduced, and the cruising ability of the electronic equipment is improved.

Description

Positioning control method and device of electronic equipment, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method and an apparatus for controlling positioning of an electronic device, a storage medium, and an electronic device.
Background
With the development of electronic technology, electronic devices such as smart phones have become more and more intelligent. The positioning function is used more and more by users, and various applications which can be used in electronic equipment and can realize the positioning function are developed on the basis, so that more convenience is provided for the users in the fields of entertainment, life service, social application and the like. However, in the prior art, a user cannot specifically know which application obtains a large amount of location information, and also cannot know which application is requesting location information, which may cause poor user experience.
Disclosure of Invention
The embodiment of the application provides a positioning control method and device for electronic equipment, a storage medium and the electronic equipment, which improve positioning control of a user on an application program, thereby reducing power consumption and improving cruising ability of the electronic equipment.
In a first aspect, an embodiment of the present application provides a method for controlling positioning of an electronic device, including:
acquiring an application program set capable of realizing a positioning function in the electronic equipment;
obtaining positioning types in the electronic equipment, wherein the positioning types at least comprise one type;
selecting a target application program from the application program set according to the positioning type, wherein the target application program at least comprises two application programs;
based on the positioning type, acquiring positioning use data of the target application program;
and sequencing the target application programs according to the positioning use data and the positioning type.
In a second aspect, an embodiment of the present application provides a positioning control apparatus for an electronic device, including:
the first acquisition module is used for acquiring an application program set which can realize a positioning function in the electronic equipment;
the second obtaining module is used for obtaining positioning types in the electronic equipment, wherein the positioning types at least comprise one type;
the selecting module is used for selecting a target application program from the application program set according to the positioning type, wherein the target application program at least comprises two application programs;
a third obtaining module, configured to obtain, based on the location type, location use data of the target application program;
and the sequencing module is used for sequencing the target application program according to the positioning use data and the positioning type.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute a positioning control method of an electronic device according to any embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the positioning control method of the electronic device according to any embodiment of the present application by calling the computer program.
According to the embodiment of the application program positioning method and device, the application programs capable of achieving the positioning function in the electronic equipment are classified based on different positioning types, the positioning use data of each application program under the called positioning type are obtained, the application programs are arranged based on the positioning use data, the positioning control of a user on the application programs is improved, and therefore power consumption is reduced, and the cruising ability of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a positioning control method of an electronic device according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of a positioning control method of an electronic device according to an embodiment of the present disclosure.
Fig. 3 is a first application scenario diagram of a positioning control method of an electronic device according to an embodiment of the present application.
Fig. 4 is a second application scenario diagram of a positioning control method of an electronic device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a positioning control apparatus of an electronic device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 7 is a second structural schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The term "module" as used herein may be considered a software object executing on the computing system. The various modules, engines, and services herein may be considered as objects of implementation on the computing system. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a positioning control method of an electronic device, which can be applied to the electronic device, and the electronic device can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a Personal Digital Assistant (PDA), and the like.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a positioning control method for an electronic device according to an embodiment of the present disclosure. The positioning control method of the electronic equipment can comprise the following steps:
101. and acquiring an application program set capable of realizing a positioning function in the electronic equipment.
In the embodiment of the application, the electronic device can realize the positioning function for the currently used electronic device when a user uses the electronic device, and the electronic device can realize the positioning function, which can be a positioning device of a system in the electronic device or an application program capable of realizing the positioning function. The application program capable of implementing the positioning function is not limited to one, and may be plural. Therefore, when it is detected that the user wants to perform a location service on the electronic device, an application set that can implement a location function in the electronic device can be obtained, where the application set includes two or more applications that can implement the location function. The application program capable of realizing the positioning function can be a map program, an instant messaging program, a telephone program, a traffic program and the like.
102. Obtaining the positioning type in the electronic equipment, wherein the positioning type at least comprises one type.
The location-based service is to acquire the location information of the user of the electronic device through a positioning technology and provide corresponding value-added services for the user. The positioning types in the electronic device include multiple types, and when the user needs the positioning service, the positioning types in the electronic device may be acquired, and the acquired positioning types may be one type or multiple types. The Positioning type may be Global Positioning System (GPS) Positioning, network Positioning, base station Positioning, and the like.
103. And selecting a target application program from the application program set according to the positioning type, wherein the target application program at least comprises two application programs.
Based on the obtained positioning type in the electronic device, each application program in the application program set capable of realizing the positioning function can be classified. That is, the location type called by each application when implementing the location function may be obtained, and the application may be categorized into the location type called by the application. And two or more target applications may be included in each location type classification.
For example, the positioning types in the electronic device include two types, a and B, respectively. The application program set comprises four application programs, namely a, b, c and d. And if the positioning type of the a is A, the positioning type of the B is B, the positioning type of the c is A, and the positioning type of the d is B, the electronic equipment calls the application program of the positioning type A to comprise a and c, and calls the application program of the positioning type B to comprise B and d. It will be appreciated that some applications may call different location types, for example, application a may call a and B separately, and application a will be included in the set of location types a and B. Of course, if the application program a calls the two positioning types a and B to implement the positioning function, the electronic device may have problems of excessive power consumption or excessive power consumption, and therefore, a positioning type with relatively low power consumption may be called, and the specific selection manner is not limited herein.
104. And acquiring positioning use data of the target application program based on the positioning type.
Since each positioning type classification comprises at least two application programs, positioning use data of a target application program in the classification can be acquired when the target application program calls the positioning type to realize positioning. The data used for positioning is not limited to one kind, and may include the length of time of positioning, the number of times of positioning, and the like.
Obtaining the positioning use data based on the positioning duration may be by obtaining a positioning duration for each application program in the target application program to call a positioning type; accumulating and calculating the positioning duration to obtain the total positioning duration of all the application programs calling the positioning type in the target application program; and determining the positioning use data of each application program in the target application program based on the ratio of the positioning time length to the total positioning time length.
Since some applications that can realize the positioning function in the electronic device are applications that use the positioning service and some applications that use the positioning service historically, separate calculations can be performed when calculating the positioning duration.
If the target application program is the application program which is currently using the positioning service, the positioning time length is the time length from the positioning starting time to the current positioning time; if the target application program is an application program which uses the positioning service historically, the positioning time length is the time length from the positioning starting time to the positioning ending time.
Acquiring positioning use data based on the number of times of positioning may be performed by acquiring the number of times of positioning of each application program call positioning type in the target application program; accumulating and calculating the positioning times to obtain the total positioning times of all application programs calling the positioning types in the target application program; and determining the positioning use data of each application program in the target application program based on the ratio of the positioning times to the total positioning times.
105. And sequencing the target application programs according to the positioning use data and the positioning type.
The electronic device may include a location information interface in the location setting, and based on the obtained location use data, the target application programs may be arranged in an order from large to small according to the location type. The arrangement order is normal from large to small, and certainly can be from small to large, and is not limited herein. Then, the application name of the target application program can be obtained; displaying the application names in the location information interface based on the ranking order. In order to facilitate the identification of the application program currently using the positioning service, a preset identifier may be displayed in the location information interface for the application program currently using the positioning service. The preset identifier may be set by the user, for example, a character "currently in use" is displayed behind the application name, or may be other identifiers, which is not limited herein.
Of course, the power consumption corresponding to the target application program may also be displayed in the position information interface according to the arrangement order. The power consumption condition and the power consumption condition of each application program in the positioning service can be seen more visually by a user, and the user can conveniently perform self control and adjustment. It can be understood that the positioning use data of the application programs are arranged on the position display interface of the electronic equipment, so that the use condition of the application programs for the positioning service can be more conveniently counted by a user, the user is clearly shown, and the user can clearly know the use amount of each application program for various positioning types.
As can be seen from the above, in the positioning control method for an electronic device provided in this embodiment, the positioning use data of each application program in the called positioning type is obtained by classifying the application programs capable of implementing the positioning function in the electronic device based on different positioning types, and the application programs are arranged based on the positioning use data, so that the positioning control of the user on the application programs is improved, and thus, the power consumption is reduced, and the cruising ability of the electronic device is improved.
The method described in the previous embodiment is further detailed by way of example.
Referring to fig. 2, fig. 2 is a second flowchart illustrating a positioning control method of an electronic device according to an embodiment of the present disclosure. The positioning control method of the electronic device may specifically include:
201. acquiring an application program set capable of realizing a positioning function in the electronic equipment.
The electronic device can realize the positioning function for the currently used electronic device when a user uses the electronic device, and the electronic device can realize the positioning function and can be a positioning device, such as a tracker, of a system in the electronic device; the application program that can realize the positioning function may be one application program, and the number of application programs that can realize the positioning function is not limited to one application program, and may be plural. Therefore, when it is detected that the user wants to perform a location service on the electronic device, an application set that can implement a location function in the electronic device can be obtained, where the application set includes two or more applications that can implement the location function.
The application program capable of implementing the positioning function may be a map program, an instant messaging program, a telephone program, a traffic program, and the like.
202. The method comprises the steps of obtaining positioning types in the electronic equipment, wherein the positioning types at least comprise one type.
The location-based service is to acquire location information of a user of the electronic device through a positioning technology and provide corresponding value-added services for the user. The positioning types in the electronic device include multiple types, and when the user needs the positioning service, the positioning types in the electronic device may be acquired, and the acquired positioning types may be one type or multiple types. The Positioning type may be Global Positioning System (GPS) Positioning, network Positioning, base station Positioning, and the like.
Wherein several positioning types mentioned above can be compared. Firstly, the GPS positioning is realized by sending a current position signal of the electronic device to a positioning background using a GPS positioning module on the electronic device, and is actively initiated by a GPS terminal and actively mastered at the terminal. The terminal can unload a system preinstalled by the terminal without requiring positioning or can be terminated by turning off the GPS, the GPS positioning precision is high and is 3-10 meters, global positioning can be realized, but the GPS satellite signal has weak penetrating power and high power consumption when used indoors. Secondly, network positioning generally utilizes wifi to carry out positioning, and wifi positioning carries out positioning according to the position of wifi router, mainly is applied to indoor and less space, and its positioning accuracy is 3-5 meters. Third, the positioning of the base station determines the position of the electronic device by using the measured distance of the base station to the electronic device, which does not require the electronic device to have GPS positioning capability, but the positioning accuracy depends greatly on the size of the base station and the coverage area. But the success rate of base station location is high, software does not need to be installed, the flow is not opened, the environment of call receiving and making can be located, but the location mainly depends on the chip card of the electronic equipment. As can be understood from the analysis of the above positioning types, in order to meet the different positioning requirements of different users, different positioning types can be selected to implement the positioning service.
203. And selecting a target application program from the application program set according to the positioning type, wherein the target application program at least comprises two application programs.
Based on the obtained positioning type in the electronic device, each application program in the application program set capable of realizing the positioning function can be classified. That is, the location type called by each application when implementing the location function may be obtained, and the application may be categorized into the location type called by the application. And two or more target applications may be included in each location type classification.
For example, the positioning types in the electronic device include two types, which are GPS positioning and network positioning, respectively. The application program set comprises four application programs, namely a, b, c and d. The positioning type of a is GPS positioning, the positioning type of b is network positioning, the positioning type of c is GPS positioning, the positioning type of d is network positioning, the electronic equipment calls application programs of GPS positioning to comprise a and c, the application programs calling network positioning to comprise b and d, namely target application programs in GPS positioning classification comprise a application program and a application program, and target application programs in network positioning classification comprise b application programs and d application programs. It will be appreciated that some applications may invoke different types of positioning, for example, application a may invoke GPS positioning and network positioning, respectively, and application a will be included in the categorized collection of GPS positioning and network positioning. Of course, if the application program a realizes the positioning function by using two positioning types, namely, GPS positioning and network positioning, the electronic device may consume too much power or consume too much power, and therefore, a positioning type with relatively low power consumption may be called, and the specific selection manner is not limited herein.
204. And based on the positioning type, acquiring positioning use data of the target application program based on the positioning duration.
The target application determined according to the positioning type at least comprises two applications, and positioning use data of the target application in the target application for calling the positioning type to realize positioning can be acquired according to the positioning type.
In some embodiments, the target usage data of the target application may be obtained based on the positioning duration, specifically, the positioning duration of each application calling the positioning type in the target application may be obtained; accumulating and calculating the positioning duration to obtain the total positioning duration of all the application programs calling the positioning type in the target application program; and determining the positioning use data of each application program in the target application program based on the ratio of the positioning time length to the total positioning time length.
For example, the currently selected positioning type is network positioning, the called target application program of the network type comprises three application programs, namely, a application program, b application program and c application program, wherein the time length of using the network positioning by the a application program is 10 minutes, the time length of using the network positioning by the b application program is 15 minutes, the time length of using the network positioning by the c application program is 25 minutes, and the positioning time lengths of the three application programs, namely, the a application program, the b application program and the c application program are accumulated to obtain the total positioning time length of 50 minutes; it can be calculated that the positioning time of a is 20% of the total positioning time of 50 minutes in 10 minutes, the positioning time of b is 30% of the total positioning time of 50 minutes in 15 minutes, and the positioning time of c is 50% of the total positioning time of 50 minutes in 25 minutes. Of these, 20%, 30%, and 50% are positioning usage data.
In some embodiments, because some applications that can implement the positioning function in the electronic device are applications that are currently using the positioning service and some applications that have historically used the positioning service, separate calculations can be performed when calculating the positioning duration.
If the target application program is the application program which is currently using the positioning service, the positioning time length is the time length from the positioning starting time to the current positioning time; if the target application program is an application program which uses the positioning service historically, the positioning time length is the time length from the positioning starting time to the positioning ending time.
For example, if the time for application a currently using the location service to start location is 8 hours and 10 minutes, and the current time is 8 hours and 30 minutes, the location duration is 20 minutes; and the time for starting positioning of the application program B which historically uses the positioning service is 6 hours and 10 minutes, and the time for ending positioning is 6 hours and 40 minutes, so that the positioning time is 40 minutes.
205. And based on the positioning type, acquiring positioning use data of the target application program based on the positioning times.
Similarly, the target use data of the target application program is obtained based on the positioning times, specifically, the positioning times of calling the positioning type by each application program in the target application program can be obtained; accumulating and calculating the positioning times to obtain the total positioning times of all application programs calling the positioning types in the target application program; and determining the positioning use data of each application program in the target application program based on the ratio of the positioning times to the total positioning times.
For example, the currently selected positioning type is GPS positioning, the called target application program of the GPS type includes three application programs d, e, and f, where the number of times that d uses GPS positioning is 10 times, the number of times that e uses GPS positioning is 15 times, the number of times that f uses GPS positioning is 25 times, and the total number of times of positioning is 50 times by accumulating the positioning times of the three application programs d, e, and f; it can be calculated that the positioning times of d account for 20 times of 50 times of positioning, the positioning times of e account for 15 times of 30 times of 50 times of positioning, and the positioning times of f account for 50 times of positioning. Of these, 20%, 30%, and 50% are positioning usage data.
206. And sequencing the target application programs according to the positioning use data and the positioning types.
As shown in fig. 3, fig. 3 is a first application scenario diagram of a positioning control method of an electronic device according to an embodiment of the present application. The location setting of the electronic device may include a location information interface, and in the location information interface, the location information interface may further include a classification of a positioning type, such as "GPS positioning", "network positioning", and "base station positioning" in fig. 3, although the classification of the positioning type is not limited thereto.
As shown in fig. 4, fig. 4 is a second application scenario diagram of a positioning control method of an electronic device according to an embodiment of the present application. An expansion interface may also be included in each category of location type, such as in "GPS location" where the expansion button on the right can be clicked to view a ranked list of applications that invoke GPS location. The arrangement mode may be based on the obtained positioning use data, and according to the positioning type, the target application programs are arranged in the order of the positioning use data from large to small. Then, the application name of the target application program can be obtained; displaying the application names in the location information interface based on the ranking order. For example, if the positioning use data of applications a, b, and c calling GPS positioning is 20%, 30%, and 50%, respectively, then the sequence from top to bottom in the "GPS positioning" ranking list is c, b, and a, respectively. The arrangement order is normal from large to small, and certainly can be from small to large, and is not limited herein. In order to facilitate the identification of the application program currently using the positioning service, a preset identifier may be displayed in the location information interface for the application program currently using the positioning service. The preset identifier may be set by the user, for example, as shown in fig. 4, a character "currently in use" is displayed below the application name a currently in use for "GPS positioning", and may be other identifiers, which is not limited herein.
Of course, the power consumption corresponding to the target application program may also be displayed in the position information interface according to the arrangement order. As can be seen from fig. 4, in the application calling GPS positioning, the power consumption of the application a is 20%, the power consumption of the application b is 30%, and the power consumption of the application c is 50%. The power consumption condition and the power consumption condition of each application program in the positioning service can be seen more visually by a user, and the user can conveniently perform self control and adjustment.
207. And carrying out corresponding configuration on the target application program according to the sequencing result.
Through the sequencing result, the positioning use data of the application programs are arranged on the position display interface of the electronic equipment, so that the user can count the use condition of the application programs to the positioning service more conveniently, the user is clearly shown, and the user can clearly know the use amount of each application program to various positioning types. And according to the sorting result, the positioning of the application program can be controlled from the positioning data of the application program.
In some embodiments, if the positioning use data of an application currently using the positioning service reaches a first preset threshold, the positioning service is stopped for the application.
For example, the first preset threshold may be set to 30%, and if the location use data of the application currently using the location service reaches 30%, the electronic device may close the location service to the application by itself, so as to save more power for the electronic device and reduce power consumption. Certainly, if the user wants to continue to perform the positioning service on the electronic device, the positioning service can be automatically restarted, and after the positioning service is restarted, the positioning use data of the user can be continuously superposed on the positioning use data of the stopped positioning service. The first preset threshold may be set by itself based on the requirement of the user for the location service, and is not particularly limited.
In some embodiments, the target application is uninstalled if the location usage data of the target application reaches a second preset threshold.
For example, the first preset threshold may be set to 30%, the second preset threshold may be set to 50%, when the location use data of the application program in use reaches 30%, the location service is stopped for the application program, the user starts the location for the application program again, and when the location use data reaches 50%, the application program may be uninstalled. Of course, in order to avoid the occurrence of automatic uninstallation when the user uses the application program, the user may be reminded that the location use is too frequent when the location use data of the application program reaches 50%, and the reminding manner is not limited herein. The user may choose to uninstall or not uninstall. By the arrangement, when the user uses the application program for positioning, the situations of excessive power consumption and power consumption are avoided, and better positioning service experience is provided for the user.
In order to better implement the above method, an embodiment of the present application further provides a positioning control device of an electronic apparatus, please refer to fig. 5, and fig. 5 is a schematic structural diagram of the positioning control device of the electronic apparatus provided in the embodiment of the present application. The positioning control apparatus 300 of the electronic device may include a first obtaining module 301, a second obtaining module 302, a selecting module 303, a third obtaining module 304, and a sorting module 305, which may specifically be as follows:
a first obtaining module 301, configured to obtain an application set that can implement a positioning function in the electronic device;
a second obtaining module 302, configured to obtain location types in the electronic device, where the location types include at least one;
a selecting module 303, configured to select a target application program from the application program set according to the positioning type, where the target application program includes at least two application programs;
a third obtaining module 304, configured to obtain, based on the location type, location use data of the target application;
a sorting module 305, configured to sort the target applications according to the positioning usage data and the positioning types.
In some embodiments, the third obtaining module 403 may include a first obtaining sub-module, a first calculating sub-module, and a first determining sub-module, and may specifically be configured to:
the first obtaining submodule is used for obtaining the positioning duration of calling the positioning type by each application program in the target application program;
the first calculation submodule is used for accumulating and calculating the positioning duration to obtain the total positioning duration of all the application programs in the target application program calling the positioning type;
the first determining submodule is used for determining the positioning use data of each application program in the target application programs based on the proportion of the positioning duration in the total positioning duration.
In some embodiments, the obtaining of the positioning duration for each of the target applications to call the positioning type may be configured to:
if the target application program is an application program which is currently using the positioning service, the positioning time length is the time length from the positioning starting time to the current positioning time;
and if the target application program is an application program which uses the positioning service historically, the positioning time length is the time length from the positioning starting time to the positioning ending time.
In some embodiments, the third obtaining module 403 may further include a second obtaining sub-module, a second calculating sub-module, and a second determining sub-module, and may specifically be configured to:
acquiring the positioning times of calling the positioning type by each application program in the target application program;
accumulating and calculating the positioning times to obtain the total positioning times of all the application programs in the target application program for calling the positioning type;
and determining the positioning use data of each application program in the target application program based on the ratio of the positioning times to the total positioning times.
In some embodiments, the positioning control apparatus 300 of the electronic device may further include a stopping module and an unloading module:
the system comprises a stopping module, a judging module and a judging module, wherein the stopping module is used for stopping the positioning service for an application program if the positioning use data of the application program currently using the positioning service exceeds a first preset threshold;
and the unloading module is used for unloading the target application program if the positioning use data of the target application program exceeds a second preset threshold value.
It should be noted that the positioning control apparatus of the electronic device provided in the embodiment of the present application and the positioning control method of the electronic device in the foregoing embodiments belong to the same concept, and any method provided in the embodiment of the positioning control method of the electronic device may be run on the positioning control apparatus of the electronic device, and a specific implementation process thereof is described in detail in the embodiment of the positioning control method of the electronic device, and is not described herein again.
Correspondingly, an electronic device 400 is further provided in the embodiment of the present application, please refer to fig. 6, where fig. 6 is a schematic diagram illustrating a first structure of the electronic device provided in the embodiment of the present application, and the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 400 by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402, and processes the data, thereby monitoring the electronic device 400 as a whole.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a positioning function, a communication function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like.
Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
acquiring an application program set capable of realizing a positioning function in the electronic equipment;
obtaining positioning types in the electronic equipment, wherein the positioning types at least comprise one type;
selecting a target application program from the application program set according to the positioning type, wherein the target application program at least comprises two application programs;
based on the positioning type, acquiring positioning use data of the target application program;
and sequencing the target application programs according to the positioning use data and the positioning type.
In some embodiments, please refer to fig. 7, fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the present application, and the difference from the electronic device shown in fig. 6 is that the electronic device 400 may further include: a display 403, a wifi module 404, an audio circuit 405, an input unit 406, a sensor 407, and a power source 408. The display 403, the camera 404, the audio circuit 405, the input unit 406, the sensor 407, and the power source 408 are electrically connected to the processor 401.
The display 403 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof.
The wifi module 404 may be used for the electronic device to connect to a network.
The audio circuit 405 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone, and may provide voice support when the user is engaged in a call, voice, etc.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The sensor 407 is used to collect information of the electronic device itself or information of the user or external environment information. For example, the sensor 407 may include a plurality of sensors such as a GPS position, a temperature sensor, a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a hall sensor, a position sensor, a gyroscope, an inertial sensor, an attitude sensor, a barometer, a heart rate sensor, and the like.
Power supply 408 may be used to power various components of electronic device 400. In some embodiments, power supply 408 may be logically coupled to processor 401 via a power management system, such that functions to manage charging, discharging, and power consumption management are performed via the power management system.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
acquiring a current application program;
selecting target hardware from a hardware set according to the current application program;
acquiring a first model set;
selecting a target model from the first model set according to the target hardware;
and calculating to obtain the target temperature of the shell of the electronic equipment according to the current temperature value of the target hardware and the target model.
The above operations can be referred to the previous embodiments specifically, and are not described herein again.
As can be seen from the above, compared with the prior art, according to the difference in heat generated by internal hardware of the electronic device in the operating states of different scenes, the present embodiment determines target hardware that generates a main heat source when different application programs operate, and selects an optimal temperature model from the temperature model set based on the target hardware, thereby quickly and accurately reflecting the shell temperature of the electronic device.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the positioning control method of the electronic device in any of the above embodiments.
For example, in some embodiments, when the computer program is run on a computer, the computer performs the steps of:
acquiring an application program set capable of realizing a positioning function in the electronic equipment;
obtaining positioning types in the electronic equipment, wherein the positioning types at least comprise one type;
selecting a target application program from the application program set according to the positioning type, wherein the target application program at least comprises two application programs;
based on the positioning type, acquiring positioning use data of the target application program;
and sequencing the target application programs according to the positioning use data and the positioning type.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in the positioning control method for any electronic device provided in the embodiments of the present application, beneficial effects that can be achieved by the positioning control method for any electronic device provided in the embodiments of the present application may be achieved, for details, see the foregoing embodiments, and are not described herein again.
It should be noted that, for the positioning control method of an electronic device in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the positioning control method of the electronic device in the embodiment of the present application can be completed by controlling related hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of the electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the positioning control method of the electronic device can be included.
In the positioning control device of the electronic device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The foregoing detailed description is directed to a method, an apparatus, a storage medium, and an electronic device for positioning control of an electronic device, which are provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principles and embodiments of the present application, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1.一种电子设备的定位控制方法,其特征在于,所述方法包括:1. a positioning control method of electronic equipment, is characterized in that, described method comprises: 获取所述电子设备中可实现定位功能的应用程序集合;Acquire a set of application programs in the electronic device that can implement a positioning function; 获取所述电子设备中的定位类型,其中,所述定位类型至少包括一种;Acquire a positioning type in the electronic device, wherein the positioning type includes at least one; 根据所述定位类型,从所述应用程序集合中选取目标应用程序,其中,所述目标应用程序至少包括两种应用程序;Selecting a target application program from the application program set according to the positioning type, wherein the target application program includes at least two kinds of application programs; 基于所述定位类型,获取所述目标应用程序的定位使用数据;Based on the positioning type, obtain the positioning usage data of the target application; 根据所述定位使用数据及所述定位类型,将所述目标应用程序进行排序;sorting the target applications according to the location usage data and the location type; 若所述目标应用程序的定位使用数据达到第一预设阈值,则对所述目标应用程序停止定位服务;If the location usage data of the target application reaches the first preset threshold, stop the location service for the target application; 若所述目标应用程序的定位使用数据达到第二预设阈值,则卸载所述目标应用程序。If the positioning usage data of the target application reaches a second preset threshold, the target application is uninstalled. 2.根据权利要求1所述的电子设备的定位控制方法,其特征在于,所述基于所述定位类型,获取所述目标应用程序的定位使用数据,包括:2. The positioning control method of an electronic device according to claim 1, wherein the obtaining the positioning usage data of the target application based on the positioning type comprises: 获取所述目标应用程序中每一应用程序调用所述定位类型的定位时长;Obtain the positioning duration of each application in the target application calling the positioning type; 将所述定位时长累加计算,得到所述目标应用程序中所有应用程序调用所述定位类型的定位总时长;Accumulate the positioning duration to obtain the total positioning duration of all applications in the target application calling the positioning type; 基于所述定位时长在所述定位总时长中的占比,确定所述目标应用程序中每一应用程序的定位使用数据。Based on the proportion of the positioning duration in the total positioning duration, the positioning usage data of each application in the target applications is determined. 3.根据权利要求2所述的电子设备的定位控制方法,其特征在于,所述获取所述目标应用程序中每一应用程序调用所述定位类型的定位时长,包括:3. The positioning control method of an electronic device according to claim 2, wherein the acquiring the positioning duration of each application in the target application calling the positioning type comprises: 若所述目标应用程序为当前正在使用定位服务的应用程序,则所述定位时长为从开始定位时刻到当前定位时刻的时长;If the target application is an application currently using the positioning service, the positioning duration is the duration from the moment of starting the positioning to the moment of the current positioning; 若所述目标应用程序为历史使用定位服务的应用程序,则所述定位时长为从开始定位时刻到结束定位时刻的时长。If the target application program is an application program that has historically used the positioning service, the positioning duration is the duration from the moment of starting the positioning to the moment of ending the positioning. 4.根据权利要求1所述的电子设备的定位控制方法,其特征在于,所述基于所述定位类型,获取所述目标应用程序的定位使用数据,还包括:4. The positioning control method of an electronic device according to claim 1, wherein the obtaining the positioning usage data of the target application based on the positioning type further comprises: 获取所述目标应用程序中每一应用程序调用所述定位类型的定位次数;Acquire the number of times that each application in the target application calls the positioning type; 将所述定位次数累加计算,得到所述目标应用程序中所有应用程序调用所述定位类型的定位总次数;Accumulating the positioning times to obtain the total number of positioning times that all applications in the target application call the positioning type; 基于所述定位次数在所述定位总次数中的占比,确定所述目标应用程序中每一应用程序的定位使用数据。Based on the proportion of the positioning times in the total positioning times, the positioning usage data of each application in the target applications is determined. 5.根据权利要求1-4任一项所述的电子设备的定位控制方法,其特征在于,所述电子设备包括位置信息界面,所述根据所述定位使用数据及所述定位类型,将所述目标应用程序进行排序,包括:5. The positioning control method for an electronic device according to any one of claims 1-4, wherein the electronic device comprises a position information interface, and according to the positioning usage data and the positioning type, the The target applications are sorted according to the description, including: 根据所述定位类型,将所述目标应用程序按照所述定位使用数据从大到小排列顺序;according to the positioning type, arranging the target applications in descending order according to the positioning usage data; 获取所述目标应用程序的应用名称;Obtain the application name of the target application; 基于所述排列顺序将所述应用名称显示在所述位置信息界面中,并在所述位置信息界面中对当前正在使用定位服务的应用程序显示预设标识。The application name is displayed in the location information interface based on the arrangement order, and a preset identifier is displayed in the location information interface for the application currently using the location service. 6.根据权利要求5所述的电子设备的定位控制方法,其特征在于,还包括:6. The positioning control method for electronic equipment according to claim 5, characterized in that, further comprising: 根据所述排列顺序在所述位置信息界面中显示所述目标应用程序对应的耗电量。The power consumption corresponding to the target application is displayed in the location information interface according to the arrangement order. 7.一种电子设备的定位控制装置,其特征在于,所述装置包括:7. A positioning control device for electronic equipment, wherein the device comprises: 第一获取模块,用于获取所述电子设备中可实现定位功能的应用程序集合;a first acquisition module, configured to acquire a set of application programs in the electronic device that can implement a positioning function; 第二获取模块,用于获取所述电子设备中的定位类型,其中,所述定位类型至少包括一种;a second obtaining module, configured to obtain the positioning type in the electronic device, wherein the positioning type includes at least one; 选取模块,用于根据所述定位类型,从所述应用程序集合中选取目标应用程序,其中,所述目标应用程序至少包括两种应用程序;a selection module, configured to select a target application program from the application program set according to the positioning type, wherein the target application program includes at least two kinds of application programs; 第三获取模块,用于基于所述定位类型,获取所述目标应用程序的定位使用数据;a third acquisition module, configured to acquire the positioning usage data of the target application based on the positioning type; 排序模块,用于根据所述定位使用数据及所述定位类型,将所述目标应用程序进行排序;a sorting module, configured to sort the target applications according to the positioning usage data and the positioning type; 第一处理模块,用于若所述目标应用程序的定位使用数据达到第一预设阈值,则对所述目标应用程序停止定位服务;a first processing module, configured to stop the positioning service for the target application if the positioning usage data of the target application reaches a first preset threshold; 第二处理模块,用于若所述目标应用程序的定位使用数据达到第二预设阈值,则卸载所述目标应用程序。The second processing module is configured to uninstall the target application if the positioning usage data of the target application reaches a second preset threshold. 8.根据权利要求7所述的电子设备的定位控制装置,其特征在于,所述第三获取模块包括:8. The positioning control device of an electronic device according to claim 7, wherein the third acquisition module comprises: 第一获取子模块,用于获取所述目标应用程序中每一应用程序调用所述定位类型的定位时长;The first obtaining submodule is used to obtain the positioning duration of each application in the target application calling the positioning type; 第一计算子模块,用于将所述定位时长累加计算,得到所述目标应用程序中所有应用程序调用所述定位类型的定位总时长;The first calculation submodule is used for accumulative calculation of the positioning duration to obtain the total positioning duration of all applications in the target application calling the positioning type; 第一确定子模块,用于基于所述定位时长在所述定位总时长中的占比,确定所述目标应用程序中每一应用程序的定位使用数据。A first determining submodule, configured to determine the positioning usage data of each application in the target application based on the proportion of the positioning duration in the total positioning duration. 9.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至6任一项所述的电子设备的定位控制方法。9. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is run on a computer, the computer is made to execute the electronic device according to any one of claims 1 to 6. The positioning control method of the device. 10.一种电子设备,包括处理器、存储器,所述存储器中存储有计算机程序,其特征在于,所述处理器通过调用所述计算机程序,用于执行如权利要求1至6任一项所述的电子设备的定位控制方法。10. An electronic device, comprising a processor and a memory, wherein a computer program is stored in the memory, wherein the processor is used to execute the computer program according to any one of claims 1 to 6 by invoking the computer program. The positioning control method of the electronic device is described.
CN202010167969.3A 2020-03-11 2020-03-11 Positioning control method, device, storage medium and electronic device for electronic equipment Expired - Fee Related CN111355848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010167969.3A CN111355848B (en) 2020-03-11 2020-03-11 Positioning control method, device, storage medium and electronic device for electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010167969.3A CN111355848B (en) 2020-03-11 2020-03-11 Positioning control method, device, storage medium and electronic device for electronic equipment

Publications (2)

Publication Number Publication Date
CN111355848A CN111355848A (en) 2020-06-30
CN111355848B true CN111355848B (en) 2021-04-13

Family

ID=71197467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010167969.3A Expired - Fee Related CN111355848B (en) 2020-03-11 2020-03-11 Positioning control method, device, storage medium and electronic device for electronic equipment

Country Status (1)

Country Link
CN (1) CN111355848B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501303A (en) * 2021-12-27 2022-05-13 天翼云科技有限公司 A method, device and electronic device for determining positioning data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412257A (en) * 2016-09-13 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Positioning service control method and system
CN106572442A (en) * 2016-10-28 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Positioning method, positioning device and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8224794B2 (en) * 2007-09-10 2012-07-17 Rappaport Theodore S Clearinghouse system, method, and process for inventorying and acquiring infrastructure, monitoring and controlling network performance for enhancement, and providing localized content in communication networks
KR20150081073A (en) * 2014-01-03 2015-07-13 삼성전자주식회사 Method for providing glance information, machine-readable storage medium and electronic device
CN105100504B (en) * 2014-05-22 2018-04-27 北京奇虎科技有限公司 Equipment application power consumption management method and apparatus
CN106973150B (en) * 2017-03-16 2019-12-03 Oppo广东移动通信有限公司 Positioning accuracy level adjustment method, device and mobile terminal
CN107766098A (en) * 2017-09-26 2018-03-06 深圳天珑无线科技有限公司 Using backstage orientation management method, mobile terminal and storage medium
CN110008008A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412257A (en) * 2016-09-13 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Positioning service control method and system
CN106572442A (en) * 2016-10-28 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Positioning method, positioning device and mobile terminal

Also Published As

Publication number Publication date
CN111355848A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
EP3502880B1 (en) Method for preloading application, storage medium, and terminal device
EP3502889B1 (en) Method and device for preloading application, storage medium, and terminal device
EP3502879B1 (en) Method for preloading application, storage medium, and terminal device
US11249643B2 (en) Electronic device for displaying list of executable applications on split screen and operating method thereof
WO2019228156A1 (en) Method and device for preloading application, storage medium and intelligent terminal
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
CN111064655B (en) Template message pushing method, device, equipment and storage medium
CN111782950B (en) Sample data set acquisition method, device, equipment and storage medium
JP6612351B2 (en) Device, method and graphic user interface used to move application interface elements
CN111858382A (en) Application testing method, device, server, system and storage medium
CN111338910A (en) Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium
CN115705143A (en) Card information display method and electronic equipment
CN113933581B (en) Power consumption testing method of mobile equipment and mobile equipment
CN107479953A (en) process management method, device, storage medium and electronic equipment
CN107832131B (en) Application closing method, device, storage medium and electronic device
CN107870809B (en) Application closing method and device, storage medium and electronic equipment
CN111355848B (en) Positioning control method, device, storage medium and electronic device for electronic equipment
CN111857531A (en) Mobile terminal and file display method thereof
CN116302558A (en) Thread scheduling method and device and electronic equipment
CN108234758B (en) Application display method, device, storage medium and electronic device
US20190289128A1 (en) Method and electronic device for enabling contextual interaction
CN113348443B (en) Application program management method and device, storage medium and electronic equipment
JP7002512B2 (en) Devices, methods and graphic user interfaces used to move application interface elements
WO2020087388A1 (en) Quick application recommendation method and apparatus, storage medium, and electronic device
CN113056756A (en) Sleep recognition method and device, storage medium and electronic equipment

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210413