Movatterモバイル変換


[0]ホーム

URL:


CN105208197A - A method and terminal for switching subscriber identification cards - Google Patents

A method and terminal for switching subscriber identification cards
Download PDF

Info

Publication number
CN105208197A
CN105208197ACN201510505991.3ACN201510505991ACN105208197ACN 105208197 ACN105208197 ACN 105208197ACN 201510505991 ACN201510505991 ACN 201510505991ACN 105208197 ACN105208197 ACN 105208197A
Authority
CN
China
Prior art keywords
subscriber identity
identity card
priority
card
user identification
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.)
Pending
Application number
CN201510505991.3A
Other languages
Chinese (zh)
Inventor
唐海
曾元清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510505991.3ApriorityCriticalpatent/CN105208197A/en
Publication of CN105208197ApublicationCriticalpatent/CN105208197A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The embodiment of the invention discloses a subscriber identity module card switching method and a terminal, wherein the method comprises the following steps: receiving a user identification card setting instruction triggered by a target communication application; acquiring a first user identification card selected by a user from at least two user identification cards according to a user identification card setting instruction, setting a first priority user identification card corresponding to a target communication application as the first user identification card, acquiring a second user identification card from the at least two user identification cards, and setting the second priority user identification card corresponding to the target communication application as the second user identification card; detecting whether the terminal meets a preset subscriber identity module card switching condition or not; if so, switching and setting the first priority user identification card corresponding to the target communication application as a second user identification card. By adopting the invention, the terminal adopts the preset user identification card to execute the communication application, the selection operation of the user is reduced, and the terminal can switch the user identification card, thereby realizing the intelligent switching of the user identification card.

Description

Translated fromChinese
一种用户识别卡切换方法及终端A method and terminal for switching subscriber identification cards

技术领域technical field

本发明涉及移动通信领域,尤其涉及一种用户识别卡切换方法及终端。The invention relates to the field of mobile communication, in particular to a user identification card switching method and a terminal.

背景技术Background technique

目前的智能手机中很多都可以配备多张用户识别卡(SubscriberIdentityModule,SIM卡),用户的不同的SIM卡可能具有不同的数据包服务,例如,联通卡中的数据流量包资费比较便宜,用户在上网时,采用联通卡上网比较优惠,移动卡的彩信业务资费比较便宜,用户在向其他用户发彩信时,采用移动卡比较优惠。用户在触发执行这些应用时,需要手动选择或者切换到相应的SIM卡,进而采用选择的SIM卡执行相应的应用,操作步骤繁琐,影响用户体验,且手机不具备智能切换SIM卡的功能。Many of the current smart phones can be equipped with multiple Subscriber Identity Modules (Subscriber Identity Modules, SIM cards). Different SIM cards of users may have different data package services. When surfing the Internet, it is more favorable to use the Unicom card to surf the Internet, and the MMS service fee of the mobile card is relatively cheap. When users send MMS to other users, it is more favorable to use the mobile card. When the user triggers the execution of these applications, he needs to manually select or switch to the corresponding SIM card, and then use the selected SIM card to execute the corresponding application. The operation steps are cumbersome and affect the user experience, and the mobile phone does not have the function of intelligently switching SIM cards.

发明内容Contents of the invention

本发明实施例所要解决的技术问题在于,提供一种用户识别卡切换方法及终端,终端在执行通信应用时,可自动采用预先建立对应关系的用户识别卡执行该通信应用,减少了用户的选择操作,且终端在满足用户识别卡切换条件时,可自动进行用户识别卡的切换,实现了用户识别卡的智能切换,进而提高了终端通信应用的执行效率。The technical problem to be solved by the embodiments of the present invention is to provide a user identification card switching method and a terminal. When the terminal executes a communication application, it can automatically execute the communication application by using a user identification card with a pre-established corresponding relationship, which reduces the user's choice. operation, and when the terminal meets the user identification card switching conditions, it can automatically switch the user identification card, realizing the intelligent switching of the user identification card, thereby improving the execution efficiency of the terminal communication application.

第一方面,本发明实施例提供了一种用户识别卡切换方法,终端包括至少两张用户识别卡,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for switching a subscriber identification card. The terminal includes at least two subscriber identification cards. The method includes:

接收针对目标通信应用触发的用户识别卡设置指令;receiving a user identification card setting instruction triggered by a target communication application;

根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用;According to the user identification card setting instruction, obtain the first user identification card selected by the user from the at least two user identification cards, and set the first priority user identification card corresponding to the target communication application as the first user An identification card, obtaining a second user identification card from the at least two user identification cards, and setting the second priority user identification card corresponding to the target communication application as the second user identification card, wherein, in the After the terminal receives the execution instruction triggered for the target communication application, it executes the target communication application by using the first priority subscriber identity card;

检测所述终端是否满足预设用户识别卡切换条件;Detecting whether the terminal satisfies a preset user identification card switching condition;

若是,将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。If yes, switch and set the first priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.

结合第一方面,在第一方面的第一种可能的实现方式中,所述检测所述终端是否满足预设用户识别卡切换条件,包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the detecting whether the terminal meets a preset user identification card switching condition includes:

检测所述终端当前的通信网络状态、地理位置状态、用户识别卡漫游状态和用户识别卡虚拟资源状态中的至少一种是否满足所述预设用户识别卡切换条件;Detecting whether at least one of the terminal's current communication network state, geographic location state, subscriber identity card roaming state, and subscriber identity card virtual resource state satisfies the preset subscriber identity card switching condition;

若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。If yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.

结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述检测所述终端当前的用户识别卡虚拟资源状态是否满足所述预设用户识别卡切换条件,包括:With reference to the first possible implementation of the first aspect, in the second possible implementation of the first aspect, the detecting whether the current subscriber identity card virtual resource status of the terminal satisfies the preset subscriber identity card Switching conditions, including:

检测所述第一优先级用户识别卡的虚拟资源是否不足,若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。Detecting whether the virtual resource of the first-priority subscriber identity card is insufficient, if yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.

结合第一方面,在第一方面的第三种可能的实现方式中,所述根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡之后,还包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, the first subscriber identification card selected by the user is acquired from the at least two subscriber identification cards according to the subscriber identification card setting instruction, and the The first priority subscriber identity card corresponding to the target communication application is set as the first subscriber identity card, the second subscriber identity card is obtained from the at least two subscriber identity cards, and the target communication application corresponding to After the second priority subscriber identity card is set as the second subscriber identity card, it also includes:

当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源。When it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, the virtual resource generated by the first-priority subscriber identity card is deducted from the second-priority subscriber identity card.

结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,包括:With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, when it is detected that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition, Deducting the virtual resources generated by the first-priority subscriber identity card from the second-priority subscriber identity card includes:

当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,中断所述目标通信应用;When detecting that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition, interrupting the target communication application;

设置从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并通过所述第一优先级用户识别卡启动执行所述目标通信应用。Setting the virtual resource generated by deducting the first-priority subscriber identity card from the second-priority subscriber identity card, and starting and executing the target communication application through the first-priority subscriber identity card.

结合第一方面的第三种可能的实现方式,在第一方面的第五种可能的实现方式中,所述当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,包括:With reference to the third possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, when it is detected that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition, Deducting the virtual resources generated by the first-priority subscriber identity card from the second-priority subscriber identity card includes:

当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并无缝执行所述目标通信应用。When it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, the virtual resource generated by the first-priority subscriber identity card is deducted from the second-priority subscriber identity card, and seamlessly The target communication application is executed.

结合第一方面,在第一方面的第六种可能的实现方式中,所述在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用,包括:With reference to the first aspect, in a sixth possible implementation manner of the first aspect, after the terminal receives an execution instruction triggered for the target communication application, execute using the first-priority subscriber identity card The target communication application includes:

接收针对所述目标通信应用触发的所述执行指令;receiving the execution instruction triggered for the target communication application;

根据所述执行指令生成所述目标通信应用对应的操作界面,并通过所述操作界面接收选择指令,所述选择指令用于指示选择所述第一优先级用户识别卡或所述第二优先级用户识别卡;Generate an operation interface corresponding to the target communication application according to the execution instruction, and receive a selection instruction through the operation interface, the selection instruction is used to instruct to select the first priority subscriber identity card or the second priority subscriber identity card user identification card;

当选择所述第一优先级用户识别卡时,采用所述第一优先级用户识别卡执行所述目标通信应用;当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用。When the first priority subscriber identity card is selected, the target communication application is executed using the first priority subscriber identity card; when the second priority subscriber identity card is selected, the second priority subscriber identity card is used The subscriber identity card executes the target communication application.

结合第一方面的第六种可能的实现方式,在第一方面的第七种可能的实现方式中,所述当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用,包括:With reference to the sixth possible implementation manner of the first aspect, in the seventh possible implementation manner of the first aspect, when selecting the second priority user identification card, using the second priority user The identification card executes the target communication application, including:

当选择所述第二优先级用户识别卡时,接收所述用户输入的验证密码;When selecting the second priority user identification card, receiving the verification password input by the user;

判断所述验证密码与预设密码是否匹配,若是,执行所述采用所述第二优先级用户识别卡执行所述目标通信应用的步骤。Judging whether the verification password matches the preset password, and if so, performing the step of executing the target communication application by using the second priority subscriber identification card.

结合第一方面,在第一方面的第八种可能的实现方式中,所述根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡之后,还包括:With reference to the first aspect, in an eighth possible implementation manner of the first aspect, the first subscriber identification card selected by the user is acquired from the at least two subscriber identification cards according to the subscriber identification card setting instruction, and the The first priority subscriber identity card corresponding to the target communication application is set as the first subscriber identity card, the second subscriber identity card is obtained from the at least two subscriber identity cards, and the target communication application corresponding to After the second priority subscriber identity card is set as the second subscriber identity card, it also includes:

在所述目标通信应用对应的操作界面中接收针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡触发的显示指令;receiving a display instruction triggered for the first priority subscriber identity card and/or the second priority subscriber identity card in the operation interface corresponding to the target communication application;

根据所述显示指令在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息。Displaying card information corresponding to the first-priority subscriber identity card and/or the second-priority subscriber identity card on the operation interface according to the display instruction.

第二方面,本发明实施例提供了一种终端,所述终端包括至少两张用户识别卡,所述终端包括:In a second aspect, an embodiment of the present invention provides a terminal, the terminal includes at least two user identification cards, and the terminal includes:

第一接收模块,用于接收针对目标通信应用触发的用户识别卡设置指令;The first receiving module is configured to receive a user identification card setting instruction triggered by a target communication application;

设置模块,用于根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用;A setting module, configured to obtain the first user identification card selected by the user from the at least two user identification cards according to the user identification card setting instruction, and set the first priority user identification card corresponding to the target communication application as The first subscriber identity card is to obtain a second subscriber identity card from the at least two subscriber identity cards, and set the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card , wherein, after the terminal receives the execution instruction triggered for the target communication application, execute the target communication application by using the first priority subscriber identity card;

检测模块,用于检测所述终端是否满足预设用户识别卡切换条件;A detection module, configured to detect whether the terminal satisfies a preset user identification card switching condition;

切换模块,用于若检测到所述终端满足所述预设用户识别卡切换条件,将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。The switching module is configured to switch and set the first priority subscriber identity card corresponding to the target communication application as the second subscriber identity card if it is detected that the terminal satisfies the preset subscriber identity card switching condition.

结合第二方面,在第二方面的第一种可能的实现方式中,所述检测模块具体用于检测所述终端当前的通信网络状态、地理位置状态、用户识别卡漫游状态和用户识别卡虚拟资源状态中的至少一种是否满足所述预设用户识别卡切换条件;With reference to the second aspect, in the first possible implementation of the second aspect, the detection module is specifically configured to detect the current communication network status, geographic location status, subscriber identity card roaming status, and subscriber identity card virtual status of the terminal. Whether at least one of the resource states satisfies the preset subscriber identity card switching condition;

若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。If yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.

结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述检测单元具体用于检测所述用户识别卡的虚拟资源是否不足,若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。With reference to the first possible implementation of the second aspect, in the second possible implementation of the second aspect, the detection unit is specifically configured to detect whether the virtual resources of the subscriber identity card are insufficient, and if so, detect The result is that the terminal satisfies the preset subscriber identity card switching condition.

结合第二方面,在第二方面的第三种可能的实现方式中,所述终端还包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, the terminal further includes:

扣除模块,用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源。A deduction module, configured to deduct the virtual resources generated by the first-priority subscriber identity card from the second-priority subscriber identity card when it is detected that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition. resource.

结合第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,所述扣除模块包括:With reference to the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the deduction module includes:

中断单元,用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,中断所述目标通信应用;an interrupt unit, configured to interrupt the target communication application when it is detected that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition;

设置单元,用于设置从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并通过所述第一优先级用户识别卡启动执行所述目标通信应用。A setting unit, configured to set the virtual resource generated by deducting the first priority subscriber identity card from the second priority subscriber identity card, and start and execute the target communication application through the first priority subscriber identity card .

结合第二方面的第三种可能的实现方式,在第二方面的第五种可能的实现方式中,所述扣除模块具体用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并无缝执行所述目标通信应用。With reference to the third possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the deduction module is specifically configured to detect that the first-priority subscriber identity card satisfies the preset virtual When the resource transfer condition is met, the virtual resource generated by the first-priority subscriber identity card is deducted from the second-priority subscriber identity card, and the target communication application is seamlessly executed.

结合第二方面,在第二方面的第六种可能的实现方式中,所述终端还包括第二接收模块,所述第二接收模块包括:With reference to the second aspect, in a sixth possible implementation manner of the second aspect, the terminal further includes a second receiving module, and the second receiving module includes:

接收单元,用于接收针对所述目标通信应用触发的所述执行指令;a receiving unit, configured to receive the execution instruction triggered for the target communication application;

选择单元,用于根据所述执行指令生成所述目标通信应用对应的操作界面,并通过所述操作界面接收选择指令,所述选择指令用于指示选择所述第一优先级用户识别卡或所述第二优先级用户识别卡;A selection unit, configured to generate an operation interface corresponding to the target communication application according to the execution instruction, and receive a selection instruction through the operation interface, and the selection instruction is used to instruct selection of the first priority subscriber identity card or the The second priority subscriber identification card;

执行单元,用于当选择所述第一优先级用户识别卡时,采用所述第一优先级用户识别卡执行所述目标通信应用;所述执行单元还用于当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用。An executing unit, configured to execute the target communication application using the first priority subscriber identity card when the first priority subscriber identity card is selected; the execution unit is also configured to execute the target communication application when the second priority subscriber identity card is selected When the subscriber identity card is used, the target communication application is executed by using the second priority subscriber identity card.

结合第二方面的第六种可能的实现方式,在第二方面的第七种可能的实现方式中,所述执行单元包括:With reference to the sixth possible implementation manner of the second aspect, in a seventh possible implementation manner of the second aspect, the execution unit includes:

接收子单元,用于当选择所述第二优先级用户识别卡时,接收所述用户输入的验证密码;A receiving subunit, configured to receive the verification password input by the user when the second priority user identification card is selected;

判断子单元,用于判断所述验证密码与预设密码是否匹配;A judging subunit, used to judge whether the verification password matches the preset password;

执行子单元,用于若判断出所述验证密码与所述预设密码匹配,采用所述第二优先级用户识别卡执行所述目标通信应用。The executing subunit is configured to execute the target communication application by using the second priority subscriber identification card if it is determined that the verification password matches the preset password.

结合第二方面,在第二方面的第八种可能的实现方式中,还包括:In combination with the second aspect, the eighth possible implementation manner of the second aspect further includes:

第三接收模块,用于在所述目标通信应用对应的操作界面中接收针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡触发的显示指令;A third receiving module, configured to receive a display instruction triggered for the first priority subscriber identity card and/or the second priority subscriber identity card in the operation interface corresponding to the target communication application;

显示模块,用于根据所述显示指令在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息。A display module, configured to display card information corresponding to the first-priority user identification card and/or the second-priority user identification card on the operation interface according to the display instruction.

通过实施本发明实施例,终端可以预置不同用户识别卡对应通信应用的优先级别,当终端接收到用户针对通信应用的触发指令时,无需用户手动选择或者切换用户识别卡,终端即可按照预定的优先级别,自动采用第一优先级的用户识别卡执行通信应用,且终端在满足用户识别卡切换条件时,可自动进行用户识别卡的切换,实现了用户识别卡的智能切换,进而提高了终端通信应用的执行效率。By implementing the embodiment of the present invention, the terminal can preset the priority levels of communication applications corresponding to different subscriber identification cards. When the terminal receives the user's trigger instruction for communication applications, the terminal can follow the predetermined priority level, automatically adopt the first-priority subscriber identification card to execute communication applications, and when the terminal meets the subscriber identification card switching conditions, it can automatically switch the subscriber identification card, realizing the intelligent switching of the subscriber identification card, thereby improving the Execution efficiency of terminal communication applications.

进一步地,终端可以在通信应用界面中接收针对第二优先级用户识别卡的触发指令,从而进行密码验证,验证成功后,自动采用第二优先级用户识别卡执行应用程序,以保障通信应用运行的连续性,且采用密码进行验证降低了用户误操作的可能性。Further, the terminal can receive a trigger instruction for the second-priority user identification card in the communication application interface, thereby performing password verification, and after the verification is successful, automatically use the second-priority user identification card to execute the application program to ensure the operation of the communication application The continuity of the system, and the use of passwords for verification reduces the possibility of user misoperation.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例提供的一种用户识别卡切换方法的流程示意图;FIG. 1 is a schematic flow diagram of a method for switching subscriber identification cards provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种用户识别卡切换方法的流程示意图;Fig. 2 is a schematic flow chart of another subscriber identification card switching method provided by an embodiment of the present invention;

图3是本发明实施例提供的另一种用户识别卡切换方法的流程示意图;FIG. 3 is a schematic flowchart of another method for switching subscriber identification cards provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种用户识别卡切换方法的流程示意图;FIG. 4 is a schematic flowchart of another method for switching subscriber identification cards provided by an embodiment of the present invention;

图5是本发明实施例提供的另一种用户识别卡切换方法的流程示意图;FIG. 5 is a schematic flowchart of another method for switching subscriber identification cards provided by an embodiment of the present invention;

图6是本发明实施例提供的一种终端的结构示意图;FIG. 6 is a schematic structural diagram of a terminal provided by an embodiment of the present invention;

图7是本发明实施例提供的另一种终端的结构示意图;FIG. 7 is a schematic structural diagram of another terminal provided by an embodiment of the present invention;

图8是本发明实施例提供的执行单元的结构示意图;Fig. 8 is a schematic structural diagram of an execution unit provided by an embodiment of the present invention;

图9是本发明实施例提供的另一种终端的结构示意图;FIG. 9 is a schematic structural diagram of another terminal provided by an embodiment of the present invention;

图10是本发明实施例提供的另一种终端的结构示意图;FIG. 10 is a schematic structural diagram of another terminal provided by an embodiment of the present invention;

图11是本发明实施例提供的另一种终端的结构示意图。FIG. 11 is a schematic structural diagram of another terminal provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。另外,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items. In addition, the terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.

本发明实施例提供了一种用户识别卡切换方法及终端。为了便于理解本发明实施例,下面先对本发明实施例的用户识别卡切换方法进行描述。The embodiment of the present invention provides a user identification card switching method and a terminal. In order to facilitate the understanding of the embodiment of the present invention, the method for switching the subscriber identity card in the embodiment of the present invention is firstly described below.

请参见图1,是本发明实施例提供的一种用户识别卡切换方法的流程示意图,该方法可以包括但不限于以下步骤。Please refer to FIG. 1 , which is a schematic flow chart of a method for switching a subscriber identification card provided by an embodiment of the present invention. The method may include but not limited to the following steps.

S101、接收针对目标通信应用触发的用户识别卡设置指令。S101. Receive a user identification card setting instruction triggered for a target communication application.

本发明实施例中,终端接收用户针对目标通信应用触发的用户识别卡设置指令,以设置所述目标通信应用执行时所采用的用户识别卡的优先级。其中,所述终端包括至少两张用户识别卡。所述至少两张用户识别卡可以为同一运营商的用户识别卡,也可以分别为不同运营商的用户识别卡,包括虚拟运营商之间的相互配合,本发明实施例不作具体限定。所述用户识别卡可以包括但不限于:客户识别模块(SubscriberIdentityModule,SIM卡)及用户识别模块(UserIdentityModule,UIM卡)。所述SIM卡可以为具有真实硬件的SIM卡,也可以为软件形式的SIM卡。所述终端可以包括但不限于:智能手机(如Android手机、iOS手机等)、移动互联网设备(MID,MobileInternetDevices)或穿戴式智能设备等可以进行通信的互联网设备。所述目标通信应用可以包括但不限于:通话业务、信息业务、数据流量业务、移动电视业务和终端应用程序等涉及到用户识别卡的应用。所述用户识别卡设置指令可以包括但不限于:长按指令、点击指令和滑动指令。且所述用户识别卡设置指令可以在所述目标通信应用对应的操作界面进行触发,也可以在所述终端的系统设置中所述目标通信应用对应的显示界面进行触发,本发明实施例不作具体限定。In the embodiment of the present invention, the terminal receives the user identification card setting instruction triggered by the user for the target communication application, so as to set the priority of the user identification card used when the target communication application is executed. Wherein, the terminal includes at least two user identification cards. The at least two subscriber identification cards may be subscriber identification cards of the same operator, or may be subscriber identification cards of different operators, including cooperation between virtual operators, which is not specifically limited in the embodiment of the present invention. The subscriber identity card may include, but is not limited to: a subscriber identity module (Subscriber Identity Module, SIM card) and a subscriber identity module (User Identity Module, UIM card). The SIM card may be a SIM card with real hardware, or a SIM card in the form of software. The terminal may include, but is not limited to: smart phones (such as Android phones, iOS phones, etc.), mobile Internet devices (MID, Mobile Internet Devices) or wearable smart devices and other Internet devices that can communicate. The target communication applications may include, but are not limited to: call services, information services, data traffic services, mobile TV services, terminal applications, and other applications related to subscriber identity cards. The user identification card setting instructions may include but not limited to: long press instructions, click instructions and slide instructions. In addition, the user identification card setting instruction can be triggered on the operation interface corresponding to the target communication application, or can be triggered on the display interface corresponding to the target communication application in the system settings of the terminal. The embodiment of the present invention does not make specific limited.

举例说明,若所述目标通信应用为通话应用,在通话应用的拨号界面或者联系人界面中包含用户识别卡设置按钮,用户通过点击该用户识别卡设置按钮触发对执行通话应用时采用的用户识别卡的优先级进行设置,若手机包括两张SIM卡,分别为SIM1和SIM2,当用户点击用户识别卡设置按钮后,终端在当前界面中显示SIM1和SIM2对应的图标,用户可从SIM1和SIM2对应的图标中进行选择设置。For example, if the target communication application is a calling application, the dialing interface or contact interface of the calling application includes a user identification card setting button, and the user clicks the user identification card setting button to trigger the identification of the user used when executing the calling application. The priority of the card is set. If the mobile phone includes two SIM cards, namely SIM1 and SIM2, when the user clicks the user identification card setting button, the terminal will display the icons corresponding to SIM1 and SIM2 on the current interface, and the user can select from SIM1 and SIM2. Select the settings from the corresponding icon.

S103、根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用。S103. Obtain the first user identification card selected by the user from the at least two user identification cards according to the user identification card setting instruction, and set the first priority user identification card corresponding to the target communication application as the second user identification card A subscriber identity card, obtaining a second subscriber identity card from the at least two subscriber identity cards, and setting the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card, wherein, After the terminal receives the execution instruction triggered for the target communication application, the terminal uses the first-priority subscriber identity card to execute the target communication application.

本发明实施例中,所述终端接收到所述用户识别卡设置指令后,从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,优选地,所述第一用户识别卡为一张,所述终端将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,以在所述终端接收到针对所述目标通信应用触发的执行指令后,直接采用所述第一优先级用户识别卡用于执行所述目标通信应用,无需用户手动选择执行所述目标通信应用的用户识别卡,减少了用户的操作。In the embodiment of the present invention, after receiving the user identification card setting instruction, the terminal acquires the first user identification card selected by the user from the at least two user identification cards. Preferably, the first user identification card One, the terminal sets the first priority subscriber identity card corresponding to the target communication application as the first subscriber identity card, so that after the terminal receives an execution instruction triggered for the target communication application The first-priority user identification card is directly used to execute the target communication application, and the user does not need to manually select the user identification card for executing the target communication application, thereby reducing user operations.

所述终端在所述至少两张用户识别卡中获取第二用户识别卡,优选地,所述第二用户识别卡为一张,且所述第二用户识别卡与所述第一用户识别卡不同,所述终端将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡。所述第二用户识别卡可以由用户选择,也可以由终端默认选择,例如若所述终端包括两张用户识别卡,当终端将所述第一优先级用户识别卡设置为用户从所述两张用户识别卡中选择了一张后,所述终端默认将所述第二优先级用户识别卡设置为另外一张用户识别卡。本发明实施例中是以两张用户识别卡为例作的说明,当所述至少两张用户识别卡为三张时,所述终端继续将第三优先级用户识别卡设置为该三张用户识别卡中除所述第一用户识别卡和第二用户识别卡以外的第三张用户识别卡。所述终端包含N张用户识别卡,则需要设置N个优先级别分别对应该N张用户识别卡。默认情况下,当所述终端接收到针对所述目标通信应用的执行指令后,自动采用所述第一优先级用户识别卡执行所述目标通信应用,当所述第一优先级用户识别卡出现识别卡设备故障或者该识别卡对应的通信网络出现故障时,例如,当所述第一优先级用户识别卡资费不足时,或者当所述第一优先级用户识别卡无法识别时,又或者当所述第一优先级用户识别卡在当前网络环境中无法使用时,所述终端自动采用所述第二优先级用户识别卡执行所述目标通信应用,当所述第一优先级用户识别卡和所述第二优先级用户识别卡都出现如上述识别卡设备故障或者识别卡对应的通信网络故障时,所述终端自动采用第三优先级用户识别卡执行所述目标通信应用,以此类推。The terminal acquires a second subscriber identity card from the at least two subscriber identity cards, preferably, there is one second subscriber identity card, and the second subscriber identity card is the same as the first subscriber identity card Differently, the terminal sets the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card. The second subscriber identification card may be selected by the user, or may be selected by default by the terminal. For example, if the terminal includes two subscriber identification cards, when the terminal sets the first priority subscriber identification card as the user identification card from the two After one of the subscriber identification cards is selected, the terminal sets the second priority subscriber identification card as another subscriber identification card by default. In the embodiment of the present invention, two subscriber identification cards are used as an example for illustration. When the at least two subscriber identification cards are three, the terminal continues to set the third priority subscriber identification card as the three user identification cards. A third subscriber identification card in the identification cards other than the first subscriber identification card and the second subscriber identification card. If the terminal includes N subscriber identification cards, it is necessary to set N priority levels corresponding to the N subscriber identification cards respectively. By default, when the terminal receives an execution instruction for the target communication application, it automatically executes the target communication application by using the first-priority subscriber identity card, and when the first-priority subscriber identity card appears When the identification card equipment fails or the communication network corresponding to the identification card fails, for example, when the first-priority subscriber identity card charges are insufficient, or when the first-priority subscriber identity card cannot be recognized, or when When the first-priority subscriber identity card cannot be used in the current network environment, the terminal automatically uses the second-priority subscriber identity card to execute the target communication application, and when the first-priority subscriber identity card and When the second-priority subscriber identification card fails as described above in the identification card equipment or the communication network corresponding to the identification card, the terminal automatically uses the third-priority subscriber identification card to execute the target communication application, and so on.

举例说明,若所述目标通信应用为通话应用,若手机包括两张SIM卡,分别为SIM1和SIM2,当用户点击用户识别卡设置按钮后,终端在当前界面中显示SIM1和SIM2对应的图标,用户可从SIM1和SIM2对应的图标中进行选择,若用户选择的是SIM1,则手机将第一优先级用户识别卡设置为SIM1,将第二优先级用户识别卡设置为SIM2。当用户需要拨打通话时,直接点击拨号按钮,手机即可自动采用SIM1进行拨号,无需用户在SIM1和SIM2中进行手动选择。For example, if the target communication application is a call application, and if the mobile phone includes two SIM cards, SIM1 and SIM2, respectively, when the user clicks the user identification card setting button, the terminal displays icons corresponding to SIM1 and SIM2 in the current interface, The user can choose from the icons corresponding to SIM1 and SIM2. If the user selects SIM1, the mobile phone sets the first-priority subscriber identity card as SIM1, and sets the second-priority subscriber identity card as SIM2. When the user needs to make a call, just click the dial button directly, and the mobile phone can automatically use SIM1 to dial, without the user needing to manually select between SIM1 and SIM2.

S105、检测所述终端是否满足预设用户识别卡切换条件。S105. Detect whether the terminal satisfies a preset user identification card switching condition.

本发明实施例中,所述终端在设置了所述目标通信应用对应的第一优先级用户识别卡及第二优先级用户识别卡后,所述终端检测所述终端是否满足预设用户识别卡切换条件,以进行用户识别卡的自动切换。若检测的结果为所述终端满足所述预设用户识别卡切换条件,进入步骤S107,若检测的结果为所述终端不满足所述预设用户识别卡切换条件,继续执行步骤S105或者结束本流程,本发明实施例以结束本流程为例。具体地,所述终端可以检测所述终端当前的通信网络状态、地理位置状态、用户识别卡漫游状态和用户识别卡虚拟资源状态中的至少一种是否满足所述预设用户识别卡切换条件。In the embodiment of the present invention, after the terminal sets the first-priority user identification card and the second-priority user identification card corresponding to the target communication application, the terminal detects whether the terminal meets the preset user identification card Switching conditions for automatic switching of SIM cards. If the result of the detection is that the terminal meets the preset user identification card switching conditions, enter step S107, if the detection result is that the terminal does not meet the preset user identification card switching conditions, continue to execute step S105 or end this step Flow, the embodiment of the present invention takes the end of this flow as an example. Specifically, the terminal may detect whether at least one of the terminal's current communication network status, geographic location status, subscriber identity card roaming status, and subscriber identity card virtual resource status satisfies the preset subscriber identity card switching condition.

优选地,所述终端可以检测当前的通信网络状态是否满足所述预设用户识别卡切换条件,若当前的通信网络状态满足所述预设用户识别卡切换条件,则检测的结果为所述终端满足所述预设用户识别卡切换条件。具体地,所述终端可以检测所述第一优先级用户识别卡在当前的通信网络状态下是否可用,若检测到所述第一优先级用户识别卡在当前通信网络状态下不可用,则检测的结果为所述终端满足所述预设用户识别卡切换条件。例如,若所述终端包括两张用户识别卡,所述目标通信应用为通话应用,所述两张用户识别卡分别为SIM1和SIM2,且通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2,若SIM1在所述终端当前所在的区域(例如地铁、火车站等)中无通信网络覆盖,即SIM1在当前通信网络下无法使用,则检测的结果为当前的通信网络状态满足所述预设用户识别卡切换条件,则所述终端自动将第一优先级用户识别卡切换设置为SIM2,采用SIM2执行所述通话应用,以满足通话应用功能的连续性。Preferably, the terminal can detect whether the current communication network status satisfies the preset subscriber identification card switching condition, and if the current communication network status satisfies the preset subscriber identification card switching condition, the detection result is that the terminal The preset subscriber identification card switching condition is met. Specifically, the terminal may detect whether the first-priority subscriber identity card is available in the current communication network state, and if it is detected that the first-priority subscriber identity card is unavailable in the current communication network state, then detect The result is that the terminal satisfies the preset subscriber identity card switching condition. For example, if the terminal includes two subscriber identity cards, the target communication application is a call application, the two subscriber identity cards are SIM1 and SIM2 respectively, and the first priority subscriber identity card corresponding to the call application is SIM1, The second priority subscriber identity card corresponding to the call application is SIM2. If SIM1 has no communication network coverage in the area where the terminal is currently located (such as subway, railway station, etc.), that is, SIM1 cannot be used under the current communication network, then the detection The result is that the current communication network state satisfies the preset subscriber identity card switching condition, then the terminal automatically sets the first priority subscriber identity card switching to SIM2, and uses SIM2 to execute the call application to meet the call application function continuity.

优选地,所述终端可以检测当前的地理位置状态是否满足所述预设用户识别卡切换条件,若当前的地理位置状态满足所述预设用户识别卡切换条件,则检测的结果为所述终端满足所述预设用户识别卡切换条件。具体地,所述终端可以检测所述终端的地理位置是否由所述第一优先级用户识别卡对应的归属地切换为所述第二优先级用户识别卡对应的归属地,若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。例如,若所述终端包括两张用户识别卡,所述目标通信应用为通话应用,所述两张用户识别卡分别为SIM1和SIM2,SIM1对应A国家,SIM2对应B国家,且通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2,若终端检测到用户的地理位置由国家A进入国家B,则检测的结果为当前的地理位置状态满足所述预设用户识别卡切换条件,则所述终端自动将第一优先级用户识别卡切换设置为SIM2,以进行用户识别卡的自动切换,采用SIM2在国家B执行所述通话应用,方便用户正常使用。Preferably, the terminal can detect whether the current geographic location state satisfies the preset user identification card switching condition, and if the current geographic location state meets the preset user identification card switching condition, the detection result is that the terminal The preset subscriber identification card switching condition is met. Specifically, the terminal may detect whether the geographic location of the terminal is switched from the attribution corresponding to the first-priority subscriber identification card to the attribution corresponding to the second-priority subscriber identification card, and if so, the detected The result is that the terminal satisfies the preset subscriber identity card switching condition. For example, if the terminal includes two subscriber identification cards, the target communication application is a calling application, and the two subscriber identification cards are SIM1 and SIM2 respectively, SIM1 corresponds to country A, SIM2 corresponds to country B, and the calling application corresponds to The first-priority subscriber identity card is SIM1, and the second-priority subscriber identity card corresponding to the call application is SIM2. If the terminal detects that the user's geographic location changes from country A to country B, the detection result indicates that the current geographic location status satisfies The preset subscriber identification card switching condition, then the terminal automatically sets the first priority subscriber identification card switching to SIM2 to automatically switch the subscriber identification card, and uses SIM2 to execute the call application in country B, which is convenient for users Normal use.

优选地,所述终端可以检测当前的用户识别卡漫游状态是否满足所述预设用户识别卡切换条件,若当前的用户识别卡漫游状态满足所述预设用户识别卡切换条件,则检测的结果为所述终端满足所述预设用户识别卡切换条件。例如,若所述终端包括两张用户识别卡,所述目标通信应用为通话应用,所述两张用户识别卡分别为SIM1和SIM2,SIM1的归属地为上海,SIM2的归属地为北京,且通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2,若所述终端在北京进行通话业务时,所述终端可以判断当前漫游状态满足所述预设用户识别卡切换条件,则所述终端自动将第一优先级用户识别卡切换设置为SIM2,进而采用归属地为北京的SIM2在北京拨打电话,减少用户的异地漫游资费。Preferably, the terminal can detect whether the current subscriber identity card roaming state satisfies the preset subscriber identity card switching condition, and if the current subscriber identity card roaming state satisfies the preset subscriber identity card switching condition, the detection result The terminal satisfies the preset subscriber identity card switching condition. For example, if the terminal includes two subscriber identification cards, the target communication application is a call application, the two subscriber identification cards are SIM1 and SIM2 respectively, the home of SIM1 is Shanghai, and the home of SIM2 is Beijing, and The first priority subscriber identity card corresponding to the call application is SIM1, and the second priority subscriber identity card corresponding to the call application is SIM2. If the terminal is performing call services in Beijing, the terminal can determine that the current roaming state meets the requirements. If the user identification card switching condition is preset, the terminal automatically sets the first priority user identification card switching to SIM2, and then uses the SIM2 whose home is Beijing to make a call in Beijing, reducing the user's remote roaming charges.

优选地,所述终端可以检测当前用户识别卡虚拟资源状态是否满足所述预设用户识别卡切换条件,若所述用户识别卡虚拟资源状态满足所述预设用户识别卡切换条件,则检测的结果为所述终端满足所述预设用户识别卡切换条件。具体地,所述终端可以检测所述第一优先级用户识别卡的虚拟资源是否不足,若检测到所述第一优先级用户识别卡的虚拟资源不足,则检测的结果为所述终端满足所述预设用户识别卡切换条件。其中,所述用户识别卡虚拟资源可以包括但不限于:用户识别卡资费。例如,若所述终端包括两张用户识别卡,所述目标通信应用为通话应用,所述两张用户识别卡分别为SIM1和SIM2,且通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2,当用户采用SIM1进行通话,且所述终端检测到SIM1的资费不足时,则检测的结果为当前的用户识别卡资费状态满足所述预设用户识别卡切换条件,则所述终端自动将第一优先级用户识别卡设置为SIM2,以进行用户识别卡的自动切换,采用SIM2继续执行通话应用,方便用户正常使用。当所述终端正处于通话状态且SIM1的资费不足时,所述终端切断所述通话,并切换至SIM2进行电话回拨,或者当所述终端正处于通话状态且SIM1的资费不足时,借助于运营商的服务,将SIM1直接切换至SIM2,且在切换的过程中不中断通话,并将SIM1超出的通话费用切换至SIM2进行支付。可以理解的是,本发明实施例不限于上述通话业务,对于其他例如信息业务、数据流量业务等也同样适用。Preferably, the terminal can detect whether the current state of the virtual resource of the subscriber identity card satisfies the preset subscriber identity card switching condition, and if the state of the virtual resource of the subscriber identity card satisfies the preset subscriber identity card switching condition, the detected The result is that the terminal satisfies the preset subscriber identity card switching condition. Specifically, the terminal may detect whether the virtual resources of the first-priority subscriber identity card are insufficient, and if it is detected that the virtual resources of the first-priority subscriber identity card are insufficient, the detection result is that the terminal satisfies the The preset subscriber identification card switching conditions are described above. Wherein, the virtual resource of the subscriber identity card may include but not limited to: subscriber identity card charges. For example, if the terminal includes two subscriber identity cards, the target communication application is a call application, the two subscriber identity cards are SIM1 and SIM2 respectively, and the first priority subscriber identity card corresponding to the call application is SIM1, The second priority subscriber identity card corresponding to the call application is SIM2. When the user uses SIM1 to make a call, and the terminal detects that the tariff of SIM1 is insufficient, the detection result is that the current subscriber identity card tariff status meets the preset Subscriber identification card switching condition, then the terminal automatically sets the first priority subscriber identification card as SIM2 to automatically switch the subscriber identification card, and uses SIM2 to continue to execute the call application, which is convenient for the user to use normally. When the terminal is in a call state and the tariff of SIM1 is insufficient, the terminal cuts off the call and switches to SIM2 for calling back, or when the terminal is in a call state and the tariff of SIM1 is insufficient, by means of For the operator's service, SIM1 is directly switched to SIM2, and the call is not interrupted during the switching process, and the excess call charges of SIM1 are switched to SIM2 for payment. It can be understood that the embodiments of the present invention are not limited to the above call service, and are also applicable to other services such as information service and data flow service.

S107、将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。S107. Switch and set the first-priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.

本发明实施例中,若检测到所述终端满足所述预设用户识别卡切换条件,则所述终端将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡,以采用升级后的第二用户识别卡(即原来的第二优先级用户识别卡)执行所述目标通信应用,从而进行用户识别卡间的自动切换,无需用户手动切换,保障了通信应用使用的连续性。所述终端将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡后,原先的第一优先级用户识别卡(即第一用户识别卡)可自动降级到第二优先级或者更低优先级,本发明实施例不作具体限定。In the embodiment of the present invention, if it is detected that the terminal satisfies the preset user identification card switching condition, the terminal sets the first priority user identification card switching corresponding to the target communication application as the second user identification card, to execute the target communication application by adopting the upgraded second subscriber identification card (i.e. the original second priority subscriber identification card), so as to automatically switch between subscriber identification cards without manual switching by the user, thus ensuring communication Continuity of application usage. After the terminal switches the first priority subscriber identity card corresponding to the target communication application to the second subscriber identity card, the original first priority subscriber identity card (that is, the first subscriber identity card) can be automatically downgraded This embodiment of the present invention does not specifically limit the second priority or lower priority.

在图1所描述的方法中,终端预置目标通信应用与用户识别卡的优先级对应关系,以在接收到针对目标通信应用触发的执行指令后,自动采用第一优先级用户识别卡执行目标通信应用,减少用户选择操作,提高终端通信应用的执行效率。且在终端满足预设切换条件时,将第一优先级用户识别卡对应的用户识别卡进行切换设置,以在第一优先级用户识别卡出现上述识别卡设备故障或者识别卡对应的通信网络故障时,自动切换使用其他的用户识别卡,以使用户的通信应用可以持续进行。In the method described in Figure 1, the terminal presets the corresponding relationship between the priority of the target communication application and the subscriber identity card, so that after receiving the execution command triggered by the target communication application, the terminal automatically adopts the first priority subscriber identity card to execute the target Communication applications reduce user selection operations and improve execution efficiency of terminal communication applications. And when the terminal satisfies the preset switching condition, the user identification card corresponding to the first priority user identification card is switched, so that when the first priority user identification card has the above-mentioned identification card equipment failure or the communication network failure corresponding to the identification card , automatically switch to use other user identification cards, so that the user's communication applications can continue.

请参见图2,是本发明实施例提供的另一种用户识别卡切换方法的流程示意图,该方法可以包括但不限于以下步骤。Please refer to FIG. 2 , which is a schematic flowchart of another method for switching subscriber identification cards provided by an embodiment of the present invention. The method may include but not limited to the following steps.

S201、接收针对目标通信应用触发的用户识别卡设置指令。S201. Receive a user identification card setting instruction triggered for a target communication application.

S203、根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用。S203. Obtain the first user identification card selected by the user from the at least two user identification cards according to the user identification card setting instruction, and set the first priority user identification card corresponding to the target communication application as the second user identification card A subscriber identity card, obtaining a second subscriber identity card from the at least two subscriber identity cards, and setting the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card, wherein, After the terminal receives the execution instruction triggered for the target communication application, the terminal uses the first-priority subscriber identity card to execute the target communication application.

本发明实施例中的S201和S203可参见图1所示实施例的S101和S103,此处不再赘述。For S201 and S203 in the embodiment of the present invention, reference may be made to S101 and S103 in the embodiment shown in FIG. 1 , and details are not repeated here.

S205、检测所述终端是否满足预设用户识别卡切换条件。S205. Detect whether the terminal satisfies a preset user identification card switching condition.

本发明实施例中,所述终端在设置了所述目标通信应用对应的第一优先级用户识别卡及第二优先级用户识别卡后,所述终端检测所述终端是否满足预设用户识别卡切换条件,以进行用户识别卡的自动切换。若检测的结果为所述终端满足所述预设用户识别卡切换条件,进入步骤S207,若检测的结果为所述终端不满足所述预设用户识别卡切换条件,执行步骤S209。具体地,所述终端可以检测所述终端当前的通信网络状态、地理位置状态、用户识别卡漫游状态和用户识别卡虚拟资源状态中的至少一种是否满足所述预设用户识别卡切换条件。In the embodiment of the present invention, after the terminal sets the first-priority user identification card and the second-priority user identification card corresponding to the target communication application, the terminal detects whether the terminal meets the preset user identification card Switching conditions for automatic switching of SIM cards. If the detection result is that the terminal satisfies the preset user identification card switching condition, go to step S207; if the detection result is that the terminal does not meet the preset user identification card switching condition, go to step S209. Specifically, the terminal may detect whether at least one of the terminal's current communication network status, geographic location status, subscriber identity card roaming status, and subscriber identity card virtual resource status satisfies the preset subscriber identity card switching condition.

优选地,所述终端可以检测当前的通信网络状态是否满足所述预设用户识别卡切换条件,若当前的通信网络状态满足所述预设用户识别卡切换条件,则检测的结果为所述终端满足所述预设用户识别卡切换条件。具体地,所述终端可以检测所述第一优先级用户识别卡在当前的通信网络状态下是否可用,若检测到所述第一优先级用户识别卡在当前通信网络状态下不可用,则检测的结果为所述终端满足所述预设用户识别卡切换条件。例如,若所述终端包括两张用户识别卡,所述目标通信应用为通话应用,所述两张用户识别卡分别为SIM1和SIM2,且通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2,若SIM1在所述终端当前所在的区域(例如地铁、火车站等)中无通信网络覆盖,即SIM1在当前通信网络下无法使用,则检测的结果为当前的通信网络状态满足所述预设用户识别卡切换条件,则所述终端自动将第一优先级用户识别卡切换设置为SIM2,采用SIM2执行所述通话应用,以满足通话应用功能的连续性。Preferably, the terminal can detect whether the current communication network status satisfies the preset subscriber identification card switching condition, and if the current communication network status satisfies the preset subscriber identification card switching condition, the detection result is that the terminal The preset subscriber identification card switching condition is met. Specifically, the terminal may detect whether the first-priority subscriber identity card is available in the current communication network state, and if it is detected that the first-priority subscriber identity card is unavailable in the current communication network state, then detect The result is that the terminal satisfies the preset subscriber identity card switching condition. For example, if the terminal includes two subscriber identity cards, the target communication application is a call application, the two subscriber identity cards are SIM1 and SIM2 respectively, and the first priority subscriber identity card corresponding to the call application is SIM1, The second priority subscriber identity card corresponding to the call application is SIM2. If SIM1 has no communication network coverage in the area where the terminal is currently located (such as subway, railway station, etc.), that is, SIM1 cannot be used under the current communication network, then the detection The result is that the current communication network state satisfies the preset subscriber identity card switching condition, then the terminal automatically sets the first priority subscriber identity card switching to SIM2, and uses SIM2 to execute the call application to meet the call application function continuity.

优选地,所述终端可以检测当前的地理位置状态是否满足所述预设用户识别卡切换条件,若当前的地理位置状态满足所述预设用户识别卡切换条件,则检测的结果为所述终端满足所述预设用户识别卡切换条件。具体地,所述终端可以检测所述终端的地理位置是否由所述第一优先级用户识别卡对应的归属地切换为所述第二优先级用户识别卡对应的归属地,若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。例如,若所述终端包括两张用户识别卡,所述目标通信应用为通话应用,所述两张用户识别卡分别为SIM1和SIM2,SIM1对应A国家,SIM2对应B国家,且通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2,若终端检测到用户的地理位置由国家A进入国家B,则检测的结果为当前的地理位置状态满足所述预设用户识别卡切换条件,则所述终端自动将第一优先级用户识别卡切换设置为SIM2,以进行用户识别卡的自动切换,采用SIM2在国家B执行所述通话应用,方便用户正常使用。Preferably, the terminal can detect whether the current geographic location state satisfies the preset user identification card switching condition, and if the current geographic location state meets the preset user identification card switching condition, the detection result is that the terminal The preset subscriber identification card switching condition is met. Specifically, the terminal may detect whether the geographic location of the terminal is switched from the attribution corresponding to the first-priority subscriber identification card to the attribution corresponding to the second-priority subscriber identification card, and if so, the detected The result is that the terminal satisfies the preset subscriber identity card switching condition. For example, if the terminal includes two subscriber identification cards, the target communication application is a calling application, and the two subscriber identification cards are SIM1 and SIM2 respectively, SIM1 corresponds to country A, SIM2 corresponds to country B, and the calling application corresponds to The first-priority subscriber identity card is SIM1, and the second-priority subscriber identity card corresponding to the call application is SIM2. If the terminal detects that the user's geographic location changes from country A to country B, the detection result indicates that the current geographic location status satisfies The preset subscriber identification card switching condition, then the terminal automatically sets the first priority subscriber identification card switching to SIM2 to automatically switch the subscriber identification card, and uses SIM2 to execute the call application in country B, which is convenient for users Normal use.

优选地,所述终端可以检测当前的用户识别卡漫游状态是否满足所述预设用户识别卡切换条件,若当前的用户识别卡漫游状态满足所述预设用户识别卡切换条件,则检测的结果为所述终端满足所述预设用户识别卡切换条件。例如,若所述终端包括两张用户识别卡,所述目标通信应用为通话应用,所述两张用户识别卡分别为SIM1和SIM2,SIM1的归属地为上海,SIM2的归属地为北京,且通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2,若所述终端在北京进行通话业务时,所述终端可以判断当前漫游状态满足所述预设用户识别卡切换条件,则所述终端自动将第一优先级用户识别卡切换设置为SIM2,进而采用归属地为北京的SIM2在北京拨打电话,减少用户的异地漫游资费。Preferably, the terminal can detect whether the current subscriber identity card roaming state satisfies the preset subscriber identity card switching condition, and if the current subscriber identity card roaming state satisfies the preset subscriber identity card switching condition, the detection result The terminal satisfies the preset subscriber identity card switching condition. For example, if the terminal includes two subscriber identification cards, the target communication application is a call application, the two subscriber identification cards are SIM1 and SIM2 respectively, the home of SIM1 is Shanghai, and the home of SIM2 is Beijing, and The first priority subscriber identity card corresponding to the call application is SIM1, and the second priority subscriber identity card corresponding to the call application is SIM2. If the terminal is performing call services in Beijing, the terminal can determine that the current roaming state meets the requirements. If the user identification card switching condition is preset, the terminal automatically sets the first priority user identification card switching to SIM2, and then uses the SIM2 whose home is Beijing to make a call in Beijing, reducing the user's remote roaming charges.

优选地,所述终端可以检测当前用户识别卡虚拟资源状态是否满足所述预设用户识别卡切换条件,若所述用户识别卡虚拟资源状态满足所述预设用户识别卡切换条件,则检测的结果为所述终端满足所述预设用户识别卡切换条件。具体地,所述终端可以检测所述第一优先级用户识别卡的虚拟资源是否不足,若检测到所述第一优先级用户识别卡的虚拟资源不足,则检测的结果为所述终端满足所述预设用户识别卡切换条件。其中,所述用户识别卡虚拟资源可以包括但不限于:用户识别卡资费。例如,若所述终端包括两张用户识别卡,所述目标通信应用为通话应用,所述两张用户识别卡分别为SIM1和SIM2,且通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2,当用户采用SIM1进行通话,且所述终端检测到SIM1的资费不足时,则检测的结果为当前的用户识别卡资费状态满足所述预设用户识别卡切换条件,则所述终端自动将第一优先级用户识别卡设置为SIM2,以进行用户识别卡的自动切换,采用SIM2继续执行通话应用,方便用户正常使用。当所述终端正处于通话状态且SIM1的资费不足时,所述终端切断所述通话,并切换至SIM2进行电话回拨,或者当所述终端正处于通话状态且SIM1的资费不足时,借助于运营商的服务,将SIM1直接切换至SIM2,且在切换的过程中不中断通话,并将SIM1超出的通话费用切换至SIM2进行支付。可以理解的是,本发明实施例不限于上述通话业务,对于其他例如信息业务、数据流量业务等也同样适用。Preferably, the terminal can detect whether the current state of the virtual resource of the subscriber identity card satisfies the preset subscriber identity card switching condition, and if the state of the virtual resource of the subscriber identity card satisfies the preset subscriber identity card switching condition, the detected The result is that the terminal satisfies the preset subscriber identity card switching condition. Specifically, the terminal may detect whether the virtual resources of the first-priority subscriber identity card are insufficient, and if it is detected that the virtual resources of the first-priority subscriber identity card are insufficient, the detection result is that the terminal satisfies the The preset subscriber identification card switching conditions are described above. Wherein, the virtual resource of the subscriber identity card may include but not limited to: subscriber identity card charges. For example, if the terminal includes two subscriber identity cards, the target communication application is a call application, the two subscriber identity cards are SIM1 and SIM2 respectively, and the first priority subscriber identity card corresponding to the call application is SIM1, The second priority subscriber identity card corresponding to the call application is SIM2. When the user uses SIM1 to make a call, and the terminal detects that the tariff of SIM1 is insufficient, the detection result is that the current subscriber identity card tariff status meets the preset Subscriber identification card switching condition, then the terminal automatically sets the first priority subscriber identification card as SIM2 to automatically switch the subscriber identification card, and uses SIM2 to continue to execute the call application, which is convenient for the user to use normally. When the terminal is in a call state and the tariff of SIM1 is insufficient, the terminal cuts off the call and switches to SIM2 for calling back, or when the terminal is in a call state and the tariff of SIM1 is insufficient, by means of For the operator's service, SIM1 is directly switched to SIM2, and the call is not interrupted during the switching process, and the excess call charges of SIM1 are switched to SIM2 for payment. It can be understood that the embodiments of the present invention are not limited to the above call service, and are also applicable to other services such as information service and data flow service.

S207、将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。S207. Switch and set the first-priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.

本发明实施例中的S207可参见图1所示实施例的S107,此处不再赘述。For S207 in the embodiment of the present invention, reference may be made to S107 in the embodiment shown in FIG. 1 , and details are not repeated here.

S209、接收针对所述目标通信应用触发的所述执行指令。S209. Receive the execution instruction triggered for the target communication application.

本发明实施例中,若检测到所述终端不满足所述预设用户识别卡切换条件,则所述终端不进行用户识别卡的切换。所述终端接收用户针对所述目标通信应用触发的所述执行指令,所述执行指令用于触发执行所述目标通信应用。所述执行指令可以包括但不限于:长按指令、点击指令和滑动指令。本发明实施例中接收针对所述目标通信应用触发的所述执行指令的步骤是在检测所述终端是否满足预设用户识别卡切换条件,且检测结果为否之后执行的,在其他一些可实施的方案中,接收针对所述目标通信应用触发的所述执行指令的步骤还可以设置在检测所述终端是否满足预设用户识别卡切换条件之前,也可以设置在检测所述终端是否满足预设用户识别卡切换条件,且检测结果为是之后执行。In the embodiment of the present invention, if it is detected that the terminal does not meet the preset user identification card switching condition, the terminal does not switch the user identification card. The terminal receives the execution instruction triggered by the user for the target communication application, where the execution instruction is used to trigger execution of the target communication application. The execution instruction may include but not limited to: long press instruction, click instruction and slide instruction. In the embodiment of the present invention, the step of receiving the execution instruction triggered by the target communication application is performed after detecting whether the terminal meets the preset user identification card switching condition, and the detection result is negative, and other implementations may be performed In the scheme, the step of receiving the execution instruction triggered for the target communication application may also be set before detecting whether the terminal meets the preset user identification card switching conditions, or after detecting whether the terminal satisfies the preset Execute after the subscriber identity card switching condition and the detection result is yes.

S211、根据所述执行指令生成所述目标通信应用对应的操作界面,并通过所述操作界面接收选择指令,所述选择指令用于指示选择所述第一优先级用户识别卡或所述第二优先级用户识别卡。S211. Generate an operation interface corresponding to the target communication application according to the execution instruction, and receive a selection instruction through the operation interface, and the selection instruction is used to instruct to select the first priority subscriber identity card or the second priority Priority user identification card.

本发明实施例中,当所述终端接收到针对所述目标通信应用触发的执行指令后,生成所述目标通信应用对应的操作界面,通过所述操作界面接收选择指令,以指示选择第一优先级用户识别卡或第二优先级用户识别卡。当选择所述第一优先级用户识别卡时,执行步骤S213,当选择所述第二优先级用户识别卡时,执行步骤S215。In the embodiment of the present invention, after the terminal receives the execution instruction triggered by the target communication application, it generates an operation interface corresponding to the target communication application, and receives a selection instruction through the operation interface to indicate that the first priority is selected. first-class Subscriber Identification Card or second-priority Subscriber Identification Card. When the first priority subscriber identification card is selected, step S213 is performed, and when the second priority subscriber identification card is selected, step S215 is performed.

优选地,在所述目标通信应用对应的操作界面显示有所述第二优先级用户识别卡对应的标识,所述用户可以针对所述第二优先级用户识别卡对应的标识触发所述选择指令。Preferably, the operation interface corresponding to the target communication application displays an identifier corresponding to the second-priority subscriber identity card, and the user can trigger the selection instruction for the identifier corresponding to the second-priority subscriber identity card .

优选地,所述选择指令可以包括但不限于:长按指令、点击指令和滑动指令。若所述终端在所述目标通信应用对应的操作界面中接收到针对所述第二优先级用户识别卡触发的选择指令,则选择的结果为选择所述第二优先级用户识别卡,若所述终端在所述目标通信应用对应的操作界面中未接收到针对所述第二优先级用户识别卡触发的选择指令,则选择的结果为选择所述第一优先级用户识别卡。Preferably, the selection instruction may include but not limited to: long press instruction, click instruction and slide instruction. If the terminal receives a selection instruction triggered for the second priority subscriber identity card in the operation interface corresponding to the target communication application, the result of the selection is to select the second priority subscriber identity card, if the If the terminal does not receive a selection instruction triggered for the second-priority subscriber identity card in the operation interface corresponding to the target communication application, the selection result is to select the first-priority subscriber identity card.

优选地,所述终端在所述目标通信应用对应的操作界面中是否接收到针对所述第二优先级用户识别卡触发的选择指令可以设置时间阈值,当超过所述时间阈值后,仍未接收到针对所述第二优先级用户识别卡触发的选择指令,则所述终端默认未接收到针对所述第二优先级用户识别卡触发的选择指令,则选择的结果为选择所述第一优先级用户识别卡。若在所述时间阈值内接收到针对所述第二优先级用户识别卡触发的选择指令,则选择的结果为选择所述第二优先级用户识别卡。其中所述时间阈值可以由终端用户设置,也可以由终端系统默认设置,本发明实施例不作具体限定。Preferably, whether the terminal receives the selection instruction triggered by the second-priority subscriber identity card in the operation interface corresponding to the target communication application can set a time threshold, and when the time threshold is exceeded, no instruction has been received yet. When the selection instruction triggered for the second priority subscriber identity card is received, the terminal does not receive the selection instruction triggered for the second priority subscriber identity card by default, and the result of the selection is to select the first priority level user identification card. If a selection instruction triggered for the second-priority subscriber identity card is received within the time threshold, the selection result is selection of the second-priority subscriber identity card. The time threshold may be set by the terminal user, or may be set by default by the terminal system, which is not specifically limited in this embodiment of the present invention.

S213、当选择所述第一优先级用户识别卡时,采用所述第一优先级用户识别卡执行所述目标通信应用。S213. When the first-priority subscriber identity card is selected, use the first-priority subscriber identity card to execute the target communication application.

本发明实施例中,若所述终端在所述目标通信应用对应的操作界面中未接收到针对所述第二优先级用户识别卡触发的选择指令,则所述终端选择所述第一优先级用户识别卡执行所述目标通信应用。In this embodiment of the present invention, if the terminal does not receive a selection instruction triggered by the subscriber identity card of the second priority in the operation interface corresponding to the target communication application, the terminal selects the first priority The subscriber identity card executes the target communication application.

S215、当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用。S215. When the second-priority subscriber identity card is selected, use the second-priority subscriber identity card to execute the target communication application.

本发明实施例中,若所述终端在所述目标通信应用对应的操作界面中接收到针对所述第二优先级用户识别卡触发的选择指令,则所述终端选择所述选择指令指示的第二优先级用户识别卡执行所述目标通信应用。即用户在具体使用目标通信应用时,可随时修改执行所述目标通信应用的用户识别卡。In the embodiment of the present invention, if the terminal receives a selection instruction triggered by the second priority subscriber identity card in the operation interface corresponding to the target communication application, the terminal selects the first priority indicated by the selection instruction. A two-priority subscriber identity card executes the target communication application. That is, when the user specifically uses the target communication application, he can modify the subscriber identity card for executing the target communication application at any time.

在图2所描述的方法中,终端预置目标通信应用与用户识别卡的优先级对应关系,当终端接收到针对目标通信应用触发的执行指令,并接收到用户选择第二优先级用户识别卡的指令时,直接采用用户选择的第二优先级用户识别卡执行目标通信应用,从而在执行目标通信应用的过程中实现用户识别卡的便捷切换。In the method described in Figure 2, the terminal presets the corresponding relationship between the priority of the target communication application and the subscriber identity card. When an instruction is given, the target communication application is executed directly using the second-priority subscriber identity card selected by the user, thereby realizing convenient switching of the subscriber identity card during the execution of the target communication application.

请参见图3,是本发明实施例提供的另一种用户识别卡切换方法的流程示意图,该方法可以包括但不限于以下步骤。Please refer to FIG. 3 , which is a schematic flowchart of another method for switching subscriber identification cards provided by an embodiment of the present invention. The method may include but not limited to the following steps.

S301、接收针对目标通信应用触发的用户识别卡设置指令。S301. Receive a user identification card setting instruction triggered for a target communication application.

S303、根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用。S303. Obtain the first user identification card selected by the user from the at least two user identification cards according to the user identification card setting instruction, and set the first priority user identification card corresponding to the target communication application as the second user identification card. A subscriber identity card, obtaining a second subscriber identity card from the at least two subscriber identity cards, and setting the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card, wherein, After the terminal receives the execution instruction triggered for the target communication application, the terminal uses the first-priority subscriber identity card to execute the target communication application.

本发明实施例中的S301和S303可参见图1所示实施例的S101和S103,此处不再赘述。For S301 and S303 in the embodiment of the present invention, reference may be made to S101 and S103 in the embodiment shown in FIG. 1 , and details are not repeated here.

S305、检测所述终端是否满足预设用户识别卡切换条件。S305. Detect whether the terminal satisfies a preset user identification card switching condition.

本发明实施例中,所述终端在设置了所述目标通信应用对应的第一优先级用户识别卡及第二优先级用户识别卡后,所述终端检测所述终端是否满足预设用户识别卡切换条件,以进行用户识别卡的自动切换。若检测的结果为所述终端满足所述预设用户识别卡切换条件,进入步骤S307,若检测的结果为所述终端不满足所述预设用户识别卡切换条件,执行步骤S309。In the embodiment of the present invention, after the terminal sets the first-priority user identification card and the second-priority user identification card corresponding to the target communication application, the terminal detects whether the terminal meets the preset user identification card Switching conditions for automatic switching of SIM cards. If the detection result is that the terminal satisfies the preset user identification card switching condition, proceed to step S307; if the detection result is that the terminal does not meet the preset user identification card switching condition, perform step S309.

S307、将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。S307. Switch and set the first-priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.

S309、接收针对所述目标通信应用触发的所述执行指令。S309. Receive the execution instruction triggered for the target communication application.

本发明实施例中的S307和S309可参见图2所示实施例的S207和S209,此处不再赘述。For S307 and S309 in the embodiment of the present invention, reference may be made to S207 and S209 in the embodiment shown in FIG. 2 , and details are not repeated here.

S311、根据所述执行指令生成所述目标通信应用对应的操作界面,并通过所述操作界面接收选择指令,所述选择指令用于指示选择所述第一优先级用户识别卡或所述第二优先级用户识别卡。S311. Generate an operation interface corresponding to the target communication application according to the execution instruction, and receive a selection instruction through the operation interface, where the selection instruction is used to instruct to select the first priority subscriber identity card or the second priority subscriber identity card. Priority user identification card.

本发明实施例中,当所述终端接收到针对所述目标通信应用触发的执行指令后,生成所述目标通信应用对应的操作界面,通过所述操作界面接收选择指令,以指示选择第一优先级用户识别卡或第二优先级用户识别卡。当选择所述第二优先级用户识别卡时,执行步骤S313,当选择所述第一优先级用户识别卡时,执行步骤S319。In the embodiment of the present invention, after the terminal receives the execution instruction triggered by the target communication application, it generates an operation interface corresponding to the target communication application, and receives a selection instruction through the operation interface to indicate that the first priority is selected. first-class Subscriber Identification Card or second-priority Subscriber Identification Card. When the second priority subscriber identification card is selected, step S313 is performed, and when the first priority subscriber identification card is selected, step S319 is performed.

S313、当选择所述第二优先级用户识别卡时,接收所述用户输入的验证密码。S313. When the second priority user identification card is selected, receive a verification password input by the user.

本发明实施例中,若所述终端在所述目标通信应用对应的操作界面中接收到针对所述第二优先级用户识别卡触发的选择指令,所述终端接收用户输入的验证密码,以进行密码验证,防止用户误操作。所述验证密码可以包括但不限于:字符密码(字母、数字、特殊符号等)、生物特征密码(指纹、声纹、虹膜等)、图案(轨迹、预设图片)密码等。所述终端监测到在所述目标通信应用对应的操作界面中接收到针对所述第二优先级用户识别卡触发的选择指令,可以输出提示信息,以提示用户输入验证密码。需要说明的是,所述终端在接收用户将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡的设置指令时,可获取并存储用户输入的验证密码,以对用户设置的第一优先级用户识别卡进行密码锁定,当用户在具体使用时选择了所述第二优先级用户识别卡执行所述目标通信应用时,所述用户需要正确输入所述验证密码,进行密码解锁后才可使用选择的所述第二优先级用户识别卡执行所述目标通信应用,极大地降低了用户误操作的可能性。In the embodiment of the present invention, if the terminal receives a selection instruction triggered by the second priority user identification card in the operation interface corresponding to the target communication application, the terminal receives the verification password input by the user to perform Password verification to prevent user misuse. The verification password may include but not limited to: character password (letters, numbers, special symbols, etc.), biometric password (fingerprint, voiceprint, iris, etc.), pattern (track, preset picture) password, etc. The terminal monitors that a selection instruction triggered for the second priority subscriber identification card is received in the operation interface corresponding to the target communication application, and may output prompt information to prompt the user to input a verification password. It should be noted that, when the terminal receives a setting instruction from the user to set the first priority user identification card corresponding to the target communication application as the first user identification card, it may acquire and store the verification password input by the user, To lock the password of the first priority user identification card set by the user, when the user selects the second priority user identification card to execute the target communication application during specific use, the user needs to correctly input the verification password, the selected second priority user identification card can be used to execute the target communication application only after the password is unlocked, which greatly reduces the possibility of misoperation by the user.

S315、判断所述验证密码与预设密码是否匹配。S315. Determine whether the verification password matches the preset password.

本发明实施例中,所述终端判断所述用户输入的验证密码与所述预设密码是否匹配,若是,进入步骤S317,若否,则选择的结果为选择所述第一优先级用户识别卡,进入步骤S319。In the embodiment of the present invention, the terminal judges whether the verification password input by the user matches the preset password, if yes, enters step S317, if not, the result of the selection is to select the first priority user identification card , enter step S319.

S317、采用所述第二优先级用户识别卡执行所述目标通信应用。S317. Execute the target communication application by using the second priority subscriber identity card.

本发明实施例中,若所述终端判断出所述用户输入的验证密码与所述预设密码相匹配,则所述终端选择所述选择指令指示的第二优先级用户识别卡执行所述目标通信应用。即用户可随时修改执行所述目标通信应用的用户识别卡。In the embodiment of the present invention, if the terminal determines that the verification password input by the user matches the preset password, the terminal selects the second priority subscriber identification card indicated by the selection instruction to execute the target communication applications. That is, the user can modify the subscriber identity card for executing the target communication application at any time.

S319、当选择所述第一优先级用户识别卡时,采用所述第一优先级用户识别卡执行所述目标通信应用。S319. When the first-priority subscriber identity card is selected, use the first-priority subscriber identity card to execute the target communication application.

本发明实施例中,若所述终端在所述目标通信应用对应的操作界面中未接收到针对所述第二优先级用户识别卡触发的选择指令,则所述终端选择所述第一优先级用户识别卡执行所述目标通信应用。In this embodiment of the present invention, if the terminal does not receive a selection instruction triggered by the subscriber identity card of the second priority in the operation interface corresponding to the target communication application, the terminal selects the first priority The subscriber identity card executes the target communication application.

在图3所描述的方法中,终端预置目标通信应用与用户识别卡的优先级对应关系,当终端接收到针对目标通信应用触发的执行指令,并接收到用户选择第二优先级用户识别卡的指令时,终端进行密码验证,若密码验证成功,则终端直接采用用户选择的第二优先级用户识别卡执行目标通信应用,从而实现用户识别卡的便捷切换,且避免了用户的误操作。In the method described in FIG. 3 , the terminal presets the corresponding relationship between the priority of the target communication application and the subscriber identity card. When the command is issued, the terminal performs password verification. If the password verification is successful, the terminal directly uses the second priority user identification card selected by the user to execute the target communication application, thereby realizing convenient switching of user identification cards and avoiding user misoperation.

请参见图4,是本发明实施例提供的另一种用户识别卡切换方法的流程示意图,该方法可以包括但不限于以下步骤。Please refer to FIG. 4 , which is a schematic flowchart of another method for switching subscriber identification cards provided by an embodiment of the present invention. The method may include but not limited to the following steps.

S401、接收针对目标通信应用触发的用户识别卡设置指令。S401. Receive a user identification card setting instruction triggered for a target communication application.

S403、根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用。S403. Obtain a first user identification card selected by the user from the at least two user identification cards according to the user identification card setting instruction, and set the first priority user identification card corresponding to the target communication application as the second user identification card. A subscriber identity card, obtaining a second subscriber identity card from the at least two subscriber identity cards, and setting the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card, wherein, After the terminal receives the execution instruction triggered for the target communication application, the terminal uses the first-priority subscriber identity card to execute the target communication application.

S405、检测所述终端是否满足预设用户识别卡切换条件。S405. Detect whether the terminal satisfies a preset user identification card switching condition.

S407、将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。S407. Switch and set the first-priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.

本发明实施例中的S401-S407可参见图1所示实施例的S101-S107,此处不再赘述。For S401-S407 in the embodiment of the present invention, refer to S101-S107 in the embodiment shown in FIG. 1 , which will not be repeated here.

S409、在所述目标通信应用对应的操作界面中接收针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡触发的显示指令。S409. Receive, in the operation interface corresponding to the target communication application, a display instruction triggered for the first-priority subscriber identity card and/or the second-priority subscriber identity card.

本发明实施例中,所述终端在所述目标通信应用对应的操作界面中接收针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡触发的显示指令,以请求所述终端显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡的详细信息。其中,所述目标通信应用对应的操作界面中可显示所述第一优先级用户识别卡或所述第二优先级用户识别卡分别对应的标识,用户可以通过该标识触发所述显示指令。本发明实施例中,步骤S409是在检测所述终端是否满足预设用户识别卡切换条件,且检测结果为是之后执行的,在其他一些可实施的方案中,步骤S409还可以在检测所述终端是否满足预设用户识别卡切换条件之前执行,也可以设置在检测所述终端是否满足预设用户识别卡切换条件,且检测结果为否之后执行。In the embodiment of the present invention, the terminal receives a display instruction triggered for the first priority subscriber identity card and/or the second priority subscriber identity card in the operation interface corresponding to the target communication application, to request The terminal displays detailed information of the first-priority subscriber identity card and/or the second-priority subscriber identity card. Wherein, the operation interface corresponding to the target communication application may display an identifier corresponding to the first priority subscriber identity card or the second priority subscriber identity card, and the user may trigger the display instruction through the identifier. In the embodiment of the present invention, step S409 is performed after detecting whether the terminal satisfies the preset user identification card switching condition, and the detection result is yes. It is executed before whether the terminal satisfies the preset user identification card switching condition, or after detecting whether the terminal meets the preset user identification card switching condition, and the detection result is negative.

S411、根据所述显示指令在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息。S411. Display card information corresponding to the first-priority user identification card and/or the second-priority user identification card on the operation interface according to the display instruction.

本发明实施例中,所述终端接收到所述显示指令后,在所述操作界面中显示所述第一优先级用户识别卡或所述第二优先级用户识别卡对应的卡信息。所述卡信息可以包括但不限于:网络运营商、网络类型、资费套餐信息(含费率和余额)。所述卡信息可以在所述操作界面中通过弹出窗口或者下拉菜单的方式或者其他显示方式进行显示,例如,当所述终端接收到针对所述第一优先级用户识别卡的显示指令后,在所述操作界面中弹出显示窗口,在所述显示窗口中显示所述第一优先级用户识别卡对应的卡信息。或者,所述操作界面中显示有对应所述第一优先级用户识别卡的标识,所述终端在接收到针对所述第一优先级用户识别卡的显示指令后,在所述第一优先级用户识别卡对应的标识位置显示下拉菜单,在所述下拉菜单中显示所述第一优先级用户识别卡对应的卡信息。In the embodiment of the present invention, after receiving the display instruction, the terminal displays card information corresponding to the first-priority user identification card or the second-priority user identification card on the operation interface. The card information may include, but not limited to: network operator, network type, tariff package information (including rate and balance). The card information may be displayed in the operation interface through a pop-up window or a pull-down menu or other display methods. For example, after the terminal receives a display instruction for the first priority user identification card, A display window pops up in the operation interface, and the card information corresponding to the first-priority user identification card is displayed in the display window. Alternatively, the operation interface displays an identifier corresponding to the first-priority subscriber identity card, and after the terminal receives a display instruction for the first-priority subscriber identity card, The identification position corresponding to the user identification card displays a drop-down menu, and the card information corresponding to the first-priority user identification card is displayed in the drop-down menu.

进一步地,所述终端可以自动(定期或者不定期)获取所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息,并在接收到针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡的显示指令后,在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息;所述终端也可以在接收到针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡的显示指令后,获取所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息,并在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息,本发明实施例不作具体限定。Further, the terminal may automatically (regularly or irregularly) acquire the card information corresponding to the first priority subscriber identity card and/or the second priority subscriber identity card, and upon receiving After the display instruction of the priority user identification card and/or the second priority user identification card is displayed on the operation interface, the first priority user identification card and/or the second priority user identification card are displayed Corresponding card information; the terminal may also acquire the first priority subscriber identity card after receiving a display instruction for the first priority subscriber identity card and/or the second priority subscriber identity card and/or the card information corresponding to the second priority subscriber identity card, and display the card information corresponding to the first priority subscriber identity card and/or the second priority subscriber identity card in the operation interface , which is not specifically limited in this embodiment of the present invention.

举例说明,若所述目标通信应用为通话应用,若手机包括两张SIM卡,分别为SIM1和SIM2,通话应用对应的第一优先级用户识别卡为SIM1,通话应用对应的第二优先级用户识别卡为SIM2。在通话应用对应的拨号界面中显示有SIM2对应的图标,用户点击SIM2对应的图标,手机在拨号界面中弹出显示窗口,在所述显示窗口中显示SIM2对应的资费信息以及余额信息等,可以方便用户快捷查看SIM2的运营商信息、是否支持国际漫游、资费信息以及余额等信息,以便于根据SIM2的资费信息以及余额等信息判断是否需要进行用户识别卡的切换,方便用户使用。For example, if the target communication application is a call application, if the mobile phone includes two SIM cards, namely SIM1 and SIM2, the first priority user identification card corresponding to the call application is SIM1, and the second priority user identification card corresponding to the call application The identification card is SIM2. The corresponding icon of SIM2 is displayed in the dialing interface corresponding to the call application. When the user clicks the icon corresponding to SIM2, the mobile phone pops up a display window in the dialing interface, and the tariff information and balance information corresponding to SIM2 are displayed in the display window, which can be convenient. The user quickly checks SIM2's operator information, whether it supports international roaming, tariff information, and balance information, so as to judge whether it is necessary to switch the subscriber identification card based on the SIM2 tariff information and balance information, which is convenient for users.

在图4所描述的方法中,终端预置目标通信应用与用户识别卡的优先级对应关系,当终端接收到针对目标通信应用触发的执行指令,直接采用第一优先级用户识别卡执行目标通信应用,在目标通信应用界面中可以触发显示第一优先级用户识别卡或第二优先级用户识别卡对应的卡信息,便于用户知晓用户识别卡的具体信息,方便用户使用。In the method described in FIG. 4, the terminal presets the corresponding relationship between the priority of the target communication application and the user identification card. When the terminal receives the execution instruction triggered by the target communication application, it directly uses the first priority user identification card to execute the target communication. Application, in the target communication application interface, it can be triggered to display the card information corresponding to the first-priority subscriber identification card or the second-priority subscriber identification card, so that the user can know the specific information of the subscriber identification card and use it conveniently.

请参见图5,是本发明实施例提供的另一种用户识别卡切换方法的流程示意图,该方法可以包括但不限于以下步骤。Please refer to FIG. 5 , which is a schematic flowchart of another method for switching subscriber identification cards provided by an embodiment of the present invention. The method may include but not limited to the following steps.

S501、接收针对目标通信应用触发的用户识别卡设置指令。S501. Receive a user identification card setting instruction triggered for a target communication application.

S503、根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用。执行完本步骤进入步骤S505或S509。S503. Obtain the first user identification card selected by the user from the at least two user identification cards according to the user identification card setting instruction, and set the first priority user identification card corresponding to the target communication application as the second user identification card. A subscriber identity card, obtaining a second subscriber identity card from the at least two subscriber identity cards, and setting the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card, wherein, After the terminal receives the execution instruction triggered for the target communication application, the terminal uses the first-priority subscriber identity card to execute the target communication application. After this step is executed, go to step S505 or S509.

S505、检测所述终端是否满足预设用户识别卡切换条件。若是,执行步骤S507,若否,结束本流程。S505. Detect whether the terminal satisfies a preset user identification card switching condition. If yes, execute step S507; if no, end this process.

S507、将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。S507. Switch and set the first-priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.

本发明实施例中的S501-S507可参见图1所示实施例的S101-S107,此处不再赘述。For S501-S507 in the embodiment of the present invention, refer to S101-S107 in the embodiment shown in FIG. 1 , which will not be repeated here.

S509、当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源。S509. When it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, deduct the virtual resources generated by the first-priority subscriber identity card from the second-priority subscriber identity card.

本发明实施例中,所述预设虚拟资源转移条件可以为所述终端检测到所述第一优先级用户识别卡对应的虚拟资源不足,还可以为所述第一优先级用户识别卡在当前地理位置为漫游区域,等等。所述终端检测到所述第一优先级用户识别卡满足所述预设虚拟资源转移条件时,可不切换至所述第二优先级用户识别卡,直接将所述第一优先级用户识别卡进行通话、信息或数据流量时产生的资费从所述第二优先级用户识别卡中扣除,可以保障通信应用的连续性。例如,用户在使用SIM1进行通话且余额不足时,所述终端根据SIM1和SIM2各自对应的运营商之间的协议,将SIM1通话超出的通话资费计入SIM2中进行扣除。再例如,用户可以为终端中的任意一张用户识别卡开通漫游服务,其他用户识别卡在进行通话、信息或者数据流量服务时虽然没有开通相应的套餐,但是基于运营商之间的协议,其他用户识别卡在使用时可直接从所述开通漫游服务的卡上扣费,无需进行用户识别卡之间的切换,更加便于用户的使用。In the embodiment of the present invention, the preset virtual resource transfer condition may be that the terminal detects that the virtual resource corresponding to the first priority user identification card is insufficient, or that the first priority user identification card is currently Geolocation as roaming area, etc. When the terminal detects that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, it may directly transfer the first-priority subscriber identity card to the second-priority subscriber identity card without switching to the second-priority subscriber identity card. The charges generated during calls, information or data traffic are deducted from the second priority user identification card, which can ensure the continuity of communication applications. For example, when the user uses SIM1 to make a call and the balance is insufficient, the terminal will charge the excess call fee of SIM1 into SIM2 for deduction according to the agreement between the corresponding operators of SIM1 and SIM2. For another example, the user can activate roaming service for any subscriber identification card in the terminal. Although other subscriber identification cards have not activated corresponding packages when performing calls, information or data traffic services, based on the agreement between operators, other When the user identification card is in use, the fee can be directly deducted from the card that has activated the roaming service, without switching between the user identification cards, which is more convenient for users to use.

具体地,当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,中断所述目标通信应用,并设置从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,同时通过所述第一优先级用户识别卡启动执行所述目标通信应用,以使所述目标通信应用先中断再连接,例如当SIM1拨动电话时,由于资费不足,先中断通话,设置采用SIM2扣除SIM1的资费,SIM1自动回拨之前中断的通话;或者当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源的过程中,并无缝执行所述目标通信应用,以使所述目标通信应用持续服务,例如当SIM1拨动电话时,由于资费不足,自动由SIM2扣除SIM1产生的资费,同时不中断通话。Specifically, when it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, the target communication application is interrupted, and the first priority is deducted from the second-priority subscriber identity card. The virtual resources generated by the first-level subscriber identity card, and at the same time start and execute the target communication application through the first priority subscriber identity card, so that the target communication application is interrupted and reconnected first, for example, when SIM1 dials the phone, due to the tariff Insufficient, interrupt the call first, set SIM2 to deduct the tariff of SIM1, and SIM1 will automatically call back the interrupted call; In the process of deducting the virtual resources generated by the first priority subscriber identity card from the priority subscriber identity card, and seamlessly execute the target communication application, so that the target communication application continues to serve, for example, when SIM1 dials the phone , due to insufficient charges, the charges generated by SIM1 will be automatically deducted from SIM2 without interrupting the call.

上述详细阐述了本发明实施例的方法,下面为了便于更好地实施本发明实施例的上述方案,相应地,下面还提供用于配合实施上述方案的相关装置。The method of the embodiment of the present invention has been described in detail above. In order to facilitate better implementation of the above-mentioned solution of the embodiment of the present invention, correspondingly, the following also provides related devices for coordinating the implementation of the above-mentioned solution.

如图6示出的本发明实施例提供的一种终端的结构示意图,终端60包括:第一接收模块601、设置模块603、检测模块605和切换模块607,其中,FIG. 6 is a schematic structural diagram of a terminal provided by an embodiment of the present invention. The terminal 60 includes: a first receiving module 601, a setting module 603, a detection module 605, and a switching module 607, wherein,

第一接收模块601,用于接收针对目标通信应用触发的用户识别卡设置指令;The first receiving module 601 is configured to receive a user identification card setting instruction triggered by a target communication application;

设置模块603,用于根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用;The setting module 603 is configured to obtain the first user identification card selected by the user from the at least two user identification cards according to the user identification card setting instruction, and set the first priority user identification card corresponding to the target communication application For the first subscriber identity card, obtain a second subscriber identity card from the at least two subscriber identity cards, and set the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card A card, wherein, after the terminal receives an execution instruction triggered for the target communication application, the first priority subscriber identification card is used to execute the target communication application;

检测模块605,用于检测所述终端是否满足预设用户识别卡切换条件;A detection module 605, configured to detect whether the terminal meets preset user identification card switching conditions;

优选地,检测模块605具体用于检测所述终端当前的通信网络状态、地理位置状态、用户识别卡漫游状态和用户识别卡虚拟资源状态中的至少一种是否满足所述预设用户识别卡切换条件;Preferably, the detection module 605 is specifically configured to detect whether at least one of the terminal's current communication network status, geographic location status, subscriber identity card roaming status and subscriber identity card virtual resource status satisfies the preset subscriber identity card switching condition;

若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。If yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.

优选地,检测模块605具体用于检测所述用户识别卡的虚拟资源是否不足,若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。Preferably, the detection module 605 is specifically configured to detect whether the virtual resource of the subscriber identity card is insufficient, and if so, the detection result is that the terminal meets the preset subscriber identity card switching condition.

切换模块607,用于若检测到所述终端满足所述预设用户识别卡切换条件,将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。The switching module 607 is configured to, if it is detected that the terminal satisfies the preset subscriber identity card switching condition, set the first priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.

可理解的是,本实施例的终端60的各功能模块的功能可根据上述图1方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of the functional modules of the terminal 60 in this embodiment can be specifically implemented according to the method in the method embodiment in FIG. 1 , which will not be repeated here.

进一步地,如图7示出的本发明实施例提供的另一种终端的结构示意图,进一步描述终端60的结构和功能。该终端60包括:第一接收模块601、设置模块603、检测模块605和切换模块607外,还包括:第二接收模块609,该第二接收模块609包括:接收单元6091、选择单元6093和执行单元6095,其中,Further, FIG. 7 is a schematic structural diagram of another terminal provided by an embodiment of the present invention, further describing the structure and functions of the terminal 60 . The terminal 60 includes: a first receiving module 601, a setting module 603, a detection module 605 and a switching module 607, and also includes: a second receiving module 609, the second receiving module 609 includes: a receiving unit 6091, a selection unit 6093 and an execution Unit 6095, where,

接收单元6091,用于接收针对所述目标通信应用触发的所述执行指令;A receiving unit 6091, configured to receive the execution instruction triggered for the target communication application;

选择单元6093,用于根据所述执行指令生成所述目标通信应用对应的操作界面,并通过所述操作界面接收选择指令,所述选择指令用于指示选择所述第一优先级用户识别卡或所述第二优先级用户识别卡;The selection unit 6093 is configured to generate an operation interface corresponding to the target communication application according to the execution instruction, and receive a selection instruction through the operation interface, and the selection instruction is used to indicate to select the first priority subscriber identity card or said second priority subscriber identity card;

执行单元6095,用于当选择所述第一优先级用户识别卡时,采用所述第一优先级用户识别卡执行所述目标通信应用;所述执行单元6095还用于当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用;The execution unit 6095 is configured to execute the target communication application by using the first priority subscriber identity card when the first priority subscriber identity card is selected; the execution unit 6095 is also configured to execute the target communication application when the second priority subscriber identity card is selected. When using a priority subscriber identity card, using the second priority subscriber identity card to execute the target communication application;

可理解的是,本实施例的终端60的各功能模块的功能可根据上述图2方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of the functional modules of the terminal 60 in this embodiment can be specifically implemented according to the method in the method embodiment in FIG. 2 , which will not be repeated here.

进一步地,如图8示出的本发明实施例提供的执行单元的结构示意图。该执行单元6095包括:接收子单元60951、判断子单元60953和执行子单元60955,其中,Further, FIG. 8 is a schematic structural diagram of the execution unit provided by the embodiment of the present invention. The executing unit 6095 includes: a receiving subunit 60951, a judging subunit 60953 and an executing subunit 60955, wherein,

接收子单元60951,用于当选择所述第二优先级用户识别卡时,接收所述用户输入的验证密码;The receiving subunit 60951 is configured to receive the verification password input by the user when the second priority user identification card is selected;

判断子单元60953,用于判断所述验证密码与预设密码是否匹配;Judging subunit 60953, configured to judge whether the verification password matches the preset password;

执行子单元60955,用于若判断出所述验证密码与所述预设密码匹配,采用所述第二优先级用户识别卡执行所述目标通信应用。The executing subunit 60955 is configured to execute the target communication application by using the second priority subscriber identification card if it is determined that the verification password matches the preset password.

可理解的是,本实施例的执行单元6095的各功能模块的功能可根据上述图3方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of the functional modules of the execution unit 6095 in this embodiment can be specifically implemented according to the method in the method embodiment in FIG. 3 , which will not be repeated here.

进一步地,如图9示出的本发明实施例提供的另一种终端的结构示意图,进一步描述终端60的结构和功能。该终端60包括:第一接收模块601、设置模块603、检测模块605和切换模块607外,还包括:第三接收模块611和显示模块613,其中,Further, FIG. 9 is a schematic structural diagram of another terminal provided by an embodiment of the present invention, further describing the structure and functions of the terminal 60 . The terminal 60 includes: a first receiving module 601, a setting module 603, a detection module 605 and a switching module 607, and also includes: a third receiving module 611 and a display module 613, wherein,

第三接收模块611,用于在所述目标通信应用对应的操作界面中接收针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡触发的显示指令;The third receiving module 611 is configured to receive a display instruction triggered for the first priority subscriber identity card and/or the second priority subscriber identity card in the operation interface corresponding to the target communication application;

显示模块613,用于根据所述显示指令在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息。The display module 613 is configured to display card information corresponding to the first priority user identification card and/or the second priority user identification card on the operation interface according to the display instruction.

可理解的是,本实施例的终端60的各功能模块的功能可根据上述图4方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of the functional modules of the terminal 60 in this embodiment can be specifically implemented according to the method in the method embodiment in FIG. 4 , and details are not repeated here.

进一步地,如图10示出的本发明实施例提供的另一种终端的结构示意图,进一步描述终端60的结构和功能。该终端60包括:第一接收模块601、设置模块603、检测模块605和切换模块607外,还包括:扣除模块615,其中,Further, FIG. 10 is a schematic structural diagram of another terminal provided by an embodiment of the present invention, further describing the structure and functions of the terminal 60 . The terminal 60 includes: a first receiving module 601, a setting module 603, a detection module 605 and a switching module 607, and also includes: a deduction module 615, wherein,

扣除模块615,用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源。The deduction module 615 is configured to, when it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, deduct the value generated by the first-priority subscriber identity card from the second-priority subscriber identity card. virtual resources.

在一个可选的实施例中,扣除模块615包括:In an optional embodiment, the deduction module 615 includes:

中断单元,用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,中断所述目标通信应用;an interrupt unit, configured to interrupt the target communication application when it is detected that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition;

设置单元,用于设置从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并通过所述第一优先级用户识别卡启动执行所述目标通信应用。A setting unit, configured to set the virtual resource generated by deducting the first priority subscriber identity card from the second priority subscriber identity card, and start and execute the target communication application through the first priority subscriber identity card .

在另一个可选的实施例中,扣除模块615具体用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并无缝执行所述目标通信应用。In another optional embodiment, the deduction module 615 is specifically configured to, when it is detected that the first-priority user identity card satisfies the preset virtual resource transfer condition, deduct the set value from the second-priority user identity card. The virtual resource generated by the first-priority subscriber identity card is used to seamlessly execute the target communication application.

可理解的是,本实施例的终端60的各功能模块的功能可根据上述图5方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of the functional modules of the terminal 60 in this embodiment can be specifically implemented according to the method in the method embodiment in FIG. 5 , which will not be repeated here.

请参照图11,图11时本发明实施例提供的另一种终端110的结构示意图,该终端110可以包括:至少一个处理器1101,例如CPU,至少一个通信接口1104,用户接口1103,存储器1105,至少一个通信总线1102以及显示屏1106。其中,通信总线1102用于实现这些组件之间的连接通信。其中,用户接口1103可以包括显示屏(Display),用于输出、显示图像或者数据;用户接口1103还可以包括触控面板,用于检测用户通过触控面板触发的操作指令;可选用户接口1103还可以包括标准的有线接口、无线接口。通信接口1104可选的可以包括标准的有线接口(如数据线接口、网线接口等)、无线接口(如WI-FI接口、蓝牙接口、近场通讯接口)。存储器1105可以是高速R11M存储器,也可以是非不稳定的存储器(non-volatilememory),例如至少一个磁盘存储器。存储器1105可选的还可以是至少一个位于远离前述处理器1101的存储装置。如图11所示,作为一种计算机存储介质的存储器1105中可以包括操作系统、网络通信模块、用户接口模块以及用户识别卡切换程序。Please refer to FIG. 11. FIG. 11 is a schematic structural diagram of another terminal 110 provided by an embodiment of the present invention. The terminal 110 may include: at least one processor 1101, such as a CPU, at least one communication interface 1104, a user interface 1103, and a memory 1105 , at least one communication bus 1102 and a display screen 1106 . Wherein, the communication bus 1102 is used to realize connection and communication between these components. Wherein, the user interface 1103 may include a display screen (Display), which is used to output and display images or data; the user interface 1103 may also include a touch panel, which is used to detect an operation command triggered by the user through the touch panel; the optional user interface 1103 It can also include standard wired interfaces and wireless interfaces. Optionally, the communication interface 1104 may include a standard wired interface (such as a data line interface, a network cable interface, etc.), a wireless interface (such as a WI-FI interface, a Bluetooth interface, and a near field communication interface). The memory 1105 may be a high-speed R11M memory, or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1105 may also be at least one storage device located away from the aforementioned processor 1101 . As shown in FIG. 11 , the memory 1105 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a user identification card switching program.

在图11所示的终端110中,通信接口1104主要用于连接第二终端,与第二终端进行数据通信;而处理器1101可以用于调用存储器1105中存储的用户识别卡切换程序,并执行以下操作:In the terminal 110 shown in FIG. 11 , the communication interface 1104 is mainly used to connect the second terminal and perform data communication with the second terminal; and the processor 1101 can be used to call the user identification card switching program stored in the memory 1105, and execute Do the following:

通过触控面板接收针对目标通信应用触发的用户识别卡设置指令;receiving a user identification card setting instruction triggered by a target communication application through the touch panel;

根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用;According to the user identification card setting instruction, obtain the first user identification card selected by the user from the at least two user identification cards, and set the first priority user identification card corresponding to the target communication application as the first user An identification card, obtaining a second user identification card from the at least two user identification cards, and setting the second priority user identification card corresponding to the target communication application as the second user identification card, wherein, in the After the terminal receives the execution instruction triggered for the target communication application, it executes the target communication application by using the first priority subscriber identification card;

检测所述终端是否满足预设用户识别卡切换条件;Detecting whether the terminal satisfies a preset user identification card switching condition;

若是,将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。If yes, switch and set the first priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.

进一步地,处理器1101执行所述检测所述终端是否满足预设用户识别卡切换条件的步骤可具体为检测所述终端当前的通信网络状态、地理位置状态、用户识别卡漫游状态和用户识别卡虚拟资源状态中的至少一种是否满足所述预设用户识别卡切换条件;Further, the processor 1101 performing the step of detecting whether the terminal satisfies the preset subscriber identity card switching condition may be specifically detecting the current communication network status, geographic location status, subscriber identity card roaming status and subscriber identity card status of the terminal. Whether at least one of the virtual resource states satisfies the preset subscriber identity card switching condition;

若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。If yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.

更进一步地,处理器1101执行所述检测所述终端当前的用户识别卡虚拟资源状态是否满足所述预设用户识别卡切换条件的步骤可具体为检测所述用户识别卡的虚拟资源是否不足,若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。Furthermore, the processor 1101 performing the step of detecting whether the current state of the virtual resource of the Subscriber Identity Card of the terminal satisfies the preset switching condition of the Subscriber Identity Card may specifically be detecting whether the virtual resource of the Subscriber Identity Card is insufficient, If yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.

更进一步地,处理器1101执行所述根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡的步骤之后,处理器1101还用于执行:Further, the processor 1101 executes the step of obtaining the first user-selected user identification card from the at least two user identification cards according to the user identification card setting instruction, and applying the corresponding first priority to the target communication. The subscriber identity card is set as the first subscriber identity card, the second subscriber identity card is obtained from the at least two subscriber identity cards, and the second priority subscriber identity card corresponding to the target communication application is set as the After the step of the second subscriber identification card, the processor 1101 is further configured to perform:

当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源。When it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, the virtual resource generated by the first-priority subscriber identity card is deducted from the second-priority subscriber identity card.

更进一步地,处理器1101执行所述当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源的步骤可具体为:Furthermore, the processor 1101 executes the step of deducting the first-priority user ID card from the second-priority user ID card when detecting that the first-priority user ID card satisfies a preset virtual resource transfer condition. The steps of identifying the virtual resource generated by the card may specifically be:

当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,中断所述目标通信应用;When detecting that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition, interrupting the target communication application;

设置从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并通过所述第一优先级用户识别卡启动执行所述目标通信应用。Setting the virtual resource generated by deducting the first-priority subscriber identity card from the second-priority subscriber identity card, and starting and executing the target communication application through the first-priority subscriber identity card.

更进一步地,处理器1101执行所述当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源的步骤可具体为:Furthermore, the processor 1101 executes the step of deducting the first-priority user ID card from the second-priority user ID card when detecting that the first-priority user ID card satisfies a preset virtual resource transfer condition. The steps of identifying the virtual resource generated by the card may specifically be:

当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并无缝执行所述目标通信应用。When it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, the virtual resource generated by the first-priority subscriber identity card is deducted from the second-priority subscriber identity card, and seamlessly The target communication application is executed.

更进一步地,处理器1101执行所述在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用的步骤可包括:Furthermore, the processor 1101 executing the step of executing the target communication application by using the first-priority subscriber identity card after the terminal receives the execution instruction triggered for the target communication application may include:

通过触控面板接收针对所述目标通信应用触发的所述执行指令;receiving the execution instruction triggered for the target communication application through a touch panel;

通过触控面板根据所述执行指令生成所述目标通信应用对应的操作界面,并通过所述操作界面接收选择指令,所述选择指令用于指示选择所述第一优先级用户识别卡或所述第二优先级用户识别卡;Generate an operation interface corresponding to the target communication application through the touch panel according to the execution instruction, and receive a selection instruction through the operation interface, and the selection instruction is used to instruct selection of the first priority subscriber identity card or the Second priority subscriber identification card;

当选择所述第一优先级用户识别卡时,采用所述第一优先级用户识别卡执行所述目标通信应用;当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用。When the first priority subscriber identity card is selected, the target communication application is executed using the first priority subscriber identity card; when the second priority subscriber identity card is selected, the second priority subscriber identity card is used The subscriber identity card executes the target communication application.

更进一步地,处理器1101执行所述当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用的步骤可包括:Furthermore, the processor 1101 executing the step of executing the target communication application by using the second-priority subscriber identity card when the second-priority subscriber identity card is selected may include:

当选择所述第二优先级用户识别卡时,接收所述用户输入的验证密码;When selecting the second priority user identification card, receiving the verification password input by the user;

判断所述验证密码与预设密码是否匹配,若是,执行所述采用所述第二优先级用户识别卡执行所述目标通信应用的步骤。Judging whether the verification password matches the preset password, and if so, performing the step of executing the target communication application by using the second priority subscriber identification card.

更进一步地,处理器1101执行所述根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡的步骤之后,处理器1101还用于执行以下步骤:Further, the processor 1101 executes the step of obtaining the first user-selected user identification card from the at least two user identification cards according to the user identification card setting instruction, and applying the corresponding first priority to the target communication. The subscriber identity card is set as the first subscriber identity card, the second subscriber identity card is obtained from the at least two subscriber identity cards, and the second priority subscriber identity card corresponding to the target communication application is set as the After the step of the second subscriber identification card, the processor 1101 is further configured to perform the following steps:

通过触控面板在所述目标通信应用对应的操作界面中接收针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡触发的显示指令;receiving a display instruction triggered for the first priority subscriber identity card and/or the second priority subscriber identity card in the operation interface corresponding to the target communication application through the touch panel;

根据所述显示指令通过显示屏在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息。Displaying card information corresponding to the first-priority user identification card and/or the second-priority user identification card on the operation interface through the display screen according to the display instruction.

可理解的是,处理器1101的执行步骤具体可参见图1或图2或图3或图4或图5实施例所述的内容,这里不再赘述。It can be understood that, for specific execution steps of the processor 1101, reference may be made to the content described in the embodiment in FIG. 1 or FIG. 2 or FIG. 3 or FIG. 4 or FIG. 5 , and details are not repeated here.

需要说明的是,上述终端可以包括但不限于:智能手机(如Android手机、iOS手机等)、移动互联网设备(MID,MobileInternetDevices)或穿戴式智能设备等互联网设备。It should be noted that the above-mentioned terminals may include, but are not limited to: smart phones (such as Android phones, iOS phones, etc.), mobile Internet devices (MID, Mobile Internet Devices) or Internet devices such as wearable smart devices.

综上所述,通过实施本发明实施例,终端可以预置不同用户识别卡对应通信应用的优先级别,当终端接收到用户针对通信应用的触发指令时,无需用户手动选择或者切换用户识别卡,终端即可按照预定的优先级别,自动采用第一优先级的用户识别卡执行通信应用,且终端在满足用户识别卡切换条件时,可自动进行用户识别卡的切换,实现了用户识别卡的智能切换,进而提高了终端通信应用的执行效率。To sum up, by implementing the embodiment of the present invention, the terminal can preset the priority levels of communication applications corresponding to different subscriber identification cards. When the terminal receives a trigger instruction from the user for the communication application, the user does not need to manually select or switch subscriber identification cards. The terminal can automatically use the first-priority user identification card to execute communication applications according to the predetermined priority level, and when the terminal meets the user identification card switching conditions, it can automatically switch the user identification card, realizing the intelligent user identification card switching, thereby improving the execution efficiency of the terminal communication application.

进一步地,终端可以在通信应用界面中接收针对第二优先级用户识别卡的触发指令,从而进行密码验证,验证成功后,自动采用第二优先级用户识别卡执行应用程序,以保障通信应用运行的连续性,且采用密码进行验证降低了用户误操作的可能性。Further, the terminal can receive a trigger instruction for the second-priority user identification card in the communication application interface, thereby performing password verification, and after the verification is successful, automatically use the second-priority user identification card to execute the application program to ensure the operation of the communication application The continuity of the system, and the use of passwords for verification reduces the possibility of user misoperation.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-OnlyMemory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and of course it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand all or part of the process for realizing the above embodiments, and according to the rights of the present invention The equivalent changes required still belong to the scope covered by the invention.

Claims (18)

Translated fromChinese
1.一种用户识别卡切换方法,其特征在于,终端包括至少两张用户识别卡,所述方法包括:1. A method for switching subscriber identification cards, characterized in that the terminal comprises at least two subscriber identification cards, and the method comprises:接收针对目标通信应用触发的用户识别卡设置指令;receiving a user identification card setting instruction triggered by a target communication application;根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用;According to the user identification card setting instruction, obtain the first user identification card selected by the user from the at least two user identification cards, and set the first priority user identification card corresponding to the target communication application as the first user An identification card, obtaining a second user identification card from the at least two user identification cards, and setting the second priority user identification card corresponding to the target communication application as the second user identification card, wherein, in the After the terminal receives the execution instruction triggered for the target communication application, it executes the target communication application by using the first priority subscriber identity card;检测所述终端是否满足预设用户识别卡切换条件;Detecting whether the terminal satisfies a preset user identification card switching condition;若是,将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。If yes, switch and set the first priority subscriber identity card corresponding to the target communication application as the second subscriber identity card.2.如权利要求1所述的方法,其特征在于,所述检测所述终端是否满足预设用户识别卡切换条件,包括:2. The method according to claim 1, wherein the detecting whether the terminal meets a preset user identification card switching condition comprises:检测所述终端当前的通信网络状态、地理位置状态、用户识别卡漫游状态和用户识别卡虚拟资源状态中的至少一种是否满足所述预设用户识别卡切换条件;Detecting whether at least one of the terminal's current communication network state, geographic location state, subscriber identity card roaming state, and subscriber identity card virtual resource state satisfies the preset subscriber identity card switching condition;若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。If yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.3.如权利要求2所述的方法,其特征在于,所述检测所述终端当前的用户识别卡虚拟资源状态是否满足所述预设用户识别卡切换条件,包括:3. The method according to claim 2, wherein the detecting whether the current subscriber identity card virtual resource state of the terminal satisfies the preset subscriber identity card switching condition comprises:检测所述第一优先级用户识别卡的虚拟资源是否不足,若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。Detecting whether the virtual resource of the first-priority subscriber identity card is insufficient, if yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.4.如权利要求1所述的方法,其特征在于,所述根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡之后,还包括:4. The method according to claim 1, characterized in that, the first subscriber identity card selected by the user is obtained from the at least two subscriber identity cards according to the subscriber identity card setting instruction, and the target communication Applying the first priority user identification card corresponding to the application is set as the first user identification card, obtaining a second user identification card from the at least two user identification cards, and applying the second priority corresponding to the target communication After the user identification card is set as the second user identification card, it also includes:当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源。When it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, the virtual resource generated by the first-priority subscriber identity card is deducted from the second-priority subscriber identity card.5.如权利要求4所述的方法,其特征在于,所述当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,包括:5. The method according to claim 4, wherein when it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, deducting from the second-priority subscriber identity card The virtual resources generated by the first priority subscriber identity card include:当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,中断所述目标通信应用;When detecting that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition, interrupting the target communication application;设置从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并通过所述第一优先级用户识别卡启动执行所述目标通信应用。Setting the virtual resource generated by deducting the first-priority subscriber identity card from the second-priority subscriber identity card, and starting and executing the target communication application through the first-priority subscriber identity card.6.如权利要求4所述的方法,其特征在于,所述当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,包括:6. The method according to claim 4, wherein when it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, deducting from the second-priority subscriber identity card The virtual resources generated by the first priority subscriber identity card include:当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并无缝执行所述目标通信应用。When it is detected that the first-priority subscriber identity card satisfies the preset virtual resource transfer condition, the virtual resource generated by the first-priority subscriber identity card is deducted from the second-priority subscriber identity card, and seamlessly The target communication application is executed.7.如权利要求1所述的方法,其特征在于,所述在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用,包括:7. The method according to claim 1, characterized in that, after the terminal receives the execution instruction triggered by the target communication application, the target communication is executed using the first priority subscriber identification card applications, including:接收针对所述目标通信应用触发的所述执行指令;receiving the execution instruction triggered for the target communication application;根据所述执行指令生成所述目标通信应用对应的操作界面,并通过所述操作界面接收选择指令,所述选择指令用于指示选择所述第一优先级用户识别卡或所述第二优先级用户识别卡;Generate an operation interface corresponding to the target communication application according to the execution instruction, and receive a selection instruction through the operation interface, the selection instruction is used to instruct to select the first priority subscriber identity card or the second priority subscriber identity card user identification card;当选择所述第一优先级用户识别卡时,采用所述第一优先级用户识别卡执行所述目标通信应用;当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用。When the first priority subscriber identity card is selected, the target communication application is executed using the first priority subscriber identity card; when the second priority subscriber identity card is selected, the second priority subscriber identity card is used The subscriber identity card executes the target communication application.8.如权利要求7所述的方法,其特征在于,所述当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用,包括:8. The method according to claim 7, wherein when the second priority subscriber identity card is selected, executing the target communication application by using the second priority subscriber identity card comprises:当选择所述第二优先级用户识别卡时,接收所述用户输入的验证密码;When selecting the second priority user identification card, receiving the verification password input by the user;判断所述验证密码与预设密码是否匹配,若是,执行所述采用所述第二优先级用户识别卡执行所述目标通信应用的步骤。Judging whether the verification password matches the preset password, and if so, performing the step of executing the target communication application by using the second priority subscriber identification card.9.如权利要求1所述的方法,其特征在于,所述根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡之后,还包括:9. The method according to claim 1, wherein the first user identification card selected by the user is obtained from the at least two user identification cards according to the user identification card setting instruction, and the target communication Applying the first priority user identification card corresponding to the application is set as the first user identification card, obtaining a second user identification card from the at least two user identification cards, and applying the second priority corresponding to the target communication After the user identification card is set as the second user identification card, it also includes:在所述目标通信应用对应的操作界面中接收针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡触发的显示指令;receiving a display instruction triggered for the first priority subscriber identity card and/or the second priority subscriber identity card in the operation interface corresponding to the target communication application;根据所述显示指令在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息。Displaying card information corresponding to the first-priority subscriber identity card and/or the second-priority subscriber identity card on the operation interface according to the display instruction.10.一种终端,其特征在于,所述终端包括至少两张用户识别卡,所述终端包括:10. A terminal, characterized in that the terminal includes at least two subscriber identification cards, and the terminal includes:第一接收模块,用于接收针对目标通信应用触发的用户识别卡设置指令;The first receiving module is configured to receive a user identification card setting instruction triggered by a target communication application;设置模块,用于根据所述用户识别卡设置指令从所述至少两张用户识别卡中获取用户选择的第一用户识别卡,将所述目标通信应用对应的第一优先级用户识别卡设置为所述第一用户识别卡,从所述至少两张用户识别卡中获取第二用户识别卡,并将所述目标通信应用对应的第二优先级用户识别卡设置为所述第二用户识别卡,其中,在所述终端接收到针对所述目标通信应用触发的执行指令后,采用所述第一优先级用户识别卡执行所述目标通信应用;A setting module, configured to obtain the first user identification card selected by the user from the at least two user identification cards according to the user identification card setting instruction, and set the first priority user identification card corresponding to the target communication application as The first subscriber identity card is to obtain a second subscriber identity card from the at least two subscriber identity cards, and set the second priority subscriber identity card corresponding to the target communication application as the second subscriber identity card , wherein, after the terminal receives the execution instruction triggered for the target communication application, execute the target communication application by using the first priority subscriber identity card;检测模块,用于检测所述终端是否满足预设用户识别卡切换条件;A detection module, configured to detect whether the terminal satisfies a preset user identification card switching condition;切换模块,用于若检测到所述终端满足所述预设用户识别卡切换条件,将所述目标通信应用对应的第一优先级用户识别卡切换设置为所述第二用户识别卡。The switching module is configured to switch and set the first priority subscriber identity card corresponding to the target communication application as the second subscriber identity card if it is detected that the terminal satisfies the preset subscriber identity card switching condition.11.如权利要求10所述的终端,其特征在于,所述检测模块具体用于检测所述终端当前的通信网络状态、地理位置状态、用户识别卡漫游状态和用户识别卡虚拟资源状态中的至少一种是否满足所述预设用户识别卡切换条件;11. The terminal according to claim 10, wherein the detection module is specifically configured to detect the terminal's current communication network status, geographic location status, subscriber identity card roaming status and subscriber identity card virtual resource status Whether at least one of the preset user identification card switching conditions is met;若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。If yes, the detection result is that the terminal satisfies the preset subscriber identity card switching condition.12.如权利要求11所述的终端,其特征在于,所述检测单元具体用于检测所述第一优先级用户识别卡的虚拟资源是否不足,若是,则检测的结果为所述终端满足所述预设用户识别卡切换条件。12. The terminal according to claim 11, wherein the detection unit is specifically configured to detect whether the virtual resource of the first-priority subscriber identity card is insufficient, and if so, the result of the detection is that the terminal satisfies the specified requirements. The preset subscriber identification card switching conditions are described above.13.如权利要求10所述的终端,其特征在于,所述终端还包括:13. The terminal according to claim 10, further comprising:扣除模块,用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源。A deduction module, configured to deduct the virtual resources generated by the first-priority subscriber identity card from the second-priority subscriber identity card when it is detected that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition. resource.14.如权利要求13所述的终端,其特征在于,所述扣除模块包括:14. The terminal according to claim 13, wherein the deduction module comprises:中断单元,用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,中断所述目标通信应用;an interrupt unit, configured to interrupt the target communication application when it is detected that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition;设置单元,用于设置从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并通过所述第一优先级用户识别卡启动执行所述目标通信应用。A setting unit, configured to set the virtual resource generated by deducting the first priority subscriber identity card from the second priority subscriber identity card, and start and execute the target communication application through the first priority subscriber identity card .15.如权利要求13所述的终端,其特征在于,所述扣除模块具体用于当检测到所述第一优先级用户识别卡满足预设虚拟资源转移条件时,从所述第二优先级用户识别卡中扣除所述第一优先级用户识别卡产生的虚拟资源,并无缝执行所述目标通信应用。15. The terminal according to claim 13, wherein the deduction module is specifically configured to, when it is detected that the first-priority subscriber identity card satisfies a preset virtual resource transfer condition, that the second-priority The virtual resources generated by the first-priority subscriber identity card are deducted from the subscriber identity card, and the target communication application is seamlessly executed.16.如权利要求10所述的终端,其特征在于,所述终端还包括第二接收模块,所述第二接收模块包括:16. The terminal according to claim 10, further comprising a second receiving module, the second receiving module comprising:接收单元,用于接收针对所述目标通信应用触发的所述执行指令;a receiving unit, configured to receive the execution instruction triggered for the target communication application;选择单元,用于根据所述执行指令生成所述目标通信应用对应的操作界面,并通过所述操作界面接收选择指令,所述选择指令用于指示选择所述第一优先级用户识别卡或所述第二优先级用户识别卡;A selection unit, configured to generate an operation interface corresponding to the target communication application according to the execution instruction, and receive a selection instruction through the operation interface, and the selection instruction is used to instruct selection of the first priority subscriber identity card or the The second priority subscriber identification card;执行单元,用于当选择所述第一优先级用户识别卡时,采用所述第一优先级用户识别卡执行所述目标通信应用;所述执行单元还用于当选择所述第二优先级用户识别卡时,采用所述第二优先级用户识别卡执行所述目标通信应用。An executing unit, configured to execute the target communication application using the first priority subscriber identity card when the first priority subscriber identity card is selected; the execution unit is also configured to execute the target communication application when the second priority subscriber identity card is selected When the subscriber identity card is used, the target communication application is executed by using the second priority subscriber identity card.17.如权利要求16所述的终端,其特征在于,所述执行单元包括:17. The terminal according to claim 16, wherein the executing unit comprises:接收子单元,用于当选择所述第二优先级用户识别卡时,接收所述用户输入的验证密码;A receiving subunit, configured to receive the verification password input by the user when the second priority user identification card is selected;判断子单元,用于判断所述验证密码与预设密码是否匹配;A judging subunit, used to judge whether the verification password matches the preset password;执行子单元,用于若判断出所述验证密码与所述预设密码匹配,采用所述第二优先级用户识别卡执行所述目标通信应用。The executing subunit is configured to execute the target communication application by using the second priority subscriber identification card if it is determined that the verification password matches the preset password.18.如权利要求10所述的终端,其特征在于,还包括:18. The terminal according to claim 10, further comprising:第三接收模块,用于在所述目标通信应用对应的操作界面中接收针对所述第一优先级用户识别卡和/或所述第二优先级用户识别卡触发的显示指令;A third receiving module, configured to receive a display instruction triggered for the first priority subscriber identity card and/or the second priority subscriber identity card in the operation interface corresponding to the target communication application;显示模块,用于根据所述显示指令在所述操作界面中显示所述第一优先级用户识别卡和/或所述第二优先级用户识别卡对应的卡信息。A display module, configured to display card information corresponding to the first-priority user identification card and/or the second-priority user identification card on the operation interface according to the display instruction.
CN201510505991.3A2015-08-172015-08-17 A method and terminal for switching subscriber identification cardsPendingCN105208197A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510505991.3ACN105208197A (en)2015-08-172015-08-17 A method and terminal for switching subscriber identification cards

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510505991.3ACN105208197A (en)2015-08-172015-08-17 A method and terminal for switching subscriber identification cards

Publications (1)

Publication NumberPublication Date
CN105208197Atrue CN105208197A (en)2015-12-30

Family

ID=54955615

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510505991.3APendingCN105208197A (en)2015-08-172015-08-17 A method and terminal for switching subscriber identification cards

Country Status (1)

CountryLink
CN (1)CN105208197A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105813233A (en)*2016-04-192016-07-27深圳优克云联科技有限公司Communication strategy configuring method and device
CN107368762A (en)*2017-05-262017-11-21宇龙计算机通信科技(深圳)有限公司Detection method, detection means and the terminal of Subscriber Identity Module
CN108601097A (en)*2018-04-272018-09-28中国联合网络通信集团有限公司Networking control method, device, equipment and the computer storage media of double-terminal
CN110177173A (en)*2019-05-242019-08-27中国联合网络通信集团有限公司A kind of switching method and apparatus
CN110446172A (en)*2019-08-152019-11-12宇龙计算机通信科技(深圳)有限公司Switching method, device, storage medium and the terminal of subscriber identification card
CN110521227A (en)*2019-07-042019-11-29北京小米移动软件有限公司Residence reselecting and device, priority indication method and apparatus
CN110832888A (en)*2018-05-142020-02-21华为技术有限公司Method for automatically switching SIM (subscriber identity Module) cards and electronic device
CN113518404A (en)*2021-04-192021-10-19Tcl通讯(宁波)有限公司 A 5G network automatic switching method, device, storage medium and mobile terminal
CN115278648A (en)*2021-09-142022-11-01中国联合网络通信集团有限公司 Service bearer switching method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2012171272A1 (en)*2011-06-152012-12-20中兴通讯股份有限公司Subscriber identity card and method for implementing call restriction thereof
CN103369505A (en)*2012-03-272013-10-23宇龙计算机通信科技(深圳)有限公司Card selection method and system for multi-card mobile terminal, and mobile terminal
CN104768142A (en)*2015-04-222015-07-08魅族科技(中国)有限公司Data communication method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2012171272A1 (en)*2011-06-152012-12-20中兴通讯股份有限公司Subscriber identity card and method for implementing call restriction thereof
CN103369505A (en)*2012-03-272013-10-23宇龙计算机通信科技(深圳)有限公司Card selection method and system for multi-card mobile terminal, and mobile terminal
CN104768142A (en)*2015-04-222015-07-08魅族科技(中国)有限公司Data communication method and terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105813233B (en)*2016-04-192019-05-21深圳优克云联科技有限公司A kind of communication strategy configuration method and device
CN105813233A (en)*2016-04-192016-07-27深圳优克云联科技有限公司Communication strategy configuring method and device
CN107368762A (en)*2017-05-262017-11-21宇龙计算机通信科技(深圳)有限公司Detection method, detection means and the terminal of Subscriber Identity Module
CN108601097A (en)*2018-04-272018-09-28中国联合网络通信集团有限公司Networking control method, device, equipment and the computer storage media of double-terminal
CN108601097B (en)*2018-04-272022-01-25中国联合网络通信集团有限公司Networking control method, device and equipment for dual-card terminal and computer storage medium
CN110832888A (en)*2018-05-142020-02-21华为技术有限公司Method for automatically switching SIM (subscriber identity Module) cards and electronic device
CN110177173A (en)*2019-05-242019-08-27中国联合网络通信集团有限公司A kind of switching method and apparatus
CN110521227A (en)*2019-07-042019-11-29北京小米移动软件有限公司Residence reselecting and device, priority indication method and apparatus
WO2021000314A1 (en)*2019-07-042021-01-07北京小米移动软件有限公司Cell reselection method and device, and priority indication method and device
CN110446172A (en)*2019-08-152019-11-12宇龙计算机通信科技(深圳)有限公司Switching method, device, storage medium and the terminal of subscriber identification card
CN113518404A (en)*2021-04-192021-10-19Tcl通讯(宁波)有限公司 A 5G network automatic switching method, device, storage medium and mobile terminal
CN115278648A (en)*2021-09-142022-11-01中国联合网络通信集团有限公司 Service bearer switching method and device
CN115278648B (en)*2021-09-142024-03-29中国联合网络通信集团有限公司 Service carrier switching method and device

Similar Documents

PublicationPublication DateTitle
CN105208197A (en) A method and terminal for switching subscriber identification cards
CN108040352B (en) A service processing method, device and mobile terminal under a hybrid network standard
EP3749006B1 (en)Data traffic management method and apparatus
CN105573748B (en)Shortcut key customization method and intelligent terminal
CN105828317A (en)ESIM-card-based operator service selection method and selection apparatus, and terminal
CN109495875B (en) SIM card selection method, device, electronic device and storage medium
CN105873013A (en)Method and device for selecting operator based on e-SIM () card and mobile terminal
US12177664B2 (en)Network roaming method, terminal device, and computer readable storage medium
CN108021830B (en)Information processing method and electronic equipment
CN108601097B (en)Networking control method, device and equipment for dual-card terminal and computer storage medium
CN105406889A (en)Method and device for determining network type and mobile terminal
CN105517084B (en)Method for processing business, device and mobile terminal under a kind of hybrid network standard
CN105045468A (en)Processing method and apparatus for suspended notice in mobile terminal
CN104768142A (en)Data communication method and terminal
CN106793063B (en) Data attachment control method and device
CN104683572A (en)Intelligent terminal operating system switching method and device
CN105979552B (en) Method and system for mode selection using manual PLMN
CN105867969A (en)APP starting method and terminal
CN106161793A (en)Originating method based on contact person's packet and device
CN107466022B (en)SIM card switching method, mobile terminal and storage medium
CN101150869B (en)A method and device for realizing intelligent communication of mobile terminal
CN101868051A (en)Double-card dialing device and method
CN112153719B (en)Communication method, device, system and computer readable storage medium
CN111107093A (en)Application login method, device, terminal and storage medium
CN105898753B (en)Short message processing method and electronic equipment

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20151230


[8]ページ先頭

©2009-2025 Movatter.jp