CN111031171B - Service switching method and electronic equipment - Google Patents

Service switching method and electronic equipment Download PDF

Info

Publication number
CN111031171B
CN111031171B CN201911134105.5A CN201911134105A CN111031171B CN 111031171 B CN111031171 B CN 111031171B CN 201911134105 A CN201911134105 A CN 201911134105A CN 111031171 B CN111031171 B CN 111031171B
Authority
CN
China
Prior art keywords
target
mode
function service
option
switching
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.)
Active
Application number
CN201911134105.5A
Other languages
Chinese (zh)
Other versions
CN111031171A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911134105.5A priority Critical patent/CN111031171B/en
Publication of CN111031171A publication Critical patent/CN111031171A/en
Application granted granted Critical
Publication of CN111031171B publication Critical patent/CN111031171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a service switching method and electronic equipment, wherein the method comprises the following steps: under the condition that a first input is received, judging whether a target function service enables a target mode corresponding to a target event, wherein the first input is used for triggering the electronic equipment to execute the target event, and the target function service is a function service associated with the target event; and if the target function service does not start the target mode corresponding to the target event, switching the target function service to the target mode. The embodiment of the invention can complete the mode switching of the target function service without manually executing a series of operations by a user.

Description

Service switching method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a service switching method and an electronic device.
Background
At present, a certain service of an electronic device often configures a plurality of different modes to meet the requirements of a user in different use scenarios, and when the user needs to switch between the different modes, multiple operations are often required.
Taking bluetooth configuration service as an example, in the prior art, the bluetooth configuration service of the electronic device may include a call audio mode and a media audio mode, that is, the call audio and/or the media audio may be selectively played through the paired bluetooth device, but only one bluetooth icon is displayed on a status bar at the top of a screen of the electronic device to indicate that the current bluetooth is turned on, and a user cannot know which configuration service mode is currently enabled. And if the user needs to switch the Bluetooth configuration service mode, the user needs to enter a setting page to find a Bluetooth setting option, and then changes the Bluetooth configuration service mode of the paired equipment, or needs to select the paired equipment by pressing a Bluetooth icon in a pull-up menu for a long time, and then enters a configuration service mode to select a page for switching.
Therefore, the problem that the operation is complicated exists in the conventional service mode switching.
Disclosure of Invention
The embodiment of the invention provides a service switching method and electronic equipment, and aims to solve the problem that the operation is complicated in the conventional service mode switching.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a service switching method, which is applied to an electronic device, and the method includes:
under the condition that a first input is received, judging whether a target function service enables a target mode corresponding to a target event, wherein the first input is used for triggering the electronic equipment to execute the target event, and the target function service is a function service associated with the target event;
and if the target function service does not start the target mode corresponding to the target event, switching the target function service to the target mode.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the electronic equipment comprises a judging module, a judging module and a judging module, wherein the judging module is used for judging whether a target function service enables a target mode corresponding to a target event or not under the condition that a first input is received, the first input is used for triggering the electronic equipment to execute the target event, and the target function service is a function service related to the target event;
the first switching module is configured to switch the target function service to the target mode if the target function service does not enable the target mode corresponding to the target event.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps in the service switching method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the service switching method.
In the embodiment of the invention, under the condition that a first input for triggering the electronic equipment to execute the target event is received, whether the target function service associated with the target event enables the target mode corresponding to the target event is judged, and under the condition that the target function service does not enable the target mode corresponding to the target event, the target function service is switched to the target mode, so that the mode switching of the target function service can be completed without manually executing a series of operations by a user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a service switching method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a configuration mode interface of a Bluetooth service provided by an embodiment of the present invention;
FIG. 3 is an interface diagram of an automatic transfer switch for Bluetooth services provided by an embodiment of the present invention;
FIG. 4 is a schematic interface diagram of an output switch box according to an embodiment of the present invention;
fig. 5 is a flowchart of another service switching method according to an embodiment of the present invention;
fig. 6a is a schematic diagram illustrating a bluetooth connection status icon displayed in a status bar according to an embodiment of the present invention;
fig. 6b is a second schematic diagram of displaying a bluetooth connection status icon in a status bar according to an embodiment of the present invention;
fig. 6c is a third schematic diagram illustrating a bluetooth connection status icon displayed in a status bar according to an embodiment of the present invention;
fig. 7a is a schematic diagram of displaying a bluetooth connection status icon in a pull-up menu according to an embodiment of the present invention;
fig. 7b is a second schematic diagram of displaying a bluetooth connection status icon in a pull-up menu according to an embodiment of the present invention;
fig. 7c is a third schematic diagram illustrating a bluetooth connection status icon displayed in a pull-up menu according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a first switching module of an electronic device according to an embodiment of the present invention;
fig. 10 is a second schematic structural diagram of a first switching module of an electronic device according to an embodiment of the present invention;
fig. 11 is a second schematic structural diagram of an electronic device according to a second embodiment of the present invention;
fig. 12 is a third schematic structural diagram of an electronic apparatus according to an embodiment of the invention;
fig. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a service switching method provided in an embodiment of the present invention, and is applied to an electronic device, as shown in fig. 1, the method includes the following steps:
step 101, under the condition that a first input is received, determining whether a target function service enables a target mode corresponding to a target event, wherein the first input is used for triggering the electronic device to execute the target event, and the target function service is a function service associated with the target event.
The first input may be an input, which is input by a user and used for triggering the electronic device to execute a target event, where the target event may be an event such as playing audio, starting navigation, playing video, starting a game, and the first input may be an operation of clicking to play audio, an operation of opening a navigation application, an operation of clicking to play video, an operation of starting a game application, and the like.
The target function service may be a function service associated with the target event, for example, a function service required in the process of executing the target event, for example, when the target event is playing audio, the corresponding target function service may be a bluetooth service, when the target event is starting navigation, the corresponding target function service may be a positioning service, and when the target event is playing video or starting a game, the corresponding target function service may be a data network service.
In the embodiment of the present invention, the target function service may include a plurality of different service modes, for example, the bluetooth service may have a call audio mode and a media audio mode, and the call audio is transmitted through bluetooth and the media audio is transmitted through bluetooth respectively; as another example, the location service may have a high accuracy mode, a low power consumption mode, and a GPS only mode, the data network service has a normal mode and an acceleration mode, and so on.
In the embodiment of the present invention, in order to ensure that when the electronic device performs a target event in advance, a target mode of a corresponding target function service is in an on state, when the first input is received, it may be determined first whether the target function service enables the target mode corresponding to the target event, so as to switch the target function service to the target mode when the target function service does not enable the target mode, specifically, a currently enabled mode of the target function service may be obtained first, and then it is determined whether the mode is the target mode.
The target mode corresponding to the target event may be a mode that needs to be turned on to ensure that the target event is better executed, for example, during playing media audio, the target mode corresponding to the bluetooth service may be a media audio mode, during turning on navigation, the target mode corresponding to the positioning service may be a high-precision mode, during playing video, the target mode corresponding to the data network service is an acceleration mode, and so on.
Optionally, the target event is playing audio, and the target function service is a bluetooth service.
In order to save the operations required by the user to switch the configuration mode of the bluetooth service when the bluetooth service is enabled, the target function service may be the bluetooth service, and as shown in fig. 2, the bluetooth service may be configured with a call audio mode and a media audio mode, which correspond to enabling the bluetooth transmission service when the call audio is played and enabling the bluetooth transmission service when the media audio is played, respectively.
The target event may be an audio playing event, that is, when an audio playing operation is detected, it may be determined whether the bluetooth service enables a mode corresponding to the currently played audio, and if not, the bluetooth service may be switched to the corresponding mode. For example, when a user clicks to play a media audio, a service mode currently enabled by the bluetooth service may be obtained first, and if the current mode is a call audio mode, the media audio to be played will not be transmitted through bluetooth, so that the bluetooth service may be switched to the media audio mode for the user, so as to ensure that the media audio to be played can be transmitted through bluetooth.
And 102, if the target function service does not enable the target mode corresponding to the target event, switching the target function service to the target mode.
In the embodiment of the invention, if the target function service is judged not to be started in the target mode corresponding to the target event, the target function service can be actively switched to the target mode without manual operation switching of a user. For example, if an operation of playing media audio is detected, but the media audio mode of the bluetooth service is not currently enabled, the media audio mode of the bluetooth service may be actively turned on.
Optionally, the step 102 includes:
if the target function service does not start a target mode corresponding to the target event, detecting whether an automatic transfer switch of the target function service is started;
and if the automatic change-over switch of the target function service is turned on, switching the target function service to the target mode.
In order to make the mode switching of the target function service more flexible to meet the diversified requirements of the user, the setting item of the target function service may be configured with an option of an automatic switch, so that the user may select to turn on or turn off the automatic switch of the target function service according to the self requirement, as shown in fig. 3, in the setting page of the bluetooth service, the user may turn on the mode automatic switching function of the bluetooth service by touching the automatic switch configuration service switch 30.
When the automatic change-over switch is turned on, the electronic device can automatically switch modes of the target function service in a scene meeting conditions, and when the automatic change-over switch is not turned on, a user needs to manually switch the modes of the target function service according to the current scene.
Therefore, in this embodiment, when the target mode corresponding to the target event is not enabled by the target function service, it may be detected whether an automatic transfer switch of the target function service is turned on first, and if it is detected that the automatic transfer switch of the target function service is turned on, the target function service may be directly switched to the target mode.
It should be noted that, if it is detected that the automatic change-over switch of the target function service is not turned on, the mode of the target function service may not be changed first, but a prompt box is popped up first, so that the user selects whether to perform mode change over on the target function service or whether to turn on the automatic change-over switch of the target function service at this time, so as to perform the next operation according to the confirmation operation of the user.
Optionally, after detecting whether the automatic transfer switch of the target function service is turned on, the method further includes:
if the automatic change-over switch of the target function service is not started, outputting a change-over option frame, wherein the change-over option frame comprises at least two items of a first option, a second option and a third option, the first option is to allow the automatic change-over switch to be started, the second option is to allow the automatic change-over switch to be started only once, and the third option is to cancel the change-over;
receiving selection input aiming at a target option in the switching option box;
when the target option is a first option, starting an automatic change-over switch of the target function service, and switching the target function service to the target mode;
switching the target function service to the target mode if the target option is a second option;
and canceling the mode switching of the target function service under the condition that the target option is a third option.
In this embodiment, in order to save the operation of the user and ensure that the switching result meets the user's intention when it is detected that the automatic switch of the target function service is not turned on, a switching option frame may be output first for the user to select a desired switching option, where the switching option frame may include at least two of a first option, a second option, and a third option, the first option is to allow the automatic switch to be turned on, the second option is to allow the automatic switch only once, and the third option is to cancel the switching.
In this way, a user can select among the first option, the second option and the third option according to own requirements, and when the user selects the first option in the switching option frame, the electronic device can turn on an automatic switching switch of the target function service, so that the electronic device can automatically switch the mode of the target function service according to a use scene; when the user selects the second option in the switching option frame, the electronic device may only turn on the automatic switch of the target function service this time, so that the electronic device may allow the mode of the target function service to be automatically switched this time, and after the switching is completed this time, turn off the automatic switch of the target function service again; when the user selects the third option in the switching option frame, the automatic switch of the target function service can be kept in a closed state, and the switching of the target function service at this time is cancelled, that is, the user can confirm that the mode of the target function service is not switched at this time.
Therefore, under the condition that the automatic change-over switch of the target function service is detected not to be turned on, the user can flexibly select different switching options according to the requirement of the user by outputting the switching option frame comprising different options, and the final mode of the target function service is ensured to meet the user expectation.
The following describes a specific embodiment of this embodiment with reference to fig. 4:
the electronic device enables the Bluetooth service and is connected with the Bluetooth device. When a user plays a media audio by using the electronic device, the electronic device can firstly judge whether a Bluetooth service configuration mode corresponding to the media audio, namely a media audio mode, is started, if so, the media audio is directly played through the connected Bluetooth device, and if not, whether a function of automatically switching a Bluetooth configuration service is started or not is detected; and if the function of automatically switching the Bluetooth configuration service is started currently, switching the Bluetooth service configuration mode to a media audio mode, and playing the media audio through the connected Bluetooth equipment.
If the function of automatically switching the bluetooth configuration service is not turned on currently, a pop-up window prompt box 40 may be output on the desktop as shown in fig. 4 to prompt the user to "detect that you do not turn on the recommended bluetooth service mode, turn on? "and several switching options can be provided in the pop-up box 40 for the user to select, wherein the switching option a is" automatically switch bluetooth configuration service (always) ", the switching option B is" switch to recommended bluetooth configuration service (only once) ", and the switching option C is" cancel ".
If the user selects the option A, the function of automatically switching the Bluetooth configuration service can be started, the Bluetooth service configuration mode is switched to the media audio mode, and the media audio is played through the connected Bluetooth equipment; if the user selects the option B, the Bluetooth service configuration mode can be switched to the media audio mode only this time, and the media audio is played through the connected Bluetooth equipment; if the user selects the option C, the mode switching of the Bluetooth service can be avoided, and the media audio is played through the electronic equipment.
In an embodiment of the present invention, the electronic device may be any device having a storage medium, for example: terminal devices such as computers (Computer), Mobile phones, Tablet Personal computers (Tablet Personal Computer), Laptop computers (Laptop Computer), Personal Digital Assistants (PDA), Mobile Internet Devices (MID), and Wearable devices (Wearable Device).
In the service switching method in this embodiment, when a first input for triggering the electronic device to execute a target event is received, it is determined whether a target function service associated with the target event enables a target mode corresponding to the target event, and when the target function service does not enable the target mode corresponding to the target event, the target function service is switched to the target mode, so that mode switching of the target function service can be completed without a user manually performing a series of operations.
Referring to fig. 5, fig. 5 is a flowchart of another service switching method provided by an embodiment of the present invention, which is applied to an electronic device, and in this embodiment, on the basis of the embodiment shown in fig. 1, a step of displaying an icon corresponding to a currently enabled mode of a target function service in a status bar of the electronic device is added, so that a user can indicate a currently enabled mode of the target function service through the status bar icon. As shown in fig. 5, the method comprises the steps of:
step 501, a first mode currently enabled by a target function service is obtained.
Step 502, displaying a first icon corresponding to the first mode on a status bar of the electronic device to indicate that the target function service currently enables the first mode.
In this embodiment, in order to ensure that the user can intuitively know the currently enabled mode of the target function service, the first mode currently enabled by the target function service may be obtained first, and specifically, the mode for starting the target function service may be obtained when the target function service is enabled.
Then, an icon for indicating that the target function service is turned on may be displayed in a status bar of the electronic device, and the icon may be related to a currently enabled mode of the target function service, such as displaying a first icon corresponding to the first mode, indicating that the target function service currently enables the first mode, where other modes of the target function service may be displayed using another icon, that is, the icon corresponding to the first mode of the target function service is the first icon, the icon corresponding to the second mode of the target function service is the second icon, the icon corresponding to the third mode of the target function service is the third icon, and so on.
Taking the bluetooth service as an example, in the case of starting the bluetooth service, a configuration mode currently enabled by the bluetooth service may be acquired, if the bluetooth service is in a call audio mode, as shown in fig. 6a, a first bluetooth icon 61 may be displayed in the electronic device top status bar 60, if the bluetooth service is in a media audio mode, as shown in fig. 6b, a second bluetooth icon 62 may be displayed in the electronic device top status bar 60, and if the call audio mode and the media audio mode are simultaneously enabled, as shown in fig. 6c, a third bluetooth icon 63 may be displayed in the electronic device top status bar 60.
Therefore, a user can visually know the currently started mode of the target function service through the icon which is displayed in the status bar of the electronic equipment and used for indicating the starting mode of the target function service, and further can judge whether the currently started mode meets the current scene requirement or not and whether the mode of the target function service needs to be further switched or not.
Optionally, after step 502, the method further includes:
displaying a menu bar in which the first icon is displayed, in a case where a second input is received;
switching the target function service from the first mode to a second mode and switching the first icon to a second icon corresponding to the second mode, in case a preset input for the first icon is received.
In order to simplify the operation of manually switching the mode by the user, in this embodiment, the mode switching of the target function service may be implemented by a preset input of the user on the first icon in the menu bar. Specifically, a second input, which is executed by the user and used for triggering the display of the menu bar, may be received first, where the menu bar may be a pull-up menu bar, the second input may be a sliding input from a bottom end of the screen to an upper side, an icon for indicating the enabling state of the target function service may be displayed in the menu bar, and the first icon is displayed in the menu bar when the first mode is enabled by the target function service.
A user may perform a preset input on the first icon to trigger a mode switching operation on the target function service, for example, if a first preset input of the user on the first icon in the menu bar is received, the target function service may be switched from the first mode to a second mode, and the first icon may be switched to a second icon corresponding to the second mode, specifically, the first icon displayed in the status bar may be switched to the second icon, and the first icon displayed in the menu bar may be switched to the second icon; if a second preset input of the user on the first icon in the menu bar is received, the target function service can be switched from the first mode to a third mode, and the first icon is switched to a third icon corresponding to the third mode.
Still taking the bluetooth service as an example, when the bluetooth service is turned on, the bluetooth icon in the pull-up menu is lit up, and the corresponding icon may be displayed according to the currently enabled bluetooth service mode, as shown in fig. 7a, if the currently enabled call audio mode is, the first icon 71 and the corresponding text "call audio" may be displayed in the pull-up menu 70, indicating that the currently enabled bluetooth service mode is the call audio mode; the user may slide left on the first icon 71 to switch the bluetooth service to the media audio mode, the switched bluetooth icon is as shown in fig. 7b, and the second icon 72 and the corresponding text "media audio" are displayed in the pull-up menu 70; the user may also slide right on the first icon 71 to switch the bluetooth service to a mode in which both the call audio and the media audio are on, the switched bluetooth icon is as shown in fig. 7c, and a third icon 73 and the corresponding text "bluetooth" are displayed in the pull-up menu 70.
In this way, in some scenarios where the target function service mode needs to be switched, the user can implement a quick switch of the mode of the target function service by triggering the menu bar display and performing a specific input on the icon indicating the target function service displayed in the menu bar, without entering the setting page to perform a series of operations.
Step 503, in a case that a first input is received, determining whether a target function service enables a target mode corresponding to a target event, where the first input is used to trigger the electronic device to execute the target event, and the target function service is a function service associated with the target event.
The specific implementation of this step may refer to the implementation of step 101 in the method embodiment shown in fig. 1, and is not described here again to avoid repetition.
Step 504, if the target function service does not enable the target mode corresponding to the target event, switching the target function service to the target mode.
The specific implementation of this step may refer to the implementation of step 102 in the method embodiment shown in fig. 1, and is not described here again to avoid repetition.
It should be noted that, in this embodiment, execution timings of the step 501 and the step 502 and the step 503 and the step 504 may not be limited, that is, the step 501 and the step 502 may be executed first or later.
In this embodiment, a plurality of optional embodiments are added on the basis of the embodiment shown in fig. 1, and these optional embodiments may be implemented in combination with each other or separately, and all of them can achieve the technical effect of simplifying user operation in service mode switching.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 8, an electronic device 800 includes:
a determining module 801, configured to determine whether a target function service enables a target mode corresponding to a target event when a first input is received, where the first input is used to trigger the electronic device to execute the target event, and the target function service is a function service associated with the target event;
a first switching module 802, configured to switch the target function service to the target mode if the target function service does not enable the target mode corresponding to the target event.
Optionally, as shown in fig. 9, the first switching module 802 includes:
a detecting unit 8021, configured to detect whether an automatic switch of the target function service is turned on if the target function service does not enable a target mode corresponding to the target event;
a first switching unit 8022, configured to switch the target function service to the target mode if an automatic switch of the target function service is turned on.
Optionally, as shown in fig. 10, the first switching module 802 further includes:
an output unit 8023, configured to output a switching option frame if an automatic switch of the target function service is not turned on, where the switching option frame includes at least two of a first option, a second option, and a third option, the first option is to allow the automatic switch to be turned on, the second option is to allow the automatic switch to be turned on only once, and the third option is to cancel the switch;
a receiving unit 8024, configured to receive a selection input for a target option in the switching option box;
a second switching unit 8025, configured to, when the target option is the first option, turn on an automatic switch of the target function service, and switch the target function service to the target mode;
a third switching unit 8026, configured to switch the target function service to the target mode if the target option is the second option;
a canceling unit 8027, configured to cancel mode switching of the target function service when the target option is a third option.
Optionally, as shown in fig. 11, the electronic device 800 further includes:
an obtaining module 803, configured to obtain a first mode currently enabled by the target function service;
a first display module 804, configured to display a first icon corresponding to the first mode in a status bar of the electronic device to indicate that the target function service currently enables the first mode.
Optionally, as shown in fig. 12, the electronic device 800 further includes:
a second display module 805, configured to display a menu bar in which the first icon is displayed, if a second input is received;
a second switching module 806, configured to switch the target function service from the first mode to a second mode and switch the first icon to a second icon corresponding to the second mode when a preset input for the first icon is received.
Optionally, the target event is playing audio, and the target function service is a bluetooth service.
The electronic device 800 can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 5, and details are not repeated here to avoid repetition. The electronic device 800 of the embodiment of the present invention may determine whether the target function service associated with the target event enables the target mode corresponding to the target event or not when receiving the first input for triggering the electronic device to execute the target event, and switch the target function service to the target mode when the target function service does not enable the target mode corresponding to the target event, so that the mode switching of the target function service may be completed without a user manually performing a series of operations.
Fig. 13 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, where the electronic device 1300 includes, but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, a processor 1310, a power supply 1311, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 13 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 1310 is configured to determine whether a target function service enables a target mode corresponding to a target event or not when a first input is received, where the first input is used to trigger the electronic device to execute the target event, and the target function service is a function service associated with the target event;
and if the target function service does not start the target mode corresponding to the target event, switching the target function service to the target mode.
Optionally, the processor 1310 is further configured to:
if the target function service does not start a target mode corresponding to the target event, detecting whether an automatic transfer switch of the target function service is started;
and if the automatic change-over switch of the target function service is turned on, switching the target function service to the target mode.
Optionally, the processor 1310 is further configured to:
if the automatic change-over switch of the target function service is not started, outputting a change-over option frame, wherein the change-over option frame comprises at least two items of a first option, a second option and a third option, the first option is to allow the automatic change-over switch to be started, the second option is to allow the automatic change-over switch to be started only once, and the third option is to cancel the change-over;
receiving selection input aiming at a target option in the switching option box;
when the target option is a first option, starting an automatic change-over switch of the target function service, and switching the target function service to the target mode;
switching the target function service to the target mode if the target option is a second option;
and canceling the mode switching of the target function service under the condition that the target option is a third option.
Optionally, the processor 1310 is further configured to:
acquiring a first mode currently started by the target function service;
displaying a first icon corresponding to the first mode on a status bar of the electronic device to indicate that the target function service currently enables the first mode.
Optionally, the processor 1310 is further configured to:
displaying a menu bar in which the first icon is displayed, in a case where a second input is received;
switching the target function service from the first mode to a second mode and switching the first icon to a second icon corresponding to the second mode, in case a preset input for the first icon is received.
Optionally, the target event is playing audio, and the target function service is a bluetooth service.
The electronic device 1300 can implement the processes implemented by the electronic device in the foregoing embodiments, and details are not repeated here to avoid repetition. The electronic device 1300 according to the embodiment of the present invention may determine whether the target function service associated with the target event enables the target mode corresponding to the target event or not when receiving the first input for triggering the electronic device to execute the target event, and switch the target function service to the target mode when the target function service does not enable the target mode corresponding to the target event, so that the mode switching of the target function service may be completed without a user manually performing a series of operations.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1301 may be configured to receive and transmit signals during a message transmission or call process, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1310; in addition, the uplink data is transmitted to the base station. In general, radio unit 1301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1301 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 1302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 1303 can convert audio data received by the radio frequency unit 1301 or the network module 1302 or stored in the memory 1309 into an audio signal and output as sound. Also, the audio output unit 1303 may also provide audio output related to a specific function performed by the electronic apparatus 1300 (e.g., a call signal reception sound, a message reception sound, and the like). The audio output unit 1303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1304 is used to receive audio or video signals. The input Unit 1304 may include a Graphics Processing Unit (GPU) 13041 and a microphone 13042, and the Graphics processor 13041 processes image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1306. The image frames processed by the graphic processor 13041 may be stored in the memory 1309 (or other storage medium) or transmitted via the radio frequency unit 1301 or the network module 1302. The microphone 13042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1301 in case of a phone call mode.
The electronic device 1300 also includes at least one sensor 1305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 13061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 13061 and/or the backlight when the electronic device 1300 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1305 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1306 is used to display information input by a user or information provided to the user. The Display unit 1306 may include a Display panel 13061, and the Display panel 13061 may be configured as a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1307 may be used to receive input numerical or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 1307 includes a touch panel 13071 and other input devices 13072. Touch panel 13071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on touch panel 13071 or near touch panel 13071 using a finger, stylus, or any other suitable object or attachment). The touch panel 13071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1310, and receives and executes commands sent from the processor 1310. In addition, the touch panel 13071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 1307 may include other input devices 13072 in addition to the touch panel 13071. In particular, the other input devices 13072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 13071 can be overlaid on the display panel 13061, and when the touch panel 13071 detects a touch operation on or near the touch panel, the touch operation can be transmitted to the processor 1310 to determine the type of the touch event, and then the processor 1310 can provide a corresponding visual output on the display panel 13061 according to the type of the touch event. Although the touch panel 13071 and the display panel 13061 are shown in fig. 13 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 13071 and the display panel 13061 may be integrated to implement the input and output functions of the electronic device, and are not limited herein.
The interface unit 1308 is an interface for connecting an external device to the electronic apparatus 1300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1308 may be used to receive input from an external device (e.g., data information, power, etc.) and transmit the received input to one or more elements within the electronic device 1300 or may be used to transmit data between the electronic device 1300 and an external device.
The memory 1309 may be used to store software programs as well as various data. The memory 1309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1309 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1310 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1309 and calling data stored in the memory 1309, thereby performing overall monitoring of the electronic device. Processor 1310 may include one or more processing units; preferably, the processor 1310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1310.
The electronic device 1300 may also include a power supply 1311 (e.g., a battery) for powering the various components, and preferably, the power supply 1311 may be logically coupled to the processor 1310 via a power management system that may be configured to manage charging, discharging, and power consumption management.
In addition, the electronic device 1300 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, including a processor 1310, a memory 1309, and a computer program stored in the memory 1309 and capable of running on the processor 1310, where the computer program, when executed by the processor 1310, implements each process of the foregoing service switching method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing service switching method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A service switching method is applied to electronic equipment, and is characterized in that the method comprises the following steps:
under the condition that a first input is received, judging whether a target function service enables a target mode corresponding to a target event, wherein the first input is used for triggering the electronic equipment to execute the target event, and the target function service is a function service associated with the target event;
if the target function service does not start a target mode corresponding to the target event, switching the target function service to the target mode;
the method further comprises the following steps:
acquiring a first mode currently started by the target function service;
displaying a first icon corresponding to the first mode on a status bar of the electronic device to indicate that the target function service currently enables the first mode;
after the status bar of the electronic device displays the first icon corresponding to the first mode, the method further comprises:
displaying a menu bar in which the first icon is displayed, in a case where a second input is received;
switching the target function service from the first mode to a second mode and switching the first icon to a second icon corresponding to the second mode, in case a preset input for the first icon is received.
2. The method of claim 1, wherein switching the target function service to the target mode if the target function service does not enable the target mode corresponding to the target event comprises:
if the target function service does not start a target mode corresponding to the target event, detecting whether an automatic transfer switch of the target function service is started;
and if the automatic change-over switch of the target function service is turned on, switching the target function service to the target mode.
3. The method of claim 2, wherein after detecting whether the automatic transfer switch of the target function service is turned on, the method further comprises:
if the automatic change-over switch of the target function service is not started, outputting a change-over option frame, wherein the change-over option frame comprises at least two items of a first option, a second option and a third option, the first option is to allow the automatic change-over switch to be started, the second option is to allow the automatic change-over switch to be started only once, and the third option is to cancel the change-over;
receiving selection input aiming at a target option in the switching option box;
when the target option is a first option, starting an automatic change-over switch of the target function service, and switching the target function service to the target mode;
switching the target function service to the target mode if the target option is a second option;
and canceling the mode switching of the target function service under the condition that the target option is a third option.
4. The method according to any one of claims 1 to 3, wherein the target event is playing audio and the target function service is a Bluetooth service.
5. An electronic device, comprising:
the electronic equipment comprises a judging module, a judging module and a judging module, wherein the judging module is used for judging whether a target function service enables a target mode corresponding to a target event or not under the condition that a first input is received, the first input is used for triggering the electronic equipment to execute the target event, and the target function service is a function service related to the target event;
the first switching module is used for switching the target function service to a target mode if the target function service does not enable the target mode corresponding to the target event;
the acquisition module is used for acquiring a first mode currently started by the target function service;
the first display module is used for displaying a first icon corresponding to the first mode on a status bar of the electronic equipment so as to indicate that the target function service currently enables the first mode;
the second display module is used for displaying a menu bar under the condition of receiving a second input, and the first icon is displayed in the menu bar;
the second switching module is used for switching the target function service from the first mode to a second mode and switching the first icon to a second icon corresponding to the second mode under the condition that a preset input aiming at the first icon is received.
6. The electronic device of claim 5, wherein the first switching module comprises:
the detection unit is used for detecting whether an automatic change-over switch of the target function service is turned on or not if the target function service does not start a target mode corresponding to the target event;
and the first switching unit is used for switching the target function service to the target mode if an automatic change-over switch of the target function service is turned on.
7. The electronic device of claim 6, wherein the first switching module further comprises:
an output unit, configured to output a switching option frame if an automatic switch of the target function service is not turned on, where the switching option frame includes at least two of a first option, a second option, and a third option, the first option is to allow the automatic switch to be turned on, the second option is to allow the automatic switch to be turned on only once, and the third option is to cancel the switch;
a receiving unit, configured to receive a selection input for a target option in the switching option box;
the second switching unit is used for starting an automatic switching switch of the target function service and switching the target function service to the target mode under the condition that the target option is the first option;
a third switching unit, configured to switch the target function service to the target mode if the target option is the second option;
and the canceling unit is used for canceling the mode switching of the target function service under the condition that the target option is a third option.
8. The electronic device of any of claims 5-7, wherein the target event is playing audio and the target function service is a Bluetooth service.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the service switching method according to any one of claims 1 to 4.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the service switching method according to any one of claims 1 to 4.
CN201911134105.5A 2019-11-19 2019-11-19 Service switching method and electronic equipment Active CN111031171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911134105.5A CN111031171B (en) 2019-11-19 2019-11-19 Service switching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911134105.5A CN111031171B (en) 2019-11-19 2019-11-19 Service switching method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111031171A CN111031171A (en) 2020-04-17
CN111031171B true CN111031171B (en) 2021-07-06

Family

ID=70205842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911134105.5A Active CN111031171B (en) 2019-11-19 2019-11-19 Service switching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111031171B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902163A (en) * 2014-04-09 2014-07-02 深圳市中兴移动通信有限公司 Desktop icon arrangement method and intelligent terminal
CN106066879A (en) * 2016-05-30 2016-11-02 广州飞傲电子科技有限公司 Player pure tone pattern and the method for Android pattern switching
CN106919416A (en) * 2015-12-28 2017-07-04 比亚迪股份有限公司 The method and device of automation and control network switch
CN107203340A (en) * 2017-05-15 2017-09-26 建荣半导体(深圳)有限公司 Method for spacial multiplex, multiplexer and its bluetooth equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679795B (en) * 2013-12-03 2020-05-19 中兴通讯股份有限公司 Scene mode switching method and device and mobile terminal
CN111694484B (en) * 2017-05-16 2023-07-07 苹果公司 Apparatus, method and graphical user interface for navigating between user interfaces

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902163A (en) * 2014-04-09 2014-07-02 深圳市中兴移动通信有限公司 Desktop icon arrangement method and intelligent terminal
CN106919416A (en) * 2015-12-28 2017-07-04 比亚迪股份有限公司 The method and device of automation and control network switch
CN106066879A (en) * 2016-05-30 2016-11-02 广州飞傲电子科技有限公司 Player pure tone pattern and the method for Android pattern switching
CN107203340A (en) * 2017-05-15 2017-09-26 建荣半导体(深圳)有限公司 Method for spacial multiplex, multiplexer and its bluetooth equipment

Also Published As

Publication number Publication date
CN111031171A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN109343759B (en) Screen-turning display control method and terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN108279948B (en) Application program starting method and mobile terminal
CN109407921B (en) Application processing method and terminal device
CN110109593B (en) Screen capturing method and terminal equipment
CN110837327B (en) Message viewing method and terminal
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN110659098B (en) Data updating method and device, terminal equipment and storage medium
CN109508136B (en) Display method of application program and mobile terminal
CN111142745B (en) Display method and electronic equipment
CN107992342B (en) Application configuration changing method and mobile terminal
CN108958593B (en) Method for determining communication object and mobile terminal
CN109683802B (en) Icon moving method and terminal
CN110825295B (en) Application program control method and electronic equipment
CN110096203B (en) Screenshot method and mobile terminal
CN109710130B (en) Display method and terminal
CN112596625A (en) Electronic equipment, display control method and device
CN108762613B (en) State icon display method and mobile terminal
CN111124345A (en) Audio source processing method and mobile terminal
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN109284146B (en) Light application starting method and mobile terminal
CN111061446A (en) Display method and electronic equipment
CN109597546B (en) Icon processing method 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