CN108055644A - Position control method, device, storage medium and terminal device - Google Patents
Position control method, device, storage medium and terminal device Download PDFInfo
- Publication number
- CN108055644A CN108055644A CN201711326729.8A CN201711326729A CN108055644A CN 108055644 A CN108055644 A CN 108055644A CN 201711326729 A CN201711326729 A CN 201711326729A CN 108055644 A CN108055644 A CN 108055644A
- Authority
- CN
- China
- Prior art keywords
- positioning
- application program
- application
- type
- call request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0264—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
A kind of position control method, device, storage medium and the terminal device provided in the embodiment of the present application when this method positions the positioning call request of application program by receiving, determines the operational mode of the positioning application program;If the positioning application program is running background, it is determined that the application type of the positioning application program;Determined whether to refuse the positioning call request according to the application type.By using above-mentioned technical proposal, it can be when application program be running background, the positioning call request of refusal positioning application program is determined whether according to the application type of positioning application program, it avoids when application program is located at running background locating module being driven to work, reduces the power consumption of terminal device.
Description
Technical field
The invention relates to the field of locating technology of terminal device more particularly to a kind of position control method, device,
Storage medium and terminal device.
Background technology
With the continuous development of Internet communication technology, the terminal device of such as smart mobile phone and tablet computer etc is had
Standby function is increasingly abundanter, can provide a variety of different services to the user.In order to meet the location requirement of user, terminal device
Positioning function typically is provided with, it can be by setting locating module in terminal device, locating module can pass through global navigational satellite
System (GNSS, Global Navigation Satellite System) obtains the location information of terminal device.Terminal device
In the application program (APP, Application) based on location-based service (LBS, Location Based Service) can also
Location information is obtained by the positioning function of terminal device, its application function is realized according to location information.But obtain positioning
The operating process of information can bring larger electric quantity consumption to terminal device, with the base of the acquisition location information in terminal device
More and more in the application program of location-based service, the power consumption of terminal device is also getting faster.
The content of the invention
The embodiment of the present application provides a kind of position control method, device, storage medium and terminal device, can reduce positioning
The power consumption that functional bands are come.
In a first aspect, the embodiment of the present application provides a kind of position control method, including:
When receiving the positioning call request of positioning application program, the operational mode of the positioning application program is determined;
If the positioning application program is running background, it is determined that the application type of the positioning application program;
Determined whether to refuse the positioning call request according to the application type.
Second aspect, the embodiment of the present application provide a kind of position control device, including:
Operational mode determining module, for when receiving the positioning call request of positioning application program, it to be described fixed to determine
The operational mode of position application program;
Application type determining module, for when the positioning application program is running background, determining the positioning application
The application type of program;
Positioning control module, for being determined whether to refuse the positioning call request according to the application type.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence realizes the position control method as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of terminal device, including memory, processor and are stored in storage
And can be in the computer program of processor operation on device, the processor is realized when performing the computer program as the application is real
Apply the position control method described in example.
A kind of location control scheme provided in the embodiment of the present application is called by the positioning for receiving positioning application program
During request, the operational mode of the positioning application program is determined;If the positioning application program is running background, it is determined that institute
State the application type of positioning application program;Determined whether to refuse the positioning call request according to the application type.By adopting
With above-mentioned technical proposal, can be determined whether when application program is running background according to the application type of positioning application program
The positioning call request of refusal positioning application program avoids when application program is located at running background locating module being driven to carry out work
Make, reduce the power consumption of terminal device.
Description of the drawings
Fig. 1 is a kind of flow diagram of position control method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another position control method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another position control method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another position control method provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another position control method provided by the embodiments of the present application;
Fig. 6 is the flow diagram of another position control method provided by the embodiments of the present application;
Fig. 7 is the structure diagram of another position control device provided by the embodiments of the present application;
Fig. 8 is a kind of structure diagram of terminal device provided by the embodiments of the present application;
Fig. 9 is a kind of structure diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is appreciated that
It is that specific embodiment described herein is used only for explaining the application rather than the restriction to the application.It further needs exist for illustrating
, part relevant with the application rather than entire infrastructure are illustrated only for ease of description, in attached drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged.When its operation
The processing can be terminated during completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with
Corresponding to method, function, regulation, subroutine, subprogram etc..
Terminal device may include smart mobile phone, tablet computer and other equipment with operating system.On terminal device
Some application programs, can be by calling the positioning function of terminal device, to realize its application function.Such as voice service class should
The location information of terminal device can be obtained with, voice service application, and is provided and location information is relevant services to user, example
The music that neighbouring people is listening can such as be recommended to user.But user can will generally be applied using voice service class application
Running background is placed in, the application of music class can continue to provide music service to user, and radio station class application can continue to provide radio station
It services to user, and the information on services that the application program for being placed in running background is provided, it, should if user does not have operation display
Information on services be for a user it is otiose, and the locating module of terminal device work brought to terminal device it is additional
Power consumption.
Fig. 1 is a kind of flow diagram of position control method provided by the embodiments of the present application, and this method can be by positioning
Control device performs, and wherein the device can be generally integrated in terminal device, also may be used by software and/or hardware realization
It is equipped with being integrated in other in the equipment of operating system.As shown in Figure 1, this method includes:
S110, receive positioning application program positioning call request when, determine it is described positioning application program operation mould
Formula.
Wherein, the positioning application program is to need to obtain the location information of terminal device to realize answering for its application function
With program, it may include LBS (Location Based Service, based on location-based service) is applied.The positioning application program hair
Positioning call request is sent to be used to handle the location-based service process of positioning function to terminal device, location-based service process is adjusted according to positioning
It is worked with request driving locating module, obtains location information.Locating module may include GNSS (Global Navigation
Satellite System, Global Navigation Satellite System) module, GNSS module can be GPS (Global Positioning
System, global positioning system) module.When starting positioning application program, the positioning for receiving the positioning application program is called
Request.If the positioning call request of application program is allowed by the system of terminal device, location-based service process can continue to send out
Location information is sent persistently to obtain location information to the locating module meeting continuous firing of application program, i.e. terminal device and be sent to
Application program, until application program terminates to run.And if the positioning call request of application program is by the system institute of terminal device
Refusal, positioning application program will not then get location information, locating module will not because of positioning application program calling and
It works.
The operational mode of the positioning application program may include running background and front stage operation etc..The front stage operation, i.e.,
Using its application interface of the screen display of occupied terminal equipment, and screen and user interaction can be passed through.That is, running background should
It is not shown, can not be handed over by the screen of occupied terminal equipment with user on the screen of terminal device with program
Mutually, but application program can export corresponding information by loud speaker or other output terminals.
If S111, the positioning application program are running background, it is determined that the application type of the positioning application program.
If positioning application program is running background, the application type of the positioning application program may further determine that.
The application type is determined to obtain the difference of the demand of location information according to positioning application program or whether pushing it by screen
The type that position information on services is determined.The information on services that the positioning application program is provided according to location information is, it is necessary to logical
User can be just pushed to by crossing the screen of terminal device, and the positioning application program is running background at this time, then the information on services without
Method is pushed to user by screen, so the information on services is otiose for a user, and because positioning application program
Obtaining location information causes the locating module of terminal device to work, and additional power consumption is brought to terminal device.It so can
To determine whether refusal positioning call request according to the application type.
S112, determined whether to refuse the positioning call request according to the application type.
If the application type of positioning application program is is only capable of pushing its location services information by screen, i.e., this applies journey
Sequence can not push its location services information by other output terminals.If so when the positioning application program is in running background,
Then refuse the positioning call request, can be applied to avoid the positioning and when running background locating module be driven to work
And additional power consumption is brought to terminal device.
Optionally, if the positioning application program is not belonging to target type, the positioning call request is refused.Using
Type may include target type and non-targeted type, and target type is fixed including that can export it by loud speaker or other output terminals
Position information on services and the application program not impacted to the using effect of user.Illustratively, if positioning application program is
Map class application, i.e., provide the application program of service to the user based on cartographic information, and map class is applied to include obtaining in real time and positioned
Information and the function of providing navigation Service, map class application can be shown navigation Service information by screen, can be with
Navigation information is played by loud speaker, user can be driven by the navigation information that loud speaker plays, then the application can be with
It is determined as target type.
Optionally, corresponding real time service is generated according to location information when the target type is included in running background to believe
It ceases, and the real time service information is sent to the application program of user.
Wherein, belong to the application program of target type in running background, persistently obtain location information, and generate corresponding
Real time service information, the i.e. application program have to last for obtaining the location information of terminal device, could generate its real time service letter
Breath, such as navigation application.And be that need not obtain location information in real time as instantaneously positioned application program, but only need to obtain one
Location information just can generate corresponding information on services, can be according to acquired on startup when the application is in running background
Location information generates corresponding information on services, without obtaining location information again in running background.By determining rear
Corresponding real time service information is generated according to location information when platform is run, and the real time service information is sent to answering for user
It is target type with program, it may be determined that be more suitable for the application program that location information is called in running background, improve user couple
The operating efficiency of the application program of target type.
Fig. 2 is the flow diagram of another position control method provided by the embodiments of the present application, in above-described embodiment institute
On the basis of the technical solution of offer, to determining that the operation of type of the positioning application program is optimized, optionally, such as
Shown in Fig. 2, this method includes:
S120, receive positioning application program positioning call request when, determine it is described positioning application program operation mould
Formula.
Specific embodiment may be referred to associated description above, and details are not described herein.
If S121, the positioning application program are running background, determine that the positioning is applied according to preset kind table
The application type of program.
Wherein, the preset kind table can be that system is preset, and preset kind table includes application program and application
The mapping relations of type.Optionally, as shown in figure 3, determining the application class of the positioning application program according to preset kind table
It is further included before type:
S1210, classified according to the preset attribute of application program, determine the application class of the application program in terminal device,
The application class includes target type and non-targeted type.
S1211, the application program in the terminal device and corresponding application class establish preset kind table.
Wherein, the preset attribute classification of application program can be that application market is according to the attribute of application program to applying journey
The default classification of sequence.Application market can be the download platform of application program, be searched in order to facilitate user, application market can be to all
Multiple utility program is classified.Illustratively, preset attribute classification include photography with record a video class, service for life class, game class and
Map Services class etc..
Can classify corresponding operating habit according to the preset attribute of application program, determine the application program in terminal device
Application class.For example, photography and the application program of video recording class may use screen that could complete its application function, then it can be with
Photography and video recording class application are determined as non-targeted type.The application of Map Services class can be by running background, passing through
Loud speaker exports navigation information to user, so determining that Map Services class is applied as intended application.By establishing preset kind table,
And the application type of the positioning application program is determined according to preset kind table, it can comparatively fast determine the application of positioning application program
Type.
Optionally, as shown in figure 4, being established in the application program in the terminal device and corresponding application class
After preset kind table, further include:
S1212, type adjust instruction input by user is received.
S1213, the application class that corresponding application program is changed according to the type adjust instruction.
Wherein, user, can be to the application class of the application program in preset kind table by input type adjust instruction
It is configured.The application class of application program can be adjusted according to the demand of user, improve the operating efficiency of user.
S122, determined whether to refuse the positioning call request according to the application type.
Specific embodiment may be referred to associated description above, and details are not described herein.
Fig. 5 is the flow diagram of another position control method provided by the embodiments of the present application, in above-mentioned arbitrary implementation
On the basis of the technical solution that example is provided, optionally, as shown in figure 5, this method includes:
S130, receive positioning application program positioning call request when, determine it is described positioning application program operation mould
Formula.
If S131, the positioning application program are running background, it is determined that the application type of the positioning application program.
S132, determined whether to refuse the positioning call request according to the application type.
The specific embodiment of aforesaid operations may be referred to associated description above, and details are not described herein.
S133, refuse it is described positioning call request after, detect it is described positioning application program operational mode.
If S134, detect that the positioning application program is switched to front stage operation and receives the positioning application
During the positioning call request that program is resend, the positioning call request that is resend described in permission.
After the positioning call request of positioning application program is rejected, when it is front stage operation to position application recovery
It waits, the positioning application program can be controlled to resend positioning call request.Detect it is described positioning application program be switched to
Front stage operation and when receiving positioning call request that the positioning application program is resend, resends described in permission
Positioning call request.It can get location information in time when it is front stage operation to position application recovery and phase be provided
The information on services answered can improve operating efficiency of the user using positioning application program to user.
Fig. 6 is the flow diagram of another position control method provided by the embodiments of the present application, in above-mentioned arbitrary implementation
On the basis of the technical solution that example is provided, optionally, as shown in fig. 6, this method includes:
S140, receive positioning application program positioning call request when, determine it is described positioning application program operation mould
Formula.
If S141, the positioning application program are running background, it is determined that the application type of the positioning application program.
S142, determined whether to refuse the positioning call request according to the application type.
The specific embodiment of aforesaid operations may be referred to associated description above, and details are not described herein.
S143, refuse it is described positioning call request after, according to the wireless signal and/or sensor signal of terminal device
Determine the location information of terminal device.
The location information of terminal device can be determined according to the wireless signal of the terminal device.The wireless signal can be eventually
The wireless module of end equipment and PERCOM peripheral communication end carry out the acquired signal that communicates, it may include Wi-Fi (Wireless-
Fidelity, Wireless Fidelity) signal and/or base station signal.
Each wireless access point (AP, Access Point) all there are one globally unique media access control (MAC,
Medium Access Control) address, general wireless access point is that will not move whithin a period of time.Terminal is set
Standby wireless module (such as Wi-Fi module) can obtain the information of the wireless access point in its communication range, and according to each
With reference to the signal strength of each wireless access point, the new position of terminal device is calculated in the geographical location of wireless access point
Confidence ceases, the location information as terminal device.
It can also be communicated, obtained from different base stations by the wireless module (such as mobile communication module) of terminal device
The down-bound pilot frequency signal of different base station, obtain different base station descending pilot frequency arrival moment (TOA, Time of Arrival) or
Reaching time-difference (TDOA, Time Difference of Arrival), according to the arrival moment, reaching time-difference and base
The coordinate stood, using triangle formula algorithm for estimating, it becomes possible to the new location information of terminal device is calculated, as terminal device
Location information.
The position of terminal device can also can be determined by the sensor signal of the movable sensor of the terminal device
Information, movable sensor may include gyroscope, acceleration transducer and gravity sensor etc., can be detected by movable sensor
Moving direction and displacement distance are determined as the location information of terminal device by the moving direction of terminal device and displacement distance etc..
S144, the location information is sent to the positioning application program.
The location information of the terminal device is determined by the wireless connection information of terminal device, with respect to positioning mould
Power consumption caused by the location information that block obtains, the former power consumption are lower.It is fixed to be determined by the wireless connection information of terminal device
Position information, and the location information is sent to the positioning application program, the location requirement of positioning application program can be met,
The power consumption of terminal device can also be reduced.
Fig. 7 is a kind of structure diagram of position control device provided by the embodiments of the present application, which can perform positioning
Control method, as shown in fig. 7, the device includes:
Operational mode determining module 210, for when receiving the positioning call request of positioning application program, determining described
Position the operational mode of application program;
Application type determining module 211, for when the positioning application program is running background, determining that the positioning should
With the application type of program;
Positioning control module 212, for being determined whether to refuse the positioning call request according to the application type.
It, can be when application program be running background, according to positioning by using the technical solution that above-described embodiment provides
The application type of application program determines whether the positioning call request of refusal positioning application program, avoids after application program is located at
Driving locating module works when platform is run, and reduces the power consumption of terminal device.
Optionally, positioning control module is specifically used for:
If the positioning application program is not belonging to target type, refuse the positioning call request.
Optionally, application type determining module is specifically used for:
The application type of the positioning application program is determined according to preset kind table;
Optionally, further include:
Sort module, for determine it is described positioning application program type before, according to the preset attribute of application program
Classification, determines the application class of the application program in terminal device, and the application class includes target type and non-targeted type;
Module is established, default class is established for the application program in the terminal device and corresponding application class
Type table.
Optionally, further include:
Adjust instruction receives module, for establishing preset kind according to the application program and corresponding application class
After table, type adjust instruction input by user is received;
Classification change module, for changing the application class of corresponding application program according to the type adjust instruction.
Optionally, corresponding real time service is generated according to location information when the target type is included in running background to believe
It ceases, and the real time service information is sent to the application program of user.
Optionally, further include:
Again detection module, for after the positioning call request is refused, detecting the fortune of the positioning application program
Row pattern;
Reposition calling module, if for detect it is described positioning application program be switched to front stage operation and
When receiving the positioning call request that the positioning application program is resend, the positioning calling resend described in permission please
It asks.
Optionally, further include:
Wireless signal determining module, for refuse it is described positioning call request after, according to the wireless communication of terminal device
Number and/or sensor signal determine the location information of terminal device;
Position sending module, for the location information to be sent to the positioning application program.
A kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, computer can perform
The positioning control operation being not limited to the described above is instructed, can also carry out the location control side that the application any embodiment is provided
Relevant operation in method.
The embodiment of the present application also provides a kind of storage medium for including computer executable instructions, and the computer can perform
When being performed by computer processor for performing position control method, this method includes for instruction:
When receiving the positioning call request of positioning application program, the operational mode of the positioning application program is determined;
If the positioning application program is running background, it is determined that the application type of the positioning application program;
Determined whether to refuse the positioning call request according to the application type.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium
(such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can further include other
The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed,
Or can be located in different second computer systems, second computer system is connected to the by network (such as internet)
One computer system.Second computer system can provide program instruction and be used to perform to the first computer." storage is situated between term
Matter " can include may reside in different position two of (such as in different computer systems by network connection) or
More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement
For computer program).
The embodiment of the present application provides a kind of terminal device, and it is provided by the embodiments of the present application fixed to be integrated in the terminal device
Level control device.
Fig. 8 is a kind of structure diagram of terminal device provided by the embodiments of the present application, and the embodiment of the present application provides one
Kind of terminal device including memory 31, processor 32 and is stored on memory 31 and can be in the computer journey of processor operation
Sequence, the processor realize the position control method described in above-described embodiment when performing the computer program.The application is implemented
Example provide terminal device, can application program be running background when, according to positioning application program application type determine be
The positioning call request of no refusal positioning application program avoids when application program is located at running background locating module being driven to carry out
Work, reduces the power consumption of terminal device.
Fig. 9 is a kind of structure diagram of terminal device provided by the embodiments of the present application.As shown in figure 9, the terminal device
It can include:Housing (not shown), touch-screen (not shown), touch key-press (not shown), memory 301,
Central processing unit (Central Processing Unit, CPU) 302 (also known as processor, hereinafter referred to as CPU), circuit board (figure
Not shown in) and power circuit (not shown).The circuit board is placed in the interior volume that the housing surrounds;It is described
CPU302 and the memory 301 are arranged on the circuit board;The power circuit, for for each of the terminal device
Circuit or device power supply;The memory 301, for storing executable program code;The CPU302 described in reading by depositing
The executable program code stored in reservoir 301 runs computer program corresponding with the executable program code, with reality
Existing following steps:
When receiving the positioning call request of positioning application program, the operational mode of the positioning application program is determined;
If the positioning application program is running background, it is determined that the application type of the positioning application program;
Determined whether to refuse the positioning call request according to the application type.
The terminal device further includes:Peripheral Interface 303, RF (Radio Frequency, radio frequency) circuit 305, audio-frequency electric
Road 306, loud speaker 311, power management chip 308, input/output (I/O) subsystem 309, touch-screen 312, other input/controls
Control equipment 310 and outside port 304, these components are communicated by one or more communication bus or signal wire 307.
It should be understood that graphic terminal 300 is only an example of terminal device, and terminal device 300
Can have than more or less components shown in figure, two or more components can be combined or can be with
It is configured with different components.Various parts shown in figure can be including one or more signal processings and/or special
Hardware, software including integrated circuit are realized in the combination of hardware and software.
Just the terminal device provided in this embodiment for being used to implement location control is described in detail below, which sets
For by taking mobile phone as an example.
Memory 301, the memory 301 can be by access such as CPU302, Peripheral Interfaces 303, and the memory 301 can
To include high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memory,
Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU302 and deposited by Peripheral Interface 303, the Peripheral Interface 303
Reservoir 301.
I/O subsystems 309, the I/O subsystems 309 can be by the input/output peripherals in equipment, such as touch-screen 312
With other input/control devicess 310, Peripheral Interface 303 is connected to.I/O subsystems 309 can include 3091 He of display controller
For controlling one or more input controllers 3092 of other input/control devicess 310.Wherein, one or more input controls
Device 3092 processed receives electric signal from other input/control devicess 310 or sends electric signal to other input/control devicess 310,
Other input/control devicess 310 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole clicks on idler wheel.What deserves to be explained is input controller 3092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 312, the touch-screen 312 are the input interface and output interface between subscriber terminal equipment and user,
Visual output is shown to user, visual output can include figure, text, icon, video etc..
Display controller 3091 in I/O subsystems 309 receives electric signal from touch-screen 312 or is sent out to touch-screen 312
Electric signals.Touch-screen 312 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 3091
The interaction of user interface object on touch-screen 312, that is, realize human-computer interaction, the user interface being shown on touch-screen 312
Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light
Mouse, light mouse are the extensions for not showing the touch sensitive surface visually exported or the touch sensitive surface formed by touch-screen.
RF circuits 305 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 305 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 305 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 305 can include performing
The known circuit of these functions includes but not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 306 is mainly used for receiving voice data from Peripheral Interface 303, which is converted to telecommunications
Number, and the electric signal is sent to loud speaker 311.
Loud speaker 311 for the voice signal for receiving mobile phone from wireless network by RF circuits 305, is reduced to sound
And play the sound to user.
Power management chip 308, the hardware for being connected by CPU302, I/O subsystem and Peripheral Interface are powered
And power management.
Terminal device provided by the embodiments of the present application, can be when application program be running background, according to positioning using journey
The application type of sequence determines whether the positioning call request of refusal positioning application program, avoids being located at running background in application program
When driving locating module work, reduce the power consumption of terminal device.
Position control device, storage medium and the terminal device provided in above-described embodiment, which can perform the application, arbitrarily to be implemented
The position control method that example is provided possesses and performs the corresponding function module of this method and advantageous effect.Not in above-described embodiment
In detailed description technical detail, reference can be made to the position control method that the application any embodiment is provided.
Note that it above are only the preferred embodiment of the application and institute's application technology principle.It will be appreciated by those skilled in the art that
The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation,
The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application
It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also
It can include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.
Claims (11)
1. a kind of position control method, which is characterized in that including:
When receiving the positioning call request of positioning application program, the operational mode of the positioning application program is determined;
If the positioning application program is running background, it is determined that the application type of the positioning application program;
Determined whether to refuse the positioning call request according to the application type.
2. the method as described in claim 1, which is characterized in that it is described determined whether according to the align_type it is described fixed
Position call request includes:
If the positioning application program is not belonging to target type, refuse the positioning call request.
3. the method as described in claim 1, which is characterized in that the type for determining the positioning application program includes:
The application type of the positioning application program is determined according to preset kind table.
4. method as claimed in claim 3, which is characterized in that before the type of the positioning application program is determined, also wrap
It includes:
Classified according to the preset attribute of application program, determine the application class of the application program in terminal device, the application point
Class includes target type and non-targeted type;
Application program and corresponding application class in the terminal device establish preset kind table.
5. method as claimed in claim 3, which is characterized in that described according to the application program and corresponding application class
It establishes after preset kind table, further includes:
Receive type adjust instruction input by user;
The application class of corresponding application program is changed according to the type adjust instruction.
6. the method as described in claim 2 or 4, which is characterized in that according to fixed when the target type is included in running background
Position information generates corresponding real time service information, and the real time service information is sent to the application program of user.
7. such as method described in any one of claim 1 to 5, which is characterized in that further include:
After the positioning call request is refused, the operational mode of the positioning application program is detected;
If it detects that the positioning application program is switched to front stage operation and receives the positioning application program to send out again
During the positioning call request sent, the positioning call request that is resend described in permission.
8. such as method described in any one of claim 1 to 5, which is characterized in that further include:
After the positioning call request is refused, terminal is determined according to the wireless signal of terminal device and/or sensor signal
The location information of equipment;
The location information is sent to the positioning application program.
9. a kind of position control device, which is characterized in that including:
Operational mode determining module, for when receiving the positioning call request of positioning application program, determining that the positioning should
With the operational mode of program;
Application type determining module, for when the positioning application program is running background, determining the positioning application program
Application type;
Positioning control module, for being determined whether to refuse the positioning call request according to the application type.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The position control method as any one of claim 1-7 is realized during execution.
11. a kind of terminal device, which is characterized in that including memory, processor and storage are on a memory and can be in processor
The computer program of operation, which is characterized in that the processor realizes that claim 1-7 such as appoints when performing the computer program
Position control method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711326729.8A CN108055644B (en) | 2017-12-13 | 2017-12-13 | Positioning control method and device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711326729.8A CN108055644B (en) | 2017-12-13 | 2017-12-13 | Positioning control method and device, storage medium and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108055644A true CN108055644A (en) | 2018-05-18 |
CN108055644B CN108055644B (en) | 2021-01-15 |
Family
ID=62132079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711326729.8A Active CN108055644B (en) | 2017-12-13 | 2017-12-13 | Positioning control method and device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108055644B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445063A (en) * | 2015-08-12 | 2017-02-22 | 三星电子株式会社 | Method of managing application and electronic device therefor |
CN110830658A (en) * | 2019-11-29 | 2020-02-21 | 捷开通讯(深圳)有限公司 | Mobile terminal control method and device, mobile terminal and storage medium |
CN111918386A (en) * | 2020-07-03 | 2020-11-10 | Oppo广东移动通信有限公司 | Positioning method, positioning device, storage medium and electronic equipment |
CN110456395B (en) * | 2019-08-13 | 2022-03-04 | 维沃移动通信有限公司 | Positioning method and terminal equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011028785A2 (en) * | 2009-09-01 | 2011-03-10 | Elliot Klein | Geographical location authentication method for mobile voting |
CN102480680A (en) * | 2010-11-30 | 2012-05-30 | 上海晨兴希姆通电子科技有限公司 | Functional module, mobile terminal and system integrating 3G (The 3rd Generation), GPS (Global Positioning System) and RFID (Radio Frequency Identification) as well as communication method of system |
CN103444163A (en) * | 2011-02-05 | 2013-12-11 | 苹果公司 | Method and apparatus for mobile location determination |
CN104024884A (en) * | 2011-12-20 | 2014-09-03 | 皇家飞利浦有限公司 | A method of controlling a device and a device implementing the same |
CN105009182A (en) * | 2013-03-06 | 2015-10-28 | 高通股份有限公司 | Methods for providing navigation route based on network availability and device attributes |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Mobile terminal positioning mode selection method and device |
CN106416396A (en) * | 2014-05-16 | 2017-02-15 | 谷歌公司 | Running location provider processes |
CN106872996A (en) * | 2017-01-23 | 2017-06-20 | 北京奇虎科技有限公司 | The optimization method of alignment system performance, device and mobile terminal |
US20170230787A1 (en) * | 2014-05-31 | 2017-08-10 | Apple Inc. | Location service authorization and indication |
CN107423618A (en) * | 2017-07-12 | 2017-12-01 | 惠州Tcl移动通信有限公司 | Application program satellite fix request control method, storage device and mobile terminal |
-
2017
- 2017-12-13 CN CN201711326729.8A patent/CN108055644B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011028785A2 (en) * | 2009-09-01 | 2011-03-10 | Elliot Klein | Geographical location authentication method for mobile voting |
CN102480680A (en) * | 2010-11-30 | 2012-05-30 | 上海晨兴希姆通电子科技有限公司 | Functional module, mobile terminal and system integrating 3G (The 3rd Generation), GPS (Global Positioning System) and RFID (Radio Frequency Identification) as well as communication method of system |
CN103444163A (en) * | 2011-02-05 | 2013-12-11 | 苹果公司 | Method and apparatus for mobile location determination |
CN104024884A (en) * | 2011-12-20 | 2014-09-03 | 皇家飞利浦有限公司 | A method of controlling a device and a device implementing the same |
CN105009182A (en) * | 2013-03-06 | 2015-10-28 | 高通股份有限公司 | Methods for providing navigation route based on network availability and device attributes |
CN106416396A (en) * | 2014-05-16 | 2017-02-15 | 谷歌公司 | Running location provider processes |
US20170230787A1 (en) * | 2014-05-31 | 2017-08-10 | Apple Inc. | Location service authorization and indication |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Mobile terminal positioning mode selection method and device |
CN106872996A (en) * | 2017-01-23 | 2017-06-20 | 北京奇虎科技有限公司 | The optimization method of alignment system performance, device and mobile terminal |
CN107423618A (en) * | 2017-07-12 | 2017-12-01 | 惠州Tcl移动通信有限公司 | Application program satellite fix request control method, storage device and mobile terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445063A (en) * | 2015-08-12 | 2017-02-22 | 三星电子株式会社 | Method of managing application and electronic device therefor |
CN106445063B (en) * | 2015-08-12 | 2021-06-15 | 三星电子株式会社 | Method for managing application and electronic equipment thereof |
CN110456395B (en) * | 2019-08-13 | 2022-03-04 | 维沃移动通信有限公司 | Positioning method and terminal equipment |
CN110830658A (en) * | 2019-11-29 | 2020-02-21 | 捷开通讯(深圳)有限公司 | Mobile terminal control method and device, mobile terminal and storage medium |
CN111918386A (en) * | 2020-07-03 | 2020-11-10 | Oppo广东移动通信有限公司 | Positioning method, positioning device, storage medium and electronic equipment |
CN111918386B (en) * | 2020-07-03 | 2023-09-29 | Oppo广东移动通信有限公司 | Positioning method, positioning device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108055644B (en) | 2021-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102449990B (en) | Space & time based device customization | |
CN108111971B (en) | Positioning method, positioning device, storage medium and mobile terminal | |
CN107508883B (en) | Information pushing method and device, storage medium and mobile terminal | |
US9456298B2 (en) | Device-to-device location awareness | |
CN108055642B (en) | Control method and device of positioning module, storage medium and mobile terminal | |
CN108055644A (en) | Position control method, device, storage medium and terminal device | |
CN107688638B (en) | Recommendation method and device for application list, storage medium and mobile terminal | |
CN107371102B (en) | Audio playing volume control method and device, storage medium and mobile terminal | |
CN107562405A (en) | Audio play control method, device and storage medium and mobile terminal | |
CN108681474B (en) | Application preloading method and device, storage medium and terminal | |
CN108076429A (en) | Localization method, device, storage medium and mobile terminal | |
CN108024209B (en) | Positioning control method and device, storage medium and terminal equipment | |
CN113574558A (en) | Electronic device and method for dynamic geo-fencing | |
CN108012237A (en) | Position control method, device, storage medium and terminal device | |
CN108055635B (en) | Position information acquisition method and device, storage medium and terminal | |
CN104240278A (en) | Determination of device body location | |
CN108093362B (en) | Control method and device of positioning module, storage medium and terminal | |
CN108112061A (en) | Position control method, device, storage medium and terminal device | |
CN107809742A (en) | Processing method, device, storage medium and the terminal of location information | |
CN108093373B (en) | Positioning control method and device, storage medium and terminal equipment | |
CN103957502A (en) | Location-based service program selecting method, device and terminal | |
CN108040320B (en) | GNSS positioning control method and device, storage medium and mobile terminal | |
CN108055643A (en) | Position control method, device, storage medium and terminal device | |
CN108151730A (en) | Position control method, device, storage medium and terminal device | |
CN107490380A (en) | Air navigation aid, device, storage medium and mobile terminal |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |