CN105472679B - Network switching method and device of communication terminal - Google Patents

Network switching method and device of communication terminal Download PDF

Info

Publication number
CN105472679B
CN105472679B CN201410443384.4A CN201410443384A CN105472679B CN 105472679 B CN105472679 B CN 105472679B CN 201410443384 A CN201410443384 A CN 201410443384A CN 105472679 B CN105472679 B CN 105472679B
Authority
CN
China
Prior art keywords
network
communication terminal
network information
operation interface
state
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
CN201410443384.4A
Other languages
Chinese (zh)
Other versions
CN105472679A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410443384.4A priority Critical patent/CN105472679B/en
Publication of CN105472679A publication Critical patent/CN105472679A/en
Application granted granted Critical
Publication of CN105472679B publication Critical patent/CN105472679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a network switching method and a device of a communication terminal, wherein the method comprises the following steps: providing a network information operation interface, wherein the network information operation interface is arranged on the top layer of an operation interface of the communication terminal; acquiring network information of a communication terminal, wherein the network information comprises a network state; displaying the network information on the network information operation interface; acquiring an operation instruction of the network state through the network information operation interface; and switching the network state of the communication terminal into the network state specified by the operation instruction. The network information is displayed in the network information operation interface, the instruction for switching the current state of the network is detected in the network information operation interface, the current state of the network is switched according to the instruction, the working state of the application program is not influenced in the switching process, and the detection of the running state of the tested application program when the network is changed is realized.

Description

Network switching method and device of communication terminal
Technical Field
The present invention relates to the field of communications terminals, and in particular, to a network switching method and apparatus for a communications terminal.
Background
When the existing communication terminal switches the network, the current application program is suspended. If the setting operation of the system is carried out, the system needs to enter a setting interface to complete network switching, and if the system is a network switching application program of a third party, the system needs to return to the desktop to complete the switching operation through the network switching application program of the third party. The two operation schemes are forced to suspend the current application program, the current application program cannot complete network switching in an active state, the operation is complex, and the working state of the current application program is influenced.
Disclosure of Invention
The invention provides a network switching method and a network switching device of a communication terminal, which are characterized in that network information is displayed in a network information operation interface at the top layer, an instruction for switching the current state of a network is detected in the network information operation interface, the current state of the network is switched according to the instruction, and the working state of an application program is not influenced in the switching process.
In order to realize the design, the invention adopts the following technical scheme:
on one hand, the network switching method of the communication terminal is adopted, and comprises the following steps:
providing a network information operation interface, wherein the network information operation interface is arranged on the top layer of an operation interface of the communication terminal;
acquiring network information of a communication terminal, wherein the network information comprises a network state; displaying the network information on the network information operation interface;
acquiring an operation instruction of the network state through the network information operation interface;
and switching the network state of the communication terminal into the network state specified by the operation instruction.
In another aspect, a network switching device for a communication terminal is provided, which includes:
the operation interface starting module is used for providing a network information operation interface, and the network information operation interface is arranged on the top layer of the operation interface of the communication terminal;
the network information display module is used for acquiring network information of the communication terminal, wherein the network information comprises a network state; displaying the network information on the network information operation interface;
the operation instruction acquisition module is used for acquiring the operation instruction of the network state through the network information operation interface;
and the network state switching module is used for switching the network state of the communication terminal into the network state specified by the operation instruction.
The invention has the beneficial effects that: providing a network information operation interface, wherein the network information operation interface is arranged on the top layer of an operation interface of the communication terminal; acquiring network information of a communication terminal, wherein the network information comprises a network state; displaying the network information on the network information operation interface; acquiring an operation instruction of the network state through the network information operation interface; switching the network state of the communication terminal into the network state specified by the operation instruction; the working state of the application program is not influenced in the network switching process, and the detection of the running state of the tested application program when the network is changed is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a flowchart of a method for switching a network of a communication terminal according to a first embodiment of the present invention.
Fig. 2 is a schematic diagram illustrating an integrated display of a current state and signal strength of a network according to a second embodiment of a network switching method for a communication terminal according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating a current state and a signal strength of a network respectively in a second embodiment of a network handover method for a communication terminal according to an embodiment of the present invention.
Fig. 4 is a schematic diagram illustrating simultaneous display of a wlan and a mobile network in a second embodiment of a network handover method for a communication terminal according to an embodiment of the present invention.
Fig. 5 is another schematic diagram of a wlan and a mobile network simultaneously displayed in a second embodiment of a network handover method for a communication terminal according to an embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating a time-sharing display of a wlan and a mobile network in a second embodiment of a network switching method of a communication terminal according to an embodiment of the present invention.
Fig. 7 is a block diagram illustrating a first embodiment of a network switching apparatus of a communication terminal according to an embodiment of the present invention.
Fig. 8 is a block diagram of a hardware structure of a network switching device of a communication terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1, which is a flowchart illustrating a network switching method of a communication terminal according to a first embodiment of the present invention. The network switching method of the communication terminal of the embodiment is mainly applied to various intelligent communication terminals, such as smart phones, tablet computers and the like, and is particularly suitable for switching the network of the communication terminal under the condition of running of an application program in the application program testing process of the intelligent communication terminal and testing whether the solution of the application program is perfect or not when the network is changed.
As shown in fig. 1, the network switching method of the communication terminal includes:
step S101: and providing a network information operation interface, wherein the network information operation interface is arranged on the top layer of the operation interface of the communication terminal.
The existing test platform is mainly an integrated test platform, and tests application programs developed towards communication terminals. Such as GT (Great Tit, debug), a debugging platform that runs directly on a mobile phone and is used for assisting or directly debugging a terminal application program or testing various types. The platform simultaneously supports a plug-in mode to expand and develop a new debugging component to meet the special debugging requirements of various application programs. When testing is carried out on a testing platform, testing is carried out aiming at the working state change of an application program when the network connection state changes, the conventional processing is to switch the network state after exiting from an operation interface of the application program under test in the testing process, and return to the application program under test after the network state switching is finished, and at the moment, the working state change of the application program when the network connection state changes cannot be observed.
In the process of running test of the application program, a network information operation interface is displayed on the top layer, namely floats above an interface corresponding to the application program, and when the operation is detected in an area outside the network information operation interface, the operation is responded according to the operation setting of the application program; the operation and display of the network information operation interface are not influenced by the operation of the application program; when the operation is detected in the area corresponding to the network information operation interface, the state of the network is converted according to the corresponding operation, and the application program does not respond to the operation detected in the area corresponding to the network information operation interface.
Step S102: acquiring network information of a communication terminal, wherein the network information comprises a network state; and displaying the network information on the network information operation interface.
The network information of the network of the communication terminal is obtained through an operating system of the communication terminal, and mainly the network state and the network switch in the network information are obtained. In the operation process of the communication terminal, the operating system may acquire states of working chips corresponding to various networks of the communication terminal, for example, a specific implementation manner of the wireless local area network includes WiFi, the working chip corresponding to the WiFi is a WiFi chip, and acquiring the network state of the WiFi is to acquire the working state of the WiFi chip correspondingly. The network state mainly refers to the on-off state of the network and the strength of the signal intensity; for the mobile terminal, the operating system of the mobile terminal carries a network switch for switching the network state, and a control of the network switch is also acquired in the running process of the communication terminal. After obtaining the current state, the signal strength and the control of the network switch, projecting the information to the network information operation interface, and adding basic elements required for realizing the scheme to the network information operation interface, wherein the existing programming statement of the method for obtaining the network state can be easily realized, for example, obtaining the signal strength of the WiFi network can be realized by calling a wifiinfo.
Step S103: and acquiring the operation instruction of the network state through the network information operation interface.
In the running process of the application program, after the display interface of the application program detects operation, if the detected operation area is not the area where the network information operation interface is located, controlling the application program to complete response or test according to the definition corresponding to the operation; if an operation is detected in the area of the network information operation interface, particularly after an operation is detected at the position of the network switch, in this embodiment, because the state of the network mainly includes two states, namely on and off, when the network switch detects the operation, it means that the network state is switched from the current state to another state, and the switching of the state is an operation instruction of the network state in this embodiment.
Step S104: and switching the network state of the communication terminal into the network state specified by the operation instruction.
When a network switch on a network information operation interface detects an operation instruction, the operation instruction is sent to a corresponding working chip according to a corresponding network type, and the working chip switches the network state of the network type from on to off or from off to on according to the operation instruction, so that the switching of the network state is completed.
In the embodiment, especially for the reaction of the test application on the communication terminal when the network connection is changed, for example, when the test is performed on the application related to the network, such as the online video, the online music, the social tool, the online game, and the file download, if the network state needs to be changed after the operation interface of the application is exited according to the existing setting mode, in the present solution, the network state can be directly switched on the operation interface of the application, so that the adaptation condition of the application under the condition of the network connection change, such as whether the network connection is blocked, buffered, delayed, or even incompatible with the network switching, can be observed.
In this embodiment, the communication terminal corresponding to the single-task interface is implemented, and further, the communication terminal may be implemented on a multi-task interface, which mainly includes but is not limited to a personal computer, the communication mode of the communication terminal is mainly network communication, the network used for communication is mainly wired or wireless, and the specific working principle of network switching is the same as the implementation mode of the communication terminal on the single-task interface.
In summary, in the present embodiment, a network information operation interface is provided during the test process; acquiring network information of a communication terminal; displaying the network information on the network information operation interface; acquiring an operation instruction of the network state through the network information operation interface; switching the network state of the communication terminal into the network state specified by the operation instruction; the working state of the application program is not influenced in the network switching process, and the detection of the running state of the tested application program when the network is changed is realized.
The following is a second embodiment of a network switching method of a communication terminal according to an embodiment of the present invention. The main difference between this embodiment and the first embodiment of the network switching method of the communication terminal is that a specific manner of displaying the network information of the network on the network information operation interface is further described.
The network switching method of the communication terminal comprises the following steps:
step S101: and providing a network information operation interface, wherein the network information operation interface is arranged on the top layer of the operation interface of the communication terminal.
In the scheme, a network information operation interface is started at the top layer of an operation interface of the communication terminal based on a test platform; in fact, the test platform can be separated, and for a conventional user-oriented communication terminal, a network information operation interface can also be started at the top layer of the operation interface of the communication terminal, so that network switching can be performed in the use process.
Step S102: acquiring network information of a communication terminal, wherein the network information comprises a network state; and displaying the network information on the network information operation interface.
In this embodiment, the network information operation interface is a movable interface; and when the network information operation interface detects the operation of triggering the movement attribute, responding to the operation to move. For example, a long-press operation or other user-defined operations are set as operations for triggering a mobile attribute, a drag operation is set as an operation for moving the position of a network information operation interface, when the long-press operation or other user-defined operations for triggering the mobile attribute are detected in an area of the network information operation interface, a mobile network information operation interface is prepared, and the network information operation interface moves along with the drag operation after the mobile attribute is triggered. The network information operation interface is smaller than the operation interface of the communication terminal, and meanwhile, in order to reduce the influence of the network information operation interface on the operation interface of the current application program, the transparency is set to be smaller than 100%, for example, 40%, 50% or 60%, and the specific transparency setting can be realized by setting the attribute of the floating window control when the floating window control corresponding to the network information operation interface is added. On the network information operation interface, the network information also comprises a network switch; the network information of the mobile network further comprises a network type and a network provider; the network information of the wireless local area network further includes a network name. The content displayed on the network information operation interface is similar to the network state acquisition mode in the previous embodiment, and the network state of the communication terminal can be directly read.
For the limitation of the screen size of the mobile terminal, in order to ensure the normal use of the application program, the information presentation mode on the network information operation interface is more carefully designed in this embodiment. Specifically, there are two main ways for displaying the current status and the signal strength, one is to display the current status and the signal strength integrally, as shown in fig. 2, which shows the current status and the signal strength of the wireless lan, and after obtaining the current status and the signal strength of the wireless lan from the system, the current status and the signal strength are projected to an icon for integrally displaying, for example, in this embodiment, the switch status representation way is specifically: the signal strength is marked with bright color to indicate that the current state is on, and the signal strength is marked with gray color to indicate that the current state is off. When the operation of switching the network state on the identifier is detected, an operation instruction is obtained and sent to the corresponding working chip, and the current switching state of the working chip is switched to another state. The other is that the current state and the signal strength are respectively displayed, as shown in fig. 3, one side displays the signal strength mark, the other side displays the network switch, and the current state is switched by operating the network switch. Compared with the implementation mode in fig. 2, the biggest difference in the scheme is that the network switch is independently set, and the response process of specific network switching is relatively similar. The former display mode can reduce the area of a network information operation interface, reduce the interference of the network information operation interface on the display of an application program, and the operation guide of the latter display mode is clearer and more definite.
Step S103: and acquiring the operation instruction of the network state through the network information operation interface.
The specific instruction obtains the operation instruction according to the display mode described in the previous step, and includes switching the connected network in addition to the switch of the network described in the previous embodiment. For example, multiple wireless local area networks may be currently detected, and a handoff from one wireless local area network to another may be made; for a mobile network, a mobile number, the type of network connected with the mobile number can be selected from 2G and 3G, and for a communication terminal provided with a plurality of SIM cards, the selection of which SIM card is selected can be set.
Step S104: and switching the network state of the communication terminal into the network state specified by the operation instruction.
Generally, the network information includes network information of a wireless local area network and network information of a mobile network.
As shown in fig. 4, the network information of the wireless lan and the network information of the mobile network are simultaneously displayed on the network information operation interface, and a specific display manner of a single network is stated in step S102. The display mode can comprehensively display the network information and switch the network state at any time. Fig. 5 shows another way of displaying the network information of the wlan and the network information of the mobile network simultaneously, which is not represented by the icons but directly illustrated by the letters.
Of course, as shown in fig. 6, the network information of the wireless lan and the network information of the mobile network may be displayed on the network information operation interface in a time-sharing manner, and the network information of the wireless lan and the network information of the mobile network may be displayed in turn in a period. The display mode can reduce the area of the network information operation interface and reduce the interference of the network information operation interface on the display of the application program.
The two display modes are specifically realized when display contents are added to the floating window control corresponding to the network information operation interface.
The network can be turned on or off by calling related function implementation after the operation instruction is detected, for example, the WiFi is controlled to be turned on or off by means of WiFi manager.
Further, after the network status is switched, the network status on the network information operation interface is also switched correspondingly, which is equivalent to re-executing step S102 once.
The network information of the wlan is relatively simple, and in addition to the network status and the network switch, at most, the network name is added, and the network information of the mobile network further includes a network type, specifically 2G, 3G or 4G, and also includes a network provider, which may be different for different countries and different users. Similarly, the network information of different mobile networks is acquired in different manners, for example, signalStrength, getCdmaDbm (), signalStrength, getGsMSignalStrength (), signalStrength, getEvdoDbm () are respectively used to acquire the mobile network signal strength of CDMA, GSM, and EVDO.
In summary, in the present embodiment, a network information operation interface is provided during the test process; acquiring network information of a communication terminal; displaying the network information on the network information operation interface; acquiring an operation instruction of the network state through the network information operation interface; switching the network state of the communication terminal into the network state specified by the operation instruction; the working state of the application program is not influenced in the network switching process, and the detection of the running state of the tested application program when the network is changed is realized. Meanwhile, the specific display mode of the network information of the network ensures that the display interference of the network information operation interface to the current application program is reduced to the minimum in the display process.
Please refer to fig. 7, which is a block diagram illustrating a network switching apparatus of a communication terminal according to a first embodiment of the present invention. The network switching device of the communication terminal comprises the following contents:
and the operation interface starting module 710 is configured to provide a network information operation interface, where the network information operation interface is arranged on a top layer of an operation interface of the communication terminal.
The existing test platform is mainly an integrated test platform, and tests application programs developed towards communication terminals. Such as GT (Great Tit, debug), a debugging platform that runs directly on a mobile phone and is used for assisting or directly debugging a terminal application program or testing various types. The platform simultaneously supports a plug-in mode to expand and develop a new debugging component to meet the special debugging requirements of various application programs. When testing is carried out on a testing platform, testing is carried out aiming at the working state change of an application program when the network connection state changes, the conventional processing is to switch the network state after exiting from an operation interface of the application program under test in the testing process, and return to the application program under test after the network state switching is finished, and at the moment, the working state change of the application program when the network connection state changes cannot be observed.
In the process of running test of the application program, the operation interface starting module 710 displays the network information operation interface on the top layer of the display desktop, namely floats above the interface corresponding to the application program, and when the operation is detected in the area outside the network information operation interface, the operation is responded according to the operation setting of the application program; the operation and display of the network information operation interface are not influenced by the operation of the application program; when the operation is detected in the area corresponding to the network information operation interface, the state of the network is converted according to the corresponding operation, and the application program does not respond to the operation detected in the area corresponding to the network information operation interface.
A network information display module 720, configured to obtain network information of the communication terminal, where the network information includes a network status; and displaying the network information on the network information operation interface.
The network information display module 720 obtains the network information of the network of the communication terminal through the system of the communication terminal, and mainly obtains the network state and the network switch in the network information. In the operation process of the communication terminal, the system can acquire the states of the working chips corresponding to various networks of the communication terminal, for example, the specific implementation mode of the wireless local area network includes WiFi, the working chip corresponding to WiFi is a WiFi chip, and the network state of the WiFi is acquired, that is, the working state of the WiFi chip is acquired correspondingly. The network state mainly refers to the on-off state of the network and the strength of the signal intensity; for the mobile terminal, the operating system of the mobile terminal carries a network switch for switching the network state, and a control of the network switch is also acquired in the running process of the communication terminal. After obtaining the current state, the signal strength and the control of the network switch, projecting the information to the network information operation interface, and adding basic elements required for realizing the scheme to the network information operation interface, wherein the existing programming statement of the method for obtaining the network state can be easily realized, for example, obtaining the signal strength of the WiFi network can be realized by calling a wifiinfo. The network information display module 720 displays the information on the network information operation interface after acquiring the content related to the network information.
An operation instruction obtaining module 730, configured to obtain the operation instruction of the network state through the network information operation interface.
In the running process of the application program, after the display interface of the application program detects operation, if the detected operation area is not the area where the network information operation interface is located, controlling the application program to complete response or test according to the definition corresponding to the operation; if the operation is detected on the network information operation interface, especially after the operation is detected at the position of the network switch, the operation instruction obtaining module 730 obtains the operation as the operation instruction of the network state. In this embodiment, since the states of the network mainly include two states, i.e., on and off, when the network switch detects an operation, it means that the network state is switched from the current state to another state, and the switching of the state is an operation instruction of the network state in this embodiment.
A network state switching module 740, configured to switch the network state of the communication terminal to the network state specified by the operation instruction.
When the network switch on the network information operation interface detects an operation instruction, the network state switching module 740 sends the operation instruction to the corresponding working chip according to the corresponding network type, and the working chip switches the network state of the network type from on to off or from off to on according to the operation instruction, thereby completing the switching of the network state.
In the embodiment, especially for the reaction of the test application on the communication terminal when the network connection is changed, for example, when the test is performed on the application related to the network, such as the online video, the online music, the social tool, the online game, and the file download, if the network state needs to be changed after the operation interface of the application is exited according to the existing setting mode, in the present solution, the network state can be directly switched on the operation interface of the application, so that the adaptation condition of the application under the condition of the network connection change, such as whether the network connection is blocked, buffered, delayed, or even incompatible with the network switching, can be observed.
In this embodiment, the communication terminal corresponding to the single-task interface is implemented, and further, the communication terminal may be implemented on a multi-task interface, which mainly includes but is not limited to a personal computer, the communication mode of the communication terminal is mainly network communication, the network used for communication is mainly wired or wireless, and the specific working principle of network switching is the same as the implementation mode of the communication terminal on the single-task interface.
To sum up, the above modules cooperate to operate the interface by providing network information; acquiring network information of a communication terminal; displaying the network information on the network information operation interface; acquiring an operation instruction of the network state through the network information operation interface; switching the network state of the communication terminal into the network state specified by the operation instruction; the working state of the application program is not influenced in the network switching process, and the detection of the running state of the tested application program when the network is changed is realized.
The following is a second embodiment of the network switching device of the communication terminal according to the embodiment of the present invention. The main difference between this embodiment and the first embodiment of the apparatus is that the specific way of displaying the network information of the network on the network information operation interface is further explained.
The network switching device of the communication terminal comprises the following contents:
and the operation interface starting module 710 is configured to provide a network information operation interface, where the network information operation interface is arranged on a top layer of an operation interface of the communication terminal.
In the scheme, the operation interface starting module 710 starts a network information operation interface on the top layer of the operation interface of the communication terminal based on the test platform; in fact, the test platform can be separated, and for a conventional user-oriented communication terminal, a network information operation interface can also be started at the top layer of the operation interface of the communication terminal, so that network switching can be performed in the use process.
A network information display module 720, configured to obtain network information of the communication terminal, where the network information includes a network status; and displaying the network information on the network information operation interface.
In this embodiment, the network information operation interface is a movable interface; and when the network information operation interface detects the operation of triggering the movement attribute, responding to the operation to move. For example, a long-press operation or other user-defined operations are set as operations for triggering a mobile attribute, a drag operation is set as an operation for moving the position of a network information operation interface, when the long-press operation or other user-defined operations for triggering the mobile attribute are detected in an area of the network information operation interface, a mobile network information operation interface is prepared, and the network information operation interface moves along with the drag operation after the mobile attribute is triggered. The network information operation interface is smaller than the operation interface of the communication terminal, and meanwhile, in order to reduce the influence of the network information operation interface on the operation interface of the current application program, the transparency is set to be smaller than 100%, for example, 40%, 50% or 60%, and the specific transparency setting can be realized by setting the attribute of the floating window control when the floating window control corresponding to the network information operation interface is added. On the network information operation interface, the network information also comprises a network switch; the network information of the mobile network further comprises a network type and a network provider; the network information of the wireless local area network further includes a network name. The content displayed on the network information operation interface is similar to the network state acquisition mode in the previous embodiment, and the network state of the communication terminal can be directly read.
For the limitation of the screen size of the mobile terminal, in order to ensure the normal use of the application program, the information presentation mode on the network information operation interface is more carefully designed in this embodiment. Specifically, there are two main ways for displaying the current status and the signal strength, one is to display the current status and the signal strength integrally, as shown in fig. 2, which shows the current status and the signal strength of the wireless lan, and after obtaining the current status and the signal strength of the wireless lan from the system, the current status and the signal strength are projected to an icon for integrally displaying, for example, in this embodiment, the switch status representation way is specifically: the signal strength is marked with bright color to indicate that the current state is on, and the signal strength is marked with gray color to indicate that the current state is off. When the operation of switching the network state on the identifier is detected, an operation instruction is obtained and sent to the corresponding working chip, and the current switching state of the working chip is switched to another state. The other is that the current state and the signal strength are respectively displayed, as shown in fig. 3, one side displays the signal strength mark, the other side displays the network switch, and the current state is switched by operating the network switch. Compared with the implementation mode in fig. 2, the biggest difference in the scheme is that the network switch is independently set, and the response process of specific network switching is relatively similar. The former display mode can reduce the area of a network information operation interface, reduce the interference of the network information operation interface on the display of an application program, and the operation guide of the latter display mode is clearer and more definite.
An operation instruction obtaining module 730, configured to obtain the operation instruction of the network state through the network information operation interface.
The operation instruction obtaining module 730 obtains the operation instruction according to the display mode described in the previous step, and includes a network for switching connection in addition to the switch of the network described in the previous embodiment. For example, multiple wireless local area networks may be currently detected, and a handoff from one wireless local area network to another may be made; for a mobile network, a mobile number, the type of network connected with the mobile number can be selected from 2G and 3G, and for a communication terminal provided with a plurality of SIM cards, the selection of which SIM card is selected can be set.
A network state switching module 740, configured to switch the network state of the communication terminal to the network state specified by the operation instruction.
Generally, the network information includes network information of a wireless local area network and network information of a mobile network.
As shown in fig. 4, the network information of the wireless lan and the network information of the mobile network are simultaneously displayed on the network information operation interface, and a specific display manner of a single network is stated in step S102. The display mode can comprehensively display the network information and switch the network state at any time. Fig. 5 shows another way of displaying the network information of the wlan and the network information of the mobile network simultaneously, which is not represented by the icons but directly illustrated by the letters.
Of course, as shown in fig. 6, the network information of the wireless lan and the network information of the mobile network may be displayed on the network information operation interface in a time-sharing manner, and the network information of the wireless lan and the network information of the mobile network may be displayed in turn in a period. The display mode can reduce the area of the network information operation interface and reduce the interference of the network information operation interface on the display of the application program.
The two display modes are specifically realized when display contents are added to the floating window control corresponding to the network information operation interface.
The network can be turned on or off by calling related function implementation after the operation instruction is detected, for example, the WiFi is controlled to be turned on or off by means of WiFi manager.
Further, after the network status is switched, the network status on the network information operation interface is also switched correspondingly, which is equivalent to re-executing step S102 once.
The network information of the wlan is relatively simple, and in addition to the network status and the network switch, at most, the network name is added, and the network information of the mobile network further includes a network type, specifically 2G, 3G or 4G, and also includes a network provider, which may be different for different countries and different users. Similarly, the network information of different mobile networks is acquired in different manners, for example, signalStrength, getCdmaDbm (), signalStrength, getGsMSignalStrength (), signalStrength, getEvdoDbm () are respectively used to acquire the mobile network signal strength of CDMA, GSM, and EVDO.
Corresponding to various networks, the network state switching module 740 directly sends the instruction to the working chip of the network corresponding to the instruction after the operation instruction obtaining module 730 obtains the operation instruction.
To sum up, the above modules cooperate to operate the interface by providing network information; acquiring network information of a communication terminal; displaying the network information on the network information operation interface; acquiring an operation instruction of the network state through the network information operation interface; switching the network state of the communication terminal into the network state specified by the operation instruction; the working state of the application program is not influenced in the network switching process, and the detection of the running state of the tested application program when the network is changed is realized. Meanwhile, the specific display mode of the network information of the network ensures that the display interference of the network information operation interface to the current application program is reduced to the minimum in the display process.
Please refer to fig. 8, which is a block diagram illustrating a hardware structure of a network switching device of a communication terminal according to an embodiment of the present invention, wherein the network switching device of the communication terminal includes: a processor 110, a memory 120, a display device 130, a work chip 140 of a network, a communication bus 150, and a control device 160. The communication bus 150 is used for communication among the components in the communication terminal corresponding to the network switching device of the communication terminal; the display device 130 is used for displaying a network information operation interface, such as a liquid crystal display and a CRT display; the control device 160 is configured to receive an operation of a user, specifically, for example, a touch screen or a mouse; the network chip 140 is used for implementing network connection of the communication terminal, such as a GSM chip and a WiFi chip. Memory 120 may include one or more readable storage media, and includes not only internal memory, but also external memory. The memory stores an operating system, a network switching application program of the communication terminal and the like. The processor 110 is configured to call the network switching application of the communication terminal in the memory 120 to perform the following operations:
providing a network information operation interface through a display device 130, wherein the network information operation interface is arranged on the top layer of an operation interface of the communication terminal;
acquiring network information of a communication terminal from a working chip 140 of a network through a communication bus 150, wherein the network information comprises a network state; displaying the network information on the network information operation interface;
acquiring an operation instruction of the network state sent by the control device 160 through the network information operation interface;
and sending an instruction to the network working chip 140 through the communication bus 150, and switching the network state of the communication terminal into the network state specified by the operation instruction.
Compared with the prior art that the current application program is quitted or a network control interface is opened additionally, the network state can be directly switched under the current use environment.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer readable storage medium, and the storage medium may include a memory, a magnetic disk, an optical disk, or the like.
The above description is only a preferred embodiment of the present invention, and for those skilled in the art, the present invention should not be limited by the description of the present invention, which should be interpreted as a limitation.

Claims (10)

1. A network switching method of a communication terminal, wherein when testing an application developed to the communication terminal, the method comprises:
starting a network information operation interface on the top layer of the operation interface of the communication terminal, wherein the network information operation interface is displayed on the top layer of the operation interface of the communication terminal and floats above an interface corresponding to a tested application program running on the communication terminal;
acquiring a network state of the communication terminal and a control of a network switch through an operating system of the communication terminal; projecting the network state and the control of the network switch to the network information operation interface and displaying the network state and the control as a single icon;
acquiring an operation instruction of the network state through the network switch, wherein the operation instruction indicates switching of the network state;
and switching the network state of the communication terminal into the network state specified by the operation instruction, and acquiring the adaptation condition of the tested application program after network switching, wherein the adaptation condition comprises at least one of blocking, buffering, delaying and network switching incompatibility.
2. The method as claimed in claim 1, wherein the network status includes network information of a wireless local area network and network information of a mobile network.
3. The network switching method of a communication terminal as claimed in claim 1, wherein the network information operation interface is a mobile interface.
4. The network handover method of claim 2, wherein the network information of the mobile network comprises a network type and a network provider; the network information of the wireless local area network comprises a network name.
5. A network switching apparatus of a communication terminal, wherein when testing an application developed to the communication terminal, the apparatus comprises:
the operation interface starting module is used for starting a network information operation interface on the top layer of the operation interface of the communication terminal, and the network information operation interface is displayed on the top layer of the operation interface of the communication terminal and floats above an interface corresponding to a tested application program running on the communication terminal;
the network information display module is used for acquiring the network state of the communication terminal and the control of the network switch through the operating system of the communication terminal; projecting the network state and the control of the network switch to the network information operation interface and displaying the network state and the control as a single icon;
an operation instruction obtaining module, configured to obtain, through the network switch, an operation instruction of the network state, where the operation instruction indicates switching of the network state;
and the network state switching module is used for switching the network state of the communication terminal to the network state specified by the operation instruction and acquiring the adaptation condition of the tested application program after network switching, wherein the adaptation condition comprises at least one of blocking, buffering, delaying and network switching incompatibility.
6. The network switching device of claim 5, wherein the network status comprises network information of a wireless local area network and network information of a mobile network.
7. The network switching device of claim 5, wherein the network information operation interface is a mobile interface.
8. The network switching apparatus of claim 6, wherein the network information of the mobile network comprises a network type and a network provider; the network information of the wireless local area network comprises a network name.
9. A computer device comprising a processor and a memory connected to the processor, the memory having stored therein a program executable by the processor, the processor executing the program to perform the method of any of claims 1 to 4.
10. A computer-readable storage medium having stored thereon a program for execution by a processor to perform the method of any one of claims 1 to 4.
CN201410443384.4A 2014-09-02 2014-09-02 Network switching method and device of communication terminal Active CN105472679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410443384.4A CN105472679B (en) 2014-09-02 2014-09-02 Network switching method and device of communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410443384.4A CN105472679B (en) 2014-09-02 2014-09-02 Network switching method and device of communication terminal

Publications (2)

Publication Number Publication Date
CN105472679A CN105472679A (en) 2016-04-06
CN105472679B true CN105472679B (en) 2021-04-09

Family

ID=55609842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410443384.4A Active CN105472679B (en) 2014-09-02 2014-09-02 Network switching method and device of communication terminal

Country Status (1)

Country Link
CN (1) CN105472679B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708364A (en) * 2016-12-20 2017-05-24 宇龙计算机通信科技(深圳)有限公司 Multi-media file display method and terminal device
CN108600334B (en) * 2018-04-03 2022-03-04 腾讯科技(深圳)有限公司 Method and device for displaying wireless signal access quality of electronic device
CN108668328B (en) * 2018-06-26 2021-07-06 维沃移动通信有限公司 Network switching method and mobile terminal
CN109104748B (en) * 2018-08-24 2021-05-28 惠州Tcl移动通信有限公司 Network switching control method, mobile terminal and storage medium
CN111148169A (en) * 2019-12-12 2020-05-12 西安冉科信息技术有限公司 Network switching method based on WiFi

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595537A (en) * 2012-03-23 2012-07-18 青岛海信移动通信技术股份有限公司 Method, device and terminal for switching network access points
CN103150095A (en) * 2013-03-07 2013-06-12 东莞宇龙通信科技有限公司 Terminal and terminal control method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100435103C (en) * 2005-12-30 2008-11-19 英业达股份有限公司 Application program switching system and method for electronic communication device
TW200923758A (en) * 2007-11-27 2009-06-01 Wistron Corp A key-in method and a content display method of an electronic device, and the application thereof
CN102646047B (en) * 2012-04-20 2016-03-30 华为终端有限公司 A kind ofly start the method for application program and there is the terminal device of touch display screen
CN102970421A (en) * 2012-11-09 2013-03-13 广东欧珀移动通信有限公司 Method and system for controlling information display for mobile terminal
CN104008041B (en) * 2013-02-21 2018-07-06 腾讯科技(深圳)有限公司 Terminal applies test method and device
CN103425390B (en) * 2013-07-26 2016-06-22 华为软件技术有限公司 Information interacting method and device
CN103677643A (en) * 2013-12-20 2014-03-26 上海天奕达电子科技有限公司 Method and device for locally amplifying content of screen based on floating touch

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595537A (en) * 2012-03-23 2012-07-18 青岛海信移动通信技术股份有限公司 Method, device and terminal for switching network access points
CN103150095A (en) * 2013-03-07 2013-06-12 东莞宇龙通信科技有限公司 Terminal and terminal control method

Also Published As

Publication number Publication date
CN105472679A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
US11079908B2 (en) Method and apparatus for adding icon to interface of android system, and mobile terminal
US10983668B2 (en) Method and apparatus for component display processing
CN105472679B (en) Network switching method and device of communication terminal
US9557806B2 (en) Power save mode in electronic apparatus
CN106060884B (en) A kind of method for switching network and mobile terminal
US20150205456A1 (en) Method and Device for Processing Application Shortcut
CN106027791A (en) Mobile terminal and application service switching method
AU2019440748B2 (en) Method, device and apparatus for controlling touch operation mode, and storage medium
KR20140040401A (en) Method for providing one hand control mode and an electronic device thereof
CN106020698A (en) Mobile terminal and realization method of single-hand mode
WO2017201965A1 (en) Notification message display method and device, and terminal
CN112199146A (en) Interface switching method and device and electronic equipment
US20230014457A1 (en) Setting Control Display Method and Apparatus, Storage Medium, and Electronic Apparatus
US20130239069A1 (en) Control method for mobile device using setting pattern and mobile device
RU2630368C2 (en) Method and device for controlling switching of virtual navigation panel
CN106559550A (en) SIM management method and electronic installation
KR20230139368A (en) Cross-process information processing methods, controllers, terminals and storage media
CN105260182B (en) A kind of electronic equipment and its information processing method
AU2019205000B2 (en) Component display processing method and user equipment
CN106681630A (en) Operation method and device of mobile terminal
CN114415883A (en) User interface interaction method, device, electronic device and storage medium
KR101466961B1 (en) Apparatus and methdo for calling
CN117453090A (en) Method, device, equipment, chip and storage medium for calling intelligent assistant
KR20140000951A (en) Control method for electronic device, record medium and electronic device thereof
AU2014202490A1 (en) Component display processing method and user equipment

Legal Events

Date Code Title Description
C06 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