CN108255461A - A kind of control method of mobile terminal, mobile terminal and storage medium - Google Patents

A kind of control method of mobile terminal, mobile terminal and storage medium Download PDF

Info

Publication number
CN108255461A
CN108255461A CN201810026787.7A CN201810026787A CN108255461A CN 108255461 A CN108255461 A CN 108255461A CN 201810026787 A CN201810026787 A CN 201810026787A CN 108255461 A CN108255461 A CN 108255461A
Authority
CN
China
Prior art keywords
earphone
mobile terminal
preset
instruction
frequency
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
CN201810026787.7A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810026787.7A priority Critical patent/CN108255461A/en
Publication of CN108255461A publication Critical patent/CN108255461A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • 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
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)

Abstract

The application is suitable for terminal control technical field, provides a kind of control method of mobile terminal, mobile terminal and storage medium, including:When detecting that the mobile terminal starts default application, detect whether the mobile terminal connects earphone, if the mobile terminal is connected to earphone, then open the preset function for the earphone keystroke for connecting the mobile terminal, if receive the instruction that user is inputted by earphone keystroke, preset function corresponding with described instruction is then performed, the preset function includes:The default application is closed, simplifies the operation of mobile terminal by the application, improves the operating efficiency of user.

Description

A kind of control method of mobile terminal, mobile terminal and storage medium
Technical field
The application belong to terminal control technical field more particularly to a kind of control method of mobile terminal, mobile terminal and Storage medium.
Background technology
Existing intelligent terminal (such as mobile phone, tablet computer) mostly carries the function of radio.At present, on intelligent terminal Radio function be substantially all earphone needed to be used as FM antennas.So intelligent terminal base when listening to FM frequency modulation broadcastings This can all be in the state for being inserted into earphone.
When by intelligent terminal broadcast listening, due to being not usually required to the screen of viewing intelligent terminal, so intelligence is eventually The screen at end can be in often dark state.However, when user needs replacing radio station, need to unlock, light screen, open The application of radio could carry out the operation of radio station switching.As it can be seen that the control method of radio operates on current intelligent terminal It is cumbersome, efficiency is low.
Invention content
In view of this, the embodiment of the present application provides a kind of control method of mobile terminal, mobile terminal and storage medium, To solve the problems, such as that the control of current mobile terminal is cumbersome, efficiency is low.
The first aspect of the embodiment of the present application provides a kind of control method of mobile terminal, including:
Detecting that it is default in application, detecting whether the mobile terminal connects earphone that the mobile terminal starts;
If the mobile terminal is connected to earphone, the preset function for the earphone keystroke for connecting the mobile terminal is opened;
If receiving the instruction that user is inputted by earphone keystroke, preset function corresponding with described instruction, institute are performed Preset function is stated to include:Close the default application.
The second aspect of the embodiment of the present application provides a kind of mobile terminal, including:
Detection module, for detecting that it is default in application, whether detecting the mobile terminal that the mobile terminal starts Connect earphone;
Opening module if being connected to earphone for the mobile terminal, opens and connects the earphone of the mobile terminal and press The preset function of key;
First processing module, if for receiving the instruction that user is inputted by earphone keystroke, execution and described instruction Corresponding preset function, the preset function include:Close the default application.
The third aspect of the embodiment of the present application provides a kind of mobile terminal, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor performs the computer program The step of realizing the method that the embodiment of the present application first aspect provides.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes the embodiment of the present application when being executed by one or more processors On the one hand the step of the method provided.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes Computer program, the computer program realize that the embodiment of the present application first aspect provides when being executed by one or more processors The method the step of.
The embodiment of the present application is detecting that it is default in application, detecting whether the mobile terminal connects that the mobile terminal is opened Lug machine if the mobile terminal is connected to earphone, opens the preset function for the earphone keystroke for connecting the mobile terminal, if The instruction that user is inputted by earphone keystroke is received, then performs preset function corresponding with described instruction, the preset function Including:The default application is closed, the embodiment of the present application opens the state of default application and connection earphone in the mobile terminal Under, the control to presetting application in the mobile terminal is realized by the button on earphone, the operation of user is simplified, improves Operating efficiency.
Description of the drawings
It, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical solution in the embodiment of the present application 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 having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of realization flow diagram of the control method for mobile terminal that one embodiment of the application provides;
Fig. 2 is the schematic diagram for the earphone keystroke that the application is provided with embodiment;
Fig. 3 is the realization flow diagram of the control method of a kind of mobile terminal that the another embodiment of the application provides;
Fig. 4 is the schematic diagram for the earphone heads that one embodiment of the application provides;
Fig. 5 is the schematic block diagram for the mobile terminal that one embodiment of the application provides;
Fig. 6 is the schematic block diagram of mobile terminal that the another embodiment of the application provides.
Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present application.However, it will be clear to one skilled in the art that there is no these specifically The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details interferes the description of the present application.
It it should be appreciated that ought be special described by the instruction of term " comprising " use in this specification and in the appended claims 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, element, component and/or its presence or addition gathered.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing 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 singulative, "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 combinations and all possible combinations of one or more of the 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 determining " 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 order to illustrate technical solution described herein, illustrated below by specific embodiment.
Fig. 1 is the realization flow diagram of the control method for the mobile terminal that one embodiment of the application provides, as shown in the figure This method may comprise steps of:
Step S101 is detecting that it is default in application, detecting whether the mobile terminal connects that the mobile terminal starts Earphone.
In the embodiment of the present application, the default application includes:FM frequency modulation broadcastings, player etc., the FM frequency modulation broadcastings It is the application with radio function.The mobile terminal connection earphone represents that the plug of the earphone is inserted into the mobile terminal Earphone jack in, and establish electric connection.
As an example, after user's point opens the corresponding software of player in mobile terminal or radio, mobile terminal It can detect whether to be connected to earphone to connect.The corresponding software of player and radio can be the software pre-installed in mobile terminal Can also be the software that user downloads from software store.
Step S102 if the mobile terminal is connected to earphone, opens the earphone keystroke that connects the mobile terminal Preset function.
In the embodiment of the present application, there are 3 buttons on current earphone mostly:Volume plus key, volume down key, HOOK keys. As shown in Fig. 2, it is the design sketch of earphone keystroke, in general, volume plus key is used for tuning up the volume of radio or player, volume Subtract the volume that key is used for turning down radio or player, HOOK keys are usually located at the centre of volume plus key and volume down key, are used for Realize the pause function of broadcast state or the playing function of halted state;It can also realize connection when making a phone call, hang up work( Energy.In the embodiment of the present application, open the earphone keystroke for connecting the mobile terminal preset function refer to open the earphone by Other preset functions except the system default function (adjust volume or pause plays control) of key.The ear of the mobile terminal The preset function of machine button can be pre-set by user by visualization interface.
Step S103 if receiving the instruction that user is inputted by earphone keystroke, is performed corresponding with described instruction pre- If function, the preset function includes:Close the default application.
In the embodiment of the present application, if the instruction for receiving user and being inputted by earphone keystroke, perform with it is described Corresponding preset function is instructed to include:
If receiving the instruction that user double-clicks the volume plus key of the earphone, the FM frequency modulation broadcastings is controlled to be switched to pre- Current broadcasting frequency is increased preset frequency step by next channel in the channel list first stored;
If receiving the instruction that user double-clicks the volume down key of the earphone, the FM frequency modulation broadcastings is controlled to be switched to pre- Current broadcasting frequency is reduced preset frequency step by a upper channel in the channel list first stored;
If receiving the instruction of the HOOK keys of earphone described in user's long-press, the FM frequency modulation broadcastings are closed.
The instruction of the volume plus key for double-clicking the earphone includes:The time that the volume plus key is pressed twice in succession Interval is less than the first preset time;
The instruction of the volume down key for double-clicking the earphone includes:The time that the volume down key is pressed twice in succession Interval is less than the first preset time;
The instruction of the HOOK keys of earphone described in the long-press includes:The time that the HOOK keys are pressed is in the first default model In enclosing.
In the embodiment of the present application, single presses the adjusting sound that volume plus key, volume down key, HOOK keys represent system default Amount plays pause function or connects and hangs up function.It double-clicks the instruction of the volume plus key of the earphone, double-click the sound of the earphone The instruction that amount subtracts key represents channel adjustment function or plays next, Last function in audio file, described in long-press The instruction of the HOOK keys of earphone can close the function of the default application.
In practical application, it is 0.4 second that can set the first preset time, and the first preset range is between 0.5-1.5 seconds.When User pressed the time interval of volume plus key at 0.2 second twice in succession, represented the next channel being switched in channel list, When user pressed the time interval of volume plus key at 0.5 second twice in succession, it has been more than 0.4 second, has been defined as clicking twice, that is, increases Twice, volume step-length is preset in increase every time to big volume.When the time that user pins HOOK keys is 1 second, represent to close default answer With when the time that user pins HOOK keys is 0.2 second, expression suspends current broadcasting or plays the audio text of current hang Part or station channel.
In practical application, by taking radio as an example, channel list may not stored in advance, the earphone is double-clicked when receiving When the instruction of volume plus key or the instruction of the volume down key of the double-click earphone, current broadcasting frequency can be increased accordingly Add preset frequency step or current broadcasting frequency is reduced into preset frequency step;For example, every time by current broadcast Frequency increases or reduces 0.1MHz.
The embodiment of the present application is detecting that it is default in application, detecting whether the mobile terminal connects that the mobile terminal is opened Lug machine if the mobile terminal is connected to earphone, opens the preset function for the earphone keystroke for connecting the mobile terminal, if The instruction that user is inputted by earphone keystroke is received, then performs preset function corresponding with described instruction, the preset function Including:The default application is closed, the embodiment of the present application opens the state of default application and connection earphone in the mobile terminal Under, the control to presetting application in the mobile terminal is realized by the button on earphone, the operation of user is simplified, improves Operating efficiency.
Fig. 3 is the flow diagram of the control method of mobile terminal that the another embodiment of the application provides, and as shown in the figure should Method may comprise steps of:
Step S301 is detecting that it is default in application, detecting whether the mobile terminal connects that the mobile terminal is opened Earphone.
The step is consistent with step S101 contents, specifically can refer to the description of step S101, details are not described herein.
Step S302 if the mobile terminal is connected to earphone, receives the body temperature sensing in the earphone heads of the earphone The testing result of device, the testing result are used to confirm whether user has worn the earphone.
In the embodiment of the present application, the earphone heads represent the part where the microphone in earphone, if the earphone is In-Ear Headphones, the part (earphone heads in as shown in Figure 2) of duct is filled in earphone heads expression, if earphone is wear-type ear Machine, the earphone heads expression are covered in the part on ear (earphone heads in as shown in Figure 4), body temperature can be set in earphone heads Sensor, when user is worn on earphone, body temperature transducer can measure the body temperature of big human body, and output temperature taking is as a result, body temperature passes Sensor can be ranging from 35-40 degrees Celsius with set temperature, when the testing result of body temperature transducer is in temperature range, represent to use Earphone has currently been worn at family, and when the testing result of body temperature transducer is except pre-set temperature range, expression user is current Earphone is not worn.
Step S303, if confirming, user has worn the earphone, monitors the direction of motion of the earphone heads.
In the embodiment of the present application, as shown in figure 4, being mounted with sensor in earphone heads, such as acceleration transducer and top Spiral shell instrument etc. can detect the motion state of earphone heads by the sensor in earphone heads.
Step S304 based on the direction of motion of the earphone heads, performs preset function corresponding with the direction of motion.
The direction of motion based on the earphone heads performs preset function corresponding with the direction of motion and includes:
If in the second preset time, detect that the earphone heads are deviateed just from initial space state to preset reference direction Beginning spatiality, and restore in third preset time to initial space state, then the FM frequency modulation broadcastings is controlled to be switched to pre- Current broadcasting frequency is increased preset frequency step by next channel in the channel list first stored;
If in the second preset time, detect that the earphone heads are from initial space state to preset reference direction opposite Initial space state is deviateed in direction, and restores in third preset time to initial space state, then controls the FM frequency modulation wide It broadcasts the upper channel being switched in pre-stored channel list or current broadcasting frequency is reduced into preset frequency step;
If in the second preset time, detect that the earphone heads are from initial space state to preset reference direction vertical Initial space state is deviateed in direction, and restores in third preset time to initial space state, then it is wide to close the FM frequency modulation It broadcasts.
The distance that the earphone heads deviate initial space state is more than pre-determined distance.
In the embodiment of the present application, the second preset time and third preset time may be the same or different.It is described first Beginning spatiality refers to earphone heads to preset reference direction is mobile or preset reference side is in the opposite direction before shift action Spatiality, the recovery initial space state refer to earphone heads to preset reference direction move after again to preset reference direction Opposite reverse movement returns to initial space state or after the opposite reverse movement in preset reference direction again to default base Quasi- direction moves back to initial space state.It should be noted that described restPose not is restored to and initial space The identical position of state, allows deviation in a certain range.The action of the deviation is obtained by sensor, that is, is passed Sensor senses the acceleration to preset reference direction in the second preset time, is sensed in third preset time to default The acceleration in the opposite direction of reference direction controls the FM frequency modulation broadcastings to be switched to next in pre-stored channel list Current broadcasting frequency is increased preset frequency step by a channel;Sensor is sensed in the second preset time to default The acceleration in the opposite direction of reference direction senses the acceleration to preset reference direction in third preset time, control The upper channel or reduce current broadcasting frequency pre- that the FM frequency modulation broadcastings are switched in pre-stored channel list If frequency step.If in the second preset time, the earphone heads adding to the vertical direction in preset reference direction is detected Speed, and sense in third preset time the acceleration in the direction opposite in the second preset time, then close the FM Frequency modulation broadcasting.
The distance that the earphone heads deviate initial space state can be weighed more than pre-determined distance with the time of acceleration, example Such as, earphone heads deviate initial space state distance can with acceleration from earphone heads to preset reference direction keep time come It weighs.
Preset reference direction can be some specific direction or in some direction predetermined angle threshold value model Interior all directions are enclosed, by taking Fig. 4 as an example, reference direction shown in Fig. 4 is direction to the left, and also setting up an angle threshold is 30 °, when with front-left to direction of the angle in the range of 30 ° can be used as reference direction, then the opposite side of reference direction To be exactly with front-right to direction of the angle in the range of 30 °, and the vertical direction of reference direction for just preceding or dead astern to Direction of the angle in the range of 30 °.
The instructions such as " on ", " under ", "left", "right", " preceding " " rear " " initial space state " it should be noted that above-mentioned term Orientation or position relationship be based on attached orientation shown in Fig. 4 or position relationship or based on user wear earphone when with user Orientation or position relationship shown in angle, above-mentioned orientation and position relationship are for only for ease of description the embodiment of the present application and simplification Description rather than instruction imply the operation that must have in specific orientation or particular orientation, therefore it is not intended that this Apply for the limitation of embodiment.For the ordinary skill in the art, to broad sense should be done with upper position or position relationship Understand, can understand the concrete meaning of above-mentioned term in embodiments of the present invention as the case may be.
The embodiment of the present application, by manually operating, carries out the correlation on head without user when directly wearing earphone by user The control with the default application in mobile terminal can be realized in action, simplifies the operation of user, improves user's operation efficiency.
It should be understood that the size of the serial number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without coping with the embodiment of the present application forms any limit with its function and internal logic It is fixed.
Fig. 5 is the schematic block diagram for the mobile terminal that one embodiment of the application provides, and for convenience of description, is only shown and this Shen It please the relevant part of embodiment.
The mobile terminal 5 can be built in existing software unit such as mobile phone, notebook in mobile terminal, hard Part unit or the unit of soft or hard combination can also be used as independent pendant and be integrated into the existing such as mobile phone, notebook It waits in mobile terminals, is also used as independent terminal device and exists.
The mobile terminal 5 includes:
Detection module 51, for detecting that it is default in application, detecting the mobile terminal is that the mobile terminal starts No connection earphone;
Opening module 52 if being connected to earphone for the mobile terminal, opens the earphone for connecting the mobile terminal The preset function of button;
If first processing module 53 for receiving the instruction that user is inputted by earphone keystroke, performs and the finger Corresponding preset function is enabled, the preset function includes:Close the default application.
Optionally, the default application includes:FM frequency modulation broadcastings;The earphone keystroke includes:Volume plus key, volume down Key, HOOK keys;
The first processing module 53 includes:
First processing units, if for receiving the instruction that user double-clicks the volume plus key of the earphone, described in control The next channel or increase current broadcasting frequency preset that FM frequency modulation broadcastings are switched in pre-stored channel list Frequency step;
Second processing unit, if for receiving the instruction that user double-clicks the volume down key of the earphone, described in control The upper channel or reduce current broadcasting frequency preset that FM frequency modulation broadcastings are switched in pre-stored channel list Frequency step;
If third processing unit for receiving the instruction of the HOOK keys of earphone described in user's long-press, closes the FM Frequency modulation broadcasting.
Optionally, the instruction of the volume plus key for double-clicking the earphone includes:The volume plus key twice in succession by by Under time interval be less than the first preset time;
The instruction of the volume down key for double-clicking the earphone includes:The time that the volume down key is pressed twice in succession Interval is less than the first preset time;
The instruction of the HOOK keys of earphone described in the long-press includes:The time that the HOOK keys are pressed is in the first default model In enclosing.
Optionally, the mobile terminal 5 further includes:
Acquisition module 54 if being connected to earphone for the mobile terminal, receives the body temperature in the earphone heads of the earphone The testing result of sensor, the testing result are used to confirm whether user has worn the earphone;
If monitoring modular 55 for confirming that user has worn the earphone, monitors the direction of motion of the earphone heads;
Second processing module 56 for the direction of motion based on the earphone heads, performs corresponding with the direction of motion Preset function.
Optionally, the Second processing module 56 includes:
Fourth processing unit, if in the second preset time, detect the earphone heads from initial space state to Initial space state is deviateed in preset reference direction, and restores in third preset time to initial space state, then described in control The next channel or increase current broadcasting frequency preset that FM frequency modulation broadcastings are switched in pre-stored channel list Frequency step;
5th processing unit, if in the second preset time, detect the earphone heads from initial space state to Preset reference side deviates initial space state in the opposite direction, and restores in third preset time to initial space state, The FM frequency modulation broadcastings is then controlled to be switched to the upper channel in pre-stored channel list or by current broadcasting frequency Reduce preset frequency step;
6th processing unit, if in the second preset time, detect the earphone heads from initial space state to Initial space state is deviateed in the vertical direction in preset reference direction, and restores in third preset time to initial space state, Then close the FM frequency modulation broadcastings.
Optionally, the earphone heads deviate the distance of initial space state more than pre-determined distance.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of the mobile terminal are divided into different functional units or module, to complete All or part of function described above.Each functional unit, module in embodiment can be integrated in a processing unit, Can also be that each unit is individually physically present, can also two or more units integrate in a unit, above-mentioned collection Into unit both may be used hardware form realize, can also be realized in the form of SFU software functional unit.In addition, each function Unit, module specific name also only to facilitate mutually distinguish, be not limited to the protection domain of the application.Above-mentioned dress Put middle unit, module specific work process, can refer to preceding method embodiment in corresponding process, details are not described herein.
Fig. 6 is the schematic block diagram of mobile terminal that the another embodiment of the application provides.As shown in fig. 6, the shifting of the embodiment Dynamic terminal 6 includes:It one or more processors 60, memory 61 and is stored in the memory 61 and can be in the processing The computer program 62 run on device 60.The processor 60 is realized above-mentioned each mobile whole when performing the computer program 62 Step in the control method embodiment at end, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 60 performs The function of each module/unit in above-mentioned mobile terminal embodiment, such as module 51 shown in Fig. 5 are realized during the computer program 62 To 53 function.
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 performed 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 detection module, opening module, first processing module.
The detection module, for detecting that it is default in application, detecting the mobile terminal that the mobile terminal starts Whether earphone is connected;
The opening module if being connected to earphone for the mobile terminal, opens the ear for connecting the mobile terminal The preset function of machine button;
The first processing module, if for receiving the instruction that user is inputted by earphone keystroke, perform with it is described Corresponding preset function is instructed, the preset function includes:Close the default application.
Other modules or unit can refer to the description in embodiment shown in fig. 5, and details are not described herein.
The mobile terminal includes but are not limited to processor 60, memory 61.It will be understood by those skilled in the art that figure 6 be only an example of mobile terminal 6, does not form the restriction to mobile terminal 6, can be included more more or less than illustrating Component either combine certain components or different components, such as the mobile terminal can also include input equipment, defeated Go out equipment, network access equipment, bus etc..
The processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 61 can be the internal storage unit of the mobile terminal 6, such as the hard disk of mobile terminal 6 or interior It deposits.The memory 61 can also be 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 used to store 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.
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 realize that each exemplary lists described with reference to the embodiments described herein 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 performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician Described function can be realized using distinct methods to each specific application, 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 The division of member, only a kind of division of logic function can have an other dividing mode in actual implementation, for example, multiple units or Component may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point is shown Show or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, between device or unit Coupling or communication connection are connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and be independent product sale or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the application realizes above-mentioned implementation All or part of flow 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 It can include:Any entity of the computer program code or device, recording medium, USB flash disk, mobile hard disk, magnetic 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 is it should be noted that described The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment modifies or carries out equivalent replacement to which part technical characteristic;And these are changed Or replace, 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 Within the protection domain of the application.

Claims (10)

1. a kind of control method of mobile terminal, which is characterized in that including:
Detecting that it is default in application, detecting whether the mobile terminal connects earphone that the mobile terminal starts;
If the mobile terminal is connected to earphone, the preset function for the earphone keystroke for connecting the mobile terminal is opened;
If receiving the instruction that user is inputted by earphone keystroke, preset function corresponding with described instruction is performed, it is described pre- If function includes:Close the default application.
2. the control method of mobile terminal as described in claim 1, which is characterized in that the default application includes:FM frequency modulation Broadcast;The earphone keystroke includes:Volume plus key, volume down key, HOOK keys;
If the instruction for receiving user and being inputted by earphone keystroke, preset function packet corresponding with described instruction is performed It includes:
If receiving the instruction that user double-clicks the volume plus key of the earphone, the FM frequency modulation broadcastings is controlled to be switched to and are deposited in advance Current broadcasting frequency is increased preset frequency step by next channel in the channel list of storage;
If receiving the instruction that user double-clicks the volume down key of the earphone, the FM frequency modulation broadcastings is controlled to be switched to and are deposited in advance Current broadcasting frequency is reduced preset frequency step by a upper channel in the channel list of storage;
If receiving the instruction of the HOOK keys of earphone described in user's long-press, the FM frequency modulation broadcastings are closed.
3. the control method of mobile terminal as claimed in claim 2, which is characterized in that the volume for double-clicking the earphone adds The instruction of key includes:The time interval that the volume plus key is pressed twice in succession is less than the first preset time;
The instruction of the volume down key for double-clicking the earphone includes:The time interval that the volume down key is pressed twice in succession Less than the first preset time;
The instruction of the HOOK keys of earphone described in the long-press includes:The time that the HOOK keys are pressed is in the first preset range It is interior.
4. the control method of mobile terminal as described in claim 1, which is characterized in that if the mobile terminal is connected to Earphone, the control method further include:
The testing result of the body temperature transducer in the earphone heads of the earphone is received, the testing result is used for whether confirming user The earphone is worn;
If confirming, user has worn the earphone, monitors the direction of motion of the earphone heads;
Based on the direction of motion of the earphone heads, preset function corresponding with the direction of motion is performed.
5. the control method of mobile terminal as claimed in claim 4, which is characterized in that the default application includes:FM frequency modulation Broadcast;
The direction of motion based on the earphone heads performs preset function corresponding with the direction of motion and includes:
If in the second preset time, it is initial empty to detect that the earphone heads deviate from initial space state to preset reference direction Between state, and in third preset time restore to initial space state, then the FM frequency modulation broadcastings is controlled to be switched to and are deposited in advance Current broadcasting frequency is increased preset frequency step by next channel in the channel list of storage;
If in the second preset time, detect the earphone heads from initial space state to preset reference side in the opposite direction Deviate initial space state, and restore in third preset time to initial space state, then the FM frequency modulation broadcastings is controlled to cut It changes to a upper channel in pre-stored channel list or current broadcasting frequency is reduced into preset frequency step;
If in the second preset time, detect the earphone heads from initial space state to the vertical direction in preset reference direction Deviate initial space state, and restore in third preset time to initial space state, then close the FM frequency modulation broadcastings.
6. the control method of mobile terminal as claimed in claim 5, which is characterized in that the earphone heads deviate initial space shape The distance of state is more than pre-determined distance.
7. a kind of mobile terminal, which is characterized in that including:
Detection module, for detecting that it is default in application, detecting whether the mobile terminal connects that the mobile terminal starts Earphone;
Opening module if being connected to earphone for the mobile terminal, opens the earphone keystroke that connects the mobile terminal Preset function;
If first processing module for receiving the instruction that user is inputted by earphone keystroke, performs corresponding with described instruction Preset function, the preset function includes:Close the default application.
8. mobile terminal as claimed in claim 7, which is characterized in that the default application includes:FM frequency modulation broadcastings;The ear Machine button includes:Volume plus key, volume down key, HOOK keys;
The first processing module includes:
If first processing units for receiving the instruction that user double-clicks the volume plus key of the earphone, control the FM tune The next channel or current broadcasting frequency is increased into preset frequency that frequency broadcast is switched in pre-stored channel list Step-length;
If second processing unit for receiving the instruction that user double-clicks the volume down key of the earphone, controls the FM tune The upper channel or current broadcasting frequency is reduced into preset frequency that frequency broadcast is switched in pre-stored channel list Step-length;
If third processing unit for receiving the instruction of the HOOK keys of earphone described in user's long-press, closes the FM frequency modulation Broadcast.
9. a kind of mobile terminal, including memory, processor and it is stored 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 6 when performing the computer program The step of any one the method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence is realized when the computer program is executed by one or more processors such as the step of any one of claim 1 to 6 the method Suddenly.
CN201810026787.7A 2018-01-11 2018-01-11 A kind of control method of mobile terminal, mobile terminal and storage medium Pending CN108255461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810026787.7A CN108255461A (en) 2018-01-11 2018-01-11 A kind of control method of mobile terminal, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810026787.7A CN108255461A (en) 2018-01-11 2018-01-11 A kind of control method of mobile terminal, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN108255461A true CN108255461A (en) 2018-07-06

Family

ID=62724966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810026787.7A Pending CN108255461A (en) 2018-01-11 2018-01-11 A kind of control method of mobile terminal, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108255461A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830073A (en) * 2018-08-07 2020-02-21 中兴通讯股份有限公司 Earphone wire multiplexing method and device, mobile terminal and storage medium
CN111561723A (en) * 2020-05-21 2020-08-21 四川虹美智能科技有限公司 Control method and device for motion panel of range hood
CN112333593A (en) * 2020-11-02 2021-02-05 歌尔科技有限公司 Wireless earphone pairing method and device and wireless earphone

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544973A (en) * 2013-10-18 2014-01-29 深圳市欧珀通信软件有限公司 Method and device for song control of music player
CN104125339A (en) * 2014-07-24 2014-10-29 惠州Tcl移动通信有限公司 Mobile terminal radio channel switching method and system
CN104199655A (en) * 2014-08-27 2014-12-10 深迪半导体(上海)有限公司 Audio switching method, microprocessor and earphones
CN104333652A (en) * 2014-09-26 2015-02-04 广州酷狗计算机科技有限公司 Operation execution method and device
CN104572081A (en) * 2014-12-17 2015-04-29 联动优势科技有限公司 Method and device for switching control applications
CN105892984A (en) * 2016-04-20 2016-08-24 北京小米移动软件有限公司 Terminal controlling method and device
CN105933547A (en) * 2016-07-01 2016-09-07 上海卓易云汇智能技术有限公司 Application operation switching method and system for sport headset
CN106603854A (en) * 2016-12-23 2017-04-26 努比亚技术有限公司 Voice control method and device
CN107105358A (en) * 2017-06-02 2017-08-29 歌尔科技有限公司 A kind of bluetooth earphone and bluetooth earphone control method
CN107205187A (en) * 2017-06-21 2017-09-26 深圳市冠旭电子股份有限公司 A kind of method, device and terminal device based on earphone control music
CN107277661A (en) * 2017-06-20 2017-10-20 深圳市泰衡诺科技有限公司 The method of work of pressure sensitivity earphone and pressure sensitivity earphone

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544973A (en) * 2013-10-18 2014-01-29 深圳市欧珀通信软件有限公司 Method and device for song control of music player
CN104125339A (en) * 2014-07-24 2014-10-29 惠州Tcl移动通信有限公司 Mobile terminal radio channel switching method and system
CN104199655A (en) * 2014-08-27 2014-12-10 深迪半导体(上海)有限公司 Audio switching method, microprocessor and earphones
CN104333652A (en) * 2014-09-26 2015-02-04 广州酷狗计算机科技有限公司 Operation execution method and device
CN104572081A (en) * 2014-12-17 2015-04-29 联动优势科技有限公司 Method and device for switching control applications
CN105892984A (en) * 2016-04-20 2016-08-24 北京小米移动软件有限公司 Terminal controlling method and device
CN105933547A (en) * 2016-07-01 2016-09-07 上海卓易云汇智能技术有限公司 Application operation switching method and system for sport headset
CN106603854A (en) * 2016-12-23 2017-04-26 努比亚技术有限公司 Voice control method and device
CN107105358A (en) * 2017-06-02 2017-08-29 歌尔科技有限公司 A kind of bluetooth earphone and bluetooth earphone control method
CN107277661A (en) * 2017-06-20 2017-10-20 深圳市泰衡诺科技有限公司 The method of work of pressure sensitivity earphone and pressure sensitivity earphone
CN107205187A (en) * 2017-06-21 2017-09-26 深圳市冠旭电子股份有限公司 A kind of method, device and terminal device based on earphone control music

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830073A (en) * 2018-08-07 2020-02-21 中兴通讯股份有限公司 Earphone wire multiplexing method and device, mobile terminal and storage medium
CN111561723A (en) * 2020-05-21 2020-08-21 四川虹美智能科技有限公司 Control method and device for motion panel of range hood
CN112333593A (en) * 2020-11-02 2021-02-05 歌尔科技有限公司 Wireless earphone pairing method and device and wireless earphone

Similar Documents

Publication Publication Date Title
CN107454214A (en) Antenna structure, control method, equipment and the storage medium of terminal device
CN106358127A (en) Left and right sound channel switching method and mobile terminal
CN108958696A (en) Principal and subordinate's earphone method for handover control and Related product
CN108255461A (en) A kind of control method of mobile terminal, mobile terminal and storage medium
CN108153479A (en) A kind of control method of mobile terminal, mobile terminal and storage medium
CN106060612A (en) Video playing method and video playing device
CN109639367A (en) The method of adjustment and Related product of electromagnetic interference
CN104571498A (en) Application program starting method
CN107205187B (en) A kind of method, apparatus and terminal device based on earphone control music
CN108966067A (en) Control method for playing back and Related product
CN105916177B (en) A kind of method and apparatus communicated wirelessly
CN107480489A (en) Solve lock control method and Related product
CN109150221B (en) Master-slave switching method for wearable equipment and related product
CN109151647A (en) Interaction control method, device, Earphone box and the storage medium of Earphone box
CN109542380A (en) Control method, device, storage medium and the terminal of display pattern
CN106878915B (en) Control method, device and the playback equipment and mobile terminal of playback equipment
CN108540152A (en) Processing method, device, storage medium and the electronic equipment of radio frequency interference
CN107831985A (en) A kind of method, mobile terminal and the storage medium of mobile terminal screen control
CN108897516A (en) A kind of wearable device method for regulation of sound volume and Related product
CN106130663A (en) Adjust the method and device of antenna condition, electronic equipment
CN107425568A (en) Prevent battery from crossing the method, apparatus put, mobile terminal and storage medium
CN108289232A (en) A kind of control method of playback equipment, terminal device and storage medium
CN105929960A (en) Fingerprint module based volume control method and mobile terminal
CN109814798A (en) Ear returns function control method, device and mobile terminal
CN108541058A (en) A kind of control method of mobile terminal, mobile terminal and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706