CN108536512A - interface switching method, device and terminal device - Google Patents

interface switching method, device and terminal device Download PDF

Info

Publication number
CN108536512A
CN108536512A CN201810343049.5A CN201810343049A CN108536512A CN 108536512 A CN108536512 A CN 108536512A CN 201810343049 A CN201810343049 A CN 201810343049A CN 108536512 A CN108536512 A CN 108536512A
Authority
CN
China
Prior art keywords
music player
operations
backstage
terminal device
foreground
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810343049.5A
Other languages
Chinese (zh)
Other versions
CN108536512B (en
Inventor
候祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810343049.5A priority Critical patent/CN108536512B/en
Publication of CN108536512A publication Critical patent/CN108536512A/en
Application granted granted Critical
Publication of CN108536512B publication Critical patent/CN108536512B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is suitable for field of communication technology, provides a kind of interface switching method, device and terminal device, including:Detect whether music player has started on backstage;If detecting, music player starts on backstage, counts the number of operations to the music player;If the number of operations is more than preset frequency threshold value, by the music player from switching to foreground from the background.By the above method, music player can be reduced from the operation for being switched to foreground from the background.

Description

Interface switching method, device and terminal device
Technical field
The application belongs to a kind of field of communication technology more particularly to interface switching method, device and terminal device.
Background technology
Currently, for the ease of user's operation, the terminal device for having music playback function is also generally configured with screen Touch function.
In existing method, if it is not that music is broadcast that terminal device, which opens music player and the current interface of the terminal device, The interface of device is put, then user needs manual palpation screen, and the interface of music player, Jin Er could be switched to from current interface The more multioperation to song is realized in music player.
Due to needing user's Active touch screen that could music player be switched to current interface, cause to operate It is excessively cumbersome, it makes troubles to user.
Invention content
In view of this, the embodiment of the present application provides a kind of interface switching method, device and terminal device, it is existing to solve Technology is excessively the problems in cumbersome from the operation for switching to foreground from the background by music player.
The first aspect of the embodiment of the present application provides a kind of interface switching method, including:
Detect whether music player has started on backstage;
If detecting, music player starts on backstage, counts the number of operations to the music player;
If the number of operations is more than preset frequency threshold value, by the music player from switching to foreground from the background.
The second aspect of the embodiment of the present application provides a kind of changing interface device, including:
Whether backstage starts judging unit, for detecting whether music player has started on backstage;
Number of operations statistic unit, if for detecting that music player has started on backstage, statistics broadcasts the music Put the number of operations of device;
Front and back switch unit, if being more than preset frequency threshold value for the number of operations, by the music player From switching to foreground from the background.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program It realizes as described in any one the step of interface switching method.
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 interface switching method as described in any one is realized when the computer program is executed by processor The step of.
Existing advantageous effect is the embodiment of the present application compared with prior art:
Due to when judging that number of operations is more than preset frequency threshold value, by music player from actively switching to from the background Operating procedure is reduced, the good experience of user is improved it is therefore not necessary to which user actively switches in foreground.
Description of the drawings
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 having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the flow diagram of the first interface switching method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of second of interface switching method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the third interface switching method provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of changing interface device provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc 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 can also be realized 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.
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
It should be appreciated that ought use in this specification and in the appended claims, the instruction of term " comprising " 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, 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 associated item listed, and includes 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, the 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, above 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 establishment 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.
The various application programs that can be executed on mobile terminals can use at least one of such as touch sensitive surface 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 intuitive and transparent user interface for a user.
In addition, in the description of the present application, term " first ", " second ", " third " etc. are only used for distinguishing description, and cannot It is interpreted as indicating or implying relative importance.
Embodiment one:
Fig. 1 shows the flow diagram of the first interface switching method provided by the embodiments of the present application, and details are as follows:
Whether step S11, detection music player have started on backstage;
In the step, the mark of the application of running background is obtained, by the application identities (as applied packet name) and music of acquisition The application identities of player compare, if identical, judgement detects that music player starts on backstage, otherwise, it is determined that not detecting Start to music player on backstage.
In this step, music player includes but not limited to:Netease's cloud music, my cruel music, KuGoo music, QQ music Equal music player softwares.
Step S12, if detecting, music player starts on backstage, counts the operation time to the music player Number;
Certainly, if detecting, music player in foreground initiation, is not processed.
Optionally, the operation of music player can be sent out by pressing the physical button of terminal device itself, can be also led to The physical button for crossing the pressing audio frequency apparatus (such as line control earphone, bluetooth headset) external with terminal device is sent out.Wherein, to music The operation of player includes tuning up volume, turning volume, broadcasting, pause, last track, next track etc. down.If counting on above-mentioned Any operation, then cumulative 1 on the number of operations of current statistic.
Optionally, if the number of operations of statistics was dispersed in each period, the operation frequency in the unit interval is very May be lower, and the lower operation frequency shows that user is relatively low to the intention of operation of music player, therefore, the step S12 can count in the first preset duration (such as 10 minutes, 20 minutes) to the number of operations of music player.If for example, first Preset duration is 10 minutes, and has counted 10:00~10:10 this period are to the number of operations of music player, then next The number of operations of secondary statistics will be user 10:10~10:Number of operations of 20 this period to music player.
Step S13, if the number of operations is more than preset frequency threshold value, by the music player from switching to from the background Foreground.
In the step, when judging user to music player frequent operation, show that user most probably needs to enter sound Happy player is more to be operated, such as choosing song, searches song, at this point, by music player from switching to foreground from the background, this Sample actively switches without user, reduces operating procedure, also improve the service speed subsequently to music player.
In the embodiment of the present application, due to judge number of operations be more than preset frequency threshold value when, by music player From foreground is actively switched to from the background, it is therefore not necessary to which user actively switches, operating procedure is reduced, the good experience of user is improved.
Embodiment two:
Since when user is played music outside by terminal device and music player is on backstage, end may be used in user End equipment, the i.e. terminal device are likely to be at bright screen state, and user also can relatively simply switch to the music player at this time Foreground, and when terminal device external audio frequency equipment, terminal device is generally in screen state of putting out, at this point, user needs first to operate The bright screen of terminal device, then music player is switched into foreground, i.e. its operation is more complex, therefore, in order to reduce user at interface Frequent operation, Fig. 2 shows the flow diagrams of second of interface switching method provided by the embodiments of the present application, in fig. 2, Step S23 is identical as the step S13 of embodiment one, and details are not described herein again:
Step S21, when terminal device has detected audio frequency apparatus access, whether detection music player has opened from the background It is dynamic.
In the step, audio frequency apparatus access can be judged whether there is by the value of the audio frequency apparatus interface identifier of terminal device. Specifically, the corresponding value of audio frequency apparatus interface identifier is obtained, if the value is identical as there is the corresponding value of audio frequency apparatus access, is judged Terminal device has audio frequency apparatus access at this time, otherwise, it is determined that terminal device is accessed without audio frequency apparatus at this time.
Step S22, if detecting, music player starts on backstage, and counting user is by the audio frequency apparatus to described The number of operations of music player.
Optionally, the sound that (such as 10 minutes, 20 minutes) are connect with the terminal device in the first preset time period is counted Number of operations of the frequency equipment to the music player.
Optionally, if (such as 10 minutes, 20 minutes) are to the number of operations of music player in the first preset duration of statistics, And judge that number of operations is less than or equal to preset frequency threshold value, then the number of operations of statistics is reset, continuation is counted since 0 To the number of operations of music player in next preset time period.
Step S23, if the number of operations is more than preset frequency threshold value, by the music player from switching to from the background Foreground.
Optionally, if number of operations is less than or equal to preset frequency threshold value, other processing are not made.Alternatively, optionally, being The switching for more accurately realizing music player, after judging that number of operations is less than or equal to preset frequency threshold value, after It is continuous to judge whether the number of operations then prompts the user whether more than preset prompting threshold value if more than preset prompting threshold value By music player from foreground is switched to from the background, such as asked the user whether music player before switching to from the background in display screen Platform, if terminal device is received from the instruction for switching to foreground from the background, by music player from switching to foreground from the background, this Sample, user is without the application for checking that backstage starts, and from backstage what is started need to switch to the music on foreground using selection It is switched over again after device, to reduce handover operation step.Wherein, the preset prompting threshold value is more than 0 and less than pre- If frequency threshold value.
Certainly, if the number of operations is less than or equal to the preset prompting threshold value, other processing are not made.
Embodiment three:
Since in a practical situation, music player is in the backstage of terminal device, but another application is in terminal device Foreground so that terminal device is in bright screen state, at this point, user, which should be more desirable to this another application, is maintained at terminal device Foreground, and music player is not intended to be switched to foreground, therefore, in order to reduce the probability of mistake switching, needs to judge to shield Whether curtain, which is in, is put out screen state.
Fig. 3 shows the flow diagram of the third interface switching method provided by the embodiments of the present application, wherein this implementation The step S32 of example is identical as embodiment one as step S12, and details are as follows:
Step S31, when terminal device is in and puts out screen state, whether detection music player has started on backstage.
Specifically, current screen can be judged whether in screen state is put out, for example, false by obtaining the ident value of screen state If the ident value of screen state indicates that screen is in using " 0 " puts out screen state, indicate that screen is in bright screen state using " 1 ", then When the ident value for the current screen state for judging to obtain is 0, judgement current screen, which is in, puts out screen state.
Certainly, if screen is in bright screen state, without statistics to the number of operations of music player, in such manner, it is possible to keep away Exempt from due to the occupied resource of statistical operation number.
Step S32, if detecting, music player starts on backstage, counts the operation time to the music player Number;
Step S33 lights screen if the number of operations is more than preset frequency threshold value, and by the music player From switching to foreground from the background.
In the step, music player from when switching to foreground from the background, is being lighted into screen, in this way, user is by lighting Screen know that music player has switched to foreground, also directly can shorten it without lighting automatically using the music player Use the time of music player.
Optionally, the step S31 of the embodiment of the present application is specially:When terminal device has detected audio frequency apparatus access, Whether terminal device is judged in screen state is put out, if terminal device is in screen state of putting out, whether detection music player is rear Platform starts.
Accordingly, step S32 is specially:If detecting, music player starts on backstage, and counting user passes through described Number of operations of the audio frequency apparatus to the music player.
Optionally, in order to more accurately realize the switching at interface, then the step S33 includes:
If counting on the number of operations in the first preset duration is more than preset frequency threshold value, and pre- described first If detecting that user lights the operation of screen in the second preset duration after duration, the music player is switched from backstage To foreground.
Specifically, when listening to physical button (such as volume key, the home keys etc.) of user by pressing terminal device, sentence Regular inspection measures the operation for lighting screen that user sends out.If but since the bright screen that terminal device receives message and sends out notifies prompt Then it is judged to being not received by the operation for lighting screen that user sends out.Due to reaching predetermined threshold in number of operations, and receive again The operation for lighting screen sent out to user then shows that user most probably needs to realize more behaviour to song by music player Make, at this point, music player actively can be improved the accuracy rate of switching from foreground is switched to from the background.
Optionally, if before detect that user sends out lights the operation of screen, terminal device is in screen lock state, then institute Step S33 is stated to specifically include:If the number of operations is counted in the first preset duration more than preset frequency threshold value, and It detects that user lights the operation of screen in the second preset duration after first preset duration, judges whether to receive end The unlock instruction of end equipment, if receiving the unlock instruction of terminal device, by the music player from switching to foreground from the background.
Due to when terminal device is in screen lock state, will not music player directly be switched to foreground, therefore, it is possible to Ensure the safety of the privacy of user.
Optionally, if counting on the number of operations in the first preset duration is more than preset frequency threshold value, and in institute It states in the second preset duration after the first preset duration and the operation that user lights screen is not detected, then reset the behaviour counted on Make number.
Optionally, it if being not received by the operation for lighting screen that user sends out, does not handle.
Example IV:
Corresponding with a kind of interface switching method that embodiment one provides, the embodiment of the present application provides a kind of changing interface dress The structural schematic diagram set refers to Fig. 4, and for convenience of description, only the parts related to this embodiment are shown.
The changing interface device includes:Whether backstage, which starts judging unit 41, number of operations statistic unit 42, front and back, is cut Change unit 43.Wherein:
Whether backstage starts judging unit 41, for detecting whether music player has started on backstage;
Specifically, the mark for obtaining the application of running background broadcasts the application identities of acquisition with music (as applied packet name) The application identities for putting device compare, if identical, judgement detects that music player starts on backstage, otherwise, it is determined that not detecting Music player starts on backstage.
If number of operations statistic unit 42 counts for detecting that music player has started on backstage to the music The number of operations of player;
Wherein, to the operation of music player including tuning up volume, turning volume, broadcasting, pause, last track, next track down Etc..If counting on above-mentioned any operation, cumulative 1 on the number of operations of current statistic.
Front and back switch unit 43, if being more than preset frequency threshold value for the number of operations, by the music Device from switching to foreground from the background.
Optionally, which includes:
Prompt unit judges the number of operations if being less than or equal to preset frequency threshold value for the number of operations Whether it is more than preset prompting threshold value, if more than preset prompting threshold value, then prompts the user whether music player from from the background Switch to foreground.Wherein, the preset prompting threshold value is more than 0 and is less than preset frequency threshold value.
Optionally, described whether backstage startup judging unit 41 is specifically used for, and audio frequency apparatus has been detected in terminal device When access, whether detection music player has started on backstage.
Accordingly, the number of operations statistic unit 42 is specifically used for, if detecting, music player starts on backstage, Counting user is by the audio frequency apparatus to the number of operations of the music player.
It is optionally, described that whether backstage startup judging unit 41 is additionally operable to, when terminal device is in and puts out screen state, detection Whether music player has started on backstage.
Optionally, described whether backstage startup judging unit 41 is additionally operable to, and has detected that audio frequency apparatus connects in terminal device It is fashionable, whether terminal device is judged in screen state is put out, if terminal device is in screen state of putting out, whether detection music player Start on backstage.
Accordingly, the number of operations statistic unit 42 is specifically used for, if detecting, music player starts on backstage, Counting user is by the audio frequency apparatus to the number of operations of the music player.
Optionally, the front and back switch unit 43 is specifically used for, if the number of operations is more than preset frequency threshold value, Light screen, and by the music player from switching to foreground from the background.
Optionally, the front and back switch unit 43 is specifically used for, if counting on the operation in the first preset duration Number is more than preset frequency threshold value, and detects that user lights in the second preset duration after first preset duration The operation of screen, by the music player from switching to foreground from the background.
Optionally, if before detect that user sends out lights the operation of screen, terminal device is in screen lock state, then institute It states front and back switch unit 43 to be specifically used for, if counting on the number of operations in the first preset duration is more than preset number Threshold value, and detect that user lights the operation of screen in the second preset duration after first preset duration, judgement is It is no to receive the unlock instruction of terminal device, if receiving the unlock instruction of terminal device, by the music player from from the background Switch to foreground.
Due to when terminal device is in screen lock state, will not music player directly be switched to foreground, therefore, it is possible to Ensure the safety of the privacy of user.
Optionally, the changing interface device further includes:
Unit is reset, if being more than preset frequency threshold value for counting on the number of operations in the first preset duration, And the operation that user lights screen is not detected in the second preset duration after first preset duration, then reset statistics The number of operations arrived.
In the embodiment of the present application, due to judge number of operations be more than preset frequency threshold value when, by music player From foreground is actively switched to from the background, it is therefore not necessary to which user actively switches, operating procedure is reduced, the good experience of user is improved.
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 above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Embodiment five:
Fig. 5 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in figure 5, the terminal of the embodiment is set Standby 5 include:Processor 50, memory 51 and it is stored in the meter that can be run in the memory 51 and on the processor 50 Calculation machine program 52.The processor 50 is realized when executing the computer program 52 in above-mentioned each interface switching method embodiment The step of, such as step S11 to S13 shown in FIG. 1.Alternatively, the processor 50 is realized when executing the computer program 52 The function of each module/unit in above-mentioned each device embodiment, for example, module 41 to 43 shown in Fig. 4 function.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are executed by the processor 50, 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 52 in the terminal device 5 is described.For example, the computer program 52 can be divided It is cut into whether backstage starts judging unit 41, number of operations statistic unit 42, front and back switch unit 43, each unit concrete function It is as follows:
Whether backstage starts judging unit 41, for detecting whether music player has started on backstage;
If number of operations statistic unit 42 counts for detecting that music player has started on backstage to the music The number of operations of player;
Front and back switch unit 43, if being more than preset frequency threshold value for the number of operations, by the music Device from switching to foreground from the background.
The terminal device 5 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 50 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 51 can be the internal storage unit of the terminal device 5, such as the hard disk of terminal device 5 or interior It deposits.The memory 51 can also be to be equipped on the External memory equipment of the terminal device 5, such as the terminal device 5 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 51 can also both include the storage inside list of the terminal device 5 Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device Other programs and data.The memory 51 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 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 described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain 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 realize that lists 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, depends on the specific application and design constraint of 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 device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over 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 It is that each unit physically exists alone, it can also be during two or more units be integrated in one 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 be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this 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 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 legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity Believe 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 is modified or equivalent replacement of some of the technical features;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 interface switching method, which is characterized in that including:
Detect whether music player has started on backstage;
If detecting, music player starts on backstage, counts the number of operations to the music player;
If the number of operations is more than preset frequency threshold value, by the music player from switching to foreground from the background.
2. interface switching method as described in claim 1, which is characterized in that whether detection music player has started on backstage Including:
When terminal device has detected audio frequency apparatus access, whether detection music player has started on backstage.
3. interface switching method as claimed in claim 2, which is characterized in that if detecting, music player is opening from the background Dynamic, statistics includes to the number of operations of the music player:
If detecting, music player starts on backstage, and counting user is by the audio frequency apparatus to the music player Number of operations.
4. interface switching method as claimed in claim 1 or 2, which is characterized in that whether detection music player is on backstage Startup further includes:
When terminal device is in and puts out screen state, whether detection music player has started on backstage.
5. interface switching method as claimed in claim 4, which is characterized in that if the number of operations is more than preset number threshold The music player includes by value from switching to foreground from the background:
If the number of operations is more than preset frequency threshold value, screen is lighted, and by the music player from switching to from the background Foreground.
6. interface switching method as claimed in claim 4, which is characterized in that if the number of operations is more than preset number threshold The music player includes by value from switching to foreground from the background:
If counting on the number of operations in the first preset duration is more than preset frequency threshold value, and when described first is default Detect that user lights the operation of screen in the second preset duration after length, by the music player before switching to from the background Platform.
7. interface switching method as claimed in claim 6, which is characterized in that further include:
If counting on the number of operations in the first preset duration is more than preset frequency threshold value, and when described first is default The operation that user lights screen is not detected in the second preset duration after length, then resets the number of operations counted on.
8. a kind of changing interface device, which is characterized in that including:
Whether backstage starts judging unit, for detecting whether music player has started on backstage;
If number of operations statistic unit counts for detecting that music player has started on backstage to the music player Number of operations;
Front and back switch unit, if being more than preset frequency threshold value for the number of operations, by the music player from rear Platform switches to foreground.
9. a kind of terminal device, 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 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201810343049.5A 2018-04-17 2018-04-17 Interface switching method and device and terminal equipment Expired - Fee Related CN108536512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810343049.5A CN108536512B (en) 2018-04-17 2018-04-17 Interface switching method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810343049.5A CN108536512B (en) 2018-04-17 2018-04-17 Interface switching method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN108536512A true CN108536512A (en) 2018-09-14
CN108536512B CN108536512B (en) 2021-03-26

Family

ID=63480487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810343049.5A Expired - Fee Related CN108536512B (en) 2018-04-17 2018-04-17 Interface switching method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN108536512B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698979A (en) * 2018-12-13 2019-04-30 北京爱奇艺科技有限公司 A kind of method, apparatus and electronic equipment of video playing
CN112559044A (en) * 2020-12-23 2021-03-26 Oppo广东移动通信有限公司 Play switching method and device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176842A (en) * 2013-03-15 2013-06-26 广东欧珀移动通信有限公司 Background process management method and mobile terminal thereof
CN103473014A (en) * 2013-09-13 2013-12-25 珠海市魅族科技有限公司 Multitask switching method and terminal
CN104375888A (en) * 2014-08-28 2015-02-25 中科创达软件股份有限公司 Method for calling background task through notification bar based on Android system
CN105786485A (en) * 2016-02-04 2016-07-20 上海卓易科技股份有限公司 Mobile terminal and background display method for applications thereof
CN107026933A (en) * 2016-10-10 2017-08-08 广东欧珀移动通信有限公司 A kind of information management method, device and intelligent terminal for opening application more
CN107249074A (en) * 2017-05-16 2017-10-13 努比亚技术有限公司 Application program quick start method, mobile terminal and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176842A (en) * 2013-03-15 2013-06-26 广东欧珀移动通信有限公司 Background process management method and mobile terminal thereof
CN103473014A (en) * 2013-09-13 2013-12-25 珠海市魅族科技有限公司 Multitask switching method and terminal
CN104375888A (en) * 2014-08-28 2015-02-25 中科创达软件股份有限公司 Method for calling background task through notification bar based on Android system
CN105786485A (en) * 2016-02-04 2016-07-20 上海卓易科技股份有限公司 Mobile terminal and background display method for applications thereof
CN107026933A (en) * 2016-10-10 2017-08-08 广东欧珀移动通信有限公司 A kind of information management method, device and intelligent terminal for opening application more
CN107249074A (en) * 2017-05-16 2017-10-13 努比亚技术有限公司 Application program quick start method, mobile terminal and computer-readable recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698979A (en) * 2018-12-13 2019-04-30 北京爱奇艺科技有限公司 A kind of method, apparatus and electronic equipment of video playing
CN112559044A (en) * 2020-12-23 2021-03-26 Oppo广东移动通信有限公司 Play switching method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN108536512B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN107797841B (en) Window control method and device, terminal equipment and storage medium
CN106598630A (en) Key control method and apparatus, and terminal
CN108733342A (en) volume adjusting method, mobile terminal and computer readable storage medium
CN107181858B (en) Method and terminal for displaying notification message
CN106126176B (en) A kind of audio collocation method and mobile terminal
CN105824497A (en) Unread message displaying method and mobile terminal
CN104571498A (en) Application program starting method
CN105739868B (en) A kind of method and device that identification terminal is accidentally touched
CN103235662B (en) Realize method and its terminal that input pattern automatically switches
CN105635449A (en) Alarm clock control method and mobile terminal
CN109660665A (en) A kind of screen control method, screen control device and terminal device
CN106384599B (en) A kind of method and apparatus of distorsion identification
CN107404740B (en) Method for switching network, device and the terminal device of safety
CN108494972B (en) Message reminding method and device, mobile terminal and readable storage medium
CN103995642A (en) Management method of mobile terminal and mobile terminal
CN109151337A (en) Recognition of face light compensation method, recognition of face light compensating apparatus and mobile terminal
CN108829444A (en) A kind of method that background application is automatically closed, terminal and computer storage medium
CN108712559A (en) A kind of disturbance-free method, system and terminal device
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
CN110113496A (en) Screen display mode switching method, device and terminal device
CN108536512A (en) interface switching method, device and terminal device
CN106909387A (en) Multi-screen display method and device
CN104536781A (en) Terminal
CN107239169A (en) A kind of control method and device of touch-screen touch controllable function
CN106254677A (en) A kind of scene mode setting 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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210326