WO2026056830A1 - Calling method and related apparatus - Google Patents
Calling method and related apparatusInfo
- Publication number
- WO2026056830A1 WO2026056830A1 PCT/CN2025/119890 CN2025119890W WO2026056830A1 WO 2026056830 A1 WO2026056830 A1 WO 2026056830A1 CN 2025119890 W CN2025119890 W CN 2025119890W WO 2026056830 A1 WO2026056830 A1 WO 2026056830A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- country
- phone number
- country code
- call
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
- H04M1/2745—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
- H04M1/27453—Directories allowing storage of additional subscriber data, e.g. metadata
- H04M1/27457—Management thereof, e.g. manual editing of data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
- H04M1/2745—Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
- H04M1/2749—Automatic dialling or redialling systems, e.g. on off-hook or redial on busy
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Library & Information Science (AREA)
- Telephone Function (AREA)
Abstract
Description
本申请要求于2024年09月10日提交中国国家知识产权局、申请号为202411266547.6、申请名称为“一种呼叫的方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 202411266547.6, filed on September 10, 2024, entitled "A Method and Related Apparatus for Calling", the entire contents of which are incorporated herein by reference.
本申请涉及通信领域,尤其涉及一种呼叫的方法及相关装置。This application relates to the field of communications, and more particularly to a method and related apparatus for making a call.
用户可以在国内使用电子设备拨打国内的电话号码。但是,用户出国之后,可能电子设备存在拨打国内号码失败的情况。如何使得用户在国外能够成功地使用电子设备拨打国内的电话号码是本领域亟需解决的问题。Users can make domestic calls using their electronic devices while in China. However, when users travel abroad, their devices may fail to dial domestic numbers. Enabling users to successfully make domestic calls from abroad is a pressing problem that needs to be solved.
本申请提供了一种呼叫的方法及相关装置,可以获取到电话号码的国家码,并且在用户出国之后拨打国内的电话号码的情况下,避免出现由于未添加国家码导致拨号失败的情况。This application provides a method and related apparatus for making a call, which can obtain the country code of the telephone number and avoid dialing failure due to the lack of a country code when a user dials a domestic telephone number after leaving the country.
第一方面,本申请提供了一种呼叫的方法,其特征在于,该方法应用于第一电子设备,该方法包括:在该第一电子设备位于第一国家内的情况下,该第一电子设备呼叫第一号码,该第一号码包括第一电话号码,不包括国家码;在呼叫成功之后,该第一电子设备将该第一国家的国家码存储为该第一电话号码的国家码。In a first aspect, this application provides a method for making a call, characterized in that the method is applied to a first electronic device, the method comprising: when the first electronic device is located in a first country, the first electronic device calls a first number, the first number including a first telephone number but excluding a country code; after the call is successful, the first electronic device stores the country code of the first country as the country code of the first telephone number.
实施上述方法,电子设备可以成功获取到第一电话号码的国家码,以便后续再次拨打第一电话号码时可以呼叫成功。By implementing the above method, the electronic device can successfully obtain the country code of the first phone number, so that it can successfully make a call to the first phone number again in the future.
结合第一方面,在一些实现方式中,在该第一电子设备确定该第一电话号码的国家码为该第一国家的国家码之后,该方法还包括:该第一电子设备接收第一操作,该第一操作包括:在拨号盘中输入该第一电话号码并拨打的操作,或,向第一联系人拨打号码的操作,该第一联系人的号码为该第一电话号码,或,在通话记录中选中该第一电话号码并拨打的操作;该第一电子设备呼叫第二号码,该第二号码包括该第一电话号码的国家码以及该第一电话号码。In conjunction with the first aspect, in some implementations, after the first electronic device determines that the country code of the first phone number is the country code of the first country, the method further includes: the first electronic device receiving a first operation, the first operation including: entering the first phone number in a dial pad and dialing it, or dialing a number to a first contact whose number is the first phone number, or selecting the first phone number in the call log and dialing it; the first electronic device calling a second number, the second number including the country code of the first phone number and the first phone number.
这样,无论电子设备接收第一操作时处于任何国家,都可以呼叫第一电话号码成功,并且还可以减少电子设备判断国家码是否一致的功耗。In this way, regardless of which country the electronic device is in when receiving the first operation, it can successfully call the first phone number, and it can also reduce the power consumption of the electronic device in determining whether the country code is consistent.
结合第一方面,在一些实现方式中,在该第一电子设备确定该第一电话号码的国家码为该第一国家的国家码之后,该方法还包括:在该第一电子设备位于第二国家的情况下,该第一电子设备接收第一操作,该第一操作包括:在拨号盘中输入该第一电话号码并拨打的操作,或,向第一联系人拨打号码的操作,该第一联系人的号码为该第一电话号码,或,在通话记录中选中该第一电话号码并拨打的操作;该第一电子设备呼叫第二号码,该第二号码包括该第一电话号码的国家码以及该第一电话号码。In conjunction with the first aspect, in some implementations, after the first electronic device determines that the country code of the first phone number is the country code of the first country, the method further includes: if the first electronic device is located in a second country, the first electronic device receives a first operation, the first operation including: entering the first phone number in a dial pad and dialing it, or dialing a number to a first contact whose number is the first phone number, or selecting the first phone number in the call log and dialing it; the first electronic device calls a second number, the second number including the country code of the first phone number and the first phone number.
这样,电子设备可以在存储有第一电话号码的国家码之后,在电子设备所处的国家的国家码与第一电话号码的国家码不一致的情况下,呼叫第二号码成功。In this way, the electronic device can successfully call the second number even if the country code of the country where the electronic device is located does not match the country code of the first phone number, after storing the country code of the first phone number.
结合第一方面,在一些实现方式中,在该第一电子设备呼叫第二号码之前,该方法还包括:该第一电子设备基于公共陆地移动网确定该第一电子设备位于该第二国家;该第一电子设备确定该第一电子设备所处的该第二国家的国家码与该第一电话号码的国家码不一致。在一些实现方式中,电子设备还可以通过其他方式确定第一电子设备位于第二国家。In conjunction with the first aspect, in some implementations, before the first electronic device calls the second number, the method further includes: the first electronic device determining that it is located in the second country based on a public terrestrial mobile network; and the first electronic device determining that the country code of the second country where it is located does not match the country code of the first telephone number. In some implementations, the electronic device may also determine that it is located in the second country by other means.
结合第一方面,在一些实现方式中,该第一操作包括:在拨号盘中输入该第一电话号码并拨打的操作,或,在通话记录中选中该第一电话号码并拨打的操作之后,该方法还包括:在呼叫该第二号码的过程中,该第一电子设备显示第一呼叫界面,该第一呼叫界面包括:该第一电话号码、该第一电话号码的国家码。这样,电子设备可以呼叫第一号码时显示包含仅有电话号码的呼叫界面,在呼叫第二号码时显示包含有电话号码和国家码的呼叫界面,在一定程度上减少出现用户认为呼叫界面冗余的情况。In conjunction with the first aspect, in some implementations, the first operation includes either entering the first phone number into the dial pad and dialing it, or selecting the first phone number in the call log and dialing it. Following this, the method further includes, during the call to the second number, the first electronic device displays a first call interface, which includes the first phone number and its country code. In this way, the electronic device can display a call interface containing only the phone number when calling the first number, and a call interface containing both the phone number and the country code when calling the second number, thus reducing the likelihood of users perceiving the call interface as redundant.
结合第一方面,在一些实现方式中,在该第一电子设备呼叫第一号码之前,该方法还包括:该第一电子设备基于公共陆地移动网确定该第一电子设备位于该第一国家;该第一电子设备基于该第一国家获取该第一国家的国家码。在一些实现方式中,电子设备还可以通过其他方式确定第一电子设备位于第一国家。In conjunction with the first aspect, in some implementations, before the first electronic device calls the first number, the method further includes: the first electronic device determining that it is located in the first country based on a public terrestrial mobile network; and the first electronic device obtaining the country code of the first country based on that first country. In some implementations, the electronic device may also determine that it is located in the first country through other means.
结合第一方面,在一些实现方式中,在该第一电子设备确定该第一电话号码的国家码为该第一国家的国家码之后,该方法还包括:在该第一电子设备位于该第一国家的情况下,该第一电子设备接收第三操作,该第三操作包括:在拨号盘中输入该第一电话号码并拨打的操作,或,向第一联系人拨打号码的操作,该第一联系人的号码为该第一电话号码,或,在通讯记录中选中该第一电话号码并拨打的操作;该第一电子设备呼叫该第一号码。In conjunction with the first aspect, in some implementations, after the first electronic device determines that the country code of the first phone number is the country code of the first country, the method further includes: if the first electronic device is located in the first country, the first electronic device receives a third operation, the third operation including: entering the first phone number in the dial pad and dialing it, or dialing a number to a first contact whose number is the first phone number, or selecting the first phone number in the communication record and dialing it; the first electronic device calls the first number.
这样,电子设备可以在存储有第一电话号码的国家码之后,在电子设备所处的国家的国家码与第一电话号码的国家码一致的情况下,呼叫第一号码成功。In this way, the electronic device can successfully call the first number after storing the country code of the first phone number, provided that the country code of the country where the electronic device is located matches the country code of the first phone number.
结合第一方面,在一些实现方式中,在该第一电子设备确定该第一电话号码的国家码为该第一国家的国家码之后,该方法还包括:该第一电子设备显示新建联系人的第一界面,该第一界面包括:用户输入的该第一联系人的名称、该第一电子设备填充的该第一电话号码与该第一电话号码的国家码。该第一电子设备存储该第一联系人的名称、该第一电话号码、该第一电话号码的国家码。In conjunction with the first aspect, in some implementations, after the first electronic device determines that the country code of the first phone number is the country code of the first country, the method further includes: the first electronic device displaying a first interface for creating a new contact, the first interface including: the name of the first contact entered by the user, the first phone number filled in by the first electronic device, and the country code of the first phone number. The first electronic device stores the name of the first contact, the first phone number, and the country code of the first phone number.
这样,电子设备可以在确定第一电话号码的国家码之后,新建第一联系人,电子设备可以在新建第一联系人的过程中自动填充第一电话号码的国家码。In this way, after determining the country code of the first phone number, the electronic device can create a new first contact, and the electronic device can automatically fill in the country code of the first phone number during the process of creating the first contact.
结合第一方面,在一些实现方式中,在该第一电子设备呼叫第一号码之前,该方法还包括:该第一电子设备显示新建联系人的第二界面,该第二界面包括:用户输入的该第一联系人的名称以及该第一电话号码;该第一电子设备存储该第一联系人的名称、该第一电话号码;在该第一电子设备确定该第一电话号码的国家码为该第一国家的国家码之后,该方法还包括:该第一电子设备存储该第一联系人的名称、该第一电话号码、该第一电话号码的国家码。In conjunction with the first aspect, in some implementations, before the first electronic device calls the first number, the method further includes: the first electronic device displaying a second interface for creating a new contact, the second interface including: the name of the first contact entered by the user and the first phone number; the first electronic device storing the name of the first contact and the first phone number; after the first electronic device determines that the country code of the first phone number is the country code of the first country, the method further includes: the first electronic device storing the name of the first contact, the first phone number, and the country code of the first phone number.
这样,电子设备可以在确定第一电话号码的国家码之前,新建第一联系人。电子设备可以在确定第一电话号码的国家码之后自动填充第一电话号码的国家码。In this way, the electronic device can create a new first contact before determining the country code of the first phone number. The electronic device can also automatically fill in the country code of the first phone number after determining it.
结合第一方面,在一些实现方式中,在该第一电子设备存储该第一联系人的名称、该第一电话号码、该第一电话号码的国家码之后,该方法还包括:该第一电子设备接收第二操作;该第一电子设备响应该第二操作,修改或删除该第一电话号码的国家码。In conjunction with the first aspect, in some implementations, after the first electronic device stores the name of the first contact person, the first phone number, and the country code of the first phone number, the method further includes: the first electronic device receiving a second operation; and the first electronic device responding to the second operation by modifying or deleting the country code of the first phone number.
这样,用户可以在电子设备获取的国家码不符合用户意愿的情况下,修改第一电话号码的国家码。In this way, users can change the country code of their primary phone number if the country code obtained by their electronic device does not meet their expectations.
结合第一方面,在一些实现方式中,在该第一电子设备确定该第一电话号码的国家码为该第一国家的国家码之前,该方法还包括:该第一电子设备与具有该第一电话号码的电子设备保持通话的时长超过第一阈值。这样,电子设备与具有第一电话号码的设备保持通话的时长超过预设阈值可以认为具有第一电话号码的设备即为使用电子设备的用户拨打的目标设备,这样,可以增加确定第一电话号码国家码的可靠性。In conjunction with the first aspect, in some implementations, before the first electronic device determines that the country code of the first phone number is the country code of the first country, the method further includes: the duration of the call between the first electronic device and the electronic device possessing the first phone number exceeds a first threshold. Thus, if the duration of the call between the electronic device and the device possessing the first phone number exceeds a preset threshold, it can be assumed that the device possessing the first phone number is the target device dialed by the user of the electronic device, thereby increasing the reliability of determining the country code of the first phone number.
结合第一方面,在一些实现方式中,该第一号码不包括国家冠码,该第二号码包括该国家冠码。在一些实现方式中,电子设备可以在确定第一电话号码的国家码为第一国家的国家码之后,可以存储第一国家的国家码。进一步的,由于国家码在使用的过程中需要配合国家冠码一起使用,电子设备还可以将国家冠码与第一国家的国家一并存储在电子设备中。In conjunction with the first aspect, in some implementations, the first number does not include a country code, while the second number does. In some implementations, the electronic device can store the country code of the first country after determining that the country code of the first phone number is the country code of the first country. Furthermore, since the country code needs to be used in conjunction with the country code during use, the electronic device can also store the country code along with the country code of the first country in the electronic device.
第二方面,本申请提供了一种电子设备,该电子设备包括存储器、处理器以及存储在存储器上的计算机指令,该处理器执行该计算机程序以实现上述第一方面或第一方面任一实施方式的方法。In a second aspect, this application provides an electronic device including a memory, a processor, and computer instructions stored in the memory, wherein the processor executes the computer program to implement the method described in the first aspect or any embodiment of the first aspect.
第三方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,该计算机程序被处理器执行时实现上述第一方面或第一方面任一实施方式的方法。Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect or any of the embodiments of the first aspect.
第四方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包含计算机指令,当该计算机指令被处理器执行时实现上述第一方面或第一方面任一实施方式的方法。Fourthly, embodiments of this application provide a computer program product comprising computer instructions that, when executed by a processor, implement the method described in the first aspect or any of the embodiments of the first aspect.
第二方面至第四方面的有益效果可以参考上述第一方面的有益效果。The beneficial effects of the second to fourth aspects can be referenced from the beneficial effects of the first aspect mentioned above.
图1为本申请实施例提供的一种呼叫的方法流程示意图;Figure 1 is a schematic flowchart of a calling method provided in an embodiment of this application;
图2A-图2C为本申请实施例提供的一组呼叫电话号码之前的用户界面;Figures 2A-2C show a set of user interfaces provided in an embodiment of this application before calling a telephone number;
图3A-图3C为本申请实施例提供的一组通讯录应用提供的用户界面;Figures 3A-3C show the user interface provided by a set of address book applications according to embodiments of this application;
图4A-图4B为本申请实施例提供另一组呼叫电话号码之前的用户界面;Figures 4A and 4B show the user interface provided in an embodiment of this application before calling another set of phone numbers;
图5A-图5B为本申请实施例提供的一组呼叫电话号码的过程中的用户界面;Figures 5A and 5B show a user interface during a set of telephone number calls provided in an embodiment of this application.
图6为本申请实施例提供的一种电子设备的硬件结构示意图;Figure 6 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
图7为本申请实施例提供的一种电子设备的软件结构示意图。Figure 7 is a schematic diagram of the software structure of an electronic device provided in an embodiment of this application.
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, "/" means "or," for example, A/B can mean A or B; the word "and/or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and/or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
下面介绍本申请实施例涉及的一些名词。The following describes some terms used in the embodiments of this application.
电话号码是指电话管理部门为电子设备(例如手机)设定的号码,电子设备可以使用电话号码呼叫其他电子设备。发起呼叫的电子设备可以称为主叫设备,接收呼叫的电子设备可以称为被叫设备。不同国家使用的电话号码位数可以一致,也可以不一致。示例性的,中国使用的电话号码为11位,其中,第1-3位是网络识别号,用于标识所属的运营商,例如中国移动的网络识别号包括:136、137等等,中国电信的网络识别码包括:133、180等等。第4-7位是地区编码,用于指示用户的归属地;第8-11位是用户号码,随机分配给每个用户。A telephone number is a number assigned by the telephone administration to electronic devices (such as mobile phones). Electronic devices can use telephone numbers to call other electronic devices. The electronic device that initiates the call is called the calling device, and the electronic device that receives the call is called the called device. Telephone numbers used in different countries may have the same or different digits. For example, telephone numbers used in China are 11 digits long. The first three digits are the network identification number, used to identify the operator. For example, China Mobile's network identification numbers include 136, 137, etc., and China Telecom's network identification numbers include 133, 180, etc. The fourth to seventh digits are the area code, used to indicate the user's home location; the eighth to eleventh digits are the user number, randomly assigned to each user.
国家码是指在拨往国外的电话号时用以标识目标国家的唯一数字代码,其添加在电话号码之前拨打。国家码可以理解为国际长途电话区号,又称国家代码、国家号码。每个国家或地区均有其特定的国家码,例如中国的国家码为“86”,美国的国家码为“1”,英国的国家码为“44”。A country code is a unique numerical code used to identify the target country when dialing a number abroad. It is added before the phone number. A country code can be understood as an international long-distance dialing code, also known as a country code or country number. Each country or region has its own specific country code; for example, China's country code is "86", the United States' country code is "1", and the United Kingdom's country code is "44".
国家冠码是指在拨打国外的电话号码添加在国际码前的一组数字或符号。国家冠码用于告知电话通信网络本次呼叫的号码是一个国际号码。示例性的,国家冠码可以包括:“+”、“00”。A country code is a set of numbers or symbols added before the international code when dialing a phone number abroad. The country code informs the telephone communication network that the number being called is an international number. For example, a country code may include "+" or "00".
漫游地是指用户在归属运营商网络之外的其他国家和地区使用电子设备的移动电话服务的地区。非漫游地是指用户在其归属运营商网络内使用电子设备的移动电话服务的地区。非漫游地又称为归属地。例如,电话号码A的运营为商是中国移动,中国移动网络覆盖中国,那么中国之外的其他国家和地区为电话号码A的漫游地,中国为电话号码A的非漫游地。Roaming area refers to the region where a user uses mobile phone services on their electronic device outside of their home operator's network. Non-roaming area refers to the region where a user uses mobile phone services on their electronic device within their home operator's network. Non-roaming area is also known as the home area. For example, if phone number A is operated by China Mobile, and China Mobile's network covers China, then other countries and regions outside of China are roaming areas for phone number A, while China is a non-roaming area for phone number A.
本地号码是指在归属运营商网络内使用的电话号码。例如,中国的本地号码可以是指在中国使用的电话号码,但不一定是在中国注册的电话号码。A local number refers to a telephone number used within the network of its home operator. For example, a local number in China can refer to a telephone number used in China, but it is not necessarily a telephone number registered in China.
本国号码是指在某一国家内注册并使用的电话号码。例如,中国的本国号码可以是指在中国使用的中国移动、中国电信、中国联通的电话号码。A domestic phone number refers to a telephone number registered and used within a specific country. For example, a domestic phone number in China could refer to a telephone number used by China Mobile, China Telecom, or China Unicom in China.
在一些实现方式中,以下情况电子设备可以呼叫成功:In some implementations, an electronic device can successfully make a call under the following conditions:
1、电子设备在非漫游地拨打本国号码时,未在本国号码之前添加国家冠码和国家码。示例性的,具有中国移动的电话号码A的电子设备在中国,拨打在中国内注册并使用的电话号码B时,无需在电话号码B之前添加国家冠码“00”或“+”以及国家码“86”即可拨打成功。1. When an electronic device dials a domestic number while not roaming, it does not add the country prefix and country code before the domestic number. For example, an electronic device with a China Mobile phone number A is located in China. When dialing a phone number B registered and used in China, it does not need to add the country prefix "00" or "+" and the country code "86" before the phone number B to dial successfully.
可选的,电子设备在非漫游地拨打本国号码时,在本国号码之前添加国家冠码和国家码也可以呼叫成功。Optionally, when an electronic device dials a domestic number while not roaming, adding the country prefix and country code before the domestic number will also allow the call to be successful.
2、电子设备在漫游地拨打本地号码时,未在本地号码之前添加国家冠码和国家码。示例性的,具有中国移动的电话号码A的电子设备在B国,拨打在B国内使用的电话号码B时,无需在电话号码B之前添加国家冠码“00”或“+”以及B国的国家码即可拨打成功。其中,B国指的是中国之外的国家或地区。2. When an electronic device dials a local number while roaming, it fails to add the country prefix and country code before the local number. For example, an electronic device with a China Mobile phone number A in country B can successfully dial a phone number B used within country B without adding the country prefix "00" or "+" and the country code of country B before the phone number B. Here, country B refers to a country or region outside of China.
可选的,电子设备在漫游地拨打本地号码时,在本地号码之前添加国家冠码和国家码也可以呼叫成功。Optionally, when an electronic device dials a local number while roaming, adding the country prefix and country code before the local number will also allow the call to be successful.
3、电子设备在非漫游地或漫游地拨打在国外使用的电话号码时,在该电话号码之前添加国家冠码和对应国家的国家码。示例性的,具有中国移动的电话号码A的电子设备在中国或在B国,拨打在C国内使用的电话号码B时,需要在电话号码B之前添加国家冠码“00”或“+”以及C国的国家码才可拨打成功。3. When an electronic device dials a phone number used abroad while in a non-roaming or roaming area, the country prefix and the country code of the corresponding country must be added before the phone number. For example, if an electronic device with a China Mobile phone number A is in China or in country B, and dials a phone number B used in country C, the country prefix "00" or "+" and the country code of country C must be added before the phone number B for the dialing to be successful.
若电子设备在非漫游地或漫游地拨打国外使用的电话号码时,未在该电话号码之前添加国家冠码和对应国家的国家码,则呼叫失败。If an electronic device dials a foreign phone number while not roaming or while roaming, and does not add the country prefix and the corresponding country code before the phone number, the call will fail.
基于上述情况而言,处于A国的电子设备拨打在A国家内使用的电话号码时无需添加国家冠码和本国的国家码。也就是说,电子设备在呼叫一个电话号码时,默认呼叫在当前电子设备所处国家内使用的电话号码。Based on the above, when an electronic device located in country A dials a phone number used within country A, it does not need to add the country code or its own country code. In other words, when an electronic device dials a phone number, it defaults to dialing a phone number used within the country where the electronic device is currently located.
处于A国家的电子设备拨打在B国家使用的电话号码时,需添加国家冠码和对应国家的国家码。这是由于,仅凭借电话号码的特征,无法获知该电话号码是哪个国家的,必须添加国家码才能确定该电话号码具体在哪个国家使用,才能够呼叫成功。When an electronic device located in country A dials a phone number used in country B, it must include the country prefix and the corresponding country code. This is because the country of origin of a phone number cannot be determined solely by its characteristics; the country code must be added to confirm the specific country in which the phone number is used, thus ensuring a successful call.
在一些实现方式中,存在以下场景:电子设备在国内呼叫某一电话号码成功,待用户出国之后,电子设备再次呼叫该电话号码失败,这给用户带来了不好的体验,令用户生疑是否记错了电话号码。呼叫失败的原因包括:电子设备在国外呼叫该电话号码时未添加国家冠码和国内的国家码。这是由于用户在国内呼叫某一电话号码成功时仅使用电话号码,这使得电子设备仅获取到该电话号码,未获取到该电话号码的国家码,进而电子设备仅保存该电话号码,不会保存国家冠码以及国家码。因此,电子设备再次使用该电话号码呼叫时,不会在电话号码之前添加国家冠以及国家码,从而呼叫失败。In some implementations, the following scenario exists: an electronic device successfully calls a phone number domestically, but fails to call the same number again after the user travels abroad. This creates a poor user experience and makes the user wonder if they remembered the phone number incorrectly. The reasons for the call failure include: the electronic device did not add the country code and the domestic country code when calling the phone number from abroad. This is because when a user successfully calls a phone number domestically, only the phone number is used, meaning the electronic device only obtains the phone number and not the country code. Consequently, the electronic device only saves the phone number and not the country code. Therefore, when the electronic device calls the same phone number again, it does not add the country code and country code before the phone number, resulting in a call failure.
为了减少上述问题的发生,本申请实施例提供了一种呼叫的方法。在该方法中,电子设备仅呼叫电话号码成功,说明主叫设备与被叫设备在同一国家,例如A国。此时,主叫设备可以将A国的国家码确定为电话号码的国家码。之后,若主叫设备迁移至B国之后再呼叫该电话号码,则主叫设备主动在电话号码之前添加国家冠码和国家码。如果被叫设备仍处于A国,那么可以呼叫成功。To reduce the aforementioned problems, this application provides a method for making a call. In this method, if the electronic device successfully calls only a phone number, it indicates that the calling device and the called device are in the same country, such as country A. In this case, the calling device can determine the country code of country A as the country code of the phone number. Subsequently, if the calling device moves to country B and then calls the same phone number again, the calling device will proactively add the country prefix and country code before the phone number. If the called device is still in country A, the call will be successful.
这样,电子设备在A国呼叫某一电话号码成功,待用户出国之后,电子设备再次呼叫该电话号码仍能够成功。In this way, if an electronic device successfully calls a certain phone number in country A, it will be able to successfully call that phone number again after the user leaves the country.
下面介绍本申请实施例提供的一种呼叫的方法流程。The following describes a calling method flow provided by an embodiment of this application.
图1示例性示出了本申请实施例提供的一种呼叫的方法流程示意图。该方法包括:Figure 1 illustrates a flowchart of a calling method provided in an embodiment of this application. The method includes:
S101、在电子设备位于第一国家内的情况下,电子设备呼叫第一号码,第一号码包括第一电话号码,不包括国家冠码和国家码。S101. When an electronic device is located in a first country, the electronic device calls a first number, which includes a first telephone number but does not include the country prefix and country code.
第一国家可以是指任意提供通信服务的国家。The first country can refer to any country that provides communication services.
在一些实现方式中,电子设备可以通过以下方式呼叫第一号码:电子设备可以接收到通过拨号盘输入的第一号码并拨打的操作,呼叫第一号码。电子设备还可以接收到选择第一号码所属的联系人并拨打的操作,呼叫第一号码。电子设备还可以接收到在通话记录中选中第一号码并拨打的操作。In some implementations, an electronic device can call a first number in the following ways: The electronic device can receive an operation to dial a first number entered via a dial pad, thus calling the first number. The electronic device can also receive an operation to select a contact to whom the first number belongs and dial that contact, thus calling the first number. The electronic device can also receive an operation to select a first number from the call log and dial that number.
第一号码可以在执行S101时由用户输入至电子设备,也可以在执行S101之前存储在电子设备的通讯录中,还可以在执行S101之前存储在电子设备的通话记录中。The first number can be entered into the electronic device by the user when executing S101, or it can be stored in the electronic device's address book before executing S101, or it can be stored in the electronic device's call log before executing S101.
在一种可能的实现方式中,电子设备可以通过拷贝其他电子设备中第一号码所属的联系人信息,将第一电话号码存储在通讯录中。In one possible implementation, the electronic device can store the first phone number in its address book by copying the contact information of the first number from another electronic device.
若电子设备呼叫第一号码成功,则执行S102。If the electronic device successfully calls the first number, then execute S102.
若电子设备呼叫第一号码失败,说明第一号码不在第一国家内使用,电子设备也无法获知第一号码在哪个国家使用,结束该流程。If the electronic device fails to call the first number, it means that the first number is not used in the first country, and the electronic device cannot know which country the first number is used in, thus ending the process.
可选的,在执行S101之前,电子设备曾经呼叫过第一号码,但是呼叫失败。这种情况下,第一号码可以存储在通话记录中,但由于呼叫失败,电子设备并未存储第一号码的国家码。Optionally, before executing S101, the electronic device may have attempted to call the first number, but the call failed. In this case, the first number may be stored in the call log, but because the call failed, the electronic device does not store the country code of the first number.
示例性的,参考图2A所示的用户界面200。用户界面200为通话应用提供的拨号功能的用户界面。用户界面200包括:拨号盘201、输入栏202、呼叫控件203。电子设备可以在显示用户界面200时,接收用户通过输入拨号盘201的第一号码,例如输入栏202中显示的电话号码“12311111111”,然后点击呼叫控件203的操作,呼叫第一号码。For example, refer to the user interface 200 shown in Figure 2A. User interface 200 is a user interface for dialing functionality provided by a calling application. User interface 200 includes: a dial pad 201, an input field 202, and a call control 203. When user interface 200 is displayed, the electronic device can receive an operation from the user who enters a first number on the dial pad 201, such as the phone number "12311111111" displayed in the input field 202, and then clicks the call control 203 to call the first number.
参考图2B所示的用户界面210。用户界面210为联系人应用提供的联系人相关信息的用户界面。用户界面210包括:联系人名字211、联系人号码212、呼叫控件213。电子设备可以在显示用户界面210时,接收用户点击呼叫控件213的操作,呼叫第一号码,例如联系人号码212中显示的电话号码“12311111111”。Referring to the user interface 210 shown in Figure 2B, the user interface 210 is a user interface for providing contact-related information for the Contacts application. The user interface 210 includes: contact name 211, contact number 212, and call control 213. When the user interface 210 is displayed, the electronic device can receive the user's click on the call control 213 to call a first number, such as the phone number "12311111111" displayed in the contact number 212.
参考图2C所示的用户界面220。用户界面220为通话应用提供的通话记录的用户界面。用户界面220包括:通话记录栏221。通话记录栏221包括:电话号码、通话日期以及通话状况。电子设备可以在显示用户界面220时,接收用户点击通话记录栏221的操作,呼叫第一号码,例如通话记录栏221中显示的电话号码“12311111111”。Referring to the user interface 220 shown in Figure 2C, the user interface 220 is a call log interface provided by a calling application. The user interface 220 includes a call log field 221. The call log field 221 includes the phone number, call date, and call status. When the user interface 220 is displayed, the electronic device can receive a user's tap on the call log field 221 to call a first number, such as the phone number "12311111111" displayed in the call log field 221.
值得说明的是,上述电子设备呼叫第一号码之前的用户界面中均不包含有第一电话号码的国家码以及国家冠码。It is worth noting that the user interface of the aforementioned electronic devices does not contain the country code or country prefix of the first phone number before calling the first number.
在本申请实施例中,上述电子设备呼叫第一号码之前所呈现的用户界面仅做示例性说明,还可以存在更多或更少的用户界面,例如电子设备可以在显示任意用户界面时响应语音指令呼叫第一号码,对此不作限定。In the embodiments of this application, the user interface presented by the electronic device before calling the first number is only an example. There may be more or fewer user interfaces. For example, the electronic device may respond to a voice command to call the first number while displaying any user interface. This is not limited.
S102、在呼叫成功之后,电子设备确定并存储第一电话号码的国家码为第一国家的国家码。S102. After a successful call, the electronic device determines and stores the country code of the first telephone number as the country code of the first country.
电子设备呼叫第一号码成功,即电子设备未添加国家冠码和国家码呼叫第一电话号码成功,说明使电子设备与具有第一电话号码的设备处于同一国家。在一些方式中,电子设备在执行完S101之后执行S102。在呼叫第一号码成功之后,电子设备可以确定第一电话号码的国家码为第一国家的国家码。If the electronic device successfully calls the first number (meaning it successfully calls the first phone number without adding a country code or country code), it indicates that the electronic device and the device with the first phone number are in the same country. In some methods, the electronic device executes S102 after executing S101. After successfully calling the first number, the electronic device can determine that the country code of the first phone number is the country code of the first country.
具体的,电子设备可以基于公共陆地移动网(Public Land Mobile Network,PLMN)确定出电子设备在呼叫成功时所处的国家。也就是说,电子设备可以基于PLMN确定出电子设备处于第一国家。PLMN由电子设备当前使用的网络提供,每一个PLMN都包括唯一一个移动国家码(Mobile Country Code,MCC)和移动网络码(Mobile Network Code,MNC)。每个国家的移动通信网络都有唯一的MCC,MCC由3位数字组成。例如,中国的MCC为460。在本申请实施例中,上述获取第一国家的国家码的方式仅做示例性说明,电子设备还可以通过其他方式获取第一国家的国家码,例如GPS等方式,对此不作限定。Specifically, an electronic device can determine its country of origin when a call is successfully made based on the Public Land Mobile Network (PLMN). In other words, the electronic device can determine its location in the first country based on the PLMN. The PLMN is provided by the network currently used by the electronic device, and each PLMN includes a unique Mobile Country Code (MCC) and Mobile Network Code (MNC). Each country's mobile communication network has a unique MCC, which consists of 3 digits. For example, China's MCC is 460. In this embodiment, the method of obtaining the country code of the first country described above is only illustrative; the electronic device can also obtain the country code of the first country through other means, such as GPS, and this is not limited.
在一些实现方式中,电子设备可以在确定第一电话号码的国家码为第一国家的国家码之后,可以存储第一国家的国家码。进一步的,由于国家码在使用的过程中需要配合国家冠码一起使用,电子设备还可以将国家冠码与第一国家的国家一并存储在电子设备中。In some implementations, the electronic device can store the country code of the first country after determining that the country code of the first phone number is the country code of the first country. Furthermore, since the country code needs to be used in conjunction with the country prefix during use, the electronic device can also store the country prefix and the country of the first country together in the electronic device.
在一些实现方式中,呼叫成功可以是指:电子设备与具有第一电话号码的设备建立有通信连接。用户可以使用电子设备与使用具有第一电话号码的设备的用户进行通话。In some implementations, a successful call can mean that the electronic device has established a communication connection with a device that has a first phone number. The user can then use the electronic device to communicate with a user using a device that has the first phone number.
进一步的,电子设备确定并存储第一电话号码的国家码为第一国家的国家码之前,还需要满足:电子设备与具有第一电话号码的设备保持通话的时长超过预设阈值。例如,超过30s。示例性的,用户想要拨通德国的电话号码A,但是中国内可能存在同样注册并使用有电话号码A的设备a,若电子设备直接呼叫未添加有国家冠码和国家码的电话号码A,则会接通在中国使用电话号码A的设备a,显然该设备a不是用户的目标设备,接通之后会马上结束通话。此时通话时间较短,未超过预设阈值。电子设备可以认为本次呼叫电话号码A不成功,不会将电话号码A的国家码确定为中国的国家码。因此,电子设备与具有第一电话号码的设备保持通话的时长超过预设阈值可以认为具有第一电话号码的设备即为使用电子设备的用户拨打的目标设备,这样,可以增加确定第一电话号码国家码的可靠性。Furthermore, before the electronic device determines and stores the country code of the first phone number as the country code of the first country, it must also satisfy the following condition: the duration of the call between the electronic device and the device holding the first phone number exceeds a preset threshold. For example, exceeding 30 seconds. For instance, a user wants to dial phone number A in Germany, but there may be a device 'a' in China that is also registered and using phone number A. If the electronic device directly calls phone number A without a country prefix and country code, it will connect to device 'a' using phone number A in China. Obviously, device 'a' is not the user's target device, and the call will end immediately after connection. In this case, the call duration is short and does not exceed the preset threshold. The electronic device can consider the call to phone number A unsuccessful and will not determine the country code of phone number A as the country code of China. Therefore, the fact that the duration of the call between the electronic device and the device holding the first phone number exceeds the preset threshold can be considered that the device holding the first phone number is the target device dialed by the user of the electronic device, thus increasing the reliability of determining the country code of the first phone number.
在一种可能的实现方式中,若第一号码在执行S101之前,已经存储在通讯录中,则在执行S102之前,电子设备需要判断:电子设备是否存储有第一电话号码的国家码和/或用户是否对该第一电话号码的国家码进行处理,例如修改、添加、删除等处理。In one possible implementation, if the first number is already stored in the address book before executing S101, then before executing S102, the electronic device needs to determine whether the electronic device stores the country code of the first phone number and/or whether the user has processed the country code of the first phone number, such as modifying, adding, or deleting it.
在一些实施方式中,在执行S102之前,若电子设备在通讯录中存储有第一电话号码但是没有存储第一电话号码的国家码,且用户未对该第一电话号码的国家码进行处理,则可以执行S102。这种情况下,用户可能自身并不知道第一电话号码的国家码或者未想到要在电子设备中存储第一电话号码的国家码。因此,呼叫成功之后,可以由电子设备获取并存储第一号码的国家码。In some implementations, if the electronic device stores a first phone number in its address book but not its country code, and the user has not processed the country code of the first phone number, then S102 can be executed before S102 is performed. In this case, the user may not know the country code of the first phone number or may not have considered storing it in the electronic device. Therefore, after a successful call, the electronic device can obtain and store the country code of the first phone number.
在另一实施方式中,在执行S102之前,若电子设备在通讯录中存储有第一电话号码但是没有存储第一电话号码的国家码,且用户曾经对该第一电话号码的国家码进行处理,则可以执行S102,也可以不执行S102。这是由于,这种情况下,可能是电子设备曾经存储过第一电话号码的国家码,用户认为曾经存储的第一电话号码的国家码错误,删除了该国家码,从而电子设备当前未存储有第一电话号码的国家码。因此,电子设备可以通过执行S102获取到用户认为正确的第一电话号码的国家码,也可以不执行S102,待用户后续主动添加该第一电话号码的国家码。In another embodiment, before executing S102, if the electronic device has a first phone number stored in its address book but not its country code, and the user has previously processed the country code of the first phone number, then S102 can be executed or not. This is because, in this case, the electronic device may have previously stored the country code of the first phone number, but the user believed that the previously stored country code was incorrect and deleted it, thus the electronic device currently does not store the country code of the first phone number. Therefore, the electronic device can either obtain the country code of the first phone number that the user considers correct by executing S102, or it can choose not to execute S102 and wait for the user to actively add the country code of the first phone number later.
在另一些实施方式中,在执行S102之前,若电子设备在通讯录中存储有第一电话号码以及第一电话号码的国家码,则不执行S102。这是由于,在这种情况下,电子设备存储的可以是用户认为正确的第一电话号码的国家码,从而用户未对该国家码进行处理。或者,电子设备存储的第一电话号码的国家码可能是用户主动添加的,用户认为自身主动添加的第一电子设备号码的国家码是正确的。因此,无需电子设备再次获取第一电子设备号码的国家码。In some embodiments, if the electronic device stores a first phone number and its country code in its address book before executing S102, then S102 is not executed. This is because, in this case, the electronic device may store the country code of the first phone number that the user considers correct, and thus the user has not processed that country code. Alternatively, the country code of the first phone number stored by the electronic device may be one that the user actively added, and the user believes that the country code of the first electronic device number that they actively added is correct. Therefore, there is no need for the electronic device to obtain the country code of the first electronic device number again.
值得说明的是,在本申请实施例中,第一电话号码的国家码与第一电话号码分别存储在电子设备中,这样,以便电子设备直接读取国家码,无需再确认哪些号码是国家码,哪些号码是电话号码。It is worth noting that in this embodiment of the application, the country code of the first telephone number and the first telephone number are stored in the electronic device respectively. This allows the electronic device to directly read the country code without having to confirm which numbers are country codes and which numbers are telephone numbers.
并且,在本申请实施例中,电子设备可以将国家冠码与国家码存储在一起。Furthermore, in this embodiment of the application, the electronic device can store the country prefix code and the country code together.
在一些实现方式中,在执行S102之后,电子设备可以存储有第一电话号码以及第一电话号码的国家码。基于不同的场景,电子设备可以实现以下存储情况:In some implementations, after executing S102, the electronic device can store the first telephone number and its country code. Depending on the scenario, the electronic device can implement the following storage configurations:
存储情况1:如果在执行S101之前,电子设备的通讯录中未存储第一电话号码以及第一电话号码的国家码,那么在执行S102之后,电子设备可以响应用户新建联系人的操作,则既可以在通讯录中存储第一电话号码以及第一电话号码的国家码,还可以在通话记录中存储第一电话号码以及第一电话号码的国家码。示例性的,参考图3A所示的用户界面230,用户界面230为呼叫第一号码成功之后基于第一号码新建联系人的用户界面。用户界面230包括:联系人名字231、电话号码的国家码232、电话号码233。其中,联系人名字231中所显示的名字,例如“小明”,由用户输入。电话号码的国家码232中显示的国家码,例如“+86”,以及电话号码233显示的电话号码,例如“12311111111”,由电子设备自动填充。Storage Scenario 1: If the first phone number and its country code are not stored in the electronic device's address book before executing S101, then after executing S102, the electronic device can respond to the user's operation of creating a new contact, thus storing the first phone number and its country code in both the address book and the call log. For example, referring to the user interface 230 shown in Figure 3A, the user interface 230 is a user interface for creating a new contact based on the first number after a successful call. The user interface 230 includes: a contact name 231, a phone number's country code 232, and a phone number 233. The name displayed in the contact name 231, such as "Xiaoming," is entered by the user. The country code displayed in the phone number's country code 232, such as "+86," and the phone number displayed in the phone number 233, such as "12311111111," are automatically filled in by the electronic device.
存储情况2:在执行S101之前,电子设备未在通讯录中存储第一电话号码以及第一电话号码的国家码。在执行S102之后,若电子设备未接收用户新建联系人的操作,则仅在通话记录中存储第一电话号码以及第一电话号码的国家码。Storage scenario 2: Before executing S101, the electronic device did not store the first phone number and its country code in the address book. After executing S102, if the electronic device does not receive the user's operation to create a new contact, it only stores the first phone number and its country code in the call log.
存储情况3:如果在执行S101之前,电子设备的通讯录中存储有第一电话号码,那么在执行S102之后,电子设备既可以自动在通讯录中存储第一电话号码的国家码,还可以在通话记录中存储第一电话号码以及第一电话号码的国家码。示例性的,参考图3B所示的用户界面240,用户界面240为呼叫第一号码成功之后查看第一电话号码所属的联系人的用户界面。用户界面240包括:联系人名字241、联系人号码242、呼叫控件243、通话记录244。其中,联系人号码242包括:国家冠码,例如“+”、第一电话号码的国家码,例如“86”、第一电话号码,例如“12311111111”。其中,联系人名字241中包含的名字与联系人号码242中包含的第一电话号码在执行S101之前用户输入并存储在电子设备中,联系人号码242中包含的国家冠码以及国家码在执行S102之后由电子设备确定并主动添加在联系人号码242内。通话记录244用于指示上述S102中呼叫第一电话号码的日期、时间以及通话时长。Storage Scenario 3: If the first phone number is stored in the electronic device's address book before executing S101, then after executing S102, the electronic device can automatically store the country code of the first phone number in the address book, and also store the first phone number and its country code in the call log. For example, referring to the user interface 240 shown in Figure 3B, the user interface 240 is a user interface for viewing the contact to which the first phone number belongs after a successful call. The user interface 240 includes: a contact name 241, a contact number 242, a call control 243, and a call log 244. The contact number 242 includes: a country prefix (e.g., "+"), the country code of the first phone number (e.g., "86"), and the first phone number (e.g., "12311111111"). The name in the contact name 241 and the first phone number in the contact number 242 are entered and stored in the electronic device by the user before executing S101. The country prefix and country code in the contact number 242 are determined and actively added to the contact number 242 by the electronic device after executing S102. Call log 244 is used to indicate the date, time, and duration of the call to the first telephone number in S102 above.
在一些实现方式中,在通话记录中存储第一电话号码以及第一电话号码的国家码之后,电子设备在进入通话记录的相关界面查看上述S102中呼叫成功的通话记录时,该通话记录中显示的号码可能包括第一电话号码的国家码,可能不包括第一电话号码的国家码。也就是说,电子设备在通话记录存储第一电话号码的国家码之后,可以呈现给用户,也可以不呈现给用户。In some implementations, after storing the first phone number and its country code in the call log, when the electronic device accesses the relevant interface to view the successfully called call record in S102, the number displayed in the call log may or may not include the country code of the first phone number. In other words, the electronic device may or may not display the country code of the first phone number to the user after storing it in the call log.
值得说明的是,存储在通话记录中与存储在通讯录中是不一样的。两者存储的内容不一致:前者包括:国家冠码、电话号码、国家码、通话时间;后者包括:联系人名字、国家冠码、电话号码、国家码。两者存储的位置不一样:前者位于通话记录的数据库中,后者位于通讯录的数据库中。两者的存储失效不一样:在非用户操作删除的情况下,前者超过一定时间会由电子设备删除,后者始终存储在电子设备中。两者的存储的影响不一样:前者可以保证电子设备从通话记录选中并拨打电话号码以及从拨号盘中拨打电话号码成功,后者可以保证电子设备从联系人中选中并拨打电话号码成功。It's worth noting that data stored in call logs and contacts are different. The content stored differs: the former includes country code, phone number, country code, and call time; the latter includes contact name, country code, phone number, and country code. Their storage locations also differ: the former resides in the call log database, while the latter resides in the contacts database. Their expiration processes also differ: without user intervention, the former will be deleted by the device after a certain period, while the latter remains permanently stored. Finally, their impact differs: the former ensures successful dialing of phone numbers from the call log and dialing from the dial pad, while the latter ensures successful dialing of phone numbers from contacts.
在一种可能的实现方式中,在执行S102之后,电子设备在通讯录中存储有第一电话号码以及第一电话号码的国家码。电子设备可以响应用户操作,修改在通讯录中存储的第一电话号码的国家码。并且,后续电子设备基于修改之后的第一电话号码的国家码进行相关判断。In one possible implementation, after executing S102, the electronic device stores a first phone number and its country code in its address book. The electronic device can respond to user input by modifying the country code of the first phone number stored in the address book. Furthermore, the electronic device subsequently performs relevant checks based on the modified country code of the first phone number.
示例性的,用户想要拨通德国的电话号码A,但是中国内可能存在同样注册并使用有电话号码A的设备a,若在中国的电子设备直接呼叫未添加有国家冠码和国家码的电话号码A,则会接通在中国使用电话号码A的设备a。若这次通话时长超过预设阈值之后,电子设备则会将电话号码A的国家码确认为中国的国家码,并存储至通讯录中。显然在用户的认知中,通讯录中存储的该电话号码A的国家码是错误的,用户可以将通讯录中存储的该电话号码A的国家码修改为德国的国家码。后续,电子设备再次呼叫该电话号码A也是基于电子设备当前所处的国家是否为德国判断在呼叫电话号码A时是否需要添加德国的国家码。若电子设备当前所处的国家为德国,则呼叫电话号码A无需添加德国的国家码。若电子设备当前所述的国家不为德国,则呼叫电话号码A需要添加德国的国家码。For example, a user wants to dial phone number A in Germany. However, there might be a device 'a' in China that is also registered and using phone number A. If the electronic device in China directly calls phone number A without adding a country code and prefix, the call will be connected to device 'a' using phone number A in China. If the call duration exceeds a preset threshold, the electronic device will recognize the country code of phone number A as the country code of China and store it in its contacts. Obviously, the user perceives the country code of phone number A stored in their contacts as incorrect. The user can then change the country code of phone number A stored in their contacts to the country code of Germany. Subsequently, when the electronic device calls phone number A again, it will determine whether to add the German country code based on whether the electronic device is currently in Germany. If the electronic device is currently in Germany, no German country code is needed when calling phone number A. If the electronic device is not currently in Germany, the German country code must be added when calling phone number A.
示例性的,参考图3C所述的用户界面250,用户界面250为呼叫第一号码成功之后编辑第一电话号码所属的联系人的用户界面。用户界面250包括:联系人名字251、电话号码的国家码252、电话号码253。电子设备可以在用户界面250中,单独修改、删除、添加电话号码的国家码252中显示的国家码。并且,在修改之后,电子设备可以存储修改之后的第一电话号码的国家码。For example, referring to the user interface 250 described in FIG3C, the user interface 250 is a user interface for editing the contact to which the first phone number belongs after a successful call to the first number. The user interface 250 includes: contact name 251, country code of the phone number 252, and phone number 253. The electronic device can individually modify, delete, or add the country code displayed in the country code 252 of the phone number within the user interface 250. Furthermore, after modification, the electronic device can store the modified country code of the first phone number.
S103、电子设备接收用户操作,该用户操作为用户输入或选中第一电话号码之后拨打该第一电话号码的操作。S103. The electronic device receives a user operation, which is the user inputting or selecting a first phone number and then dialing that first phone number.
在一些实现方式中,电子设备在执行S102之后,可以执行S103。电子设备在确定并存储第一电话号码的国家码为第一国家的国家码之后,可以接收用户操作。In some implementations, after executing S102, the electronic device can execute S103. After determining and storing the country code of the first telephone number as the country code of the first country, the electronic device can receive user operations.
其中,上述用户操作为用户输入或选中第一电话号码之后拨打该第一电话号码的操作。示例性的,上述用户操作可以包括以下任一项:在拨号盘中输入第一电话号码并拨打的操作,或,选择第一电话号码所属的联系人并拨打的操作,或,在通话记录中选中第一电话号码并拨打的操作。在本申请实施例中,上述用户操作仅做示例性说明,还可以包括更多用于表示用户期望拨打第一号码的操作。The aforementioned user operation refers to the operation of dialing a first phone number after the user inputs or selects it. For example, the user operation may include any of the following: entering the first phone number on the dial pad and dialing; selecting a contact to which the first phone number belongs and dialing; or selecting the first phone number in the call log and dialing. In this embodiment, the above user operation is only illustrative and may include more operations to indicate that the user intends to dial the first number.
示例性的,上述S101拨打第一号码的时间为“2024年8月21日上午9点”,通话时间为“1分钟”。For example, the time when S101 dialed the first number was "9:00 AM on August 21, 2024", and the call lasted for "1 minute".
参考图4A所示的用户界面260,用户界面260为通话应用提供的拨号功能的用户界面。用户界面260包括:拨号盘261、输入栏262、呼叫控件263。电子设备可以在显示用户界面260时,接收用户通过输入拨号盘261的第一号码,例如输入栏262中显示的电话号码“12311111111”,然后点击呼叫控件263的操作。在点击呼叫控件263之前,电子设备还可以在用户界面260中显示在S101中呼叫第一号码的通话记录。可选的,若该第一电话号码存储在通讯录中,则用户界面260中显示的在S101中呼叫第一号码的通话记录还可以包括第一电话号码所属的联系人名字。Referring to the user interface 260 shown in Figure 4A, the user interface 260 is a dialing function interface provided by a calling application. The user interface 260 includes a dial pad 261, an input field 262, and a call control 263. When the user interface 260 is displayed, the electronic device can receive an operation from the user who inputs a first number through the dial pad 261, such as the phone number "12311111111" displayed in the input field 262, and then clicks the call control 263. Before clicking the call control 263, the electronic device can also display the call history of the first number called in S101 in the user interface 260. Optionally, if the first phone number is stored in the address book, the call history of the first number called in S101 displayed in the user interface 260 can also include the name of the contact to which the first phone number belongs.
参考图3B所示的用户界面240,用户界面240为呼叫第一号码成功之后查看第一电话号码所属的联系人的用户界面。电子设备可以在显示用户界面240时,接收用户点击呼叫控件243的操作。Referring to the user interface 240 shown in Figure 3B, user interface 240 is a user interface for viewing the contacts belonging to the first phone number after a successful call to the first number. The electronic device can receive a user's click on the call control 243 while user interface 240 is displayed.
参考图4B所示的用户界面270,用户界面270为通话应用提供的通话记录的用户界面。用户界面270包括:通话记录栏271。通话记录栏271用于指示在S101中呼叫第一号码成功的通话记录。电子设备可以在显示用户界面270时,接收用户点击通话记录栏271的操作。Referring to the user interface 270 shown in Figure 4B, the user interface 270 is a user interface for call records provided by a calling application. The user interface 270 includes a call record bar 271. The call record bar 271 is used to indicate the call record of a successful call to the first number in S101. The electronic device can receive an operation from the user clicking on the call record bar 271 when the user interface 270 is displayed.
其中,在接收到从拨号盘中输入所述第一电话号码并拨打的操作之后,电子设备从电子设备存储的信息中获取到第一电话号码的国家码。在接收到选择第一电话号码所属的联系人并拨打的操作之后,电子设备可以从通讯录中存储的信息中获取到第一电话号码的国家码,并且,在接收到选择第一电话号码所属的联系人并拨打的操作之前,电子设备可以在联系人界面中显示第一电话号码和第一电话号码的国家码。在接收到从通话记录中选中第一电话号码并拨打的操作之后,电子设备可以从通话记录中存储的信息中获取到第一电话号码的国家码,并且,在接收到从通话记录中选中第一电话号码并拨打的操作之前,电子设备可以在通话记录界面中显示第一电话号码和第一电话号码的国家码。Specifically, upon receiving an operation to enter and dial the first phone number from the dial pad, the electronic device retrieves the country code of the first phone number from its stored information. Upon receiving an operation to select a contact for the first phone number and dial, the electronic device retrieves the country code of the first phone number from its stored information in the address book. Before receiving the operation to select a contact for the first phone number and dial, the electronic device can display the first phone number and its country code in the contact interface. Similarly, upon receiving an operation to select and dial the first phone number from the call log, the electronic device retrieves the country code of the first phone number from its stored information in the call log. Before receiving the operation to select and dial the first phone number from the call log, the electronic device can display the first phone number and its country code in the call log interface.
S104、电子设备呼叫第二号码,第二号码包括第一电话号码的国家码和第一电话号码。S104. An electronic device calls a second number, the second number including the country code of the first telephone number and the first telephone number.
在一些实现方式中,电子设备执行完S103之后,可以执行S104。电子设备在接收到上述用户操作之后,无需判断当前电子设备所处的国家的国家码与第一电话号码的国家码是否一致,直接呼叫第二号码。这样,无论电子设备在执行S103时处于任何国家,都可以呼叫第一电话号码成功,可以减少一些电子设备判断国家码是否一致的功耗。In some implementations, after executing S103, the electronic device can execute S104. After receiving the user's operation, the electronic device does not need to determine whether the country code of its current location matches the country code of the first phone number, and directly calls the second number. In this way, regardless of the country the electronic device is in when executing S103, it can successfully call the first phone number, reducing the power consumption of some electronic devices in determining country code consistency.
在一些实现方式中,第二号码可以包括第一电话号码的国家码和第一电话号码。进一步的,第二号码还可以包括国家冠码。In some implementations, the second number may include both the country code and the first phone number. Furthermore, the second number may also include a country prefix.
在一种可能的实现方式中,为了避免出现用户在查看呼叫界面时,认为呼叫界面始终显示国家码以及电话号码冗余的情况,电子设备也可以在执行S103之后,执行以下可选的S105、S106、S107。In one possible implementation, to avoid the user perceiving the call interface as always displaying redundant country codes and phone numbers, the electronic device may execute the following optional steps S105, S106, and S107 after executing S103.
S105、电子设备判断当前电子设备所处的国家的国家码与第一电话号码的国家码是否一致。S105. The electronic device determines whether the country code of the country where the electronic device is currently located is consistent with the country code of the first telephone number.
在一些实现方式中,电子设备可以基于当前电子设备的定位或者当前电子设备所处国家的国家码来判断电子设备当前所处的国家的国家码与第一电话号码的国家码是否一致。In some implementations, the electronic device can determine whether the country code of the country where the electronic device is currently located matches the country code of the first phone number based on the current location of the electronic device or the country code of the country where the electronic device is currently located.
具体的,在电子设备根据S103的用户操作以及存储的信息确定用户期望拨打的电话号码的国家码之后,即在电子设备确定第一电话号码的国家码之后,可以判断当前电子设备所处的国家的国家码与第一电话号码的国家码对应是否一致。Specifically, after the electronic device determines the country code of the phone number the user wishes to dial based on the user's operation in S103 and the stored information, that is, after the electronic device determines the country code of the first phone number, it can determine whether the country code of the country where the electronic device is currently located corresponds to the country code of the first phone number.
具体的,电子设备可以基于PLMN确定当前电子设备所处的国家,进而确定出电子设备所处的国家的国家码。具体的可以参考上述S102中的相关描述,在此不作赘述。Specifically, electronic devices can determine their current country based on the PLMN, and then determine the country code of that country. For details, please refer to the relevant description in S102 above, which will not be repeated here.
若当前电子设备所处的国家的国家码与第一电话号码的国家码一致,则执行S106。If the country code of the country where the current electronic device is located matches the country code of the first phone number, then execute S106.
若当前电子设备所处的国家的国家码与第一电话号码的国家码不一致,则执行S107。If the country code of the country where the current electronic device is located does not match the country code of the first telephone number, then execute S107.
S106、电子设备呼叫第一号码。S106, Electronic device calls the first number.
在一些实现方式中,在确定当前电子设备所处的国家的国家码与第一电话号码的国家码一致的情况下,说明电子设备当前所处的国家与第一电话号码的国家码对应的国家一致,电子设备无需添加第一电话号码的国家码即可呼叫第一电话号码成功。因此,在这种情况下,电子设备可以直接呼叫第一号码,即呼叫第一电话号码。In some implementations, if the country code of the current electronic device matches the country code of the first phone number, it means the electronic device's current country matches the country corresponding to the first phone number's country code. In this case, the electronic device can successfully call the first phone number without needing to add the first phone number's country code. Therefore, in this situation, the electronic device can directly call the first number, i.e., call the first phone number.
在一种可能的实现方式中,电子设备呼叫第一号码之后,可以显示呼叫界面。该呼叫界面中包括第一电话号码,不包括第一电话号码的国家码。In one possible implementation, after the electronic device dials the first number, it can display a call interface. This call interface includes the first phone number but does not include the country code of the first phone number.
示例性的,参考图5A所示的用户界面280,用户界面280为通话应用提供的通话功能的用户界面。用户界面280包括:电话号码281。电话号码281中包括电子设备拨打的第一电话号码,例如“12311111111”,不包括第一电话号码的国家码。For example, referring to the user interface 280 shown in FIG5A, user interface 280 is a user interface for calling functions provided by a calling application. User interface 280 includes: telephone number 281. Telephone number 281 includes a first telephone number dialed by an electronic device, such as "12311111111", but does not include the country code of the first telephone number.
S107、电子设备呼叫第二号码,第二号码包括第一电话号码的国家码和第一电话号码。S107. An electronic device calls a second number, the second number including the country code of the first telephone number and the first telephone number.
在一些实现方式中,在确定当前电子设备所处的国家的国家码与第一电话号码的国家码不一致的情况下,说明电子设备当前所处的国家与第一电话号码的国家码对应的国家不一致,电子设备需要添加第一电话号码的国家码才可呼叫第一电话号码成功。因此,在这种情况下,电子设备可以呼叫第二号码。In some implementations, if the country code of the country where the electronic device is currently located does not match the country code of the first phone number, it means that the country corresponding to the country code of the first phone number is inconsistent. The electronic device needs to add the country code of the first phone number to successfully call it. Therefore, in this case, the electronic device can call the second number.
在一些实现方式中,第二号码可以包括第一电话号码的国家码和第一电话号码。进一步地,第二号码还可以包括国家冠码。In some implementations, the second number may include both the country code and the first phone number. Furthermore, the second number may also include a country prefix.
在一种可能的实现方式中,电子设备呼叫第二号码之后,可以显示呼叫界面。该呼叫界面中包括:第一电话号码的国家码以及第一电话号码。进一步地,该呼叫界面还可以包括国家冠码。In one possible implementation, after the electronic device dials the second number, a call interface can be displayed. This call interface includes: the country code of the first phone number and the first phone number itself. Furthermore, the call interface may also include a country prefix.
示例性的,参考图5B所示的用户界面290,用户界面290为通话应用提供的通话功能的用户界面。用户界面290包括:电话号码291。电话号码291中包括:国家冠码,例如“+”、电子设备拨打的第一电话号码的国家码,例如“86”以及电子设备拨打的第一电话号码,例如“12311111111”。For example, referring to the user interface 290 shown in FIG5B, the user interface 290 is a user interface for the calling function provided by a calling application. The user interface 290 includes: a telephone number 291. The telephone number 291 includes: a country prefix, such as "+", the country code of the first telephone number dialed by the electronic device, such as "86", and the first telephone number dialed by the electronic device, such as "12311111111".
在一些实现方式中,若具有第一电话号码的设备未移动至其他国家,则电子设备可以呼叫第二号码即可成功。In some implementations, if the device with the first phone number has not moved to another country, the electronic device can successfully call the second number.
这样,电子设备可以在执行上述S106时显示包含仅有电话号码的呼叫界面,在执行上述S107时显示包含有电话号码和国家码的呼叫界面,在一定程度上减少出现用户认为呼叫界面冗余的情况。In this way, the electronic device can display a call interface containing only the phone number when executing S106, and display a call interface containing both the phone number and the country code when executing S107, thereby reducing the possibility of users perceiving the call interface as redundant.
实施上述方法,在用户出国之后拨打国内的电话号码的情况下,避免出现由于未添加国家冠码与国家码导致拨号失败的情况。By implementing the above method, when users go abroad and call domestic phone numbers, they can avoid dialing failures due to the absence of the country prefix and country code.
并且,在电子设备提供的新建联系人的用户界面中,将用于输入国家码的可编辑框单独显示出来。这样,可以引导用户在新建联系人时主动输入国家码。电子设备还可以将电话号码与电话号码的国家码分别存储,以便拨打时判断是否加上国家码进行拨打。Furthermore, the user interface for creating a new contact on the electronic device displays a separate editable box for entering the country code. This encourages users to actively enter the country code when creating a new contact. The electronic device can also store the phone number and its country code separately, allowing it to determine whether to include the country code when dialing.
在一种可能的实现方式中,在执行S107之后,电子设备在通讯录中存储有第一电话号码以及第一电话号码的国家码。电子设备可以响应用户操作,修改在通讯录中存储的第一电话号码的国家码;或者电子设备新建的联系人。示例性的,当用户移动至德国之后,电子设备在通讯录中存储有中国的电话号码A以及中国的国家码。用户想要拨打德国的电话号码A,但是基于上述是S107可知,由于电子设备中存储有电话号码A以及中国的国家码,电子设备拨打时会自动在电话号码A之前添加“+86”。显然在用户的认知中,此次拨打中国的国家码以及电话号码A是错误的,用户可以将通讯录中存储的该电话号码A的国家码修改为德国的国家码;或者用户可以新建一个其电话号码A的国家为德国的联系人。In one possible implementation, after executing S107, the electronic device stores a first phone number and its country code in its address book. The electronic device can respond to user actions by modifying the country code of the first phone number stored in the address book, or by creating a new contact. For example, when a user moves to Germany, the electronic device stores a Chinese phone number A and its country code in its address book. The user wants to dial the German phone number A, but as described in S107, because the electronic device stores phone number A and its country code, it automatically adds "+86" before the phone number A. Clearly, the user perceives this as an incorrect dialing of the Chinese country code and phone number A. The user can then modify the country code of phone number A stored in the address book to the German country code; or the user can create a new contact whose phone number A's country is Germany.
在一种可能的实现方式中,电子设备可以将非标准的国家冠码转化为标准的国家冠码存储在电子设备中。其中,非标准的国家冠码是指除了“+”之外的其他国家冠码。标准的国家冠码是指国家冠码“+”。具体的,若电子设备接听电话号码时,获取到呼入号码包括:国家冠码、国家码以及电话号码,并且该国家冠码为“00”,则电子设备自动将该国家冠码“00”转化为“+”之后,再存储在电子设备中。若电子设备接收用户新建联系人的操作,接收到用户输入的号码包括:国家冠码、国家码以及电话号码,并且该国家冠码为“00”,则电子设备自动将该国家冠码“00”转化为“+”之后,再存储在电子设备中。这样,可以避免出现有些国家不认可非标准的国家冠码导致呼叫失败的情况。In one possible implementation, the electronic device can convert non-standard country codes into standard country codes and store them in the device. Non-standard country codes refer to country codes other than the plus sign ("+"). Standard country codes are country codes with the plus sign ("+"). Specifically, if the electronic device receives a call and obtains the country code, country code, and phone number, and the country code is "00", the device automatically converts the "00" to a plus sign ("+") before storing it. Similarly, if the electronic device receives a user's input of a new contact and the input number includes the country code, country code, and phone number, and the country code is "00", the device automatically converts the "00" to a plus sign ("+") before storing it. This avoids situations where some countries do not recognize non-standard country codes, leading to call failures.
图6示出了本申请实施例提供的一种电子设备100的硬件结构示意图。Figure 6 shows a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application.
下面以电子设备100为例对实施例进行具体说明。应该理解的是,图6所示电子设备100仅是一个范例,并且电子设备100可以具有比图6中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图6中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The following description uses electronic device 100 as an example to illustrate the embodiment. It should be understood that the electronic device 100 shown in FIG. 6 is merely an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 6, may combine two or more components, or may have different component configurations. The various components shown in FIG. 6 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application-specific integrated circuits.
示例性的,电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对电子设备100的具体类型不作特殊限制。For example, electronic device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device and/or smart city device. The embodiments of this application do not impose special restrictions on the specific type of electronic device 100.
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
在一些实现方式中,处理器110可以用于确定第一电话号码的国家码为第一国家的国家码。处理器110可以用于判断当前电子设备所处的国家的国家码与第一电话号码的国家码是否一致,若一致,处理器110用于仅使用第一电话号码发起呼叫;若不一致,处理器110用于同时使用第一电话号码的国家码以及第一号码发起呼叫。处理器110还可以用于判断呼叫电话号码时,电子设备100是否存储有该电话号码的国家码。In some implementations, processor 110 can be used to determine that the country code of the first phone number is the country code of the first country. Processor 110 can also be used to determine whether the country code of the country where the current electronic device is located matches the country code of the first phone number. If they match, processor 110 initiates a call using only the first phone number; if they do not match, processor 110 initiates a call using both the country code of the first phone number and the first phone number. Processor 110 can also be used to determine whether the electronic device 100 has stored the country code of the phone number when calling it.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实现方式中,存储器可以用于分开存储第一电话号码的国家码与第一电话号码。In some implementations, the memory can be used to store the country code of the first telephone number separately from the first telephone number.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
充电管理模块140用于从充电器接收充电输入。The charging management module 140 is used to receive charging input from the charger.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication, including 2G/3G/4G/5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
在一些实现方式中,移动通信模块150可以用于实现电子设备呼叫第一号码和第二号码。In some implementations, the mobile communication module 150 can be used to enable electronic devices to call a first number and a second number.
调制解调处理器可以包括调制器和解调器。无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The modem processor may include a modulator and a demodulator. The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)。显示屏面板还可以采用有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),miniled,microled,micro-oled,量子点发光二极管(quantum dot light emitting diodes,QLED)等制造。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microled, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
在一些实现方式中,显示屏194可以用于显示呼叫第一号码或第二号码之前的用户界面。显示屏194还可以用于显示与具有第一电话号码的设备进行通话时的呼叫界面。In some implementations, the display screen 194 can be used to display a user interface prior to calling the first or second number. The display screen 194 can also be used to display a call interface when speaking with a device that has a first phone number.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度等进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimizations on image noise, brightness, etc. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones. The headphone jack 170D can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
马达191可以产生振动提示。马指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。Motor 191 can generate vibration as a notification. Motor indicator 192 can be an indicator light used to indicate charging status, battery level changes, messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.
图7是本发明实施例的电子设备100的软件结构示意图。Figure 7 is a schematic diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图7所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 7, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图7所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 7, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。The Android Runtime consists of core libraries and a virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。A 2D graphics engine is a graphics engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
本申请实施例提供一种电子设备,该电子设备包括存储器、处理器以及存储在存储器上的计算机程序,该处理器执行该计算机程序以实现上述显示通知的方法。This application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the above-described method for displaying notifications.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时可实现上述各个方法实施例中的步骤。This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.
本申请实施例还提供了一种计算机程序产品,包括计算程序,当计算机程序在计算机上运行时,使得计算机可实现上述各个方法实施例中的步骤。This application also provides a computer program product, including a computing program, which, when run on a computer, enables the computer to perform the steps in the various method embodiments described above.
本申请实施例还提供了一种芯片系统,芯片系统包括处理电路接口电路,接口电路用于接收代码指令并传输至处理电路,处理电路用于运行代码指令使得该芯片系统实现本申请任一方法实施例的步骤。其中,芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。This application also provides a chip system, which includes a processing circuit interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims (15)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411266547.6 | 2024-09-10 | ||
| CN202411266547.6A CN121644725A (en) | 2024-09-10 | 2024-09-10 | A method and related apparatus for making a call |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2026056830A1 true WO2026056830A1 (en) | 2026-03-19 |
Family
ID=98964364
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2025/119890 Pending WO2026056830A1 (en) | 2024-09-10 | 2025-09-08 | Calling method and related apparatus |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN121644725A (en) |
| WO (1) | WO2026056830A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1296369A (en) * | 1999-11-11 | 2001-05-23 | 京瓷株式会社 | Telephone number storage method and mobile telecommunication terminal |
| US20100184413A1 (en) * | 2009-01-16 | 2010-07-22 | Samsung Electronics Co., Ltd. | Method and apparatus for providing automatic international and local call dialing in a mobile communication terminal |
| CN104780251A (en) * | 2014-01-13 | 2015-07-15 | 联发科技(新加坡)私人有限公司 | Telephone dialing automatic conversion device and telephone dialing automatic conversion method |
| CN106210232A (en) * | 2016-06-30 | 2016-12-07 | 维沃移动通信有限公司 | The storage method of the telephone number of a kind of mobile terminal and mobile terminal |
-
2024
- 2024-09-10 CN CN202411266547.6A patent/CN121644725A/en active Pending
-
2025
- 2025-09-08 WO PCT/CN2025/119890 patent/WO2026056830A1/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1296369A (en) * | 1999-11-11 | 2001-05-23 | 京瓷株式会社 | Telephone number storage method and mobile telecommunication terminal |
| US20100184413A1 (en) * | 2009-01-16 | 2010-07-22 | Samsung Electronics Co., Ltd. | Method and apparatus for providing automatic international and local call dialing in a mobile communication terminal |
| CN104780251A (en) * | 2014-01-13 | 2015-07-15 | 联发科技(新加坡)私人有限公司 | Telephone dialing automatic conversion device and telephone dialing automatic conversion method |
| CN106210232A (en) * | 2016-06-30 | 2016-12-07 | 维沃移动通信有限公司 | The storage method of the telephone number of a kind of mobile terminal and mobile terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN121644725A (en) | 2026-03-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3952263B1 (en) | Notification message preview method and electronic device | |
| EP3852348B1 (en) | Translation method and terminal | |
| US11489972B2 (en) | Method for presenting video on electronic device when there is incoming call and electronic device | |
| CN114115770B (en) | Display control method and related device | |
| US11785128B2 (en) | Caller identification display method based on application, and terminal device | |
| CN111724775A (en) | A voice interaction method and electronic device | |
| WO2020207326A1 (en) | Dialogue message sending method and electronic device | |
| CN117014859A (en) | Device discovery method, audio and video communication method and electronic equipment based on address book | |
| US11895215B2 (en) | Application server access method and terminal | |
| CN113225423A (en) | Contact person recommendation method and electronic device | |
| WO2021042881A1 (en) | Message notification method and electronic device | |
| CN112335294A (en) | Emergency call method and user terminal | |
| CN114640747A (en) | Call method, related device and system | |
| EP4425323A1 (en) | Appearance setting method and electronic device | |
| CN114664306B (en) | Text editing method, electronic equipment and system | |
| US20240385737A1 (en) | Application icon display method and related apparatus | |
| WO2026056830A1 (en) | Calling method and related apparatus | |
| CN116709220B (en) | Network connection method, network connection device, electronic equipment and computer readable storage medium | |
| CN117715001B (en) | IMS short message processing method, electronic device and storage medium | |
| CN116700556B (en) | Card generation method and related device | |
| CN114449103B (en) | Reminding method, graphical user interface and terminal | |
| CN121635759A (en) | Display method, display device, electronic equipment and storage medium | |
| CN118555434A (en) | Video image display method and related device | |
| CN118555327A (en) | Audio processing method and electronic equipment | |
| CN117014884A (en) | How to use numbers and related equipment |