CN111601287B - Network switching method, electronic equipment and storage medium - Google Patents

Network switching method, electronic equipment and storage medium Download PDF

Info

Publication number
CN111601287B
CN111601287B CN202010358785.5A CN202010358785A CN111601287B CN 111601287 B CN111601287 B CN 111601287B CN 202010358785 A CN202010358785 A CN 202010358785A CN 111601287 B CN111601287 B CN 111601287B
Authority
CN
China
Prior art keywords
sim card
identifier
data flow
electronic device
target
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
CN202010358785.5A
Other languages
Chinese (zh)
Other versions
CN111601287A (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 CN202010358785.5A priority Critical patent/CN111601287B/en
Publication of CN111601287A publication Critical patent/CN111601287A/en
Application granted granted Critical
Publication of CN111601287B publication Critical patent/CN111601287B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • 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
    • 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/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a network switching method, electronic equipment and a storage medium, relates to the technical field of communication, and can solve the problems of complex operation and time consumption of a user when the electronic equipment switches networks. The method comprises the following steps: receiving a first input of a user under the condition that a system notification bar of the electronic device displays a first identifier and a second identifier, wherein the first input is input of a target identifier by the user, and the target identifier comprises at least one of the following components: the first identifier is used for indicating the first SIM card, and the second identifier is used for indicating the second SIM card; and responding to the first input, adjusting the application authority of the first data flow of the target SIM card to switch the network state of the electronic equipment, wherein the target SIM card is the SIM card corresponding to the target identifier. The embodiment of the invention is applied to the process of switching the application permission of the data flow of the SIM card.

Description

Network switching method, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a network switching method, electronic equipment and a storage medium.
Background
In general, when a user uses a dual-card electronic device (i.e., an electronic device with two subscriber identity modules (subscriber identity module, SIM) cards built therein), a network access function can be realized through the data traffic of any SIM card in the electronic device. However, since the usage of the data traffic of different SIM cards may be different, when the remaining data traffic of one SIM card currently used is small, the user may input a selection option of the SIM card in the setting application of the electronic device, so that the electronic device may use the data traffic of another SIM card, and thus the user may implement the internet function through the data traffic of the other SIM card.
However, in the above method, since the user needs to input the setting application program first and then input the option of the SIM card in the setting application program, the electronic device uses the data flow of another SIM card, so the operation of the user is cumbersome and time-consuming.
Disclosure of Invention
The embodiment of the invention provides a network switching method, electronic equipment and a storage medium, which can solve the problems of complicated and time-consuming operation of a user when the electronic equipment switches networks.
In order to solve the technical problems, the embodiment of the invention adopts the following technical scheme:
In a first aspect of an embodiment of the present invention, a network switching method is provided, and the network switching method is applied to an electronic device, where the electronic device includes a first SIM card and a second SIM card, and the method includes: receiving a first input of a user under the condition that a system notification bar of the electronic device displays a first identifier and a second identifier, wherein the first input is input of a target identifier by the user, and the target identifier comprises at least one of the following components: the first identifier is used for indicating the first SIM card, and the second identifier is used for indicating the second SIM card; and responding to the first input, adjusting the application authority of the first data flow of the target SIM card to switch the network state of the electronic equipment, wherein the target SIM card is the SIM card corresponding to the target identifier.
In a second aspect of the embodiment of the present invention, there is provided an electronic device including a first SIM card and a second SIM card, the electronic device including: a receiving module and an adjusting module; the receiving module is used for receiving a first input of a user under the condition that a first identifier and a second identifier are displayed in a system notification bar of the electronic equipment, wherein the first input is input of a target identifier by the user, and the target identifier comprises at least one of the following items: the first identification is used for indicating the first SIM card, and the second identification is used for indicating the second SIM card. The adjusting module is used for responding to the first input received by the receiving module, adjusting the application authority of the first data flow of the target SIM card to switch the network state of the electronic equipment, wherein the target SIM card is the SIM card corresponding to the target identifier.
In a third aspect of embodiments of the present invention, there is provided an electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the network switching method as described in the first aspect.
In a fourth aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the network handover method according to the first aspect.
In the embodiment of the invention, under the condition that any interface is displayed on the electronic equipment, a user can perform first input on the target identifier in the first identifier and the second identifier displayed on the system notification bar, so that the electronic equipment can adjust the application authority of the data flow of the target SIM card corresponding to the target identifier. The electronic equipment can display the first identifier and the second identifier in the system notification bar of the electronic equipment, namely, no matter which interface (i.e. any interface) the electronic equipment is currently located on, the electronic equipment always keeps displaying the first identifier and the second identifier in the system notification bar, so that a user can directly perform first input on any identifier (such as a target identifier) in the two identifiers, the electronic equipment can quickly adjust the application permission of the data flow of the corresponding SIM card, the user does not need to perform multiple inputs on the set application program, the operation of the user can be simplified, time consumption is saved, and the efficiency of adjusting the application permission of the data flow of the SIM card can be improved.
Drawings
Fig. 1 is a schematic architecture diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a network switching method according to an embodiment of the present invention;
FIG. 3 is a second schematic diagram of a network switching method according to an embodiment of the present invention;
fig. 4 is an example schematic diagram of an interface of a mobile phone according to an embodiment of the present invention;
fig. 5 is a third schematic diagram of a network switching method according to an embodiment of the present invention;
FIG. 6 is a second exemplary diagram of an interface of a mobile phone according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a network switching method according to an embodiment of the present invention;
FIG. 8 is a third exemplary diagram of an interface of a mobile phone according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a network switching method according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 12 is a second schematic diagram of an electronic device according to an embodiment of the present invention;
FIG. 13 is a third schematic diagram of an electronic device according to an embodiment of the present invention;
Fig. 14 is a schematic hardware diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first and second and the like in the description and in the claims of embodiments of the invention, are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, a first identifier and a second identifier, etc. are used to distinguish between different identifiers, and are not used to describe a particular order of identifiers.
In the description of the embodiments of the present invention, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, a plurality of elements refers to two elements or more than two elements.
The term "and/or" herein is an association relationship describing an associated object, and means that there may be three relationships, for example, a display panel and/or a backlight, and may mean: there are three cases where the display panel alone exists, the display panel and the backlight exist at the same time, and the backlight exists alone. The symbol "/" herein indicates that the associated object is or is a relationship, e.g., input/output indicates input or output.
In embodiments of the invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The embodiment of the invention provides a network switching method and electronic equipment, wherein the electronic equipment can display a first identifier and a second identifier on a system notification bar of the electronic equipment, namely, no matter which interface (i.e. any interface) the electronic equipment is currently located on, the electronic equipment always keeps displaying the first identifier and the second identifier on the system notification bar, so that a user can directly perform first input on any identifier (such as a target identifier) in the two identifiers, the electronic equipment can quickly adjust the application permission of the data flow of a corresponding SIM card, the user does not need to perform multiple inputs on a set application program, the operation of the user can be simplified, time consumption is saved, and the efficiency of adjusting the application permission of the data flow of the SIM card can be improved.
The network switching method and the electronic device provided by the embodiment of the invention can be applied to the process of switching the application permission of the data flow of the SIM card. In particular, the method can be applied to a process of switching application rights of data traffic of the SIM card by an electronic device comprising at least two SIM cards.
The electronic device in the embodiment of the invention can be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present invention is not limited specifically.
The software environment to which the network switching method provided by the embodiment of the invention is applied is described below by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, respectively: an application program layer, an application program framework layer, a system runtime layer and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third party application programs) in the android operating system.
The application framework layer is a framework of applications, and developers can develop some applications based on the application framework layer while adhering to the development principle of the framework of the applications.
The system runtime layer includes libraries (also referred to as system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of the android operating system, and belongs to the bottommost layer of the software hierarchy of the android operating system. The kernel layer provides core system services and a driver related to hardware for the android operating system based on a Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the network switching method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the network switching method may be operated based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can realize the network switching method provided by the embodiment of the invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), and the like, and the non-mobile electronic device may be a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present invention are not limited in particular.
The network switching method and the electronic device provided by the embodiment of the invention are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
In the embodiment of the invention, when a user uses the multi-card electronic equipment (namely, the electronic equipment is provided with a plurality of SIM cards), the user can realize the internet function (such as searching web pages, watching videos, playing online music and the like) through the data flow of any SIM card in the plurality of SIM cards; and, the electronic device may display a plurality of identifiers (i.e., identifiers corresponding to the SIM card), so that the user may input the identifiers to enable the data traffic of the SIM card to be turned on or off.
Under a scene, when the electronic device currently starts the data flow of a certain SIM card (for example, SIM card 1), if a user needs the electronic device to start the data flow of other SIM cards (for example, SIM card 2) so as to realize the internet function through the data flow of the SIM card 2, the user does not need to input for many times in a set application program according to a traditional mode, but can input the identification corresponding to the SIM card 2 on the interface of the electronic device so as to enable the electronic device to start the data flow of the SIM card 2, thereby realizing the switching of the SIM cards.
In another scenario, when the electronic device does not currently open the data flow of any one SIM card, if the user needs the electronic device to open the data flow of a certain SIM card (for example, SIM card 1 or SIM card 2) so as to implement the internet function through the data flow of the certain SIM card, the user does not need to input multiple times in the setting application program in a traditional manner, but can input the identifier corresponding to the certain SIM card on the interface of the electronic device, so that the electronic device opens the data flow of the certain SIM card, thereby implementing opening the data flow of the certain SIM card.
In still another scenario, when the electronic device currently opens the data traffic of a certain SIM card (for example, SIM card 1), if the user requires the electronic device to close the data traffic of the SIM card 1, so as not to implement the internet function through the data traffic of the SIM card 1, the user does not need to input multiple times in the setting application program in a conventional manner, but can input the identifier corresponding to the SIM card 1 on the interface of the electronic device, so that the electronic device closes the data traffic of the SIM card 1, thereby implementing closing the data traffic of the SIM card 1.
According to the embodiment of the invention, the identifier corresponding to the SIM card is displayed on any interface, so that the identifier corresponding to the SIM card is input, and the application permission of the data flow of the SIM card is adjusted, so that a user can adjust the switch of the data flow of the SIM card on any interface displaying the identifier corresponding to the SIM card, the operation time of the user can be saved, and the efficiency of the electronic equipment for adjusting the application permission of the data flow of the SIM card is improved.
In the embodiment of the present invention, the electronic device may include at least two SIM cards, and in the embodiment of the present invention, the network switching method is described only by taking the electronic device including the first SIM card and the second SIM card as an example, and the scheme of the embodiment of the present invention may be adopted to implement network switching for electronic devices including more than two SIM cards.
Fig. 2 shows a flowchart of a network switching method provided by an embodiment of the present invention, where the method may be applied to an electronic device having an android operating system as shown in fig. 1. As shown in fig. 2, the network switching method provided by the embodiment of the present invention may include the following steps 201 and 202.
Step 201, the electronic device receives a first input of a user in a case that a system notification bar of the electronic device displays a first identifier and a second identifier.
In the embodiment of the invention, the electronic equipment comprises a first SIM card and a second SIM card. The first input is input of a target identifier by a user, and the target identifier comprises at least one of the following components: the first identification is used for indicating the first SIM card, and the second identification is used for indicating the second SIM card.
The system notification bar may be a system task bar or a message status bar (e.g., a drop-down status bar or a slide-up status bar), and the like. Displaying the first and second identifiers in the system notification bar may be understood as: the electronic device may still remain displayed with the first and second identifiers in the case of any interface displayed, such as when the user triggers the electronic device to switch from one interface to another, the electronic device still displaying both identifiers in the system notification bar or the drop-down status bar.
Optionally, in an embodiment of the present invention, the above arbitrary interface may be: a lock screen interface, a desktop or an interface for any application, etc. For example, the interface of the application may be a video play interface, a chat interface, a game interface, or the like.
Optionally, in the embodiment of the present invention, each of the first identifier and the second identifier is used to indicate a state of an application right of a data flow corresponding to one SIM card (i.e. open the data flow or close the data flow).
Optionally, in the embodiment of the present invention, the application permission of the data traffic of the SIM card may be any one of the following: allowing the electronic device application data traffic and disabling the electronic device application data traffic. Wherein allowing the electronic device to apply the data traffic can be understood as: the user can realize the internet function through the data flow of the SIM card; disabling the electronic device from applying data traffic can be understood as: the user cannot realize the internet function through the data flow of the SIM card.
Optionally, in the embodiment of the present invention, the first input may be a click input of a user on one of the first identifier and the second identifier, or the first input may be an input of a user on the first identifier and the second identifier. The first input as described above may be a sliding input by the user from one of the first and second identifications to the other identification, etc.
Optionally, in the embodiment of the present invention, the first input may be a selection input (for example, a click input or a slide input) of the target identifier by the user, so that the electronic device may adjust an application right of the first data flow: when the application permission of the first data flow of the target SIM card corresponding to the target identifier is the prohibition of the electronic equipment to apply the first data flow, adjusting the permission of the electronic equipment to apply the first data flow; and when the application permission of the first data flow of the target SIM card corresponding to the target identifier is permission of the first data flow application of the electronic equipment, adjusting the permission to prohibit the first data flow application of the electronic equipment.
Optionally, in the embodiment of the present invention, the first input may be a selection input of the target identifier and another identifier (for example, the first identifier in the embodiment described below) by the user, so that the electronic device may adjust an application permission of the data traffic of the SIM card corresponding to the target identifier and the other identifier, that is, a switch between the application permission of the data traffic of the SIM card corresponding to the target identifier and the application permission of the data traffic of the SIM card corresponding to the other identifier, so as to implement SIM card switching.
Alternatively, in the embodiment of the present invention, the first identifier and the target identifier may be different identifiers.
It can be understood that when the application authority of the data flow of the SIM card corresponding to the target identifier is the data flow of the closed SIM card, and the application authority of the data flow of the SIM card corresponding to the first identifier is the data flow of the open SIM card, the application authority of the data flow of the SIM card corresponding to the target identifier is switched to the data flow of the open SIM card, and the application authority of the data flow of the SIM card corresponding to the first identifier is switched to the data flow of the closed SIM card, so as to realize the SIM card switching; or when the application permission of the data flow of the SIM card corresponding to the target identifier is the data flow of the starting SIM card, and the application permission of the data flow of the SIM card corresponding to the first identifier is the data flow of the closing SIM card, switching the application permission of the data flow of the SIM card corresponding to the target identifier into the data flow of the closing SIM card, and switching the application permission of the data flow of the SIM card corresponding to the first identifier into the data flow of the starting SIM card, so as to realize the switching of the SIM card.
It should be noted that, the application permission of adjusting the data traffic of the SIM card to enable or disable the application data traffic of the electronic device may be understood as: the data traffic of the SIM card is turned on or off.
Step 202, the electronic device responds to the first input to adjust the application authority of the first data flow of the target SIM card, so as to switch the network state of the electronic device.
In the embodiment of the invention, the target SIM card is the SIM card corresponding to the target identifier.
Optionally, in the embodiment of the present invention, in response to the first input, the application permission of the electronic device for the first data flow in the target SIM card is: when the electronic equipment is forbidden to apply the first data flow, adjusting the application authority of the first data flow of the target SIM card to be: allowing the electronic device to apply the first data traffic; or, the application authority of the first data flow of the target SIM card is as follows: when the electronic equipment is allowed to apply the first data traffic, adjusting the application authority of the first data traffic of the target SIM card to be: the electronic device is prohibited from applying the first data traffic.
Optionally, in the embodiment of the present invention, in response to the first input, the application permission of the electronic device for the first data flow in the target SIM card is: the electronic equipment is prohibited from applying the first data traffic, and the application authority of the second data traffic of the first SIM card is as follows: when the electronic equipment is allowed to apply the second data traffic, the application authority of the first data traffic of the target SIM card is adjusted to be: allowing the electronic device to apply the first data traffic and adjusting the application authority of the second data traffic of the first SIM card to: disabling the electronic device from applying the second data traffic; or, the application authority of the first data flow of the target SIM card is as follows: the application rights for allowing the electronic device to apply the first data traffic and the second data traffic of the first SIM card are: when the electronic equipment is forbidden to apply the second data traffic, adjusting the application authority of the first data traffic of the target SIM card to be: the electronic equipment is forbidden to apply the first data flow, and the application authority of the second data flow of the first SIM card is adjusted to be: the electronic device is allowed to apply the second data traffic.
It should be noted that, the application authority of the data flow in the SIM card is: allowing the electronic equipment to apply the data flow of the SIM card, wherein the network state of the SIM card is a network connection state; the application authority of the data flow of the SIM card is as follows: under the condition that the electronic equipment is forbidden to apply the data flow of the SIM card, the network state of the SIM card is a network disconnection state.
Optionally, in the embodiment of the present invention, when the target SIM card is the first SIM card or the second SIM card and the application permission of the data flow (i.e., the first data flow) of the target SIM card is permission of the electronic device to apply the first data flow, the electronic device may adjust, according to the first input, the application permission of the first data flow to prohibit the electronic device from applying the first data flow, so as to switch the network state of the electronic device from the network connection state to the network disconnection state. Or when the target SIM card is the first SIM card or the second SIM card and the application authority of the data flow (i.e. the first data flow) of the target SIM card is the first data flow forbidden, the electronic device may adjust the application authority of the first data flow according to the first input to allow the electronic device to apply the first data flow, so as to switch the network state of the electronic device from the network disconnected state to the network connected state. Alternatively, when the target SIM card is a first SIM card and a second SIM card, and the application authority of the data flow of one SIM card (for example, the first SIM card) is an application authority that allows the electronic device to apply the data flow of the one SIM card, and the application authority of the data flow of the other SIM card (for example, the second SIM card) is an application authority that prohibits the electronic device from applying the data flow of the other SIM card, the electronic device may adjust the application authority of the data flow of the one SIM card to prohibit the electronic device from applying the data flow of the one SIM card, and adjust the application authority of the data flow of the other SIM card to allow the electronic device to apply the data flow of the other SIM card, so as to switch the network state of the electronic device from the network connection state corresponding to the one SIM card (i.e., network connection is performed through the one SIM card) to the network connection state corresponding to the other SIM card (i.e., network connection is performed through the other SIM card).
The embodiment of the invention provides a network switching method, wherein under the condition that any interface is displayed on electronic equipment, a user can perform first input on a target identifier in a first identifier and a second identifier displayed on a system notification bar, so that the electronic equipment can adjust the application authority of the data flow of a target SIM card corresponding to the target identifier. The electronic equipment can display the first identifier and the second identifier in the system notification bar of the electronic equipment, namely, no matter which interface (i.e. any interface) the electronic equipment is currently located on, the electronic equipment always keeps displaying the first identifier and the second identifier in the system notification bar, so that a user can directly perform first input on any identifier (such as a target identifier) in the at least two identifiers, the electronic equipment can quickly adjust the application permission of the data flow of the corresponding SIM card, the user does not need to perform multiple inputs on the set application program, the operation of the user can be simplified, time consumption is saved, and the efficiency of adjusting the application permission of the data flow of the SIM card can be improved.
Alternatively, in the embodiment of the present invention, the above step 202 may be specifically implemented by the following step 2021.
In step 2021, the electronic device updates the display positions of the first identifier and the second identifier, and adjusts the application authority of the first data flow of the target SIM card.
Optionally, in the embodiment of the present invention, the electronic device may update the display position of the first identifier, update the display position of the second identifier, or update the display positions of the first identifier and the second identifier at the same time according to the first input.
Optionally, in the embodiment of the present invention, when the target identifier is a first identifier and the application permission of the data flow of the first SIM card corresponding to the first identifier is to prohibit the electronic device from applying the data flow of the first SIM card, the electronic device may update the display position of the first identifier according to the first input.
Optionally, in the embodiment of the present invention, when the target identifier is a second identifier and the application permission of the data flow of the second SIM card corresponding to the second identifier is to prohibit the electronic device from applying the data flow of the second SIM card, the electronic device may update the display position of the second identifier according to the first input.
Optionally, in the embodiment of the present invention, the display positions of the first identifier and the second identifier may be updated simultaneously.
It should be noted that updating the display position of the first identifier (or the second identifier) may be understood as: the electronic device may update the first identifier (or the second identifier) from an initial display position to be displayed at a first preset position in a system notification bar, where the first preset position is a position for displaying an identifier of a specific type of SIM card, and an application authority of data traffic of the specific type of SIM card is data traffic that allows the electronic device to apply the SIM card. Updating the display positions of the first and second identifiers can be understood as: the first identifier is updated to be displayed at the initial display position of the second identifier, and the second identifier is updated to be displayed at the initial display position of the first identifier (i.e., the display positions of the first identifier and the second identifier are swapped).
Optionally, in an embodiment of the present invention, the system notification bar may include two target display positions, where the two target display positions are used to display the first identifier and the second identifier. Wherein each of the two target display positions is used for displaying an identifier.
Optionally, in the embodiment of the present invention, if the target identifier is a first identifier, and the first identifier is located at a second display position of the two target display positions, and the second identifier is located at a first display position of the two target display positions, and the application permission of the first data flow is to prohibit the electronic device from applying the first data flow, the electronic device may update the display positions of the first identifier and the second identifier according to the first input.
Optionally, in the embodiment of the present invention, if the application permission of the first data traffic is prohibiting the electronic device from applying the first data traffic, the electronic device may update the display positions of the first identifier and the second identifier according to the first input, where the target identifier is the second identifier, and the second identifier is located at the second display position of the two target display positions, and the first identifier is located at the first display position of the two target display positions.
Optionally, in an embodiment of the present invention, the first input is a user selection input of a target identifier. Referring to fig. 2, as shown in fig. 3, before "adjusting the application right of the first data traffic of the target SIM card" in the above step 202, the network switching method provided by the embodiment of the present invention further includes the following step 301, and the above step 202 may be implemented by the following step 202 a.
Step 301, the electronic device detects an application right of the first data flow in response to the first input, and adjusts the application right of the first data flow of the target SIM card.
In step 202a, when the application permission of the first data flow is detected to be permission of the electronic device to apply the first data flow, the application permission of the first data flow is adjusted to be prohibition of the electronic device to apply the first data flow.
Optionally, in the embodiment of the present invention, the electronic device may close the data interface corresponding to the target SIM card, so that the electronic device cannot apply the first data flow, that is, cannot implement the internet surfing function through the first data flow.
An electronic device is taken as an example of a mobile phone. As shown in fig. 4 (a), a dual card handset (e.g., including SIM card 1 and SIM card 2) displays a desktop 10a and a system notification bar 10b, the system notification bar 10b displays a first identifier (e.g., identifier 11), a second identifier (identifier 12), and other identifiers (e.g., time identifier and power identifier), the identifier 11 corresponds to a target SIM card (i.e., SIM card 1), the identifier 12 corresponds to a first SIM card (i.e., SIM card 2), and the data traffic of SIM card 1 is in an on state (indicated by line filled in fig. 4 (a)), and the data traffic of SIM card 2 is in an off state (indicated by no filled in fig. 4 (a)). After the user performs the first input (i.e. clicks on the input) on the identifier 11, as shown in (B) in fig. 4, the dual-card mobile phone may close the data interface of the SIM card 1 corresponding to the identifier 11 (i.e. adjust the application authority of the data traffic of the SIM card 1 to the data traffic of the SIM card 1 is prohibited for the electronic device), and prompt the user that the network state of the SIM card 1 is the network disconnection state in a preset manner (no filling indication in (B) in fig. 4).
Alternatively, in an embodiment of the present invention, as shown in fig. 5 in conjunction with fig. 2, the above step 202 may be implemented by the following step 202 b.
In step 202b, when the application permission of the first data flow is detected to be the prohibition of the electronic device to apply the first data flow, the application permission of the first data flow is adjusted to be the permission of the electronic device to apply the first data flow.
Optionally, in the embodiment of the present invention, the electronic device may enable the electronic device to apply the first data flow by opening a data interface corresponding to the target SIM card, that is, may implement the internet surfing function through the first data flow.
As shown in fig. 6 (a), at least two identifiers (e.g., identifier 21 and identifier 22) are displayed in a floating manner on the system notification bar 20 of the dual-card mobile phone, where the identifier 21 corresponds to the target SIM card (i.e., SIM card 1), the identifier 22 corresponds to the first SIM card (i.e., SIM card 2), and the data traffic of the SIM card 1 and the data traffic of the SIM card 2 are both in an off state (indicated by no filling in fig. 6 (a)); after the user performs the first input (i.e. clicks on the input) on the identifier 21, as shown in (B) in fig. 6, the dual-card mobile phone may open the data interface of the SIM card 1 corresponding to the identifier 21 (i.e. adjust the application authority of the data traffic of the SIM card 1 to allow the electronic device to apply the data traffic of the SIM card 1), and prompt the user that the network state of the SIM card 1 is the network connection state in a preset manner (indicated by line filling in (B) in fig. 6).
In the embodiment of the invention, the user can directly input the target identifier, so that the electronic equipment can quickly detect the application permission of the first data flow of the target SIM card corresponding to the target identifier and adjust the application permission of the first data flow of the target SIM card without the need of the user to input the set application program for multiple times, thereby simplifying the operation of the user, saving time and improving the efficiency of adjusting the application permission of the data flow of the SIM card.
Optionally, in an embodiment of the present invention, the target identifier includes a first identifier and a second identifier. Referring to fig. 2, as shown in fig. 7, before "adjusting the application right of the first data traffic of the target SIM card" in the above step 202, the network switching method provided by the embodiment of the present invention further includes the following step 401, and the above step 202 may be implemented by the following step 202 c.
Step 401, the electronic device detects an application right of a second data flow of the first SIM card in response to the first input, and detects the application right of the first data flow.
In step 202c, when the application authority of the second data flow is the permission of the electronic device to apply the second data flow and the application authority of the first data flow is the prohibition of the electronic device to apply the first data flow, the electronic device updates the display positions of the first identifier and the second identifier, adjusts the application authority of the second data flow to prohibit the electronic device from applying the second data flow, and adjusts the application authority of the first data flow to permit the electronic device to apply the first data flow.
Optionally, in the embodiment of the present invention, the electronic device may close the data interface corresponding to the first SIM card and open the data interface corresponding to the target SIM card, so that the electronic device does not apply the second data traffic, but applies the first data traffic, and may implement the internet function through the first data traffic.
As shown in fig. 8 (a), at least two identifiers (e.g., an identifier 31 and an identifier 32) are displayed in a floating manner on the system notification bar 30 of the dual-card mobile phone, the identifier 31 corresponds to the target SIM card (i.e., the SIM card 1), the identifier 32 corresponds to the first SIM card (i.e., the SIM card 2), and the data traffic of the SIM card 1 is in an off state (indicated by no filling in fig. 8 (a)), and the data traffic of the SIM card 2 is in an on state (indicated by line filling in fig. 8 (a)); after the user performs the first input (i.e., sliding input) on the identifier 31 and the identifier 32, as shown in (B) in fig. 8, the dual-card mobile phone may start the data interface of the SIM card 1 corresponding to the identifier 31 (i.e., adjust the application authority of the data traffic of the SIM card 1 to the permission of the electronic device to apply the data traffic of the SIM card 1), close the data interface of the SIM card 2 corresponding to the identifier 32 (i.e., adjust the application authority of the data traffic of the SIM card 2 to the permission of the electronic device to apply the data traffic of the SIM card 2), and prompt the user that the data traffic of the SIM card 1 is in an on state, the data traffic of the SIM card 2 is in an off state, and update the display positions of the identifier 31 and the identifier 32, i.e., exchange the display positions of the identifier 31 and the identifier 32, and display the application authority of the data traffic of the SIM card as the identifier 31 that allows the electronic device to apply the data traffic of the SIM card in the first position.
Alternatively, in an embodiment of the present invention, as shown in fig. 9 in conjunction with fig. 2, the above step 202 may be implemented by the following step 202 d.
In step 202d, when the application permission of the second data flow is to prohibit the electronic device from applying the second data flow and the application permission of the first data flow is to allow the electronic device to apply the first data flow, the electronic device updates the display positions of the first identifier and the second identifier, adjusts the application permission of the second data flow to allow the electronic device to apply the second data flow, and adjusts the application permission of the first data flow to prohibit the electronic device from applying the first data flow.
Optionally, in the embodiment of the present invention, the electronic device may open the data interface corresponding to the first SIM card (i.e., the network state corresponding to the first SIM card is a connection state), and close the data interface corresponding to the target SIM card (i.e., the network state corresponding to the target SIM card is a disconnection state), so that the electronic device may apply the second data traffic, and may implement the internet function through the second data traffic without applying the first data traffic.
As shown in fig. 10 (a), at least two identifiers (e.g., an identifier 41 and an identifier 42) are displayed in a floating manner on the system notification bar 40 of the dual-card mobile phone, the identifier 41 corresponds to the target SIM card (i.e., the SIM card 1), the identifier 42 corresponds to the first SIM card (i.e., the SIM card 2), and the data traffic of the SIM card 1 is in an on state (indicated by the line filling in fig. 10 (a)), and the data traffic of the SIM card 2 is in an off state (indicated by no filling in fig. 10 (a)); after the user performs the first input (i.e., sliding input) on the identifier 41 and the identifier 42, as shown in (B) in fig. 10, the dual-card mobile phone may close the data interface of the SIM card 1 corresponding to the identifier 41 (i.e., adjust the application authority of the data traffic of the SIM card 1 to the electronic device to prohibit the application of the data traffic of the SIM card 1), open the data interface of the SIM card 2 corresponding to the identifier 42 (i.e., adjust the application authority of the data traffic of the SIM card 2 to the electronic device to allow the application of the data traffic of the SIM card 2), and prompt the user that the data traffic of the SIM card 1 is in the off state, the data traffic of the SIM card 2 is in the on state, and update the display positions of the identifier 41 and the identifier 42, i.e., exchange the display positions of the identifier 41 and the identifier 42, display the application authority of the data traffic of the SIM card to allow the electronic device to apply the data traffic of the SIM card in the first position.
In the embodiment of the invention, the user can directly input the target identifier and the first identifier, so that the electronic equipment can quickly detect the application permission of the first data flow of the target SIM card corresponding to the target identifier and the application permission of the second data flow of the first SIM card corresponding to the first identifier, and adjust the application permission of the first data flow of the target SIM card and the application permission of the second data flow of the first SIM card without the need of the user to input the set application program for multiple times, thereby simplifying the operation of the user, saving time and improving the efficiency of adjusting the application permission of the data flow of the SIM card.
Optionally, in the embodiment of the present invention, after the step 202, the network switching method provided in the embodiment of the present invention further includes the following step 501.
Step 501, the application authority of the data traffic on the third SIM card is: under the condition that the electronic equipment is allowed to apply the data flow of the third SIM card, the electronic equipment adopts a preset mode to update the display effect of the third identifier so as to prompt the user with the first information.
In the embodiment of the present invention, the third SIM card is a first SIM card or a second SIM card, and the third identifier is an identifier corresponding to the third SIM card; the first information includes any one of the following: the remaining amount of the data flow of the third SIM card and the consumption of the data flow of the third SIM card in the preset duration.
It will be appreciated that the electronic device may indicate to the user that the data traffic of the SIM card corresponding to the identifier has been adjusted to an on state (i.e. the application authority of the data traffic of the SIM card corresponding to the third identifier is adjusted to allow the electronic device to apply the data traffic) by changing the color of one identifier (e.g. the third identifier), and the remaining amount of the data traffic of the SIM card corresponding to the identifier or the consumption amount within a certain period of time.
It should be noted that, the electronic device may also execute the step 501 after executing the step 202a, the step 202b, the step 202c, or the step 202d, which may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present invention.
Optionally, in the embodiment of the present invention, different color values correspond to different remaining amount ranges or consumption ranges, and the electronic device may adjust the identifier to different colors to indicate the remaining degree or consumption degree of the data traffic.
Alternatively, in the embodiment of the present invention, the above step 501 may be implemented by the following step 501a, step 501b or step 501 c.
In step 501a, the application authority of the data flow of the third SIM card among the two SIM cards is: and under the condition that the electronic equipment is allowed to apply the data flow of the third SIM card and the first information is equal to the first preset threshold value, the electronic equipment adjusts the color value of the third mark to the first preset color value.
In the embodiment of the invention, the electronic device may store (for example, store correspondingly in a list form) at least one remaining amount range (i.e., a range determined by a plurality of preset thresholds) and at least one color value in the electronic device in advance, where one remaining amount range (or one consumption range) corresponds to one color value; therefore, the electronic equipment can acquire the residual quantity or consumption of the data flow of the SIM card in the on state in real time, and compare the residual quantity (or consumption) with a plurality of preset thresholds to determine the residual quantity range (or a consumption range) to which the residual quantity (or consumption) belongs, so that the color value of the identifier corresponding to the SIM card is adjusted to the color value corresponding to the residual quantity range to which the residual quantity (or consumption) belongs.
For example, if the first information is the remaining amount of the data traffic of the third SIM card (for example, the remaining amount of the data traffic of the third SIM card is 0), the dual-card mobile phone may determine a size relationship between the first information and a first preset threshold (for example, 0), so as to adjust the color of the third identifier in the dual-card mobile phone display interface to a color (for example, red) corresponding to the first preset color value when the first information is equal to the first preset threshold.
In step 501b, the application authority of the data flow of the third SIM card among the two SIM cards is: and allowing the electronic equipment to apply the data flow of the third SIM card, and adjusting the color value of the third mark to a second preset color value by the electronic equipment under the condition that the first information is larger than the first preset threshold value and smaller than or equal to the second preset threshold value.
In the embodiment of the present invention, the first preset threshold is smaller than the second preset threshold.
For example, if the first information is the remaining amount of the data traffic of the third SIM card (for example, the remaining amount of the data traffic of the third SIM card is 10%), the dual-card mobile phone may determine a size relationship between the first information and a first preset threshold (for example, 0) and a size relationship between the first information and a second preset threshold (for example, 20%), so as to adjust the color of the third identifier in the display interface of the dual-card mobile phone to a color (for example, yellow) corresponding to the second preset color value when the first information is greater than the first preset threshold and the first information is less than or equal to the second preset threshold.
In step 501c, the application authority of the data flow of the third SIM card among the two SIM cards is: and under the condition that the electronic equipment is allowed to apply the data flow of the third SIM card and the first information is larger than the second preset threshold value, the electronic equipment adjusts the color value of the third mark to be a third preset color value.
For example, if the first information is the remaining amount of the data traffic of the third SIM card (for example, the remaining amount of the data traffic of the third SIM card is 50%), the dual-card mobile phone may determine a size relationship between the first information and a second preset threshold (for example, 20%), so as to adjust the color of the third identifier in the dual-card mobile phone display interface to a color (for example, blue) corresponding to the third preset color value when the first information is greater than the second preset threshold.
Optionally, in an embodiment of the present invention, any two of the first preset color value, the second preset color value, and the third preset color value are unequal.
In the embodiment of the invention, aiming at different residual amounts or consumption amounts, the electronic equipment can effectively prompt the residual amounts or consumption amounts to a user by adjusting the color values of the identifiers corresponding to the SIM card to different color values, so that the user can know the use condition of the data flow in time, and further, the excessive consumption of the data flow by the electronic equipment can be avoided.
Optionally, in the embodiment of the present invention, the "update the display effect of the third identifier by using the preset manner" in the above step 501 may be implemented by the following step 601.
Step 601, an application authority of a data flow of a third SIM card in the at least two SIM cards is: under the condition that the electronic equipment is allowed to apply the data flow of the third SIM card, the electronic equipment updates the display effect of K columnar graphs in the L columnar graphs in a color adjustment mode according to the network signal intensity corresponding to the third SIM card.
It will be appreciated that the electronic device may indicate to the user the network signal strength of the SIM card corresponding to one identifier (e.g. the third identifier) by changing the color of a portion of the bar graph corresponding to the identifier, i.e. the different network signal strength ranges of the SIM card correspond to different numbers of color adjustments (i.e. the number of color-adjusted bar graphs in all bar graphs that make up the identifier). For example, when the network signal strength of the SIM card is strongest, the number of color adjustments is 0 (i.e., the colors of all the columnar patterns constituting the logo are not adjusted); when the network signal intensity of the SIM card is the weakest, the number of the color adjustment is the number of all columnar patterns forming the mark (namely, the color of the columnar patterns forming the mark is adjusted).
Optionally, in the embodiment of the present invention, when the network signal strength of the third SIM card is strongest (i.e., the network signal strength is greater than or equal to the first signal strength), the electronic device may update the colors of all the L columnar patterns without using a color adjustment manner; when the network signal intensity of the third SIM card is the weakest (namely, the network signal intensity is smaller than or equal to the second signal intensity), updating the colors of all columnar patterns in the L columnar patterns in a color adjustment mode; when the network signal intensity of the third SIM card is not strongest or weakest (namely, the network signal intensity is smaller than the first signal intensity and larger than the second signal intensity), the color of part of the L columnar patterns is updated by adopting a color adjustment mode.
In the embodiment of the invention, aiming at different signal intensities, the electronic equipment can adjust the color of part of the L columnar patterns forming the third mark so as to effectively prompt the signal intensity of the SIM card to the user, thereby enabling the user to know the signal intensity of the SIM card in time.
Optionally, in the embodiment of the present invention, different display effects may be further used to represent a network state of the SIM card, where, if the application permission of the first SIM card indicated by the first identifier is that the electronic device is prohibited from applying the data traffic of the first SIM card, the first identifier is displayed in red; when the application permission of the first SIM card indicated by the first identifier is data traffic of the first SIM card, which is allowed to be applied by the electronic equipment, the first identifier is displayed as green; correspondingly, when the application right of the data flow of the first SIM card is adjusted, the display effect of the first identifier corresponding to the first SIM card can be updated correspondingly.
Optionally, in an embodiment of the present invention, each of the first identifier and the second identifier is formed by L columnar patterns, where L is an integer greater than 1. After the step 202, the network switching method provided in the embodiment of the present invention further includes the following step 701.
And 701, if the application permission of the data flow of the fourth SIM card is that the electronic equipment is allowed to apply the data flow of the fourth SIM card, the electronic equipment updates the display effect of the K columnar graphs in a color adjustment mode according to the network signal strength corresponding to the fourth SIM card.
In the embodiment of the invention, the fourth SIM card is the first SIM card or the second SIM card, the K columnar patterns are columnar patterns in the L columnar patterns of the identifier corresponding to the fourth SIM card, and K is a positive integer less than or equal to L.
It should be noted that, for the method of updating the display effect of the K columnar graphics by the electronic device in the above step 701 in the color adjustment manner, reference may be made to the related description in the above step 601, which is not repeated here.
In the embodiment of the invention, under the condition that the application authority of one of the first SIM card and the second SIM card is the data flow of the one SIM card which is allowed to be applied by the electronic equipment, the electronic equipment can update the display effect of the identification of the one SIM card in a color adjustment mode so as to effectively prompt the network state and the signal strength of the SIM card to a user, thereby enabling the user to know the network state and the signal strength of the SIM card in time.
Fig. 11 shows a schematic diagram of a possible structure of an electronic device involved in an embodiment of the present invention. The electronic device includes a first SIM card and a second SIM card. As shown in fig. 11, the electronic device 70 may include: a receiving module 71 and an adjusting module 72.
The receiving module 71 is configured to receive, when the system notification bar of the electronic device displays the first identifier and the second identifier, a first input of a user, where the first input is an input of a target identifier by the user, and the target identifier includes at least one of: the first identification is used for indicating the first SIM card, and the second identification is used for indicating the second SIM card. The adjusting module 72 is configured to adjust, in response to the first input received by the receiving module 71, an application right of the first data flow of the target SIM card to switch a network state of the electronic device, where the target SIM card is a SIM card corresponding to the target identifier.
In one possible implementation, the target identifier is the first identifier or the second identifier. Referring to fig. 11, as shown in fig. 12, the electronic device 70 provided in the embodiment of the present invention further includes: a detection module 73. The detecting module 73 is configured to detect the application right of the first data traffic of the target SIM card before the adjusting module 72 adjusts the application right of the first data traffic. The adjusting module 72 is specifically configured to, when the detecting module 73 detects that the application permission of the first data flow is permission for the electronic device to apply the first data flow, adjust the application permission of the first data flow to prohibit the electronic device from applying the first data flow; or, in the case that the detection module 73 detects that the application authority of the first data flow is the application authority for prohibiting the electronic device from applying the first data flow, the application authority for adjusting the first data flow is the application authority for permitting the electronic device to apply the first data flow.
In one possible implementation manner, the adjusting module 72 is specifically configured to update the display positions of the first identifier and the second identifier, and adjust the application authority of the first data traffic of the target SIM card.
In one possible implementation, the target identifier includes a first identifier and a second identifier. As shown in fig. 12, the electronic device 70 provided in the embodiment of the present invention further includes: a detection module 73. The detecting module 73 is further configured to detect an application right of the second data traffic of the first SIM card and detect an application right of the first data traffic before the adjusting module 72 adjusts the application right of the first data traffic of the target SIM card. The adjusting module 72 is specifically configured to update the display positions of the first identifier and the second identifier, adjust the application authority of the second data flow to prohibit the electronic device from applying the second data flow, and adjust the application authority of the first data flow to permit the electronic device to apply the first data flow when the application authority of the second data flow is permission of the electronic device to apply the second data flow and the application authority of the first data flow is permission of the electronic device to apply the first data flow; or updating the display positions of the first identifier and the second identifier when the application permission of the second data flow is the permission of the electronic device to apply the second data flow and the application permission of the first data flow is the permission of the electronic device to apply the first data flow, adjusting the application permission of the second data flow to allow the electronic device to apply the second data flow, and adjusting the application permission of the first data flow to prohibit the electronic device to apply the first data flow.
In one possible implementation manner, in conjunction with fig. 11, as shown in fig. 13, an electronic device 70 provided in an embodiment of the present invention further includes: the module 74 is updated. The updating module 74 is configured to adjust an application right of the first data flow of the target SIM card to switch a network state of the electronic device, and then the application right of the data flow of the third SIM card is: under the condition that the electronic equipment is allowed to apply the data flow of the third SIM card, updating the display effect of the third identifier in a preset mode so as to prompt the user for first information; the third SIM card is a first SIM card or a second SIM card, and the third identifier is an identifier corresponding to the third SIM card; the first information includes any one of: the remaining amount of the data flow of the third SIM card or the consumption amount of the data flow of the third SIM card within a preset duration.
In a possible implementation manner, the updating module 74 is specifically configured to adjust the color value of the third identifier to the first preset color value if the first information is equal to the first preset threshold value; or, when the first information is greater than the first preset threshold value and less than or equal to the second preset threshold value, adjusting the color value of the third mark to be a second preset color value, wherein the first preset threshold value is less than the second preset threshold value; or, if the first information is greater than the second preset threshold value, adjusting the color value of the third mark to be a third preset color value.
In one possible implementation manner, each of the first identifier and the second identifier is composed of L columnar patterns, where L is an integer greater than 1. As shown in fig. 13, the electronic device 70 provided in the embodiment of the present invention further includes: the module 74 is updated. The updating module 74 is configured to update, after adjusting an application right of the first data flow of the target SIM card to switch a network state of the electronic device, a display effect of K columnar graphs according to a network signal strength corresponding to the fourth SIM card if the application right of the data flow of the fourth SIM card is a data flow allowing the electronic device to apply the fourth SIM card, where the fourth SIM card is the first SIM card or the second SIM card, the K columnar graphs are columnar graphs in L columnar graphs of an identifier corresponding to the fourth SIM card, and K is a positive integer less than or equal to L.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiment, and detailed descriptions thereof are omitted to avoid repetition.
The embodiment of the invention provides electronic equipment, which can display a first identifier and a second identifier on a system notification bar of the electronic equipment, namely, no matter which interface (i.e. any interface) the electronic equipment is currently located on, the electronic equipment always keeps displaying the first identifier and the second identifier on the system notification bar, so that a user can directly perform first input on any identifier (such as a target identifier) in at least two identifiers, the electronic equipment can quickly adjust the application permission of the data flow of a corresponding SIM card, the user does not need to perform multiple inputs on a set application program, the operation of the user can be simplified, time consumption is saved, and the efficiency of adjusting the application permission of the data flow of the SIM card can be improved.
Fig. 14 is a hardware schematic of an electronic device implementing various embodiments of the invention. As shown in fig. 14, the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111.
It should be noted that the electronic device structure shown in fig. 14 is not limited to the electronic device, and the electronic device may include more or less components than those shown in fig. 14, or may combine some components, or may have different arrangements of components, as will be appreciated by those skilled in the art. In the embodiment of the invention, the electronic equipment comprises, 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 user input unit 107 is configured to receive, when the system notification bar of the electronic device displays the first identifier and the second identifier, a first input of a user, where the first input is an input of a target identifier by the user, and the target identifier includes at least one of: the first identification is used for indicating the first SIM card, and the second identification is used for indicating the second SIM card.
The processor 110 is configured to adjust an application right of a first data flow of a target SIM card in response to the first input, so as to switch a network state of the electronic device, where the target SIM card is a SIM card corresponding to the target identifier.
The embodiment of the invention provides electronic equipment, which can display a first identifier and a second identifier on a system notification bar of the electronic equipment, namely, no matter which interface (i.e. any interface) the electronic equipment is currently located on, the electronic equipment always keeps displaying the first identifier and the second identifier on the system notification bar, so that a user can directly perform first input on any identifier (such as a target identifier) in at least two identifiers, the electronic equipment can quickly adjust the application permission of the data flow of a corresponding SIM card, the user does not need to perform multiple inputs on a set application program, the operation of the user can be simplified, time consumption is saved, and the efficiency of adjusting the application permission of the data flow of the SIM card can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be configured to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the received downlink data with the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 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 101 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 102, such as helping the user to send and receive e-mail, browse web pages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 100. The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used for receiving an audio or video signal. The input unit 104 may include a graphics processor (graphics processing unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. Microphone 1042 may receive sound and be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the electronic device 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 105 may further 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 are not described herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 14, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 108 is an interface to which an external device is connected to the electronic apparatus 100. For example, the external devices may include a wired or wireless headset port, an external power (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 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may 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 110 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 running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may also include a power supply 111 (e.g., a battery) for powering the various components, and optionally the power supply 111 may be logically connected to the processor 110 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 100 includes some functional modules, which are not shown, and will not be described herein.
Optionally, the embodiment of the present invention further provides an electronic device, including a processor 110 shown in fig. 14, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program when executed by the processor 110 implements the processes of the foregoing method embodiment, and the same technical effects are achieved, so that repetition is avoided and redundant description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here. Wherein the computer readable storage medium is selected from read-only memory (ROM), random access memory (random access memory, RAM), magnetic disk or 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (9)

1. A network switching method applied to an electronic device, wherein the electronic device comprises a first Subscriber Identity Module (SIM) card and a second SIM card, the method comprising:
receiving a first input of a user under the condition that a system notification bar of the electronic equipment displays a first identifier and a second identifier, wherein the first input is input of a target identifier by the user, and the target identifier comprises at least one of the following items: the first identifier is used for indicating the first SIM card, and the second identifier is used for indicating the second SIM card;
responding to the first input, adjusting the application authority of the first data flow of a target SIM card to switch the network state of the electronic equipment, wherein the target SIM card is the SIM card corresponding to the target identifier;
The adjusting the application authority of the first data flow of the target SIM card comprises the following steps:
updating the display positions of the first identifier and the second identifier, and adjusting the application authority of the first data flow of the target SIM card.
2. The method of claim 1, wherein the target identifier is the first identifier or the second identifier;
before the adjusting the application authority of the first data flow of the target SIM card, the method further comprises:
detecting the application authority of the first data flow;
the adjusting the application authority of the first data flow of the target SIM card comprises the following steps:
when the application permission of the first data flow is detected to be permission of the electronic equipment to apply the first data flow, the application permission of the first data flow is regulated to be prohibition of the electronic equipment to apply the first data flow;
and under the condition that the application permission of the first data flow is detected to be the prohibition of the electronic equipment to apply the first data flow, adjusting the application permission of the first data flow to be the permission of the electronic equipment to apply the first data flow.
3. The method of claim 1, wherein the target identifier comprises the first identifier and the second identifier;
Before the adjusting the application authority of the first data flow of the target SIM card, the method further comprises:
detecting the application permission of the second data flow of the first SIM card, and detecting the application permission of the first data flow;
the adjusting the application authority of the first data flow of the target SIM card comprises the following steps:
updating the display positions of the first identifier and the second identifier, adjusting the application authority of the second data traffic to prohibit the electronic device from applying the second data traffic, and adjusting the application authority of the first data traffic to allow the electronic device to apply the first data traffic when the application authority of the second data traffic is the application authority which allows the electronic device to apply the second data traffic and the application authority of the first data traffic is the application authority which prohibits the electronic device from applying the first data traffic;
and under the condition that the application authority of the second data flow is the application authority which prohibits the electronic equipment from applying the second data flow and the application authority of the first data flow is the application authority which allows the electronic equipment to apply the first data flow, updating the display positions of the first identifier and the second identifier, and adjusting the application authority of the second data flow is as follows: and allowing the electronic equipment to apply the second data flow, and adjusting the application authority of the first data flow to prohibit the electronic equipment from applying the first data flow.
4. A method according to any one of claims 1 to 3, wherein after said adjusting the application rights of the first data traffic of the target SIM card to switch the network state of the electronic device, the method further comprises:
the application authority of the data flow of the third SIM card is as follows: under the condition that the electronic equipment is allowed to apply the data flow of the third SIM card, updating the display effect of the third identifier in a preset mode so as to prompt a user for first information;
the third SIM card is the first SIM card or the second SIM card, and the third identifier is an identifier corresponding to the third SIM card; the first information includes any one of the following: and the residual quantity of the data flow of the third SIM card or the consumption of the data flow of the third SIM card in a preset duration.
5. The method of claim 4, wherein updating the display effect of the third identifier in a preset manner includes:
adjusting the color value of the third mark to a first preset color value under the condition that the first information is equal to a first preset threshold value;
when the first information is larger than the first preset threshold value and smaller than or equal to a second preset threshold value, the color value of the third mark is adjusted to be a second preset color value, and the first preset threshold value is smaller than the second preset threshold value;
And under the condition that the first information is larger than the second preset threshold value, adjusting the color value of the third mark to be a third preset color value.
6. The method of claim 1, wherein the first and second markers each consist of L columnar patterns, L being an integer greater than 1;
after the adjusting the application authority of the first data flow of the target SIM card to switch the network state of the electronic device, the method further includes:
if the application permission of the data flow of the fourth SIM card is that the electronic equipment is allowed to apply the data flow of the fourth SIM card, updating the display effect of K columnar graphs in a color adjustment mode according to the network signal intensity corresponding to the fourth SIM card, wherein the fourth SIM card is the first SIM card or the second SIM card, the K columnar graphs are columnar graphs in L columnar graphs of the identifier corresponding to the fourth SIM card, and K is a positive integer smaller than or equal to L.
7. An electronic device comprising a first SIM card and a second SIM card, the electronic device comprising: a receiving module and an adjusting module;
the receiving module is configured to receive a first input of a user when a first identifier and a second identifier are displayed in a system notification bar of the electronic device, where the first input is an input of a target identifier by the user, and the target identifier includes at least one of the following: the first identifier is used for indicating the first SIM card, and the second identifier is used for indicating the second SIM card;
The adjusting module is configured to adjust an application right of a first data flow of a target SIM card in response to the first input received by the receiving module, so as to switch a network state of the electronic device, where the target SIM card is a SIM card corresponding to the target identifier;
the adjusting module is specifically configured to update display positions of the first identifier and the second identifier, and adjust an application right of the first data flow of the target SIM card.
8. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the network handover method according to any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the network handover method according to any of claims 1 to 6.
CN202010358785.5A 2020-04-29 2020-04-29 Network switching method, electronic equipment and storage medium Active CN111601287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010358785.5A CN111601287B (en) 2020-04-29 2020-04-29 Network switching method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010358785.5A CN111601287B (en) 2020-04-29 2020-04-29 Network switching method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111601287A CN111601287A (en) 2020-08-28
CN111601287B true CN111601287B (en) 2023-08-08

Family

ID=72183825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010358785.5A Active CN111601287B (en) 2020-04-29 2020-04-29 Network switching method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111601287B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073268A (en) * 2020-09-10 2020-12-11 广东天波信息技术股份有限公司 Ethernet connectivity detection method and device based on android system
CN112083849B (en) * 2020-09-24 2022-10-21 深圳市艾酷通信软件有限公司 Information display method, device, equipment and medium
CN113905425B (en) * 2021-12-09 2022-05-03 荣耀终端有限公司 Data service switching method and device, electronic equipment and readable storage medium
CN114006978B (en) * 2021-12-31 2022-07-12 荣耀终端有限公司 Main card switching method and electronic equipment
CN115103304B (en) * 2022-07-22 2023-01-10 荣耀终端有限公司 Position information calling method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674359A (en) * 2009-08-17 2010-03-17 宇龙计算机通信科技(深圳)有限公司 Switch and control method and system of subscriber identification card and mobile terminal
CN103970423A (en) * 2014-05-26 2014-08-06 厦门美图之家科技有限公司 Quick setting method of common functions of smart phone
CN105867730A (en) * 2016-03-24 2016-08-17 广东欧珀移动通信有限公司 Display method and device for status bar
WO2017008348A1 (en) * 2015-07-15 2017-01-19 宇龙计算机通信科技(深圳)有限公司 Data card switching control method and apparatus, and terminal device
WO2017092678A1 (en) * 2015-11-30 2017-06-08 华为技术有限公司 Network switching method for terminal, and terminal device
CN108668328A (en) * 2018-06-26 2018-10-16 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN110072263A (en) * 2019-03-26 2019-07-30 华为技术有限公司 A kind of method and electronic equipment switching card of surfing Internet
CN110167006A (en) * 2019-04-17 2019-08-23 维沃移动通信有限公司 A kind of control application program uses the method and terminal device of SIM card

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102326664B1 (en) * 2015-03-09 2021-11-17 삼성전자 주식회사 Electronic device and method for operating notification bar thereof
US20180217562A1 (en) * 2017-02-02 2018-08-02 Qualcomm Incorporated Intuitive display of time notifications in mobile devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674359A (en) * 2009-08-17 2010-03-17 宇龙计算机通信科技(深圳)有限公司 Switch and control method and system of subscriber identification card and mobile terminal
CN103970423A (en) * 2014-05-26 2014-08-06 厦门美图之家科技有限公司 Quick setting method of common functions of smart phone
WO2017008348A1 (en) * 2015-07-15 2017-01-19 宇龙计算机通信科技(深圳)有限公司 Data card switching control method and apparatus, and terminal device
WO2017092678A1 (en) * 2015-11-30 2017-06-08 华为技术有限公司 Network switching method for terminal, and terminal device
CN105867730A (en) * 2016-03-24 2016-08-17 广东欧珀移动通信有限公司 Display method and device for status bar
CN108668328A (en) * 2018-06-26 2018-10-16 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN110072263A (en) * 2019-03-26 2019-07-30 华为技术有限公司 A kind of method and electronic equipment switching card of surfing Internet
CN110167006A (en) * 2019-04-17 2019-08-23 维沃移动通信有限公司 A kind of control application program uses the method and terminal device of SIM card

Also Published As

Publication number Publication date
CN111601287A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN111601287B (en) Network switching method, electronic equipment and storage medium
EP4047940A1 (en) Screencast control method and electronic device
CN110536008B (en) Screen projection method and mobile terminal
CN108595946B (en) Privacy protection method and terminal
CN109800602B (en) Privacy protection method, mobile terminal and computer readable storage medium
CN109656437B (en) Information display method and terminal equipment
WO2021083256A1 (en) Touch-control response method and electronic device
CN111163260B (en) Camera starting method and electronic equipment
CN111147912B (en) Bullet screen display control method and electronic equipment
US20230176806A1 (en) Screen Projection Display Method and System, Terminal Device, and Storage Medium
CN109542325B (en) Double-sided screen touch method, double-sided screen terminal and readable storage medium
WO2021164739A1 (en) Control method for electronic device and electronic device
CN111343710B (en) Power adjustment method and electronic equipment
CN108958936B (en) Application program switching method, mobile terminal and computer readable storage medium
CN110784652A (en) Video shooting method and device, electronic equipment and storage medium
CN110851098B (en) Video window display method and electronic equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN110769524A (en) Multi-network access method and terminal equipment
CN111124569B (en) Application sharing method, electronic device and computer readable storage medium
CN110636225B (en) Photographing method and electronic equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN111399715B (en) Interface display method and electronic equipment
CN113407423A (en) Signal intensity display method and signal intensity display device
CN110740265B (en) Image processing method and terminal equipment
CN110505660B (en) Network rate adjusting 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