CN108829228A - Positioning function control method, mobile terminal and computer readable storage medium - Google Patents

Positioning function control method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108829228A
CN108829228A CN201810556393.2A CN201810556393A CN108829228A CN 108829228 A CN108829228 A CN 108829228A CN 201810556393 A CN201810556393 A CN 201810556393A CN 108829228 A CN108829228 A CN 108829228A
Authority
CN
China
Prior art keywords
positioning function
scene
mobile terminal
need
close
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
CN201810556393.2A
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810556393.2A priority Critical patent/CN108829228A/en
Publication of CN108829228A publication Critical patent/CN108829228A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/442Shutdown
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

This application provides a kind of positioning function control method, mobile terminal and computer readable storage medium, the positioning function control method includes:Open positioning function;Detection mobile terminal is presently in scene;If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, the positioning function is closed.Positioning function can be closed in time when user does not use positioning function by the application, reduce the power consumption of mobile terminal, extend the cruise duration of mobile terminal.

Description

Positioning function control method, mobile terminal and computer readable storage medium
Technical field
The application belongs to technical field of mobile terminals more particularly to a kind of positioning function control method, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the fast development of mobile terminal (such as mobile phone, tablet computer etc.), the application installed on mobile terminal is more next More, major applications all need the location information that mobile phone is obtained using the positioning function of mobile phone, such as Baidu map.However, with Family often forgets about closing positioning function after having used positioning function, and always on positioning function will increase mobile terminal Power consumption shortens the cruise duration of mobile terminal.
Therefore, it is necessary to propose a kind of new technical solution, to solve the above technical problems.
Summary of the invention
In view of this, this application provides a kind of positioning function control method, mobile terminal and computer-readable storage mediums Matter reduces the power consumption of mobile terminal, extends mobile terminal to close positioning function in time when user does not use positioning function Cruise duration.
The first aspect of the application provides a kind of positioning function control method, and the positioning function control method includes:
Open positioning function;
Detection mobile terminal is presently in scene;
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, the positioning function is closed Energy.
The second aspect of the application provides a kind of mobile terminal, and the mobile terminal includes:
Function opening module, for opening positioning function;
Scene detection module is presently in scene for detecting mobile terminal;
Function closedown module, if being presently in scene for the mobile terminal is that need to close the field of the positioning function Scape then closes the positioning function.
The third aspect of the application provides a kind of mobile terminal, including memory, processor and is stored in described deposit In reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer program Described in above-mentioned first aspect the step of positioning function control method.
The fourth aspect of the application provides a kind of computer readable storage medium, and the computer readable storage medium is deposited Computer program is contained, realizes that positioning function controls as described in above-mentioned first aspect when the computer program is executed by processor The step of method.
The 5th aspect of the application provides a kind of computer program product, and the computer program product includes computer Program realizes that positioning function controls as described in above-mentioned first aspect when the computer program is executed by one or more processors The step of method.
Therefore this programme, when mobile terminal opens positioning function, detection mobile terminal is presently in scene, and Detecting that mobile terminal is presently in scene is that need to close the scene of positioning function, and the positioning function of mobile terminal is automatically closed, So as to close positioning function in time when user does not use positioning function, the power consumption of mobile terminal is reduced, mobile terminal is extended Cruise duration, promoted user experience.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram for the positioning function control method that the embodiment of the present application one provides;
Fig. 2 is the implementation process schematic diagram for the positioning function control method that the embodiment of the present application two provides;
Fig. 3 is the implementation process schematic diagram for the positioning function control method that the embodiment of the present application three provides;
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present application four provides;
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides;
Fig. 6 is the schematic diagram for the mobile terminal that the embodiment of the present application six provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but is had The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple:Drawing application program, demonstration application Program, word-processing application, website creation application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer With program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on mobile terminals Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example, Touch sensitive surface) it can support the various application programs with user interface intuitive and transparent for a user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in the present embodiment, each process Execution sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It is the implementation process schematic diagram for the positioning function control method that the embodiment of the present application one provides, the positioning referring to Fig. 1 Function control method is applied to mobile terminal, and the positioning function control method as shown in the figure may comprise steps of:
Step S101 opens positioning function.
In the embodiment of the present application, the positioning function of opening refers to the positioning function for opening mobile terminal, specifically can be with It is the manually opened positioning function of user (such as user clicks the positioning function option in mobile terminal manually), is also possible to move The application installed in terminal calls the positioning function (such as to call positioning in the Baidu map installed on opening mobile terminal Function).Wherein, the positioning function include but is not limited to global positioning system (Global Positioning System, GPS) positioning function, network positions function, base station location function etc..
Step S102, detection mobile terminal are presently in scene.
In the embodiment of the present application, it after mobile terminal opens positioning function, can currently be transported according to mobile terminal The Function detection mobile terminal that capable application and/or the application are opened is presently in scene.For example, mobile terminal is currently transported Capable application is Baidu map, and can be determined that mobile terminal is presently in scene at this time is that need to open the scene of positioning function;It moves The application that dynamic terminal is currently run is wechat, and uses the function that position or shared real time position are sent to good friend in wechat Can, can be determined that mobile terminal is presently in scene at this time is that need to open the scene of positioning function;Mobile terminal closes current institute The application Baidu map of operation, can be determined that mobile terminal is presently in scene at this time is that need to close the scene of positioning function.
Step S103 is closed if it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, The positioning function.
In the embodiment of the present application, mobile terminal can detecte mobile terminal and be presently in after opening positioning function Scene is that need to close the scene of positioning function, still need to open the scene of positioning function, being presently in scene in mobile terminal is When need to close the scene of positioning function, positioning function is automatically closed, being presently in scene in mobile terminal is that need to open positioning function When the scene of energy, the positioning function is not closed, that is, continues starting positioning function.Wherein, the scene that positioning function need to be opened It can refer to the scene needed using positioning function, including but not limited to map usage scenario, navigation scenarios, record running track Scene etc.;The scene that positioning function need to be closed can refer to the scene without using positioning function, including but not limited to close The application of closed call positioning function.
It in the embodiment of the present application, can be with if it is that need to close the scene of positioning function that mobile terminal, which is presently in scene, It prompts user to close positioning function, in the confirmation instruction for receiving the closing positioning function of user's input, closes positioning function; In the pass for denying instruction or do not receive user's input within first time for receiving the closing positioning function of user's input When closing the confirmation instruction of positioning function or denying instruction, positioning function is not closed.For example, showing on the screen of the mobile terminal Prompting frame including two options, an option display confirmation, another option, which is shown, to be denied, detects that user clicks confirmation choosing , then determine that user's input validation instructs, closes positioning function;It detects that user clicks and denies option, then determine that user inputs Deny instructing, does not close positioning function;User is not detected in 5 seconds and clicks any one option, then does not close positioning function.
For the embodiment of the present application when mobile terminal opens positioning function, detection mobile terminal is presently in scene, and is examining Measuring mobile terminal and being presently in scene is that need to close the scene of positioning function, and the positioning function of mobile terminal is automatically closed, from And positioning function can be closed in time when user does not use positioning function, the power consumption of mobile terminal is reduced, mobile terminal is extended Promote user experience cruise duration.
It referring to fig. 2, is the implementation process schematic diagram for the positioning function control method that the embodiment of the present application two provides, the positioning Function control method is applied to mobile terminal, and the positioning function control method as shown in the figure may comprise steps of:
Step S201 opens positioning function.
The step is identical as step S101, and for details, reference can be made to the associated descriptions of step S101, and details are not described herein.
Optionally, before opening positioning function, the embodiment of the present application further includes:
Obtain the scene that need to close the positioning function and the scene that the positioning function need to be opened.
In the embodiment of the present application, before opening positioning function, mobile terminal can obtain in advance need to close positioning function The scene of energy and the scene that need to open positioning function, that is, predefining which kind of scene is that need to close the scene of positioning function, which kind of Scene is that need to open the scene of positioning function, and the need determined are closed the scene of positioning function and need to open positioning function Scene is stored into mobile terminal, after detecting that mobile terminal is presently in scene, according to the need stored in mobile terminal It closes the scene of positioning function and the scene of positioning function need to be opened, judging that mobile terminal is presently in scene is that need to close positioning The scene of function still needs to open the scene of positioning function.
Step S202, detection mobile terminal are presently in scene.
The step is identical as step S102, and for details, reference can be made to the associated descriptions of step S102, and details are not described herein.
Step S203, if it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, pre- If closing the positioning function after the time.
In the embodiment of the present application, in order to avoid repeating to open positioning function, scene can be presently in mobile terminal When scene for that need to close positioning function, starting timer starts timing, turns off after timing time reaches preset time Positioning function.For example, preset time is 6 seconds, user wants to reuse positioning function, be arranged at this time when timing time is 5 seconds Preset time, so that it may user be avoided to be again started up positioning function.Wherein, user self-setting can preset according to actual needs Time is not limited thereto.
In the embodiment of the present application, it if it is that need to close the scene of positioning function that mobile terminal, which is presently in scene, obtains The current electricity of mobile terminal closes positioning function if the current electricity of mobile terminal is lower than default electricity immediately, so as to The power consumption that mobile terminal is reduced when mobile terminal electricity is lower, extends the cruise duration of mobile terminal;If mobile terminal is current Electricity be not less than default electricity, then close positioning function after the preset lime.
Optionally, if it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, Closing the positioning function after preset time includes:
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, the positioning function is detected Whether can be turned off;
If the positioning function is not turned off, the positioning function is closed after the preset time.
It in the embodiment of the present application, can be with if it is that need to close the scene of positioning function that mobile terminal, which is presently in scene, First whether detection positioning function is turned off, if positioning function is not turned off, in order to reduce the power consumption of mobile terminal, extends mobile whole Positioning function can be closed after the preset lime the cruise duration at end;If positioning function is turned off, (such as user is turned off manually Positioning function), then without repeating to close positioning function again.
Optionally, the embodiment of the present application further includes:
If detecting the predetermined registration operation to the mobile terminal in the preset time, after the preset time Keep the unlatching of the positioning function.
In the embodiment of the present application, if user detect mobile terminal be presently in scene be need to close positioning function It is not desired to close positioning function after preset time after scene, then can carry out mobile terminal in the preset time pre- If operation (such as double-clicking mobile phone back), to send the instruction for keeping it turning on positioning function to mobile terminal, to control movement Terminal is held in position the unlatching of function after the preset lime.
A preset time is arranged in the embodiment of the present application, and being presently in scene in mobile terminal is that need to close the field of positioning function Jing Shi turns off positioning function after the preset time, to can avoid repeating to open the positioning function.
It is the implementation process schematic diagram for the positioning function control method that the embodiment of the present application three provides, the positioning referring to Fig. 3 Function control method is applied to mobile terminal, and the positioning function control method as shown in the figure may comprise steps of:
Step S301 obtains the historical data that user uses positioning function.
In the embodiment of the present application, mobile terminal can repeatedly or in the second time use positioning function with counting user Habit, to obtain the historical data that user uses positioning function, which includes that mobile terminal is opened under which kind of scene It opens positioning function, close positioning function under which kind of scene.
Step S302, according to the historical data, determination need to close the positioning function scene and need to open it is described fixed The scene of bit function.
Illustratively, the historical data that user uses positioning function in one month is obtained, user is analyzed and is generally leading Positioning function is opened when boat scene and record running track scene, then navigation scenarios and record running track scene can be set It is set to the scene that need to open positioning function;It analyzes user and is generally closing the application (such as Baidu map) for calling positioning function When close positioning function, then can by close call positioning function application be set as that the scene of positioning function need to be closed.
Step S303 opens the positioning function.
The step is identical as step S101, and for details, reference can be made to the associated descriptions of step S101, and details are not described herein.
Step S304, detection mobile terminal are presently in scene.
The step is identical as step S102, and for details, reference can be made to the associated descriptions of step S102, and details are not described herein.
Step S305 is closed if it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, The positioning function.
Step S306 is kept if it is that need to open the scene of the positioning function that the mobile terminal, which is presently in scene, The unlatching of the positioning function.
In the embodiment of the present application, after getting mobile terminal and being presently in scene, it can be determined that mobile terminal is worked as Preceding locating scene is that need to close the scene of positioning function, still need to open the scene of positioning function, be presently in mobile terminal Scene is that when need to close the scene of positioning function, positioning function is automatically closed, and being presently in scene in mobile terminal is to need to open When the scene of positioning function, the positioning function is not closed, that is, continues starting positioning function.
The embodiment of the present application according to user using the historical data determination of positioning function need to close positioning function scene and The scene of positioning function need to be opened, and detects mobile terminal and is presently in which kind of scene is scene be, according to testing result automatic control Bit function is formulated, so that mobile terminal may make to automatically control positioning function using the habit of positioning function according to user, is avoided User manually controls positioning function, improves the efficiency of control positioning function.
It referring to fig. 4, is that the schematic diagram of mobile terminal that the embodiment of the present application four provides illustrates only for ease of description Part relevant to the embodiment of the present application.
The mobile terminal includes:
Function opening module 41, for opening positioning function;
Scene detection module 42 is presently in scene for detecting mobile terminal;
Function closedown module 43, if being presently in scene for the mobile terminal is that need to close the field of the positioning function Scape then closes the positioning function.
Optionally, function closedown module 43 is specifically used for:
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, after the preset lime Close the positioning function.
Optionally, function closedown module 43 includes:
Detection unit, if being presently in scene for the mobile terminal is that need to close the scene of the positioning function, Detect whether the positioning function is turned off;
Closing unit closes the positioning function if being not turned off for the positioning function after the preset time Energy.
Optionally, the mobile terminal further includes:
First opening module 44, if for detecting the predetermined registration operation to the mobile terminal in the preset time, The unlatching of the positioning function is then kept after the preset time.
Optionally, the mobile terminal further includes:
Second opening module 45, if being presently in scene for the mobile terminal is that need to open the field of the positioning function Scape then keeps the unlatching of the positioning function.
Optionally, the mobile terminal further includes:
Scene obtain module 46, for obtain the scene that need to close the positioning function and it is described need to open it is described fixed The scene of bit function.
Optionally, the scene acquisition module 46 includes:
Acquiring unit uses the historical data of the positioning function for obtaining user;
Determination unit, for according to the historical data, determining the scene that need to close the positioning function and described The scene of the positioning function need to be opened.
Mobile terminal provided by the embodiments of the present application can be applied in preceding method embodiment one, embodiment two and embodiment In three, details are referring to the description of above method embodiment one, embodiment two and embodiment three, and details are not described herein.
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides.The mobile terminal as shown in the figure can wrap It includes:One or more processors 501 (only show one) in figure;One or more input equipments 502 (one is only shown in figure), One or more output equipments 503 (one is only shown in figure) and memory 504.It is above-mentioned processor 501, input equipment 502, defeated Equipment 503 and memory 504 are connected by bus 505 out.Memory 504 for storing instruction, deposit for executing by processor 501 The instruction that reservoir 504 stores.Wherein:
The processor 501, for opening positioning function;Detection mobile terminal is presently in scene;If described mobile whole It is that need to close the scene of the positioning function that end, which is presently in scene, then closes the positioning function.
Optionally, the processor 501 is specifically used for:
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, after the preset lime Close the positioning function.
Optionally, the processor 501 is specifically used for:
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, the positioning function is detected Whether can be turned off;
If the positioning function is not turned off, the positioning function is closed after the preset time.
Optionally, the processor 501 is also used to:
If detecting the predetermined registration operation to the mobile terminal in the preset time, after the preset time Keep the unlatching of the positioning function.
Optionally, the processor 501 is also used to:
If it is that need to open the scene of the positioning function that the mobile terminal, which is presently in scene, the positioning function is kept The unlatching of energy.
Optionally, the processor 501 is also used to:
Obtain the scene that need to close the positioning function and the scene that the positioning function need to be opened.
Optionally, the processor 501 is specifically used for:
Obtain the historical data that user uses the positioning function;
According to the historical data, determines the scene that need to close the positioning function and described need to open the positioning The scene of function.
It should be appreciated that in the embodiment of the present application, the processor 501 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 502 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user Directional information), microphone, data receiver interface etc..Output equipment 503 may include display (LCD etc.), loudspeaker, data Transmission interface etc..
The memory 504 may include read-only memory and random access memory, and to processor 501 provide instruction and Data.The a part of of memory 504 can also include nonvolatile RAM.For example, memory 504 can also be deposited Store up the information of device type.
In the specific implementation, processor 501, input equipment 502 described in the embodiment of the present application, 503 and of output equipment Implementation described in the embodiment of positioning function control method provided by the embodiments of the present application can be performed in memory 504, Also implementation described in mobile terminal described in example IV can be performed, details are not described herein.
Fig. 6 is the schematic diagram for the mobile terminal that the embodiment of the present application six provides.As shown in fig. 6, the mobile end of the embodiment End 6 includes:Processor 60, memory 61 and it is stored in the meter that can be run in the memory 61 and on the processor 60 Calculation machine program 62.The processor 60 realizes that above-mentioned each positioning function control method is implemented when executing the computer program 62 Step in example, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 60 executes the computer program 62 The function of each module/unit in the above-mentioned each Installation practice of Shi Shixian, such as the function of module 41 to 46 shown in Fig. 4.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the application.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 62 in the mobile terminal 6 is described.For example, the computer program 62 can be divided It is cut into function opening module, scene detection module, function closedown module, the first opening module, the second opening module and scene Module is obtained, each module concrete function is as follows:
Function opening module, for opening positioning function;
Scene detection module is presently in scene for detecting mobile terminal;
Function closedown module, if being presently in scene for the mobile terminal is that need to close the field of the positioning function Scape then closes the positioning function.
Optionally, function closedown module is specifically used for:
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, after the preset lime Close the positioning function.
Optionally, function closedown module includes:
Detection unit, if being presently in scene for the mobile terminal is that need to close the scene of the positioning function, Detect whether the positioning function is turned off;
Closing unit closes the positioning function if being not turned off for the positioning function after the preset time Energy.
Optionally, the mobile terminal further includes:
First opening module, if for detecting the predetermined registration operation to the mobile terminal in the preset time, The unlatching of the positioning function is kept after the preset time.
Optionally, the mobile terminal further includes:
Second opening module, if being presently in scene for the mobile terminal is that need to open the field of the positioning function Scape then keeps the unlatching of the positioning function.
Optionally, the mobile terminal further includes:
Scene obtains module, for obtaining the scene that need to close the positioning function and described need to open the positioning The scene of function.
Optionally, the scene acquisition module includes:
Acquiring unit uses the historical data of the positioning function for obtaining user;
Determination unit, for according to the historical data, determining the scene that need to close the positioning function and described The scene of the positioning function need to be opened.
The mobile terminal 6 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The mobile terminal may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of mobile terminal 6 does not constitute the restriction to mobile terminal 6, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the mobile terminal can also include input-output equipment, net Network access device, bus etc..
Alleged processor 60 can be central processing unit CPU, can also be other general processors, Digital Signal Processing Device DSP, application-specific integrated circuit ASIC, ready-made programmable gate array FPGA or other programmable logic device, discrete gate or Transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor is also possible to appoint What conventional processor etc..
The memory 61 can be the internal storage unit of the mobile terminal 6, such as the hard disk or interior of mobile terminal 6 It deposits.The memory 61 is also possible to the External memory equipment of the mobile terminal 6, such as be equipped on the mobile terminal 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the mobile terminal 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the mobile terminal Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method can pass through it Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown The mutual coupling or direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that:It still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of positioning function control method, which is characterized in that the positioning function control method includes:
Open positioning function;
Detection mobile terminal is presently in scene;
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, the positioning function is closed.
2. positioning function control method as described in claim 1, which is characterized in that if the mobile terminal is presently in Scene is that need to close the scene of the positioning function, then closing the positioning function includes:
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, close after the preset lime The positioning function.
3. positioning function control method as claimed in claim 2, which is characterized in that if the mobile terminal is presently in Scene is that need to close the scene of the positioning function, then closes the positioning function after the preset lime and include:
If it is that need to close the scene of the positioning function that the mobile terminal, which is presently in scene, detecting the positioning function is It is no to be turned off;
If the positioning function is not turned off, the positioning function is closed after the preset time.
4. positioning function control method as claimed in claim 2, which is characterized in that positioning function control method further includes:
If detecting the predetermined registration operation to the mobile terminal in the preset time, kept after the preset time The unlatching of the positioning function.
5. positioning function control method as described in claim 1, which is characterized in that the positioning function control method is also wrapped It includes:
If it is that need to open the scene of the positioning function that the mobile terminal, which is presently in scene, the positioning function is kept It opens.
6. positioning function control method as described in claim 1, which is characterized in that before opening positioning function, further include:
Obtain the scene that need to close the positioning function and the scene that the positioning function need to be opened.
7. positioning function control method as claimed in claim 6, which is characterized in that the acquisition is described need to close the positioning The scene of function and the scene that need to open the positioning function include:
Obtain the historical data that user uses the positioning function;
According to the historical data, determines the scene that need to close the positioning function and described need to open the positioning function Scene.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Function opening module, for opening positioning function;
Scene detection module is presently in scene for detecting mobile terminal;
Function closedown module, if being presently in scene for the mobile terminal is that need to close the scene of the positioning function, Close the positioning function.
9. a kind of mobile terminal, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one positioning function control method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realizing the positioning function control method as described in any one of claim 1 to 7 when the computer program is executed by processor Step.
CN201810556393.2A 2018-06-01 2018-06-01 Positioning function control method, mobile terminal and computer readable storage medium Pending CN108829228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556393.2A CN108829228A (en) 2018-06-01 2018-06-01 Positioning function control method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556393.2A CN108829228A (en) 2018-06-01 2018-06-01 Positioning function control method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108829228A true CN108829228A (en) 2018-11-16

Family

ID=64145732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556393.2A Pending CN108829228A (en) 2018-06-01 2018-06-01 Positioning function control method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108829228A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291838A (en) * 2020-10-28 2021-01-29 深圳市锐尔觅移动通信有限公司 Positioning module control method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110037649A1 (en) * 2009-08-11 2011-02-17 Texas Instruments Incorporated Enhancing position accuracy in global positioning system receivers
CN103245959A (en) * 2012-02-14 2013-08-14 宏达国际电子股份有限公司 Method of processing positioning information and electronic apparatus and computer-readable recording medium
CN104298347A (en) * 2014-08-22 2015-01-21 联发科技(新加坡)私人有限公司 Method and device for controlling screen of electronic display device and display system
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN106713662A (en) * 2017-01-23 2017-05-24 北京奇虎科技有限公司 Method and device for optimizing performance of positioning system, and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110037649A1 (en) * 2009-08-11 2011-02-17 Texas Instruments Incorporated Enhancing position accuracy in global positioning system receivers
CN103245959A (en) * 2012-02-14 2013-08-14 宏达国际电子股份有限公司 Method of processing positioning information and electronic apparatus and computer-readable recording medium
CN104298347A (en) * 2014-08-22 2015-01-21 联发科技(新加坡)私人有限公司 Method and device for controlling screen of electronic display device and display system
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN106713662A (en) * 2017-01-23 2017-05-24 北京奇虎科技有限公司 Method and device for optimizing performance of positioning system, and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291838A (en) * 2020-10-28 2021-01-29 深圳市锐尔觅移动通信有限公司 Positioning module control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107911798A (en) Information push method, device and terminal
CN107484190B (en) Method for connecting network, mobile terminal and computer readable storage medium
CN107193598A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN109361994A (en) Speaker control method, mobile terminal and computer readable storage medium
CN108549519A (en) split screen processing method, device, storage medium and electronic equipment
CN111866270A (en) Application program control method and device and electronic equipment
CN107729781A (en) The anti-lost method of mobile terminal, mobile terminal and computer-readable recording medium
CN108880700A (en) Frequency hopping method, frequency hopping device and the mobile terminal of clock signal
CN107613091A (en) A kind of method and terminal for establishing communication
CN109151337A (en) Recognition of face light compensation method, recognition of face light compensating apparatus and mobile terminal
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
CN108089970A (en) Predict method, terminal and the storage medium of remaining capacity up time
CN106778295A (en) File storage, display methods, device and terminal
CN107784492A (en) Information processing method, device, computer installation and computer-readable recording medium
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN108520186A (en) Record screen method, mobile terminal and computer readable storage medium
CN109413261A (en) Reminding method and terminal device during a kind of application is interactive
CN107864295A (en) Call control method, mobile terminal and computer-readable recording medium
CN107292614A (en) Pay class application management method, device and mobile terminal
CN108366298A (en) Video broadcasting method, mobile terminal and computer readable storage medium
CN108200297A (en) Incoming call sound method and system
CN108829228A (en) Positioning function control method, mobile terminal and computer readable storage medium
CN107248078A (en) Mobile payment means of defence, mobile terminal and computer-readable recording medium
CN107515666A (en) A kind of data managing method and terminal
CN109213662A (en) A kind of user's touch-control behavioral data collection method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116

RJ01 Rejection of invention patent application after publication