CN110167006B - Method for controlling application program to use SIM card and terminal equipment - Google Patents

Method for controlling application program to use SIM card and terminal equipment Download PDF

Info

Publication number
CN110167006B
CN110167006B CN201910310091.1A CN201910310091A CN110167006B CN 110167006 B CN110167006 B CN 110167006B CN 201910310091 A CN201910310091 A CN 201910310091A CN 110167006 B CN110167006 B CN 110167006B
Authority
CN
China
Prior art keywords
target
screen
information
sim card
application program
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
CN201910310091.1A
Other languages
Chinese (zh)
Other versions
CN110167006A (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 CN201910310091.1A priority Critical patent/CN110167006B/en
Publication of CN110167006A publication Critical patent/CN110167006A/en
Application granted granted Critical
Publication of CN110167006B publication Critical patent/CN110167006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method for controlling an application program to use an SIM card and a terminal device, relates to the technical field of communication, and can solve the problems of complicated operation and time consumption of a user when the user uses data traffic of different SIM cards to operate different application programs. The method comprises the following steps: receiving a first input of a user, wherein the first input is the input of the user to a target identifier, and the target identifier is used for indicating a target application program in terminal equipment; responding to the first input, controlling a target application program to use information of a target SIM card when running according to a first target screen where a target identifier is located currently, wherein the target SIM card is an SIM card corresponding to the first target screen in the SIM cards of the terminal equipment, and the first target screen is the first screen or the second screen; and when the application programs corresponding to different screens run, the information of different SIM cards in the terminal equipment is used. The embodiment of the invention is applied to the process of using the information of the SIM card when the control application program runs.

Description

Method for controlling application program to use SIM card and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method for controlling an application program to use an SIM card and terminal equipment.
Background
Generally, when a user uses a dual-card mobile phone, the user can use data traffic of different Subscriber Identity Module (SIM) cards to operate different applications. Specifically, when a user needs to operate a certain application program by using data traffic, the user may select to use the data traffic of a certain SIM card to operate the application program according to the use condition of the data traffic of each SIM card.
However, when the user uses the data traffic to operate different applications, the user needs to select different SIM cards, so before the user operates an application each time, the user needs to first set to select the SIM card corresponding to the application, and then operate the application after the setting is successful, which is tedious and time-consuming for the user to operate.
Disclosure of Invention
The embodiment of the invention provides a method for controlling an application program to use an SIM card and a terminal device, which can solve the problems of complicated operation and time consumption of a user when the user uses data traffic of different SIM cards to operate different application programs.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
in a first aspect of embodiments of the present invention, a method for controlling an application to use a SIM card is provided, where the method is applied to a terminal device, where the terminal device includes a first screen and a second screen, and the method for controlling the application to use the SIM card includes: receiving a first input of a user, wherein the first input is input of a target identifier by the user, and the target identifier is used for indicating a target application program in terminal equipment; responding to the first input, controlling a target application program to use information of a target SIM card when running according to a first target screen where a target identifier is located currently, wherein the target SIM card is an SIM card corresponding to the first target screen in SIM cards of terminal equipment, and the first target screen is a first screen or a second screen; and when the application programs corresponding to different screens run, the information of different SIM cards in the terminal equipment is used.
In a second aspect of the embodiments of the present invention, there is provided a terminal device, where the terminal device includes a first screen and a second screen, and the terminal device includes: the device comprises a receiving module and a control module. The receiving module is used for receiving a first input of a user, wherein the first input is input of a target identifier by the user, and the target identifier is used for indicating a target application program in the terminal equipment. And the control module is used for responding to the first input received by the receiving module, controlling the target application program to use the information of the target SIM card when running according to the first target screen where the target identifier is located currently, wherein the target SIM card is an SIM card corresponding to the first target screen in the SIM cards of the terminal equipment, and the first target screen is the first screen or the second screen. And when the application programs corresponding to different screens run, the information of different SIM cards in the terminal equipment is used.
In a third aspect of the embodiments of the present invention, there is provided a terminal device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, and when executed by the processor, the computer program implements the steps of the method for controlling an application program to use a SIM card according to the first aspect.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for controlling an application program to use a SIM card according to the first aspect.
In the embodiment of the present invention, after receiving a first input of a user (the first input is an input to a target identifier), the terminal device may control, according to a first target screen where the target identifier is currently located, a target application to use information of a target SIM card when running. After the user performs the first input on the target identifier, the terminal device may directly control the target application program to run according to the first target screen where the target identifier is located, and use the SIM card corresponding to the first target screen, without requiring the user to set the SIM card corresponding to the application program in advance before inputting the identifier (e.g., the target identifier) of one application program each time, which may simplify the user's operation and save the time consumed by the user.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a method for controlling an application to use a SIM card according to an embodiment of the present invention;
fig. 3 is a second schematic diagram illustrating a method for controlling an application to use a SIM card according to an embodiment of the present invention;
fig. 4 is a third schematic diagram illustrating a method for controlling an application to use a SIM card according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 6 is a second schematic diagram of an example of an interface of a mobile phone according to the embodiment of the present invention;
fig. 7 is a fourth schematic diagram illustrating a method for controlling an application to use a SIM card according to an embodiment of the present invention;
fig. 8 is a fifth schematic diagram illustrating a method for controlling an application to use a SIM card according to an embodiment of the present invention;
fig. 9 is a third schematic diagram of an example of an interface of a mobile phone according to the embodiment of the present invention;
fig. 10 is a fourth schematic diagram of 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 a terminal device according to an embodiment of the present invention;
fig. 12 is a second schematic structural diagram of a terminal device according to a second embodiment of the present invention;
fig. 13 is a third schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 14 is a fourth schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 15 is a fifth schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 16 is a sixth schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 17 is a seventh schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 18 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of elements refers to two elements or more.
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, which may mean: there are three cases of a display panel alone, a display panel and a backlight at the same time, and a backlight alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, input/output denotes input or output.
In the present embodiments, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the invention provides a method for controlling an application program to use an SIM card and terminal equipment. After the user performs the first input on the target identifier, the terminal device may directly control the target application program to run according to the first target screen where the target identifier is located, and use the SIM card corresponding to the first target screen, without requiring the user to set the SIM card corresponding to the application program in advance before inputting the identifier (e.g., the target identifier) of one application program each time, which may simplify the user's operation and save the time consumed by the user.
The method for controlling the application program to use the SIM card and the terminal device provided by the embodiment of the invention can be applied to the process of using the information of the SIM card when the control application program runs. Specifically, the method can be applied to a process of controlling the application program to use the information of the corresponding SIM card when the application program runs according to the screen where the identifier of the application program is located.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the method for controlling an application program to use a SIM card according to an embodiment of the present invention, 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, which are respectively: an application layer, an application 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 an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called 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 an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers 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 method for controlling an application program to use a SIM card, based on the system architecture of the android operating system shown in fig. 1, so that the method for controlling the application program to use the SIM card may run based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can realize the method for controlling the application program to use the SIM card provided by the embodiment of the invention by running the software program in the android operating system.
The terminal device in the embodiment of the invention can be a mobile terminal device and can also be a non-mobile terminal device. For example, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
It should be noted that, in the embodiment of the present invention, the terminal device may include at least two screens, and the following embodiment takes the terminal device including two screens (for example, a first screen and a second screen) as an example, and describes the method for controlling an application program to use a SIM card and the terminal device provided in the embodiment of the present invention.
The method for controlling an application to use an SIM card and the terminal device provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
At present, in the prior art, when a user operates different applications by using data traffic, the user needs to select different SIM cards, so before the user operates an application each time, the user needs to first set to select the SIM card corresponding to the application, and operate the application after the setting is successful, so that the user is cumbersome and time-consuming to operate.
In order to solve the above technical problem, in an embodiment of the present invention, a method for controlling an application to use a SIM card is provided, and fig. 2 shows a flowchart of the method for controlling the application to use the SIM card according to the embodiment of the present invention, where the method can be applied to a terminal device having an android operating system as shown in fig. 1. As shown in fig. 2, the method for controlling an application to use a SIM card according to an embodiment of the present invention may include steps 201 and 202 described below.
Step 201, the terminal device receives a first input of a user.
In an embodiment of the present invention, the first input is input of a target identifier by a user, where the target identifier is used to indicate a target application program in a terminal device.
In the embodiment of the present invention, the first input may be used to trigger a foreground of the terminal device to run the target application.
Optionally, in the embodiment of the present invention, the first input may be a click operation of the target identifier by the user, where the click operation may be a single click operation, a double click operation, or a continuous preset number of times of operations, and may be specifically determined according to an actual use requirement, and the embodiment of the present invention is not limited herein.
Optionally, in the embodiment of the present invention, the target identifier is located in a desktop of a first screen or a desktop of a second screen of the terminal device.
Optionally, in this embodiment of the present invention, the target identifier may be an icon of a target application program.
Step 202, the terminal device responds to the first input, and controls the target application program to use the information of the target SIM card when running according to the first target screen where the target identifier is currently located.
In the embodiment of the invention, the target SIM card is an SIM card corresponding to the first target screen in the SIM cards of the terminal equipment, and the first target screen is the first screen or the second screen. And when the application programs corresponding to different screens run, the information of different SIM cards in the terminal equipment is used.
It can be understood that, in the embodiment of the present invention, after receiving the first input, the terminal device may first determine whether the target identifier is currently located in the first screen or the second screen, and then run the target application and use the information of the target SIM card.
Optionally, in the embodiment of the present invention, the first screen corresponds to a first SIM card in the terminal device, and the second screen corresponds to a second SIM card in the terminal device.
Optionally, in this embodiment of the present invention, the information of the SIM card may include at least one of the following: data traffic of the SIM card, contact information of the SIM card, subscription data of the SIM card and the like.
It should be noted that the application program corresponding to the screen may be understood as: the screen displays the identification of the application program.
Optionally, in the embodiment of the present invention, the first screen corresponds to a first SIM card in the terminal device, and the second screen corresponds to a second SIM card in the terminal device. Referring to fig. 2, as shown in fig. 3, the step 202 may be implemented by the step 202a or the step 202b described below.
Step 202a, the terminal device responds to the first input, and if the first target screen is the first screen, the terminal device controls the target application program to run by using information of the first SIM card corresponding to the first screen.
Optionally, in this embodiment of the present invention, if the first target screen is the first screen, the terminal device may control the data traffic of the first SIM card when the target application program runs.
Step 202b, the terminal device responds to the first input, and if the first target screen is the second screen, the terminal device controls the target application program to run by using information of the second SIM card corresponding to the second screen.
Optionally, in this embodiment of the present invention, if the first target screen is the second screen, the terminal device may control the data traffic of the second SIM card when the target application program runs.
In the embodiment of the invention, the terminal equipment can directly control the running of the target application program according to the first target screen where the target identifier is located, and uses the information of the SIM card corresponding to the first target screen without the need of setting by a user to select the SIM card corresponding to the target application program, so that the operation of the user can be simplified.
The embodiment of the invention provides a method for controlling an application program to use an SIM card. After the user performs the first input on the target identifier, the terminal device may directly control the target application program to run according to the first target screen where the target identifier is located, and use the information of the SIM card corresponding to the first target screen, without requiring that the user first set to select the SIM card corresponding to the application program before inputting the identifier (for example, the target identifier) of one application program each time, which may simplify the user's operation and save the user's time consumption.
Optionally, in the embodiment of the present invention, as shown in fig. 4 in combination with fig. 2, before step 201, the method for controlling an application to use a SIM card provided in the embodiment of the present invention may further include step 301 and step 302 described below.
Step 301, the terminal device receives a second input of the user.
Optionally, in the embodiment of the present invention, the user may perform a second input in the setting application program to set the authority of the first screen and the authority of the second screen.
Optionally, in the embodiment of the present invention, the user may perform the second input in the first screen to set the authority of the first screen, and perform the second input in the second screen to set the authority of the second screen.
And 302, the terminal equipment responds to the second input and sets the authority of the first screen and the authority of the second screen.
In the embodiment of the present invention, the authority of the first screen is: the application program corresponding to the first screen uses the information of the first SIM card, and the authority of the second screen is as follows: and the application programs corresponding to the second screen all use the information of the second SIM card.
In the embodiment of the invention, because the user can set the authority of the first screen and the authority of the second screen through the terminal equipment, the user can input the identifiers of different application programs in different screens each time, so that when the terminal equipment runs one application program each time, the terminal equipment can directly use the SIM card corresponding to the screen according to the screen where the application program is located, and the user does not need to set the SIM card corresponding to the application program before inputting the identifier of the application program each time, the operation of the user can be simplified.
Optionally, in the embodiment of the present invention, after the step 302, the method for controlling an application to use a SIM card provided in the embodiment of the present invention may further include the following steps 401 and 402.
Step 401, the terminal device receives a third input from the user.
In an embodiment of the present invention, the third input is input by a user of at least one identifier, where each identifier is used to indicate an application program in the terminal device.
Optionally, in this embodiment of the present invention, the third input is used to trigger the terminal device to move the at least one identifier to another screen (the another screen is a screen other than the screen where the at least one identifier is located).
Optionally, in this embodiment of the present invention, the third input may be a drag input of the at least one identifier by the user.
Optionally, in this embodiment of the present invention, the third input may be a long-press input and/or a drag input of the user on at least one identifier.
Optionally, in the embodiment of the present invention, the at least one identifier may be an identifier in the same screen in the terminal device; alternatively, the at least one identifier may be an identifier in a different screen of the terminal device.
Optionally, in an embodiment of the present invention, the third input may be an input that the user drags the at least one identifier on the first screen to the second screen, and/or an input that the user drags the at least one identifier on the second screen to the first screen.
Step 402, the terminal device responds to the third input and updates at least one identifier on the first screen and at least one identifier on the second screen.
It is to be understood that the terminal device may move the at least one identifier on the first screen to the second screen and/or move the at least one identifier on the second screen to the first screen to update the at least one identifier on the first screen and the at least one identifier on the second screen.
Optionally, in this embodiment of the present invention, the terminal device may update the at least one identifier on the first screen and the at least one identifier on the second screen by adding the at least one identifier on the first screen and deleting the at least one identifier in the second screen.
Optionally, in this embodiment of the present invention, the terminal device may update the at least one identifier on the first screen and the at least one identifier on the second screen by adding the at least one identifier on the second screen and deleting the at least one identifier in the first screen.
For example, a terminal device is taken as a mobile phone for explanation. As shown in fig. 5 (a), the first screen 10 of the mobile phone includes at least one identifier (e.g., an icon of the application 1 to an icon of the application 6), and the second screen 11 includes at least one identifier (e.g., an icon of the application 7 to an icon of the application 11), after the user makes a third input on the icon of the application 3 on the first screen 10, as shown in fig. 5 (B), the at least one identifier displayed on the first screen 10 of the mobile phone includes an icon of the application 1, an icon of the application 2, an icon of the application 4 to an icon of the application 6, and the at least one identifier displayed on the second screen 11 of the mobile phone includes an icon of the application 3, an icon of the application 7 to an icon of the application 11; the terminal device uses the information of the first SIM card when running any one of the application 1, the application 2, the application 4, the application 5, and the application 6, and uses the information of the second SIM card when running any one of the application 3, the application 7, the application 8, the application 9, the application 10, and the application 11.
In the embodiment of the present invention, the user may perform a third input on the at least one identifier, so that the terminal device may update the at least one identifier on the first screen and the at least one identifier on the second screen, thereby enabling to quickly change the authority of the at least one application program (i.e., the application program indicated by the at least one identifier).
Optionally, in the embodiment of the present invention, before the step 201, the method for controlling an application to use a SIM card provided in the embodiment of the present invention may further include the following step 501 and step 502.
Step 501, the terminal device obtains a history record.
In the embodiment of the present invention, the history is used to indicate information of a SIM card used when the user uses each application in the terminal device historically.
Optionally, in the embodiment of the present invention, when the terminal device is in the application management mode, the terminal device may obtain the history, and the application management mode may be used for the terminal device to manage the authority of the application in the terminal device.
Optionally, in an embodiment of the present invention, the history record may include at least one of the following items: information of a SIM card used when the user uses each application program, the number of times the user uses the information of the SIM card used when the user uses each application program, the frequency of the information of the SIM card used when the user uses each application program, and the like.
Step 502, the terminal device updates the M identifiers on the first screen and the N identifiers on the second screen according to the history.
In the embodiment of the invention, each identifier in M identifiers and N identifiers is used for indicating one application program in the terminal equipment, and M and N are positive integers.
In the embodiment of the present invention, the terminal device may determine M identifiers from the first screen and N identifiers from the second screen according to the history, and then update the M identifiers and the N identifiers.
It is understood that the above M identifiers are used to indicate M applications, and the M applications can be understood as: the user history uses information of the second SIM to run the application.
It is understood that the above N identifiers are used to indicate N applications, and that the N applications can be understood as: the user history uses information of the first SIM to run the application.
Optionally, in the embodiment of the present invention, before the step 502, the method for controlling an application to use a SIM card provided in the embodiment of the present invention may further include the following step 601 and step 602, and the step 502 may be specifically implemented by the following step 502 a.
Step 601, the terminal device displays the prompt information.
In the embodiment of the present invention, the prompt information is used to prompt the user whether to move the M identifiers and the N identifiers.
Optionally, in the embodiment of the present invention, the terminal device may display the prompt information on the first screen; alternatively, the terminal device may display the prompt message on the second screen. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited herein.
Step 602, the terminal device receives a fourth input from the user.
In an embodiment of the present invention, the fourth input is input of a prompt message by a user.
Optionally, in this embodiment of the present invention, the fourth input may be a click operation of the user on the prompt information.
Optionally, in this embodiment of the present invention, the fourth input may be input of the M identifiers and the N identifiers by the user according to a prompt of the prompt information.
Optionally, in this embodiment of the present invention, the fourth input may specifically be a long-press input of M identifiers and N identifiers by a user.
Step 502a, the terminal device responds to the fourth input, and moves the M identifiers and the N identifiers according to the history record to update the M identifiers on the first screen and the N identifiers on the second screen.
Optionally, in this embodiment of the present invention, if the M applications are applications that the user uses the information of the second SIM historically to operate, the terminal device may move the M identifiers to the second screen; if the N applications are applications that the user has historically used the information of the first SIM to run, the terminal device may move the N identifiers to the first screen.
Illustratively, in conjunction with (a) in fig. 5, as shown in (a) in fig. 6, the mobile phone may display a prompt 12 on the first screen 10, the prompt 12 being used to prompt the user whether to move M and N identifiers (e.g., the icon of the application 2, the icon of the application 3, and the icon of the application 10), and after the user makes a fourth input to the prompt 12, as shown in (B) in fig. 6, the mobile phone may move the icon of the application 2 and the icon of the application 3 in the first screen 10 into the second screen 11 and move the icon of the application 10 into the first screen 10, so that the mobile phone displays the icon of the application 1, the icon of the application 4 into the icon of the application 6, the icon of the application 10 on the first screen 10, and displays the icon of the application 2, the icon of the application 3, the icon of the application 3, on the second screen 11, An icon of application 7 to an icon of application 9, an icon of application 11; the information of the first SIM card is used when the terminal device runs any one of the application programs 1, 4, 5, 6 and 10, and the information of the second SIM card is used when the terminal device runs any one of the application programs 2, 3, 7, 8, 9 and 11.
In the embodiment of the invention, the terminal equipment can update the M identifiers on the first screen and the N identifiers on the second screen according to the information of the SIM card used when the user uses each application program in the terminal equipment in history, so as to realize the purpose of quickly changing the authority of at least one application program.
Optionally, in this embodiment of the present invention, as shown in fig. 7 with reference to fig. 2, before "controlling the target application to use information of the target SIM card when running according to the first target screen where the target identifier is currently located" in step 202, the method for controlling the application to use the SIM card provided in this embodiment of the present invention may further include the following step 701, and step 202 may be specifically implemented by the following step 202c or step 202 d.
Step 701, the terminal device determines whether to move the target identifier in response to the first input.
Optionally, in the embodiment of the present invention, with reference to fig. 7, as shown in fig. 8, the step 701 may be specifically implemented by the following steps 701a to 701 c.
Step 701a, the terminal device determines a first target screen where the target identifier is currently located in response to the first input.
Step 701b, the terminal device determines the first information and the second information.
In this embodiment of the present invention, the first information is used to indicate a first data traffic, the second information is used to indicate a second data traffic, the first data traffic is a data traffic that is allowed to be used when the target application is run in the remaining data traffic of the first SIM card, and the second data traffic is a data traffic that is allowed to be used when the target application is run in the remaining data traffic of the second SIM card.
In this embodiment of the present invention, the first data traffic may be understood as: and the data traffic which can be used when the target application program runs in the residual data traffic of the first SIM card. The second data traffic may be understood as: and the data traffic which can be used when the target application program runs in the residual data traffic of the second SIM card.
And 701c, the terminal equipment determines whether the target identification is moved according to the first target screen, the first information and the second information.
Optionally, in this embodiment of the present invention, the step 701c may be specifically implemented by the following step 701c1, step 701c2, or step 701c 3.
And step 701c1, if the value of the first data traffic is greater than the value of the second data traffic and the target identifier is located in the second screen, the terminal device moves the target identifier to the first screen.
Optionally, in the embodiment of the present invention, if the first SIM card is traffic-free for the target application and the target identifier is located in the second screen, the terminal device moves the target identifier to the first screen.
And step 701c2, if the value of the first data traffic is smaller than the value of the second data traffic and the target identifier is located in the first screen, the terminal device moves the target identifier to the second screen.
Optionally, in the embodiment of the present invention, if the second SIM card is traffic-free for the target application and the target identifier is located in the first screen, the terminal device moves the target identifier to the second screen.
In step 701c3, if the value of the first data traffic is equal to the value of the second data traffic, the terminal device does not move the target identifier.
In the embodiment of the invention, the terminal equipment can make the target identifier be positioned on the screen corresponding to the SIM card with more data flow by comparing the numerical value of the first data flow of the first SIM card with the numerical value of the second data flow of the second SIM card, so that the terminal equipment uses the SIM card with more data flow when running the target application program, and the flexibility of selecting the SIM card by the terminal equipment can be improved.
Step 202c, under the condition that the target identifier is determined not to be moved, the terminal device controls the running of the target application program according to the first target screen where the target identifier is located currently, and uses the information of the SIM card corresponding to the first target screen.
It should be noted that, for the method for using the information of the SIM card corresponding to the first target screen when the terminal device controls the target application to run in step 202c, reference may be made to the description of step 202 in the foregoing embodiment, and details are not described here.
Step 202d, under the condition that the target identification is determined to move from the first target screen to the second target screen, the terminal device controls the running of the target application program according to the first target screen where the target identification is located at present, and the information of the SIM card corresponding to the second target screen is used.
It should be noted that, in the embodiment of the present invention, the second target screen is a first screen or a second screen.
It can be understood that if the first target screen is the first screen, the second target screen is the second screen; and if the first target screen is the second screen, the second target screen is the first screen.
It should be noted that, for the method for using the information of the SIM card corresponding to the second target screen when the terminal device controls the target application to run in step 202d, reference may be made to the description in step 202 in the foregoing embodiment, and details are not described here.
In the embodiment of the invention, the terminal equipment can judge whether the target identification is moved or not, and then determine whether the information of the SIM card corresponding to the first target screen or the information of the SIM card corresponding to the second target screen is used when the target application program is controlled to run according to the judgment result, so that the information of the corresponding SIM card can be used when the terminal equipment runs the target application program more accurately.
Optionally, in the embodiment of the present invention, before the step 201, the method for controlling an application to use a SIM card provided in the embodiment of the present invention may further include the following step 801 and step 802.
Step 801, after triggering and installing the target application program, the terminal device acquires information of the first SIM card and information of the second SIM card.
In this embodiment of the present invention, the information of the first SIM card is used to indicate a relationship between the target application program and the data traffic of the first SIM card, and the information of the second SIM card is used to indicate a relationship between the target application program and the data traffic of the second SIM card.
It can be understood that after the user triggers the terminal device to start installing the target application program, the terminal device may acquire the information of the first SIM card and the information of the second SIM card.
Optionally, in this embodiment of the present invention, the relationship between the target application and the data traffic of the first SIM card may be understood as any one of the following: whether the data traffic of the first SIM card is allowed to be used when the target application program is operated, the numerical value of the data traffic of the first SIM card allowed to be used when the target application program is operated in the data traffic of the first SIM card, and whether the data traffic of the first SIM card is free from the traffic of the target application program.
Optionally, in this embodiment of the present invention, the relationship between the data traffic of the target application and the second SIM card may be understood as any one of the following: whether the data traffic of the second SIM card is allowed to be used when the target application is running, the numerical value of the data traffic of the second SIM card allowed to be used when the target application is running in the data traffic of the second SIM card, and whether the data traffic of the second SIM card is traffic-free for the target application.
Optionally, in this embodiment of the present invention, the information of the first SIM card may include at least one of the following: data traffic of the first SIM card, subscription data of the first SIM card (which may be used to indicate tariff information of the first SIM card), and so on.
Optionally, in this embodiment of the present invention, the information of the second SIM card may include at least one of the following: data traffic of the second SIM card, subscription data of the second SIM card (which may be used to indicate tariff information of the second SIM card), and so on.
And step 802, the terminal equipment displays a target identifier on a first target screen according to the information of the first SIM card and the information of the second SIM card.
Optionally, in this embodiment of the present invention, if the data traffic of the first SIM card is allowed to be used when the target application is run, and the data traffic of the second SIM card is not allowed to be used when the target application is run, the terminal device may display the target identifier on the first screen.
Optionally, in the embodiment of the present invention, if the data traffic of the first SIM card is not allowed to be used when the target application is run, and the data traffic of the second SIM card is allowed to be used when the target application is run, the terminal device may display the target identifier on the second screen.
Optionally, in the embodiment of the present invention, if the data traffic of the first SIM card is allowed to be used when the target application is run, and the data traffic of the second SIM card is allowed to be used when the target application is run, the terminal device may determine to display the target identifier on the first screen or the second screen according to a size between a numerical value of the data traffic of the first SIM card and a numerical value of the data traffic of the second SIM card.
Optionally, in this embodiment of the present invention, if the value of the data traffic of the first SIM card allowed to be used when the target application is running is greater than the value of the data traffic of the second SIM card allowed to be used when the target application is running, the terminal device may display the target identifier on the first screen.
Optionally, in this embodiment of the present invention, if the value of the data traffic of the first SIM card allowed to be used when the target application is running is smaller than the value of the data traffic of the second SIM card allowed to be used when the target application is running, the terminal device may display the target identifier on the second screen.
Optionally, in the embodiment of the present invention, if the data traffic of the first SIM card is traffic-free for the target application program, and the data traffic of the second SIM card is traffic-free for the target application program, the terminal device may display the target identifier on the first screen.
Optionally, in the embodiment of the present invention, if the data traffic of the first SIM card is not traffic-free for the target application program, and the data traffic of the second SIM card is traffic-free for the target application program, the terminal device may display the target identifier on the second screen.
Optionally, in the embodiment of the present invention, if the data traffic of the first SIM card is traffic-free for the target application program, and the data traffic of the second SIM card is traffic-free for the target application program, the terminal device may display the target identifier on the first screen or the second screen.
Optionally, in the embodiment of the present invention, a user may perform input in the first screen to trigger the terminal device to display the first data traffic interface, where the first data traffic interface includes data traffic information of the first SIM card, and the data traffic information may include a numerical value of total package traffic of the first SIM card, a numerical value of used data traffic in the first SIM card, a numerical value of remaining data traffic in the first SIM card, available date information of data traffic in the first SIM card, a recharge link of data traffic in the first SIM card, and the like.
Optionally, in this embodiment of the present invention, the user may perform a sliding input (for example, a slide-down input) in the first screen to trigger the terminal device to display the first data traffic interface.
Optionally, in this embodiment of the present invention, a user may perform input in the second screen to trigger the terminal device to display a second data traffic interface, where the second data traffic interface includes data traffic information of the second SIM card, and the data traffic information may include a numerical value of total package traffic of the second SIM card, a numerical value of used data traffic in the second SIM card, a numerical value of remaining data traffic in the second SIM card, date information usable for data traffic in the second SIM card, a recharge link of data traffic in the second SIM card, and the like.
Optionally, in this embodiment of the present invention, the user may perform a slide input (for example, a slide-down input) in the second screen to trigger the terminal device to display the second data traffic interface.
Illustratively, after the user makes an input in the first screen and the second screen, as shown in fig. 9, the mobile phone displays a first data traffic interface 13 in the first screen 10 (the first data traffic interface 13 includes data traffic information of the first SIM card), and displays a second data traffic interface 14 in the second screen 11 (the second data traffic interface 14 includes data traffic information of the second SIM card).
In the embodiment of the invention, a user can trigger the terminal equipment to display the first data traffic interface and the second data traffic interface by inputting in the first screen and the second screen, so that the data traffic information of the first SIM card and the data traffic information of the second SIM card can be quickly checked.
Optionally, in the embodiment of the present invention, after the step 202, the method for controlling an application to use a SIM card provided in the embodiment of the present invention may further include the following step 901 and step 902.
And step 901, the terminal device receives a fifth input of the user.
In an embodiment of the present invention, the fifth input is an input of third information in a first interface by a user, where the first interface is an interface of a first application program, and the first application program is an application program running in a foreground in a first screen.
Optionally, in this embodiment of the present invention, the fifth input may be used to trigger the terminal device to store the third information.
Optionally, in this embodiment of the present invention, the fifth input may be a copy operation and a save operation of the user on the third information.
Optionally, in this embodiment of the present invention, the third information may be keywords (for example, keywords of a commodity), links, picture information, and the like in the first interface.
And step 902, the terminal device responds to the fifth input and displays a second interface on the second screen according to the third information.
In an embodiment of the present invention, the second interface includes at least one piece of fourth information, where the at least one piece of fourth information is obtained after the third information is searched in the first application program, and the second interface is an interface different from the first interface in the first application program.
Optionally, in the embodiment of the present invention, the terminal device may use the same running account to run the first application program in the first screen and the second screen, respectively.
Optionally, in the embodiment of the present invention, the terminal device may use different running accounts to run the first application program in the first screen and the second screen, respectively.
Illustratively, as shown in fig. 10 (a), a first interface 15 (i.e., an interface of a first application) is displayed on the first screen 10 of the mobile phone, the first interface 15 includes information of a commodity (e.g., a title, picture information, a control, etc. of the commodity), and at least one identifier (e.g., an icon of the application 7 to an icon of the application 11) is displayed on the second screen 11, and after a fifth input is made to third information (e.g., a title of the commodity) by the user, as shown in fig. 10 (B), the mobile phone runs the first application on the second screen 11 and displays a second interface 16, the second interface 16 includes at least one fourth information (e.g., a title, picture information, a control, etc. of the commodity) searched by the third information.
In the embodiment of the invention, the user can perform fifth input on the third information in the first screen, so that the terminal device can display the second interface on the second screen according to the third information, and the second interface comprises at least one piece of fourth information obtained by searching through the third information, thereby realizing rapid comparison of different information displayed in the two screens.
Fig. 11 shows a schematic diagram of a possible structure of a terminal device involved in the embodiment of the present invention. As shown in fig. 11, the terminal device 110 may include: a receiving module 111 and a control module 112.
The receiving module 111 is configured to receive a first input of a user, where the first input is an input of a target identifier by the user, and the target identifier is used to indicate a target application in a terminal device. A control module 112, configured to, in response to the first input received by the receiving module 111, control the target application to use information of a target SIM card when running according to a first target screen where the target identifier is currently located, where the target SIM card is a SIM card corresponding to a first target screen in SIM cards of the terminal device, and the first target screen is the first screen or the second screen. And when the application programs corresponding to different screens run, the information of different SIM cards in the terminal equipment is used.
In a possible implementation manner, the first screen corresponds to a first SIM card in the terminal device, and the second screen corresponds to a second SIM card in the terminal device. The control module 112 is specifically configured to, if the first target screen is the first screen, control the target application program to run by using information of the first SIM card corresponding to the first screen; or if the first target screen is the second screen, controlling the target application program to run by using the information of the second SIM card corresponding to the second screen.
In a possible implementation manner, the receiving module 111 is further configured to receive a second input from the user before receiving the first input from the user. With reference to fig. 11, as shown in fig. 12, the terminal device provided in the embodiment of the present invention may further include: a module 113 is provided. Wherein, the setting module 113 is configured to set the permission of the first screen and the permission of the second screen in response to the second input received by the receiving module 111. Wherein, the authority of the first screen is as follows: the application program corresponding to the first screen uses the information of the first SIM card, and the permission of the second screen is as follows: and the application programs corresponding to the second screen all use the information of the second SIM card.
In a possible implementation manner, the receiving module 111 is further configured to receive a third input from the user, where the third input is input from the user to at least one identifier, and each identifier is used to indicate an application program in the terminal device. With reference to fig. 12, as shown in fig. 13, the terminal device provided in the embodiment of the present invention may further include: and an update module 114. Wherein, the updating module 114 is configured to update the at least one identifier on the first screen and the at least one identifier on the second screen in response to the third input received by the receiving module 111 after the setting module 113 sets the authority of the first screen and the authority in the second screen.
In a possible implementation manner, with reference to fig. 11, as shown in fig. 14, the terminal device provided in the embodiment of the present invention may further include: an acquisition module 115 and an update module 114. The obtaining module 115 is configured to obtain a history record, where the history record is used to indicate information of a SIM card used by a user in historical use of each application in the terminal device. An updating module 114, configured to update, according to the history record obtained by the obtaining module 115, M identifiers on the first screen and N identifiers on the second screen, where each identifier is used to indicate an application program in the terminal device, and M and N are positive integers.
In a possible implementation manner, with reference to fig. 14 and as shown in fig. 15, the terminal device provided in the embodiment of the present invention may further include: a display module 116. The display module 116 is configured to display a prompt message for prompting the user whether to move the M identifiers and the N identifiers before the update module 114 updates the at least one identifier on the first screen and the at least one identifier on the second screen according to the history. The receiving module 111 is further configured to receive a fourth input of the user, where the fourth input is an input of the prompt information by the user. The updating module 114 is specifically configured to, in response to the fourth input received by the receiving module 111, move the M identifiers and the N identifiers according to the history record, so as to update the M identifiers on the first screen and the N identifiers on the second screen.
In a possible implementation manner, with reference to fig. 11, as shown in fig. 16, the terminal device provided in the embodiment of the present invention may further include: a determination module 117. Wherein, the determining module 117 is configured to determine whether to move the target identifier before the control module 112 controls the target application to run using the information of the target SIM card according to the first target screen where the target identifier is currently located. The control module 112 is specifically configured to, when the determining module 117 determines that the target identifier is not moved, control the target application program to run according to a first target screen where the target identifier is currently located, and use information of a SIM card corresponding to the first target screen; or, in the case that the determining module 117 determines that the target identifier moves from the first target screen to the second target screen, the information of the SIM card corresponding to the second target screen is used when the target application program is controlled to run according to the first target screen where the target identifier is currently located.
In a possible implementation manner, the determining module 117 is specifically configured to determine a first target screen where the target identifier is currently located; determining first information and second information, wherein the first information is used for indicating first data traffic, the second information is used for indicating second data traffic, the first data traffic is data traffic which is allowed to be used when a target application program is operated in the residual data traffic of the first SIM card, and the second data traffic is data traffic which is allowed to be used when the target application program is operated in the residual data traffic of the second SIM card; and determining whether to move the target identifier according to the first target screen, the first information and the second information.
In a possible implementation manner, the determining module 117 is specifically configured to move the target identifier to the first screen if the value of the first data traffic is greater than the value of the second data traffic and the target identifier is located in the second screen; or if the numerical value of the first data flow is smaller than the numerical value of the second data flow and the target identifier is located in the first screen, moving the target identifier to the second screen; or, if the value of the first data traffic is equal to the value of the second data traffic, the target identifier is not moved.
In a possible implementation manner, with reference to fig. 11 and as shown in fig. 17, the terminal device provided in the embodiment of the present invention may further include: an acquisition module 115 and a display module 116. Before the receiving module 111 receives the first input of the user, after triggering to install the target application, the obtaining module 115 is configured to obtain information of a first SIM card and information of a second SIM card, where the information of the first SIM card is used to indicate a relationship between the target application and data traffic of the first SIM card, and the information of the second SIM card is used to indicate a relationship between the target application and data traffic of the second SIM card. And a display module 116, configured to display the target identifier on the first target screen according to the information of the first SIM card and the information of the second SIM card acquired by the acquisition module 115.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and for avoiding repetition, detailed description is not repeated here.
The embodiment of the invention provides a terminal device, which can enable the terminal device to use a SIM card corresponding to a first target screen according to the first target screen where a target identifier is located when the terminal device directly controls a target application program to run after the user first inputs the target identifier, and does not need to be set to select the SIM card corresponding to the application program before the user inputs the identifier (such as the target identifier) of one application program every time, so that the operation of the user can be simplified, and the time consumption of the user can be saved.
Fig. 18 is a hardware diagram of a terminal device for implementing various embodiments of the present invention. As shown in fig. 18, terminal devices 180 include, but are not limited to: a radio frequency unit 181, a network module 182, an audio output unit 183, an input unit 184, a sensor 185, a display unit 186, a user input unit 187, an interface unit 188, a memory 189, a processor 190, and a power supply 191.
It should be noted that, as those skilled in the art will appreciate, the terminal device structure shown in fig. 18 does not constitute a limitation to the terminal device, and the terminal device may include more or less components than those shown in fig. 18, or may combine some components, or may arrange different components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 187 is configured to receive a first input from a user, where the first input is an input from the user to a target identifier, and the target identifier is used to indicate a target application in the terminal device.
Processor 190, configured to, in response to a first input received by user input unit 187, control, according to a first target screen where a target identifier is currently located, that a target application program uses information of a target SIM card when running, where the target SIM card is a SIM card corresponding to a first target screen in SIM cards of terminal devices, and the first target screen is the first screen or the second screen; and when the application programs corresponding to different screens run, the information of different SIM cards in the terminal equipment is used.
The embodiment of the invention provides a terminal device, which can enable the terminal device to use a SIM card corresponding to a first target screen according to the first target screen where a target identifier is located when the terminal device directly controls a target application program to run after the user first inputs the target identifier, and does not need to be set to select the SIM card corresponding to the application program before the user inputs the identifier (such as the target identifier) of one application program every time, so that the operation of the user can be simplified, and the time consumption of the user can be saved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 181 may be configured to receive and transmit signals during a message transmission and reception process or a call process, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 190; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 181 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 181 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access via the network module 182, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 183 may convert audio data received by the radio frequency unit 181 or the network module 182 or stored in the memory 189 into an audio signal and output as sound. Also, the audio output unit 183 may also provide audio output related to a specific function performed by the terminal device 180 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 183 includes a speaker, a buzzer, a receiver, and the like.
The input unit 184 is for receiving an audio or video signal. The input Unit 184 may include a Graphics Processing Unit (GPU) 1841 and a microphone 1842, and the Graphics processor 1841 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 186. The image frames processed by the graphic processor 1841 may be stored in the memory 189 (or other storage medium) or transmitted via the radio frequency unit 181 or the network module 182. The microphone 1842 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 181 in case of a phone call mode.
The terminal device 180 further includes at least one sensor 185, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 1861 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1861 and/or the backlight when the terminal device 180 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 185 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 186 is used to display information input by the user or information provided to the user. The Display unit 186 may include a Display panel 1861, and the Display panel 1861 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 187 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 187 includes a touch panel 1871 and other input devices 1872. Touch panel 1871, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on touch panel 1871 or near touch panel 1871 using any suitable object or attachment such as a finger, stylus, etc.). Touch panel 1871 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 190, receives a command from the processor 190, and executes the command. In addition, the touch panel 1871 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to touch panel 1871, user input unit 187 may include other input devices 1872. In particular, other input devices 1872 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, touch panel 1871 can be overlaid on display panel 1861, and when touch panel 1871 detects a touch operation on or near touch panel 1871, the touch operation can be transmitted to processor 190 to determine the type of touch event, and then processor 190 can provide corresponding visual output on display panel 1861 according to the type of touch event. Although in fig. 18, the touch panel 1871 and the display panel 1861 are implemented as two separate components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1871 and the display panel 1861 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 188 is an interface for connecting an external device to the terminal apparatus 180. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 188 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 terminal apparatus 180 or may be used to transmit data between the terminal apparatus 180 and an external device.
The memory 189 may be used to store software programs as well as various data. The memory 189 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 189 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 190 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 189 and calling data stored in the memory 189, thereby integrally monitoring the terminal device. Processor 190 may include one or more processing units; preferably, the processor 190 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 190.
Terminal device 180 may also include a power supply 191 (e.g., a battery) for powering the various components, and preferably, power supply 191 may be logically coupled to processor 190 via a power management system such that functions such as managing charging, discharging, and power consumption are performed via the power management system.
In addition, the terminal device 180 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal device, which includes the processor 190 shown in fig. 18, the memory 189, and a computer program stored in the memory 189 and capable of running on the processor 190, where the computer program, when executed by the processor 190, implements the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A method for controlling application program to use SIM card is applied to terminal equipment, the terminal equipment comprises a first screen and a second screen, and the method comprises:
receiving a first input of a user, wherein the first input is input of a target identifier by the user, and the target identifier is used for indicating a target application program in the terminal equipment;
responding to the first input, and controlling a target application program to use information of a target SIM card when running according to a first target screen where the target identifier is located currently, wherein the target SIM card is an SIM card corresponding to the first target screen in SIM cards of the terminal equipment, and the first target screen is the first screen or the second screen;
when application programs corresponding to different screens run, the information of different SIM cards in the terminal equipment is used;
receiving a fourth input of the user, wherein the fourth input is the input of the prompt message by the user;
in response to the fourth input, moving the M identifiers and the N identifiers according to the history to update the M identifiers on the first screen and the N identifiers on the second screen; the history record is used for indicating the information of using the SIM card when the user uses each application program in the terminal equipment historically;
receiving a fifth input of a user, wherein the fifth input is input of third information in a first interface by the user, and the first interface is an interface of the target application program;
and responding to the fifth input, and displaying a second interface on the second screen according to the third information, wherein the second interface comprises at least one piece of fourth information, the at least one piece of fourth information is information obtained by searching the third information in the target application program, and the second interface is an interface which is different from the first interface in the target application program.
2. The method of claim 1, wherein the first screen corresponds to a first SIM card in the terminal device and the second screen corresponds to a second SIM card in the terminal device;
the information for controlling the target application program to use the target SIM card when running according to the first target screen where the target identifier is located at present comprises:
if the first target screen is the first screen, controlling the target application program to run by using the information of the first SIM card corresponding to the first screen;
and if the first target screen is the second screen, controlling the target application program to run by using the information of the second SIM card corresponding to the second screen.
3. The method of claim 2, wherein before controlling the target application to use the information of the target SIM card when running according to the first target screen where the target identifier is currently located, the method further comprises:
determining whether to move the target identifier;
the information that the target application program uses the target SIM card when running is controlled according to the first target screen where the target identifier is currently located comprises the following steps:
under the condition that the target identification is determined not to be moved, controlling the target application program to run according to a first target screen where the target identification is located currently, and using information of an SIM card corresponding to the first target screen;
and under the condition that the target identification is determined to move from the first target screen to the second target screen, controlling the target application program to use the information of the SIM card corresponding to the second target screen when the target application program runs according to the first target screen where the target identification is located currently.
4. The method of claim 3, wherein the determining whether to move the target identifier comprises:
determining a first target screen where the target identification is located currently;
determining first information and second information, wherein the first information is used for indicating first data traffic, the second information is used for indicating second data traffic, the first data traffic is data traffic which is allowed to be used when the target application program is operated in the residual data traffic of the first SIM card, and the second data traffic is data traffic which is allowed to be used when the target application program is operated in the residual data traffic of the second SIM card;
and determining whether to move the target identifier according to the first target screen, the first information and the second information.
5. The method of claim 4, wherein said determining whether to move the target identifier based on the first target screen, the first information, and the second information comprises:
if the value of the first data flow is larger than the value of the second data flow and the target identifier is located in the second screen, moving the target identifier to the first screen;
if the value of the first data flow is smaller than the value of the second data flow and the target identifier is located in the first screen, moving the target identifier to the second screen;
if the value of the first data traffic is equal to the value of the second data traffic, the target identifier is not moved.
6. A terminal device, the terminal device including a first screen and a second screen, the terminal device comprising: the device comprises a receiving module, a control module and a display module;
the receiving module is used for receiving a first input of a user, wherein the first input is input of a target identifier by the user, and the target identifier is used for indicating a target application program in the terminal equipment;
the control module is configured to control, in response to the first input received by the receiving module, according to a first target screen where the target identifier is currently located, the target application program to use information of a target subscriber identity module SIM card when running, where the target SIM card is a SIM card corresponding to the first target screen in SIM cards of the terminal device, and the first target screen is the first screen or the second screen;
when application programs corresponding to different screens run, using information of different SIM cards in the terminal equipment;
the receiving module is further configured to receive a fourth input of the user, where the fourth input is input of the prompt information by the user;
the control module is used for responding to the fourth input received by the receiving module, and moving the M identifications and the N identifications according to the history record so as to update the M identifications on the first screen and the N identifications on the second screen; the history record is used for indicating the information of using the SIM card when the user uses each application program in the terminal equipment in history;
the receiving module is further configured to receive a fifth input of the user, where the fifth input is input of third information in a first interface by the user, and the first interface is an interface of the target application program;
the display module is configured to respond to the fifth input, and display a second interface on the second screen according to the third information, where the second interface includes at least one piece of fourth information, the at least one piece of fourth information is information obtained by searching the third information in the target application program, and the second interface is an interface different from the first interface in the target application program.
7. The terminal device of claim 6, wherein the first screen corresponds to a first SIM card in the terminal device, and the second screen corresponds to a second SIM card in the terminal device;
the control module is specifically configured to, if the first target screen is the first screen, control the target application program to run using information of the first SIM card corresponding to the first screen; or, if the first target screen is the second screen, controlling the target application program to run by using the information of the second SIM card corresponding to the second screen.
8. The terminal device according to claim 7, wherein the terminal device further comprises: a determination module;
the determining module is used for determining whether to move the target identifier before the control module controls the target application program to use the information of the target SIM card when running according to the first target screen where the target identifier is located currently;
the control module is specifically configured to, when the determination module determines that the target identifier is not moved, control the target application program to run according to a first target screen where the target identifier is currently located, and use information of an SIM card corresponding to the first target screen; or, when the determining module determines that the target identifier moves from the first target screen to a second target screen, controlling the target application program to run according to the first target screen where the target identifier is currently located, and using information of a SIM card corresponding to the second target screen.
9. The terminal device according to claim 8, wherein the determining module is specifically configured to determine a first target screen where the target identifier is currently located; determining first information and second information, wherein the first information is used for indicating a first data traffic, the second information is used for indicating a second data traffic, the first data traffic is the data traffic which is allowed to be used when the target application program is operated in the residual data traffic of the first SIM card, and the second data traffic is the data traffic which is allowed to be used when the target application program is operated in the residual data traffic of the second SIM card; and determining whether to move the target identifier according to the first target screen, the first information and the second information.
10. The terminal device according to claim 9, wherein the determining module is specifically configured to move the target identifier to the first screen if the value of the first data traffic is greater than the value of the second data traffic and the target identifier is located in the second screen; or, if the value of the first data traffic is smaller than the value of the second data traffic and the target identifier is located in the first screen, moving the target identifier to the second screen; or, if the value of the first data traffic is equal to the value of the second data traffic, the target identifier is not moved.
11. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method for controlling the use of a subscriber identity module, SIM, card by an application according to any one of claims 1 to 5.
CN201910310091.1A 2019-04-17 2019-04-17 Method for controlling application program to use SIM card and terminal equipment Active CN110167006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910310091.1A CN110167006B (en) 2019-04-17 2019-04-17 Method for controlling application program to use SIM card and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910310091.1A CN110167006B (en) 2019-04-17 2019-04-17 Method for controlling application program to use SIM card and terminal equipment

Publications (2)

Publication Number Publication Date
CN110167006A CN110167006A (en) 2019-08-23
CN110167006B true CN110167006B (en) 2022-05-06

Family

ID=67639640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910310091.1A Active CN110167006B (en) 2019-04-17 2019-04-17 Method for controlling application program to use SIM card and terminal equipment

Country Status (1)

Country Link
CN (1) CN110167006B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110533514A (en) * 2019-09-03 2019-12-03 深圳市沃特沃德股份有限公司 Intelligent recharge method, device and the computer equipment of vehicle-mounted flow
CN111601287B (en) * 2020-04-29 2023-08-08 维沃移动通信有限公司 Network switching method, electronic equipment and storage medium
CN113055957A (en) * 2021-03-15 2021-06-29 歌尔科技有限公司 Cellular mobile network access method, terminal equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513736A (en) * 2018-03-27 2018-09-07 华为技术有限公司 A kind of data processing method, device and terminal device
CN109117054A (en) * 2018-07-23 2019-01-01 维沃移动通信有限公司 A kind of display control method and terminal
CN109151162A (en) * 2018-06-27 2019-01-04 努比亚技术有限公司 A kind of multi-panel screen interaction control method, equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513736A (en) * 2018-03-27 2018-09-07 华为技术有限公司 A kind of data processing method, device and terminal device
CN109151162A (en) * 2018-06-27 2019-01-04 努比亚技术有限公司 A kind of multi-panel screen interaction control method, equipment and computer readable storage medium
CN109117054A (en) * 2018-07-23 2019-01-01 维沃移动通信有限公司 A kind of display control method and terminal

Also Published As

Publication number Publication date
CN110167006A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110851051B (en) Object sharing method and electronic equipment
CN109542282B (en) Interface display method and terminal equipment
CN110062105B (en) Interface display method and terminal equipment
CN110502163B (en) Terminal device control method and terminal device
CN111142991A (en) Application function page display method and electronic equipment
CN109828705B (en) Icon display method and terminal equipment
CN108763541B (en) Page display method and terminal
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN111142723B (en) Icon moving method and electronic equipment
CN110888707A (en) Message sending method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN111163260B (en) Camera starting method and electronic equipment
CN110489045B (en) Object display method and terminal equipment
CN110752981B (en) Information control method and electronic equipment
CN108491148B (en) Application sharing method and terminal
CN111273993B (en) Icon arrangement method and electronic equipment
CN110049486B (en) SIM card selection method and terminal equipment
CN109521920B (en) Application icon control method and terminal equipment
CN111026350A (en) Display control method and electronic equipment
CN109408072B (en) Application program deleting method and terminal equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN108804151B (en) Method and terminal for restarting application program
CN111190517B (en) Split screen display method and electronic equipment
CN110012152B (en) Interface display method and terminal equipment
CN109067975B (en) Contact person information management 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