CN108536512B - Interface switching method and device and terminal equipment - Google Patents

Interface switching method and device and terminal equipment Download PDF

Info

Publication number
CN108536512B
CN108536512B CN201810343049.5A CN201810343049A CN108536512B CN 108536512 B CN108536512 B CN 108536512B CN 201810343049 A CN201810343049 A CN 201810343049A CN 108536512 B CN108536512 B CN 108536512B
Authority
CN
China
Prior art keywords
music player
background
preset time
foreground
started
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.)
Expired - Fee Related
Application number
CN201810343049.5A
Other languages
Chinese (zh)
Other versions
CN108536512A (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

Images

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 applicable to the technical field of communication, and provides an interface switching method, an interface switching device and terminal equipment, wherein the interface switching method comprises the following steps: detecting whether a music player is started in a background; counting the operation times of the music player if the music player is detected to be started in a background; and if the operation times are larger than a preset time threshold, switching the music player from a background to a foreground. By the method, the operation of switching the music player from the background to the foreground can be reduced.

Description

Interface switching method and device and terminal equipment
Technical Field
The present application belongs to the field of communications technologies, and in particular, to an interface switching method, an interface switching apparatus, and a terminal device.
Background
At present, for the convenience of user operation, a terminal device having a music playing function also generally has a touch function of a screen.
In the existing method, if a terminal device starts a music player and a current interface of the terminal device is not an interface of the music player, a user needs to manually touch a screen to switch from the current interface to the interface of the music player, so that more operations on songs are realized in the music player.
The music player can be switched to the current interface only by actively touching the screen by the user, so that the operation is complicated, and inconvenience is brought to the user.
Disclosure of Invention
In view of this, embodiments of the present application provide an interface switching method and apparatus, and a terminal device, so as to solve the problem that the operation of switching a music player from a background to a foreground in the prior art is too cumbersome.
A first aspect of an embodiment of the present application provides an interface switching method, including:
detecting whether a music player is started in a background;
counting the operation times of the music player if the music player is detected to be started in a background;
and if the operation times are larger than a preset time threshold, switching the music player from a background to a foreground.
A second aspect of the embodiments of the present application provides an interface switching apparatus, including:
a background starting judging unit for detecting whether the music player is started in the background;
the operation frequency counting unit is used for counting the operation frequency of the music player if the music player is detected to be started in a background;
and the foreground and background switching unit is used for switching the music player from a background to a foreground if the operation times are greater than a preset time threshold.
A third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the interface switching method according to any one of the above embodiments when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, which when executed by a processor implements the steps of the interface switching method according to any one of the above.
Compared with the prior art, the embodiment of the application has the advantages that:
when the operation times are judged to be larger than the preset time threshold value, the music player is actively switched from the background to the foreground, so that the active switching of a user is not needed, the operation steps are reduced, and the good experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a first interface switching method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a second interface switching method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a third interface switching method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an interface switching apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
In addition, in the description of the present application, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
The first embodiment is as follows:
fig. 1 shows a schematic flow chart of a first interface switching method provided in an embodiment of the present application, which is detailed as follows:
step S11, detecting whether the music player is started in the background;
in this step, an identifier of an application running in the background is obtained, the obtained application identifier (such as an application package name) is compared with an application identifier of the music player, if the obtained application identifier is the same as the application identifier of the music player, it is determined that the music player is detected to be started in the background, and if the obtained application identifier is not the same as the application identifier of the music player, it is determined that the music player is not detected to be started.
In this step, music players include, but are not limited to: music playing software such as internet cloud music, cool dog music, QQ music and the like.
Step S12, if it is detected that the music player is started in the background, counting the operation times of the music player;
of course, if it is detected that the music player is started in the foreground, no processing is performed.
Optionally, the operation on the music player may be sent out by pressing a physical key of the terminal device itself, or by pressing a physical key of an audio device (such as a line control earphone or a bluetooth earphone) externally connected to the terminal device. The operation on the music player includes turning up the volume, turning down the volume, playing, pausing, previous music, next music, and the like. If any one of the operations is counted, 1 is added to the operation number counted currently.
Alternatively, if the counted operation times are distributed in each time period, the operation frequency per unit time is likely to be lower, and the lower operation frequency indicates that the operation will be performed on the music player by the user is lower, so that the step S12 may count the operation times on the music player for a first preset time period (e.g., 10 minutes, 20 minutes, etc.). For example, if the first preset time period is 10 minutes and the operation times of the music player in the time period of 10:00 to 10:10 are counted, the operation times counted next time will be the operation times of the user in the time period of 10:10 to 10: 20.
And step S13, if the operation times are larger than a preset time threshold, switching the music player from the background to the foreground.
In the step, when the frequent operation of the music player by the user is judged, the fact that the user is most likely to need to enter the music player to perform more operations such as song selection, song search and the like is indicated, and at the moment, the music player is switched from the background to the foreground, so that the active switching of the user is not needed, the operation steps are reduced, and the subsequent operation speed of the music player is also improved.
In the embodiment of the application, when the operation times are judged to be larger than the preset times threshold value, the music player is actively switched to the foreground from the background, so that the active switching of a user is not needed, the operation steps are reduced, and the good experience of the user is improved.
Example two:
since the user may be using the terminal device when the user plays music through the terminal device and the music player is in the background, that is, the terminal device may be in the bright screen state, at this time, the user can also switch the music player to the foreground relatively easily, and when the terminal device is connected to the audio device externally, the terminal device is usually in the off screen state, at this time, the user needs to operate the terminal device to bright screen first and then switch the music player to the foreground, that is, the operation is relatively complicated, therefore, in order to reduce frequent operations of the user at the interface, fig. 2 shows a flowchart of the second interface switching method provided in the embodiment of the present application, in fig. 2, step S23 is the same as step S13 in the first embodiment, and details are not repeated here:
step S21, when the terminal device detects that an audio device is accessed, it is detected whether the music player has been started in the background.
In this step, whether the audio device is accessed can be judged through the value of the audio device interface identifier of the terminal device. Specifically, a value corresponding to the interface identifier of the audio device is obtained, if the value is the same as the value corresponding to the access of the audio device, it is determined that the audio device is accessed to the terminal device at the moment, otherwise, it is determined that the audio device is not accessed to the terminal device at the moment.
Step S22, if it is detected that the music player is started in the background, counting the number of operations performed on the music player by the user through the audio device.
Optionally, the number of operations of the audio device connected to the terminal device on the music player within a first preset time period (e.g., 10 minutes, 20 minutes, etc.) is counted.
Optionally, if the operation times of the music player within the first preset time period (for example, 10 minutes, 20 minutes, and the like) are counted, and it is determined that the operation times are less than or equal to the preset time threshold, the counted operation times are cleared, and the operation times of the music player within the next preset time period are continuously counted from 0.
And step S23, if the operation times are larger than a preset time threshold, switching the music player from the background to the foreground.
Optionally, if the operation times are less than or equal to the preset time threshold, no other processing is performed. Or optionally, in order to more accurately implement switching of the music player, after the operation frequency is determined to be less than or equal to the preset frequency threshold, whether the operation frequency is greater than the preset prompt threshold is continuously determined, if the operation frequency is greater than the preset prompt threshold, whether the music player is switched from the background to the foreground is prompted to the user, if the user is asked on the display screen whether the music player is switched from the background to the foreground, and if the terminal device receives an instruction for switching from the background to the foreground, the music player is switched from the background to the foreground, so that the user does not need to check the application started at the background, and selects the music player which needs to be switched to the foreground from the application started at the background, and then switches, thereby reducing the switching operation steps. And the preset prompting threshold is greater than 0 and less than a preset time threshold.
Of course, if the operation times is less than or equal to the preset prompt threshold, no other processing is performed.
Example three:
in practical situations, the music player is in the background of the terminal device, but another application is in the foreground of the terminal device, so that the terminal device is in the bright screen state, at this time, the user should prefer that the another application is kept in the foreground of the terminal device, and does not want the music player to be switched to the foreground, and therefore, in order to reduce the probability of erroneous switching, it is necessary to determine whether the screen is in the off-screen state.
Fig. 3 is a schematic flowchart illustrating a third interface switching method provided in the embodiment of the present application, wherein steps S32 and S12 in the embodiment are the same as those in the first embodiment, and are detailed as follows:
step S31, when the terminal device is in the screen-off state, it is detected whether the music player has been started in the background.
Specifically, whether the current screen is in the screen-off state can be judged by acquiring the identification value of the screen state, for example, if the identification value of the screen state adopts "0" to indicate that the screen is in the screen-off state and adopts "1" to indicate that the screen is in the screen-on state, when the identification value of the acquired current screen state is judged to be 0, it is judged that the current screen is in the screen-off state.
Of course, if the screen is in the bright screen state, the operation times of the music player do not need to be counted, and thus, resources occupied by counting the operation times can be avoided.
Step S32, if it is detected that the music player is started in the background, counting the operation times of the music player;
and step S33, if the operation times are larger than a preset time threshold, lightening the screen and switching the music player from the background to the foreground.
In the step, when the music player is switched from the background to the foreground, the screen is lightened, so that a user can know that the music player is switched to the foreground through the lightened screen and can directly use the music player without automatically lightening, and the time for using the music player is shortened.
Optionally, step S31 in the embodiment of the present application specifically includes: when the terminal equipment detects that the audio equipment is accessed, whether the terminal equipment is in a screen-off state or not is judged, and if the terminal equipment is in the screen-off state, whether a music player is started in a background or not is detected.
Correspondingly, step S32 specifically includes: and if the music player is detected to be started in the background, counting the operation times of the user on the music player through the audio equipment.
Optionally, in order to implement the switching of the interface more accurately, the step S33 includes:
and if the operation times are counted to be larger than a preset time threshold value in a first preset time, and the operation of lightening the screen by the user is detected in a second preset time after the first preset time, switching the music player from the background to the foreground.
Specifically, when it is monitored that the user presses a physical key (such as a volume key, a home key, etc.) of the terminal device, it is determined that an operation of lighting a screen by the user is detected. However, if the terminal device receives the message and issues a screen-up notification, it is determined that the user has not performed a screen-up operation. Because the operation times reach the preset threshold value and the screen lighting operation sent by the user is received, the user is indicated that the user most possibly needs to realize more operations on the music through the music player, at the moment, the music player is actively switched from the background to the foreground, and the switching accuracy can be improved.
Optionally, if the terminal device is in the screen lock state before detecting the operation of lighting the screen by the user, the step S33 specifically includes: if the operation times are counted to be larger than a preset time threshold value within a first preset time, and the operation of lightening the screen by the user is detected within a second preset time after the first preset time, whether an unlocking instruction of the terminal equipment is received or not is judged, and if the unlocking instruction of the terminal equipment is received, the music player is switched from a background to a foreground.
Because when terminal equipment is in the lock screen state, can directly not switch the music player to the proscenium, consequently, can guarantee the security of user's privacy.
Optionally, if it is counted that the operation frequency is greater than a preset frequency threshold within a first preset time period, and no operation of lighting the screen by the user is detected within a second preset time period after the first preset time period, clearing the counted operation frequency.
Alternatively, if an operation of lighting the screen by the user is not received, the operation is not processed.
Example four:
corresponding to the interface switching method provided in the first embodiment, the first embodiment of the present application provides a schematic structural diagram of an interface switching apparatus, and for convenience of description, only the relevant portions of the interface switching apparatus are shown in fig. 4.
The interface switching device includes: a background start judging unit 41, an operation frequency counting unit 42, and a foreground and background switching unit 43. Wherein:
a background start judging unit 41 for detecting whether the music player has been started in the background;
specifically, an identifier of an application running in the background is acquired, the acquired application identifier (such as an application package name) is compared with an application identifier of the music player, if the application identifier is the same as the application identifier of the music player, it is determined that the music player is detected to be started in the background, and otherwise, it is determined that the music player is not detected to be started in the background.
An operation frequency counting unit 42, configured to count the operation frequency of the music player if it is detected that the music player is started in the background;
the operation on the music player includes turning up the volume, turning down the volume, playing, pausing, previous music, next music, and the like. If any one of the operations is counted, 1 is added to the operation number counted currently.
A foreground and background switching unit 43, configured to switch the music player from the background to the foreground if the operation frequency is greater than a preset frequency threshold.
Optionally, the interface switching device includes:
and the prompting unit is used for judging whether the operation times is greater than a preset prompting threshold value or not if the operation times is less than or equal to the preset time threshold value, and prompting a user whether to switch the music player from the background to the foreground or not if the operation times is greater than the preset prompting threshold value. And the preset prompting threshold is greater than 0 and less than a preset time threshold.
Optionally, the background start judging unit 41 is specifically configured to detect whether the music player is started in the background when the terminal device detects that an audio device is accessed.
Correspondingly, the operation frequency counting unit 42 is specifically configured to count the operation frequency of the music player by the user through the audio device if it is detected that the music player is started in the background.
Optionally, the background start judging unit 41 is further configured to detect whether the music player is started in the background when the terminal device is in the screen-off state.
Optionally, the background start determining unit 41 is further configured to determine whether the terminal device is in a screen-off state when the terminal device detects that an audio device is accessed, and detect whether the music player is started in the background if the terminal device is in the screen-off state.
Correspondingly, the operation frequency counting unit 42 is specifically configured to count the operation frequency of the music player by the user through the audio device if it is detected that the music player is started in the background.
Optionally, the foreground and background switching unit 43 is specifically configured to, if the operation frequency is greater than a preset frequency threshold, light up a screen, and switch the music player from a background to a foreground.
Optionally, the foreground and background switching unit 43 is specifically configured to switch the music player from the background to the foreground if it is counted that the operation time is greater than a preset time threshold within a first preset time, and an operation of lighting up a screen by a user is detected within a second preset time after the first preset time.
Optionally, if the terminal device is in the screen-locking state before the operation of lighting the screen sent by the user is detected, the foreground-background switching unit 43 is specifically configured to, if the operation frequency is counted within a first preset time period and is greater than a preset frequency threshold, and the operation of lighting the screen by the user is detected within a second preset time period after the first preset time period, determine whether an unlocking instruction of the terminal device is received, and if the unlocking instruction of the terminal device is received, switch the music player from the background to the foreground.
Because when terminal equipment is in the lock screen state, can directly not switch the music player to the proscenium, consequently, can guarantee the security of user's privacy.
Optionally, the interface switching device further includes:
and the clearing unit is used for clearing the counted operation times if the operation times are counted to be greater than a preset time threshold value in a first preset time and the operation of lightening the screen by the user is not detected in a second preset time after the first preset time.
In the embodiment of the application, when the operation times are judged to be larger than the preset times threshold value, the music player is actively switched to the foreground from the background, so that the active switching of a user is not needed, the operation steps are reduced, and the good experience of the user is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example five:
fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in fig. 5, the terminal device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50 executes the computer program 52 to implement the steps of the above-mentioned interface switching method embodiments, such as the steps S11 to S13 shown in fig. 1. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 41 to 43 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the terminal device 5. For example, the computer program 52 may be divided into a background start judging unit 41, an operation frequency counting unit 42, and a foreground-background switching unit 43, and each unit has the following specific functions:
a background start judging unit 41 for detecting whether the music player has been started in the background;
an operation frequency counting unit 42, configured to count the operation frequency of the music player if it is detected that the music player is started in the background;
a foreground and background switching unit 43, configured to switch the music player from the background to the foreground if the operation frequency is greater than a preset frequency threshold.
The terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a terminal device 5 and does not constitute a limitation of terminal device 5 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing the computer program and other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An interface switching method is characterized by comprising the following steps:
detecting whether a music player is started in a background;
if the music player is detected to be started in the background, counting the operation times of the music player within a first preset time, wherein the operation of the music player can be sent out by pressing a physical key of terminal equipment or an audio device externally connected with the terminal equipment, and if the operation of the music player is counted, accumulating 1 on the current counted operation times;
and if the operation times are greater than a preset time threshold, switching the music player from a background to a foreground, wherein the preset time threshold is greater than or equal to 1.
2. The interface switching method of claim 1, wherein detecting whether a music player has been launched in the background comprises:
when the terminal device detects that the audio device is accessed, whether the music player is started in the background is detected.
3. The interface switching method of claim 2, wherein counting the number of operations on the music player if it is detected that the music player has been started in the background comprises:
and if the music player is detected to be started in the background, counting the operation times of the user on the music player through the audio equipment.
4. The interface switching method of claim 1 or 2, wherein detecting whether the music player has been launched in the background further comprises:
and when the terminal equipment is in the screen-off state, detecting whether the music player is started in the background.
5. The interface switching method according to claim 4, wherein if the operation times is greater than a preset time threshold, switching the music player from a background to a foreground comprises:
and if the operation times are larger than a preset time threshold, lightening a screen, and switching the music player from a background to a foreground.
6. The interface switching method according to claim 4, wherein if the operation times is greater than a preset time threshold, switching the music player from a background to a foreground comprises:
and if the operation times are counted to be larger than a preset time threshold value in a first preset time, and the operation of lightening the screen by the user is detected in a second preset time after the first preset time, switching the music player from the background to the foreground.
7. The interface switching method of claim 6, further comprising:
if the operation times are counted to be larger than a preset time threshold within a first preset time, and the operation of lighting the screen by the user is not detected within a second preset time after the first preset time, clearing the counted operation times.
8. An interface switching device, comprising:
a background starting judging unit for detecting whether the music player is started in the background;
the operation frequency counting unit is used for counting the operation frequency of the music player within a first preset time length if the music player is detected to be started in a background, wherein the operation on the music player can be sent out by pressing a physical key of the terminal equipment or can be sent out by pressing a physical key of audio equipment externally connected with the terminal equipment, and if the operation on the music player is counted, 1 is accumulated on the current counted operation frequency;
and the foreground and background switching unit is used for switching the music player from a background to a foreground if the operation times are greater than a preset time threshold, wherein the preset time threshold is greater than or equal to 1.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
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 CN108536512A (en) 2018-09-14
CN108536512B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698979B (en) * 2018-12-13 2022-04-22 北京爱奇艺科技有限公司 Video playing method and device and electronic equipment
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

Also Published As

Publication number Publication date
CN108536512A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN107360536B (en) Method for controlling terminal device, terminal device and computer readable storage medium
CN107181858B (en) Method and terminal for displaying notification message
CN108900770B (en) Method and device for controlling rotation of camera, smart watch and mobile terminal
US20190095059A1 (en) Method and device for processing application icon and electronic apparatus
CN107193598B (en) Application starting method, mobile terminal and computer readable storage medium
EP3404538A1 (en) Data processing method, and data processing apparatus
CN110059273B (en) Method for displaying rich media on mobile terminal and mobile terminal
CN107145386B (en) Data migration method, terminal device and computer readable storage medium
CN109032727B (en) Application program starting method, application program starting device and terminal equipment
CN108536512B (en) Interface switching method and device and terminal equipment
CN107317928B (en) Information processing method, mobile terminal and computer readable storage medium
CN110086941B (en) Voice playing method and device and terminal equipment
CN109358927B (en) Application program display method and device and terminal equipment
CN106776847B (en) Method and device for deleting media file and mobile terminal
CN108521460B (en) Information pushing method and device, mobile terminal and computer readable storage medium
CN109271266B (en) File transmission method and device and terminal equipment
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
US11460971B2 (en) Control method and electronic device
CN110874729A (en) Switching method and switching device for electronic red packet identification strategy and mobile terminal
CN110231896B (en) Information sending method and device, electronic equipment and storage medium
CN108509111B (en) Application notification method and device and terminal equipment
CN115269243A (en) Method, device and equipment for detecting process and storage medium
CN110245016B (en) Data processing method, system, device and terminal equipment
CN110134478B (en) Scene conversion method and device of panoramic scene and terminal equipment

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

Granted publication date: 20210326

CF01 Termination of patent right due to non-payment of annual fee