CN106131795A - A kind of localization method and mobile terminal - Google Patents

A kind of localization method and mobile terminal Download PDF

Info

Publication number
CN106131795A
CN106131795A CN201610762912.1A CN201610762912A CN106131795A CN 106131795 A CN106131795 A CN 106131795A CN 201610762912 A CN201610762912 A CN 201610762912A CN 106131795 A CN106131795 A CN 106131795A
Authority
CN
China
Prior art keywords
location mode
location
application program
target
mode
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.)
Pending
Application number
CN201610762912.1A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610762912.1A priority Critical patent/CN106131795A/en
Publication of CN106131795A publication Critical patent/CN106131795A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • 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

Abstract

The present invention provides a kind of localization method and mobile terminal, and the method includes: receive the positional information acquisition request that current application program sends;According to location mode Selection parameter, determine the target location mode associated with described location mode Selection parameter;Return to described application program and position mode defined location information according to described target.Different application programs can be taked different location modes, such user to avoid the need for the most frequently and change location mode by the embodiment of the present invention, and the operation making user is more convenient.

Description

A kind of localization method and mobile terminal
Technical field
The present invention relates to the communications field, particularly relate to a kind of localization method and mobile terminal.
Background technology
Along with developing rapidly of electronic communication and mobile terminal technology, mobile terminal has become as must in people's life Indispensable instrument.The demand different in order to meet user, user can select to install different types of application program, such as: new Hear application program, navigation application program, weather application or financing application program etc., and these application programs are being awarded After power, the positional information of mobile terminal can be obtained.After user setup one station-keeping mode, the application program of mandate is all It is to obtain the positional information of mobile terminal according to this station-keeping mode, but sometimes user needs different application programs Taking different station-keeping modes, such user must the most frequently change the station-keeping mode of mobile terminal, makes user operation inconvenience Prompt.
Summary of the invention
The embodiment of the present invention provides a kind of localization method and mobile terminal, the most frequently changes mobile terminal solving user Station-keeping mode cause operating problem the most easily.
First aspect, embodiments provides a kind of localization method, it is characterised in that including:
Receive the positional information acquisition request that current application program sends;
According to location mode Selection parameter, determine the target location mode associated with described location mode Selection parameter;
Return to described application program and position mode defined location information according to described target.
Second aspect, the embodiment of the present invention also provides for a kind of mobile terminal, it is characterised in that including:
Receiver module, the positional information sent for receiving current application program obtains request;
Determine module, for according to location mode Selection parameter, determining the mesh associated with described location mode Selection parameter Demarcate position mode;
First returns module, for returning according to described target location mode defined location letter to described application program Breath.
So, in the embodiment of the present invention, receive the positional information acquisition request that current application program sends;According to location side Formula Selection parameter, determines the target location mode associated with described location mode Selection parameter;Root is returned to described application program Mode defined location information is positioned according to described target.The most different application programs takes different location modes, and user is just Need not change the most frequently location mode, the operation making user is more convenient.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, required in the embodiment of the present invention being described below Accompanying drawing to be used is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, For those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawings Obtain other accompanying drawing.
Fig. 1 is the flow chart of a kind of localization method that the embodiment of the present invention provides;
Fig. 2 is the flow chart of the another kind of localization method that the embodiment of the present invention provides;
Fig. 3 is the structure chart of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 4 is the structure chart of the another kind of mobile terminal that the embodiment of the present invention provides;
Fig. 5 is the structure chart of the another kind of mobile terminal that the embodiment of the present invention provides;
Fig. 6 is the structure chart of the another kind of mobile terminal that the embodiment of the present invention provides;
Fig. 7 is the structure chart of the another kind of mobile terminal that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise Example, broadly falls into the scope of protection of the invention.
First embodiment
Seeing Fig. 1, Fig. 1 is the flow chart of a kind of localization method that the embodiment of the present invention provides, as it is shown in figure 1, include with Lower step:
The positional information that step 101, reception current application program send obtains request.
In the embodiment of the present invention, above-mentioned application program can be the application program that mobile terminal carries when dispatching from the factory, it is possible to To be the application program downloaded for mobile terminal of user.This application program can be chat application, weather application, lead Boat application program or take-away application program etc..
Step 102, according to location mode Selection parameter, determine that the target that associate with described location mode Selection parameter positions Mode.
In the embodiment of the present invention, above-mentioned location mode Selection parameter can be user-defined parameter, and this parameter is permissible It is the page residing for the classification of application program, the title of application program, application program or file that application program is deposited Title etc., is not construed as limiting this embodiment of the present invention.
In the embodiment of the present invention, above-mentioned location mode can be based on global positioning system (GPS, Global Positioning System) location, can be the location of base station based on mobile operation network, naturally it is also possible to be based on nothing The location of line fidelity (WIFI, Wireless Fidelity).
Step 103, to described application program return according to described target position mode defined location information.
In the embodiment of the present invention, above-mentioned target location mode can be location based on GPS, can be based on mobile operation The location of the base station of net, naturally it is also possible to be location based on WIFI.
In the embodiment of the present invention, above-mentioned mobile terminal any can possess the mobile terminal of positioning function, such as: mobile phone, Panel computer (Tablet Personal Computer), kneetop computer (Laptop Computer), personal digital assistant (personal digital assistant is called for short PDA), mobile Internet access device (Mobile Internet Device, MID) Or Wearable device (Wearable Device) etc..
A kind of localization method of the embodiment of the present invention, receives the positional information acquisition request that current application program sends;Root According to location mode Selection parameter, determine the target location mode associated with described location mode Selection parameter;To described application journey Sequence returns and positions mode defined location information according to described target.The most different application programs takes different location sides Formula, user avoids the need for changing the most frequently location mode, and the operation making user is more convenient.Such as user just begins to use Navigation navigation application program is gone home, and now uses GPS location.Get home the weather opening weather application tomorrow to be checked time, Now user just need not manually change location mode, and weather application just can be mated according to some parameters of self Automatically changing a kind of location mode, such as WIFI positions.Whole process user the most manually changes location mode for application program, So operation of user is more convenient.And traditional location mode, user want to application program change location mode when must Another kind of location mode must be manually set, cause user operation the most convenient.
Second embodiment
See the flow chart that Fig. 2, Fig. 2 are the another kind of localization methods that the embodiment of the present invention provides, as in figure 2 it is shown, include Following steps:
The positional information that step 201, reception current application program send obtains request.
In the embodiment of the present invention, above-mentioned application program can be the application program that mobile terminal carries when dispatching from the factory, it is possible to To be the application program downloaded for mobile terminal of user.This application program can be chat application, weather application, lead Boat reference program or take-away application program etc..
Step 202, according to location mode Selection parameter, determine that the target that associate with described location mode Selection parameter positions Mode.
In the embodiment of the present invention, above-mentioned location mode Selection parameter can be user-defined parameter, and this parameter is permissible It is the page residing for the classification of application program, the title of application program, application program or file that application program is deposited Title etc., is not construed as limiting this embodiment of the present invention.
In the embodiment of the present invention, above-mentioned location mode can be location based on GPS, can be based on mobile operation network The location of base station, naturally it is also possible to be location based on WIFI.
Whether the target location mode that step 203, judgement determine can successfully position.
In the embodiment of the present invention, no matter above-mentioned target location mode is the location of GPS, the location of base station or determining of WIFI Position, the when of being all likely to occur poor signal, poor signal is it is possible to position unsuccessful.Such as: gps signal is bad, GPS location It is possible to unsuccessful;Base station signal is bad, and architecture is possible to unsuccessful;WIFI signal is bad, and WIFI also may be used location Can be unsuccessful.
If the described target location mode determined of step 204 can successfully position, then return basis to described application program Described target location mode defined location information.
In the embodiment of the present invention, above-mentioned target location mode can be location based on GPS, can be based on mobile operation The location of the base station of net, naturally it is also possible to be location based on WIFI.
If the described target location mode determined of step 205 can not successfully position, it is determined that acquiescence location mode is carried out Location, and return according to described acquiescence location mode defined location information to described application program.
In the embodiment of the present invention, above-mentioned acquiescence location mode can be location based on GPS, can be based on mobile operation The location of the base station of net, naturally it is also possible to be location based on WIFI.
The embodiment of the present invention, takes different location modes to different application programs, and user avoids the need for the most frequently Replacing location mode, the operation making user is more convenient.And in the case of target location mode can not successfully position, choosing Select acquiescence station-keeping mode, make application program position successful probability bigger.Such as user is in and wants with taking out outside application program point When selling, take out application matches is WIFI location.But cause wireless router fault if as some reason thus When causing take-away application program to cannot be carried out WIFI location, now can automatically switch to give tacit consent to station-keeping mode, such as GPS fixed Position.So user is target location mode can not successfully position when, and it is fixed still can to carry out by acquiescence location mode GPS Position, still can make take-away normally deliver to house, make Consumer's Experience more smooth.
Following location mode Selection parameter is also applicable to the location mode Selection parameter in first embodiment, first Embodiment can also be by following mode as the optional embodiment of one.
Optionally, described location mode Selection parameter is application name, described according to location mode Selection parameter, really The fixed target location mode associated with described location mode Selection parameter, including:
According to the location mode pre-build and the incidence relation of application name, inquire about described current application program The location mode of names associate, positions mode as described target.
In the embodiment of the present invention, above-mentioned location mode and the incidence relation of application name, can be a kind of application journey Sequence title correspondence one location mode, it is also possible to be a kind of set positioning the corresponding application name of mode.
When this incidence relation is a kind of application name correspondence one location mode, it will be understood that.Such as: should Being GPS location by the location mode of program 1 correspondence, the location mode of application program 2 correspondence is WIFI location, and application program 3 is right The location mode answered is architecture.Application program 1, application program 2 and application program 3 are the title of different application.
When this incidence relation is a kind of set positioning the corresponding application name of mode, it will be understood that. Such as: the application name collection of GPS location correspondence is combined into application program 1 and the set of application program 2 composition, and WIFI location is right The application name collection answered is combined into the set that application program 3 forms alone.Now when application program 1 positions, just use GPS Location;When application program 2 positions, it is also adopted by GPS location;When application program 3 positions, just use WIFI location.
Following location mode Selection parameter is also applicable to the location mode Selection parameter in first embodiment, first Embodiment can also be by following mode as the optional embodiment of one.
Optionally, described location mode Selection parameter is the classification of application program, described according to location mode Selection parameter, Determine the target location mode associated with described location mode Selection parameter, including:
Determine the classification of described current application program;
Classification according to the application program pre-build and the incidence relation of location mode, select described currently should with determining By the location mode of the category associations of program, position mode as described target.
The above-mentioned classification determining current application program, can be the application program that determines of the class label according to application program Classification, it is also possible to be user be the self-defining classification of application program.Some application programs understand oneself with class label, such as chat My god, navigate or take-away etc..
Certainly, the category can also be user be application program divide classification.Such as can be by the classification of application program It is divided into indoor application program and outdoor utility program.Indoor application program is taked a kind of location mode, outdoor utility program Take another kind of location mode.
Take-away application program and weather application can be divided into indoor application program, to indoor application by such as user Program uses WIFI location;Navigation application program and sports application can be divided into outdoor utility program, should to outdoor GPS location is used by program.
In the embodiment of the present invention, above-mentioned location mode and the other incidence relation of application class, can be a kind of application journey Sequence classification correspondence one location mode, it is also possible to be the corresponding other set of application class of a kind of location mode.Location side Formula and the other incidence relation of application class, be referred to the incidence relation of location mode and application name, at this no longer Repeat.
Following location mode Selection parameter is also applicable to the location mode Selection parameter in first embodiment, first Embodiment can also be by following mode as the optional embodiment of one.
Optionally, described location mode Selection parameter is dump energy, described according to location mode Selection parameter, determine with The target location mode of described location mode Selection parameter association, including:
Determine the dump energy that terminal is current;
When dump energy is less than pre-determined threshold, determine that location mode that power consumption is minimum is as described target location side Formula.
In the embodiment of the present invention, above-mentioned pre-determined threshold, can be the 20% of total electricity, it is also possible to be the 10% of total electricity, As long as a user-defined threshold value is all possible at this.
Such as, user's self-driving travel goes to a scenic spot to play, and is all to navigate with GPS location in driving process.Travelling The when of to most distance, the electricity of mobile phone is only left 20%.If being now continuing with GPS location to navigate, Cannot may not walk completely remaining distance, because the power consumption of GPS location still compares high.If user pre-sets dump energy Thresholding, for the 20% of total electricity, now application program will from GPS location and architecture select power consumption than relatively low base Stand firm position.Although architecture may not have GPS location so accurate in location, but can guarantee that user is according to one the most just True direction running, enables users to drive near destination under the dump energy of 20%, and this also brings pole for user Big is convenient, is unlikely on the way to cause mobile phone not have electricity thus cannot be carried out navigation.
The embodiment of the present invention, receives the positional information acquisition request that current application program sends;Select according to location mode Parameter, determines the target location mode associated with described location mode Selection parameter;Judge whether the target determined positions mode Can successfully position;If the described target location mode determined can successfully position, then return according to institute to described application program State target location mode defined location information;If the described target location mode determined can not successfully position, it is determined that silent Assert that position mode positions, and return according to described acquiescence location mode defined location information to described application program.This The different application program of sample takes different location modes, and user avoids the need for changing the most frequently location mode, makes user Operation more convenient.And in the case of target location mode can not successfully position, select acquiescence station-keeping mode, make application It is bigger that program positions successful probability.
3rd embodiment
Seeing Fig. 3, Fig. 3 is the structure chart that the present invention implements a kind of mobile terminal provided, as it is shown on figure 3, mobile terminal 300 include receiver module 301, determine module 302, and first returns module 303, wherein:
Receiver module 301, the positional information sent for receiving current application program obtains request;
Determine module 302, for according to location mode Selection parameter, determining and associate with described location mode Selection parameter Target location mode;
First returns module 303, positions mode defined location for returning to described application program according to described target Information.
Optionally, described location mode Selection parameter is application name, described determines that module 302 is for according in advance The location mode set up and the incidence relation of application name, inquire about the location side of the names associate of described current application program Formula, positions mode as described target.
Optionally, described location mode Selection parameter is the classification of application program, as shown in Figure 4, described determines module 302 Including:
First determines unit 3021, for determining the classification of described current application program;
Second determines unit 3022, and the association for the classification according to the application program pre-build and location mode is closed System, selects and the location mode of the category associations determining described current application program, positions mode as described target.
Optionally, described location mode Selection parameter is dump energy, determines that module 302 includes as it is shown in figure 5, described:
3rd determines unit 3023, for determining the dump energy that terminal is current;
4th determines unit 3024, for when dump energy is less than pre-determined threshold, determining the location side that power consumption is minimum Formula positions mode as described target.
Optionally, as shown in Figure 6, described mobile terminal 300 also includes:
Judge module 304, for judging whether the target determined location mode can successfully position;
If described first returns module 303 judges that the target determined location mode can become for described judge module 304 Merit positions, and performs described return to described application program and positions mode defined location information Step according to described target;
Second returns module 305, if judging that the target determined location mode can not be successful for described judge module 304 Location, determines that acquiescence location mode positions, and determine according to described acquiescence location mode to the return of described application program Positional information.
Mobile terminal 300 is capable of each process that in the embodiment of the method for Fig. 1 to Fig. 2, mobile terminal realizes, for keeping away Exempt to repeat, repeat no more here.
The mobile terminal 300 of the embodiment of the present invention, receives the positional information acquisition request that current application program sends;According to Location mode Selection parameter, determines the target location mode associated with described location mode Selection parameter;To described application program Return and position mode defined location information according to described target.The most different application programs takes different location modes, User avoids the need for changing the most frequently location mode, and the operation making user is more convenient.
4th embodiment
Seeing Fig. 7, Fig. 7 is the structure chart that the present invention implements the another kind of mobile terminal provided, as it is shown in fig. 7, mobile whole End 700 includes: at least one processor 701, memorizer 702, at least one network interface 704 and user interface 703.Mobile whole Each assembly in end 700 is coupled by bus system 705.It is understood that bus system 705 is used for realizing these assemblies Between connection communication.Bus system 705, in addition to including data/address bus, also includes power bus, controls bus and state letter Number bus.But for the sake of understanding explanation, in the figure 7 various buses are all designated as bus system 705.
Wherein, user interface 703 can include display, keyboard or pointing device (such as, mouse, trace ball (track ball), touch-sensitive plate or touch screen etc..
The memorizer 702 being appreciated that in the embodiment of the present invention can be volatile memory or nonvolatile memory, Maybe can include volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable P ROM, EPROM), Electrically Erasable Read Only Memory (Electrically EP ROM, EEPROM) Or flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous D RAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SD RAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SD RAM, ESDRAM), synchronize even Connect dynamic random access memory (Synch link D RAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memorizer 702 of system and method described herein is intended to include but not limited to these Memorizer with arbitrarily other applicable type.
In some embodiments, memorizer 702 stores following element, executable module or data structure, or Their subset of person, or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021, comprise various system program, such as ccf layer, core library layer, driving layer etc., be used for Realize various basic business and process hardware based task.Application program 7022, comprises various application program, such as media Player (Media Player), browser (Browser) etc., be used for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 7022.
In embodiments of the present invention, by calling program or the instruction of memorizer 702 storage, concrete, can be application The program stored in program 7022 or instruction, processor 701 is used for:
Receive the positional information acquisition request that current application program sends;
According to location mode Selection parameter, determine the target location mode associated with described location mode Selection parameter;
Return to described application program and position mode defined location information according to described target.
The method that the invention described above embodiment discloses can apply in processor 701, or is realized by processor 701. Processor 701 is probably a kind of IC chip, has the disposal ability of signal.During realizing, said method each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 701 or software form.Above-mentioned process Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General The processor etc. that processor can be microprocessor or this processor can also be any routine.In conjunction with embodiment of the present invention institute The step of disclosed method can be embodied directly in hardware decoding processor and perform, or with the hardware in decoding processor And software module combination execution completes.Software module may be located at random access memory, and flash memory, read only memory are able to programme read-only In the storage medium that this areas such as memorizer or electrically erasable programmable memorizer, depositor are ripe.This storage medium is positioned at Memorizer 702, processor 701 reads the information in memorizer 702, completes the step of said method in conjunction with its hardware.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combination realizes.Realizing for hardware, processing unit can be implemented in one or more special IC (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, Controller, microcontroller, microprocessor, for performing in other electronic unit or a combination thereof of herein described function.
Software is realized, can be realized herein by the module (such as process, function etc.) performing function described herein Described technology.Software code is storable in performing in memorizer and by processor.Memorizer can within a processor or Processor is outside to be realized.
Optionally, described location mode Selection parameter is application name, and processor 701 performs described according to location side Formula Selection parameter, determines the target location mode associated with described location mode Selection parameter, including:
According to the location mode pre-build and the incidence relation of application name, inquire about described current application program The location mode of names associate, positions mode as described target.
Optionally, described location mode Selection parameter is the classification of application program, and processor 701 performs described according to location Mode Selection parameter, determines the target location mode associated with described location mode Selection parameter, including:
Determine the classification of described current application program;
Classification according to the application program pre-build and the incidence relation of location mode, select described currently should with determining By the location mode of the category associations of program, position mode as described target.
Optionally, described location mode Selection parameter is dump energy, and processor 701 performs described to select according to location mode Select parameter, determine the target location mode associated with described location mode Selection parameter, including:
Determine the dump energy that terminal is current;
When dump energy is less than pre-determined threshold, determine that location mode that power consumption is minimum is as described target location side Formula.
Optionally, after the described target location mode determining and associating with described location mode Selection parameter, described to Before described application program returns according to described target location mode defined location information, processor 701 is additionally operable to:
Judge whether the target determined location mode can successfully position;
If the described target location mode determined can successfully position, then perform described to described application program return basis Described target location mode defined location information Step;
If the described target location mode determined can not successfully position, it is determined that acquiescence location mode positions, and Return according to described acquiescence location mode defined location information to described application program.
Mobile terminal 700 is capable of each process that in previous embodiment, mobile terminal realizes, for avoiding repeating, here Repeat no more.The mobile terminal 700 of the embodiment of the present invention, receives the positional information acquisition request that current application program sends;Root According to location mode Selection parameter, determine the target location mode associated with described location mode Selection parameter;To described application journey Sequence returns and positions mode defined location information according to described target.The most different application programs takes different location sides Formula, user avoids the need for changing the most frequently location mode, and the operation making user is more convenient.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes Unit and algorithm steps, it is possible to being implemented in combination in of electronic hardware or computer software and electronic hardware.These functions are actually Perform with hardware or software mode, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel Each specifically should being used for can be used different methods to realize described function, but this realization is it is not considered that exceed The scope of the present invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the system of foregoing description, The specific works process of device and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be passed through other Mode realizes.Such as, device embodiment described above is only schematically, such as, the division of described unit, it is only A kind of logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or Person is desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed is mutual Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication link Connect, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize embodiment of the present invention scheme Purpose.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.
If described function is using the form realization of SFU software functional unit and as independent production marketing or use, permissible It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is the most in other words The part contributing prior art or the part of this technical scheme can embody with the form of software product, this meter Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual People's computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention. And aforesaid storage medium includes: USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can store program code Medium.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (10)

1. a localization method, it is characterised in that including:
Receive the positional information acquisition request that current application program sends;
According to location mode Selection parameter, determine the target location mode associated with described location mode Selection parameter;
Return to described application program and position mode defined location information according to described target.
Localization method the most according to claim 1, it is characterised in that described location mode Selection parameter is application name Claim, described according to location mode Selection parameter, determine the target location mode associated with described location mode Selection parameter, bag Include:
According to the location mode pre-build and the incidence relation of application name, inquire about the title of described current application program The location mode of association, positions mode as described target.
Localization method the most according to claim 1, it is characterised in that described location mode Selection parameter is application program Classification, described according to location mode Selection parameter, determine the target location mode associated with described location mode Selection parameter, bag Include:
Determine the classification of described current application program;
Classification according to the application program pre-build and the incidence relation of location mode, determine the class of described current application program The location mode not associated, positions mode as described target.
Localization method the most according to claim 1, it is characterised in that described location mode Selection parameter is dump energy, Described according to location mode Selection parameter, determine that the target associated with described location mode Selection parameter positions mode, including:
Determine the dump energy that terminal is current;
When dump energy is less than pre-determined threshold, determine that the location mode that power consumption is minimum positions mode as described target.
Localization method the most according to claim 1, it is characterised in that determine and described location mode Selection parameter described After the target location mode of association, described return to described application program is believed according to described target location mode defined location Before breath, described localization method also includes:
Judge whether the target determined location mode can successfully position;
If described determine target location mode can successfully position, then perform described to described application program return according to described Target location mode defined location information Step;
If the described target location mode determined can not successfully position, it is determined that acquiescence location mode positions, and to institute State application program to return according to described acquiescence location mode defined location information.
6. a mobile terminal, it is characterised in that including:
Receiver module, the positional information sent for receiving current application program obtains request;
Determine module, for according to location mode Selection parameter, determine that the target associated with described location mode Selection parameter is fixed Position mode;
First returns module, positions mode defined location information for returning to described application program according to described target.
Mobile terminal the most according to claim 6, it is characterised in that described location mode Selection parameter is application name Claim, described determine module for according to the location mode that pre-builds and the incidence relation of application name, inquiry is described works as The location mode of the names associate of front application program, positions mode as described target.
Mobile terminal the most according to claim 6, it is characterised in that described location mode Selection parameter is application program Classification, described determines that module includes:
First determines unit, for determining the classification of described current application program;
Second determines unit, for the classification according to the application program pre-build and the incidence relation of location mode, determines institute State the location mode of the category associations of current application program, position mode as described target.
Mobile terminal the most according to claim 6, it is characterised in that described location mode Selection parameter is dump energy, Described determine that module includes:
3rd determines unit, for determining the dump energy that terminal is current;
4th determines unit, for when dump energy is less than pre-determined threshold, determines that location mode that power consumption is minimum is as institute State target location mode.
Mobile terminal the most according to claim 6, it is characterised in that described mobile terminal also includes:
Judge module, for judging whether the target determined location mode can successfully position;
If described first returns module judges that the target determined location mode can successfully position for described judge module, perform Described return to described application program positions mode defined location information Step according to described target;
Second returns module, if judging that the target determined location mode can not successfully position for described judge module, determines Acquiescence location mode positions, and returns according to described acquiescence location mode defined location information to described application program.
CN201610762912.1A 2016-08-30 2016-08-30 A kind of localization method and mobile terminal Pending CN106131795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610762912.1A CN106131795A (en) 2016-08-30 2016-08-30 A kind of localization method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610762912.1A CN106131795A (en) 2016-08-30 2016-08-30 A kind of localization method and mobile terminal

Publications (1)

Publication Number Publication Date
CN106131795A true CN106131795A (en) 2016-11-16

Family

ID=57272284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610762912.1A Pending CN106131795A (en) 2016-08-30 2016-08-30 A kind of localization method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106131795A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040320A (en) * 2017-12-13 2018-05-15 广东欧珀移动通信有限公司 Control method, device, storage medium and the mobile terminal of GNSS positioning
CN108076507A (en) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 Positioning method control method, device, storage medium and mobile terminal
CN108076429A (en) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 Localization method, device, storage medium and mobile terminal
CN108156202A (en) * 2016-12-06 2018-06-12 高德信息技术有限公司 A kind of method, apparatus and system that system position service is provided
CN108521628A (en) * 2018-03-29 2018-09-11 维沃移动通信有限公司 A kind of localization method, device and mobile terminal
CN109164477A (en) * 2018-08-29 2019-01-08 维沃移动通信有限公司 A kind of method and mobile terminal of application positioning
CN110099395A (en) * 2018-01-30 2019-08-06 中国移动通信有限公司研究院 A kind of information processing method, equipment, terminal and computer storage medium
CN110221678A (en) * 2019-05-21 2019-09-10 深圳壹账通智能科技有限公司 Application program adjusting method, device, computer equipment and storage medium
CN112073462A (en) * 2020-08-05 2020-12-11 长沙市到家悠享网络科技有限公司 Positioning method and device
CN113473362A (en) * 2021-06-29 2021-10-01 北京小米移动软件有限公司 Positioning method, positioning device and storage medium
WO2023236979A1 (en) * 2022-06-10 2023-12-14 维沃移动通信有限公司 Positioning model selection method, terminal, and network side device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1449500A (en) * 2000-06-30 2003-10-15 诺基亚有限公司 Method and device for position determination
CN1765142A (en) * 2003-02-18 2006-04-26 高通股份有限公司 Indication of location service availability and the quality of available location services
CN1929682A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Location method and system for urgent call business
CN105393141A (en) * 2013-07-03 2016-03-09 高通股份有限公司 Methods and apparatuses for use in providing location parameters to mobile applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1449500A (en) * 2000-06-30 2003-10-15 诺基亚有限公司 Method and device for position determination
CN1765142A (en) * 2003-02-18 2006-04-26 高通股份有限公司 Indication of location service availability and the quality of available location services
CN1929682A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Location method and system for urgent call business
CN105393141A (en) * 2013-07-03 2016-03-09 高通股份有限公司 Methods and apparatuses for use in providing location parameters to mobile applications

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156202A (en) * 2016-12-06 2018-06-12 高德信息技术有限公司 A kind of method, apparatus and system that system position service is provided
CN108156202B (en) * 2016-12-06 2020-12-29 阿里巴巴(中国)有限公司 Method, device and system for providing system location service
CN108040320A (en) * 2017-12-13 2018-05-15 广东欧珀移动通信有限公司 Control method, device, storage medium and the mobile terminal of GNSS positioning
CN108076507A (en) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 Positioning method control method, device, storage medium and mobile terminal
CN108076429A (en) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 Localization method, device, storage medium and mobile terminal
CN108040320B (en) * 2017-12-13 2020-06-26 Oppo广东移动通信有限公司 GNSS positioning control method and device, storage medium and mobile terminal
CN110099395A (en) * 2018-01-30 2019-08-06 中国移动通信有限公司研究院 A kind of information processing method, equipment, terminal and computer storage medium
CN110099395B (en) * 2018-01-30 2022-04-15 中国移动通信有限公司研究院 Information processing method, equipment, terminal and computer storage medium
CN108521628A (en) * 2018-03-29 2018-09-11 维沃移动通信有限公司 A kind of localization method, device and mobile terminal
CN109164477A (en) * 2018-08-29 2019-01-08 维沃移动通信有限公司 A kind of method and mobile terminal of application positioning
CN110221678A (en) * 2019-05-21 2019-09-10 深圳壹账通智能科技有限公司 Application program adjusting method, device, computer equipment and storage medium
CN112073462A (en) * 2020-08-05 2020-12-11 长沙市到家悠享网络科技有限公司 Positioning method and device
CN112073462B (en) * 2020-08-05 2023-10-27 长沙市到家悠享网络科技有限公司 Positioning method and device
CN113473362A (en) * 2021-06-29 2021-10-01 北京小米移动软件有限公司 Positioning method, positioning device and storage medium
WO2023236979A1 (en) * 2022-06-10 2023-12-14 维沃移动通信有限公司 Positioning model selection method, terminal, and network side device

Similar Documents

Publication Publication Date Title
CN106131795A (en) A kind of localization method and mobile terminal
CN106714251B (en) A kind of method for connecting network and mobile terminal
CN103208227B (en) A kind of electronic map interest point display packing, system and electronic equipment
CN103605656B (en) A kind of method, apparatus for recommending music and a kind of mobile terminal
CN103309925B (en) Tagging content method and apparatus in mancarried electronic aid
CN107508883A (en) Information-pushing method, device, storage medium and mobile terminal
CN103279269B (en) Data interactive method between a kind of application program and device, terminal device
CN104634359A (en) Method and device for obtaining information through navigation application
CN101901175A (en) Data backup method and electronic terminal
CN107197487B (en) A kind of network reselection method and mobile terminal
CN105354214A (en) Memo information generation method and apparatus
CN105898705A (en) Method for controlling scanning frequency of wireless local area network and mobile terminal
CN103475392B (en) Information getting method, device and terminal
US20130231859A1 (en) Apparatus and method for providing navigation service in electronic device
CN106643774A (en) Navigation route generation method and terminal
CN108540815A (en) Multimedia content playback method, apparatus and system
CN106210354A (en) The display packing of a kind of mobile terminal and mobile terminal
CN109219953A (en) A kind of alarm clock prompting method and terminal device
CN106663375A (en) Traffic information updating method and device
CN105608101A (en) Method and device for utilizing address in text, and mobile terminal
CN105828283A (en) Destination arrival reminding method and mobile terminal
CN104936221B (en) The method and device of data in mobile terminal flow monitoring
CN107145215A (en) A kind of background application method for cleaning and mobile terminal
CN105526944A (en) Information prompt method and apparatus thereof in driving process
CN105050038A (en) Method, apparatus, and system for monitoring position information of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116