Dial pad activation method, device, and storage medium
By retrieving default information from the dial pad after the communication service is initialized, the problem of users being unable to use the dial pad directly after a system upgrade is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-12-05
- Publication Date
- 2026-04-21
AI Technical Summary
After the terminal device system is upgraded, users cannot directly use the dial pad when the device is first turned on or restarted, resulting in a poor user experience.
After the system upgrade, once the communication service initialization is complete, the electronic device will retrieve and record the accurate default dial pad information again via the dial pad to avoid recording incorrect information during the initialization process.
This ensures the dial pad displays correctly upon startup, avoiding the need to prompt users to set a default dial pad and improving the user experience.
Smart Images

Figure CN119788774B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a method, device and storage medium for starting a dial pad. Background Technology
[0002] With the continuous development of terminal technology, terminal devices can install various types of applications to provide users with different services. Telephone applications, as commonly used applications on smartphones, provide users with voice call services.
[0003] The dial pad is the primary entry point for users to conduct voice communications. Users can enter phone numbers and make calls through the pre-installed dial pad on their mobile phones. The phone application works in conjunction with the dial pad to enable users to conveniently make and receive calls.
[0004] In the scenario of the phone being turned on or restarted for the first time after a system upgrade, the following issue exists: In response to the user clicking the phone app icon on the home screen, the phone displays an interface for setting the default dial pad, such as... Figure 3 As shown in interface 106, users cannot directly use or access the dial pad, which affects the user experience. Summary of the Invention
[0005] This application provides a method, device, and storage medium for starting a dial pad, which can prevent the device from displaying a prompt to set a default dial pad when the user first calls the dial pad after a system upgrade.
[0006] In a first aspect, embodiments of this application propose a method for starting a dial pad. This method can be applied to electronic devices with display functions. The method includes: after the electronic device system is upgraded, upon first power-on or restart, the electronic device executes an initialization process; after the initialization process is completed, the electronic device obtains and records first information through a first dial pad, the first information being used to indicate that the first dial pad is the default dial pad; in response to the operation of starting the first dial pad, the electronic device displays a first interface, the first interface including the first dial pad.
[0007] In some embodiments, when an electronic device is powered on or restarted, it executes an initialization process, which includes starting various system services (e.g., communication services), registering the system services with a service manager, and starting some necessary applications (e.g., telephone applications and dial pads).
[0008] In some embodiments, the electronic device launches a phone application, which can then pull up the first dial pad. For example, such as... Figure 5 As shown, after the phone application starts, it sends a first message to the first dial pad to activate it. Activating the first dial pad can be understood as initializing it.
[0009] The first dial pad can be the default dial pad of the electronic device system, or a third-party dial pad. The first information can also be described as the default dial pad information.
[0010] In some embodiments, activating the first dial pad can be a user clicking the phone application icon. For example, such as... Figure 3 As shown, in response to the user clicking the icon 1011 on the interface 101, the electronic device displays a first interface 104, which includes a first dial pad 1041.
[0011] In other embodiments, the response to activating the first dial pad can be a user clicking the dial pad icon, for example, such as... Figure 1 As shown, in response to the user clicking the icon 1021 on the interface 102, the electronic device displays a first interface 103, which includes a first dial pad 1031.
[0012] In the dial pad startup method shown in this embodiment, when the electronic device is powered on or restarted for the first time after a system upgrade, the electronic device executes an initialization process, which includes updating system services and initializing the first dial pad. Initializing the first dial pad requires accessing the communication service to obtain default dial pad information. However, due to the system upgrade, the time taken for the electronic device to update system services is longer than usual. When the first dial pad accesses the communication service, the communication service is not yet ready (not fully initialized), resulting in the first dial pad recording incorrect information (such as the first dial pad not being the default dial pad). Therefore, the design is to obtain and record the first information again after the initialization process is completed (communication service initialization is complete). This first information is the accurate information provided by the communication service. In this way, when the first dial pad is started, the electronic device can display the first dial pad normally, avoiding the device from displaying a prompt to set the default dial pad, which would affect the user experience.
[0013] In one optional embodiment of the first aspect, the electronic device includes a communication service. Upon first power-on or restart after a system upgrade, the electronic device obtains and records first information via a first dial pad, including: upon first power-on or restart after a system upgrade, the electronic device initializes the first dial pad and the communication service; after the communication service initialization is complete, the first dial pad obtains the first information from the communication service; and the first dial pad records the first information in the memory of the electronic device.
[0014] In this embodiment, the first dial pad obtains first information from the communication service, including: the first dial pad initiating a request to the communication service to obtain the first information; or, the communication service sending the first information to the first dial pad.
[0015] In some embodiments, the communication service resides in the system service layer of the electronic device, and the communication service may correspond to Figure 4 The TeleComService shown.
[0016] In the dial pad startup method shown in this embodiment, to avoid the first dial pad recording incorrect information during initialization, it is designed that after the communication service initialization is completed, the first dial pad obtains the default dial pad information from the communication service again, and the default dial pad information obtained again is accurate.
[0017] In an optional embodiment of the first aspect, after the communication service initialization is completed, the first dial pad obtains first information from the communication service, including: after the communication service initialization is completed, the communication service sends a notification message to the first dial pad, the notification message including the first information. See also... Figure 6 S601 of the embodiment.
[0018] In the dial pad startup method shown in this embodiment, after the communication service initialization is completed, the communication service actively sends a notification message to the first dial pad, so that the first dial pad updates the default dial pad information based on the notification message, and the default dial pad information sent by the communication service is accurate.
[0019] In an optional embodiment of the first aspect, after the communication service initialization is completed, the first dial pad obtains first information from the communication service, including: after the communication service initialization is completed, the first dial pad sends a first query request to the communication service, the first query request being used to query information of the default dial pad; the electronic service responds to the first query request by sending a first query response to the first dial pad, the first query response including the first information. See also... Figure 7 Examples S701 to S702.
[0020] In the dial pad startup method shown in this embodiment, after the communication service initialization is completed, regardless of whether the first dial pad obtained the default dial pad information from the communication service during initialization, the first dial pad will access the communication service again (e.g., send a first query request) to obtain accurate default dial pad information.
[0021] In one optional embodiment of the first aspect, the first dial pad sends a first query request to the communication service, including: a first timing when the first dial pad sends the first query request to the communication service. The first timing includes at least one of the following: when the electronic device unlocks its screen for the first time; when the electronic device first activates the first dial pad.
[0022] In one example, after an electronic device system upgrade, upon first power-on or restart, in response to the first screen unlocking operation, the electronic device sends a first query request to the communication service via a first dial pad.
[0023] In one example, after an electronic device system upgrade, upon first power-on or restart, in response to the first click on the phone application icon, the electronic device launches the first dial pad and sends a first query request to the communication service via the first dial pad.
[0024] In an optional embodiment of the first aspect, the electronic device further includes a telephone application and a communication management module. The electronic device initializes a first dial pad, including: the electronic device initializes the telephone application; the telephone application sends a first message to the first dial pad, the first message being used to activate the first dial pad; in response to the first message, the first dial pad sends a second query request to a communication service through the communication management module, the second query request being used to query information about a default dial pad; the communication management module sends a second query response to the first dial pad, the second query response not indicating information about a default dial pad; based on the second query response, the first dial pad records second information in memory, the second information being used to indicate that the first dial pad is not the default dial pad. See also... Figure 6 Examples S501 to S505.
[0025] In some embodiments, the communication management module is located in the application framework layer of the electronic device, and the communication management module can correspond to Figure 4 The TeleComManager shown.
[0026] In the dial pad startup method shown in this embodiment, during the initialization of the first dial pad, the communication service can be accessed through the communication management module to obtain information about the default dial pad. Since the communication service has not been fully initialized, the first dial pad records in memory that it is not the default dial pad based on the response returned by the communication management module.
[0027] In a second aspect, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory is used to store computer execution instructions, and the processor is used to run the computer execution instructions stored in the memory to perform the methods described in the first aspect or any optional embodiment of the first aspect.
[0028] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform the methods described in the first aspect or any optional embodiment of the first aspect.
[0029] Fourthly, embodiments of this application provide a computer program product, which includes a computer program that, when run, causes a computer to perform the methods described in the first aspect or any optional embodiment of the first aspect.
[0030] Fifthly, this application provides a chip or chip system including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run computer programs or instructions to perform the methods described in the first aspect or any optional embodiment of the first aspect. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.
[0031] In an optional embodiment of the fifth aspect, the chip or chip system described above further includes at least one memory, in which instructions are stored. The memory may be an internal storage unit of the chip, such as a register, cache, etc., or it may be a storage unit of the chip (e.g., read-only memory, random access memory, etc.).
[0032] It should be understood that the second to fifth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding optional embodiments are similar, and will not be described again. Attached Figure Description
[0033] Figure 1 An interface change diagram provided for an embodiment of this application;
[0034] Figure 2 Another interface variation diagram provided for an embodiment of this application;
[0035] Figure 3 Another interface change diagram provided in the embodiments of this application;
[0036] Figure 4 A schematic diagram of the software architecture of a mobile phone provided in an embodiment of this application;
[0037] Figure 5 A flowchart illustrating a dial pad startup method provided in an embodiment of this application;
[0038] Figure 6 Another flowchart illustrating the dial pad startup method provided in this application embodiment;
[0039] Figure 7 Another flowchart illustrating the dial pad startup method provided in this application embodiment;
[0040] Figure 8 Another flowchart illustrating the dial pad startup method provided in this application embodiment;
[0041] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0042] Figure 10 This is a schematic diagram of a chip structure provided in an embodiment of this application. Detailed Implementation
[0043] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:
[0044] 1. OTA (over-the-air) is a technology that allows for remote wireless upgrades of terminal devices via wireless networks (such as 4G, 5G, Wi-Fi, etc.). Taking a mobile phone as an example, OTA upgrades can optimize phone system performance, fix security vulnerabilities, and push new features to users.
[0045] 2. Other terms
[0046] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with essentially the same function and purpose. For example, "first query request" and "second query request" are merely used to distinguish different query requests and do not limit their order. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.
[0047] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0048] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.
[0049] 3. Electronic devices
[0050] The electronic devices in this application embodiment may include handheld devices with display functions, vehicle-mounted devices, etc. For example, some electronic devices include: mobile phones, tablets, PDAs, laptops, mobile internet devices (MIDs), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, terminal devices in 5G networks, or terminal devices in future evolved public land mobile networks (PLMNs), etc., and the embodiments of this application are not limited to these.
[0051] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as watches. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices; they achieve powerful functions through software support, data interaction, and cloud interaction.
[0052] Furthermore, in this embodiment of the application, the electronic device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.
[0053] The electronic devices in the embodiments of this application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.
[0054] In this embodiment, the electronic device or various network devices include a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0055] Before introducing the technical solutions provided in the embodiments of this application, the application scenarios of the technical solutions provided in this application will be introduced first. For ease of understanding, the following description will use a mobile phone as an example.
[0056] Figure 1 This is a diagram illustrating interface changes provided in an embodiment of this application. Figure 1 The interface 101 shown includes icons for various applications, such as clock, calendar, gallery, memo, etc. In response to clicking the phone application icon 1011 on interface 101, the phone displays interface 102, which may include dial pad controls 1021. In response to clicking the dial pad controls 1021 on interface 102, the phone displays interface 103, which displays dial pad 1031. The user can enter a phone number on dial pad 1031 to make a call.
[0057] Figure 1 In the example shown, the user needs to click the phone app icon and then access the dial pad on the phone app's interface to enter the phone number, which requires two steps.
[0058] Figure 2 Another interface variation diagram provided for an embodiment of this application. Figure 1The difference is that, in response to clicking the phone application icon 1011 on interface 101, the phone displays interface 104, which includes a dial pad 1041. Users can enter phone numbers on the dial pad 1041 to make calls. Furthermore, in response to clicking the control 1042 on the dial pad 1041 to collapse the dial pad, the phone displays interface 105, which displays the call history.
[0059] Figure 2 In the example shown, after the user clicks the phone app icon, the dial pad is directly displayed on the phone app's interface, compared to... Figure 1 The example shown makes it easier for users to enter phone numbers.
[0060] However, there is a scenario where, after a phone system upgrade (i.e., OTA upgrade), upon the first power-on or restart, the user clicks the phone app icon on the desktop, and the phone prompts the user to set a default dial pad.
[0061] Figure 3 This is yet another interface change diagram provided as an embodiment of this application. After a mobile phone system upgrade, upon first power-on or restart, as shown... Figure 3 As shown, in response to clicking the phone application icon 1011 on interface 101, the phone displays interface 106, which may include a control 1061 for setting the default dial pad. The user can manually set the default dial pad through interface 106. In this scenario, the phone does not follow the default dial pad settings. Figure 1 or Figure 2 The example shown displays the dial pad, preventing users from directly dialing numbers and impacting the user experience.
[0062] It should be noted that, in addition to the scenarios mentioned above, users may also be prompted to set a default dial pad in other scenarios, such as when the dial pad component is updated (dial pad version is upgraded).
[0063] In the Figure 3 Before explaining the internal execution process of the mobile phone, we will first introduce the software architecture of the mobile phone.
[0064] Figure 4 This is a schematic diagram of the software architecture of a mobile phone provided in an embodiment of this application. Figure 4 As shown, the software architecture of a mobile phone, from top to bottom, includes: the application layer, the application framework layer, and the system service layer.
[0065] The application layer may include a series of application packages, such as camera, gallery, calendar, map, navigation, etc. In this embodiment, the application layer includes a phone application and a dial pad. The phone application is mainly responsible for handling communication-related functions, including, for example, making calls, answering calls, call forwarding, call blocking, etc. The dial pad provides a dialing interface (e.g., ...). Figure 1 As shown in interface 103, the user enters a phone number via touch on the dial pad to trigger the device to make a call. The dial pad can be a system-preset dial pad or a third-party dial pad downloaded by the user from an app store. In some examples, the user can set a system-preset dial pad (e.g., Google® Dial Pad) or a third-party dial pad as the default dial pad.
[0066] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer may include some predefined functions. In this embodiment, the application framework layer includes TeleComManager (a communication management module). TeleComManager is an interface class provided by the mobile phone, offering a series of functions related to telephone communication, such as querying the default dial pad, querying call status, and sending call requests. Both the telephone application and the dial pad can call the TeleComService (communication service) of the system service layer through TeleComManager.
[0067] The system service layer provides basic services and functions for upper-layer applications. In this embodiment, the system service layer includes TeleComService. TeleComService is responsible for call management, phone number and contact management, audio management during calls, communication record and log management, dial pad management, etc.
[0068] Understandable Figure 4 The modules included in each layer shown are those involved in the embodiments of this application. The modules included in each layer do not constitute a limitation on the structure of the electronic device and the hierarchy of module deployment.
[0069] In some embodiments, the electronic device may include more or fewer layers than illustrated, and each layer may include more or fewer components; this application does not limit the scope of the invention.
[0070] It should be noted that in the above embodiments, a "module" can be a software program, a hardware circuit, or a combination of both to implement the above functions. The hardware circuit may include an application-specific integrated circuit (ASIC), electronic circuits, a processor (e.g., a shared processor, a proprietary processor, or a group processor) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functions.
[0071] Therefore, the modules of the various examples described in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0072] based on Figure 4 The software framework described in this application provides a method for starting a dial pad. This method uses a first dial pad as an example; the first dial pad can be a system-preset dial pad or a third-party dial pad. Whether the first dial pad can start normally depends on whether it is the default dial pad.
[0073] The following is combined with Figure 5 The startup process of the dial pad is explained.
[0074] Figure 5 This is a flowchart illustrating a dial pad startup method provided in an embodiment of this application. This method can be applied to, for example... Figure 4 The electronic devices shown, such as Figure 5 As shown, the method includes the following steps:
[0075] S501. After a system upgrade of an electronic device, when the electronic device is powered on or restarted for the first time, initialize the telephone application.
[0076] Initializing the telephone application includes, but is not limited to, system service registration and binding, database initialization (storing contacts, call logs, etc.), checking if the device is connected to the network, checking SIM (subscriber identity module) card information, and sending voicemail-related broadcasts. Broadcasts are used to notify other applications or system components. For example, the first message in S502 is a broadcast message used to activate the first dial pad.
[0077] S502. The telephone application sends a first message to the first dial pad, which is used to activate the first dial pad.
[0078] The phone application initiates the first dial pad by sending the first message. Initiating the first dial pad can be understood as initializing it. Initializing the first dial pad refers to a series of settings and preparations performed on the dial pad when the phone application starts, ensuring the stability and availability of the dialing function. Initializing the first dial pad includes checking the default dial pad; see S503 to S505 for details.
[0079] S503. The first dial pad responds to the first message by sending a second query request to TeleComManager. The second query request is used to query the default dial pad.
[0080] S504. In response to the second query request, TeleComManager sends a second query response to the first dial pad, which does not indicate the default dial pad.
[0081] Compared to a regular boot or restart, the first boot or restart after a system upgrade takes longer than usual because the electronic device needs to update system services.
[0082] TeleComService is one type of system service. It's possible that the initialization of the first dial pad occurs before the initialization of TeleComService. (See reference...) Figure 5 The first dial pad calls TeleComService through TeleComManager to query information about the default dial pad. Since TeleComService is not ready, TeleComManager returns a second query response to the first dial pad.
[0083] "TeleComService not ready" can be interpreted as either "TeleComService has not completed initialization" or "TeleComService has not started initialization." "Second query response does not indicate default dial pad" can be interpreted as either "Second query response is null" or "Second query response does not include the default dial pad's packet name."
[0084] S505. In response to the second query response, the first dial pad records the information of the default dial pad in memory.
[0085] The information recorded for the default dial pad on the first dial pad can be: the first dial pad is not the default dial pad, or the default dial pad is empty (the system has not set a default dial pad).
[0086] After the initialization process is completed in the phone application and the first dial pad, it also includes:
[0087] S506. In response to the operation of activating the first dial pad, which is based on a memory record, a prompt message is displayed to indicate the setting of the default dial pad.
[0088] Launching the first dial pad can be done by clicking the phone application icon. (See reference...) Figure 3 In response to clicking the phone application icon 1011 on interface 101, the electronic device activates the first dial pad. After activation, the first dial pad reads information from memory about the default dial pad and, based on this information, determines that the first dial pad is not the default dial pad. Subsequently, the first dial pad displays a prompt message instructing the user to set a default dial pad, referring to... Figure 3 In response to clicking the phone application icon 1011 on interface 101, the electronic device displays interface 106, which prompts the user to set the default dial pad.
[0089] The dial pad startup method shown in the above embodiments is affected by the initialization order of the first dial pad and TeleComService and the internal execution logic of the first dial pad. During the initialization process of the first dial pad, because TeleComService is not ready, the first dial pad records incorrect default dial pad information in memory (e.g., records that the dial pad is not the default dial pad), which causes the user to be unable to directly access the dial pad when using the phone application, and the user cannot make a call directly, affecting the user experience.
[0090] against Figure 5 To address the issue of users being unable to directly access the dial pad in the embodiments, this application proposes an improved dial pad startup method. After TeleComService initialization, it configures TeleComService to actively send a notification message to indicate the default dial pad information. This allows the first dial pad to be displayed correctly based on this notification message upon startup. The following is a detailed explanation in conjunction with the appendix. Figure 6 The plan will be explained in detail.
[0091] Figure 6 Another flowchart illustrates the dial pad startup method provided in this application embodiment. This method can be applied to, for example... Figure 4 The electronic devices shown, such as Figure 6 As shown, the method includes the following steps:
[0092] S501. After a system upgrade of an electronic device, when the electronic device is powered on or restarted for the first time, initialize the telephone application.
[0093] S502. The telephone application sends a first message to the first dial pad, which is used to activate the first dial pad.
[0094] S503. The first dial pad responds to the first message by sending a second query request to TeleComManager. The second query request is used to query the default dial pad.
[0095] S504. In response to the second query request, TeleComManager sends a second query response to the first dial pad, which does not indicate the default dial pad.
[0096] S505. In response to the second query response, the first dial pad records the information of the default dial pad in memory.
[0097] S501 to S505 of this embodiment can be referred to Figure 5 Examples are not elaborated here.
[0098] Based on the foregoing steps, the method provided in this embodiment further includes:
[0099] S601. After the TeleComService initialization is complete, a notification message is sent to indicate information about the default dial pad.
[0100] S602. The first dial pad updates the information of the default dial pad in memory based on the notification message.
[0101] In one example, the notification message is a broadcast message.
[0102] In one example, the notification message includes the package name of the default dial pad.
[0103] It should be noted that system upgrades for electronic devices typically do not update the default dial pad settings. For example, if the default dial pad was the first dial pad before the system upgrade, it will remain the first dial pad after the upgrade. Based on this, TeleComService sends a notification message, which may include the packet name of the first dial pad to indicate that the default dial pad is the first dial pad. The first dial pad updates its memory records based on this notification message, such as recording that the first dial pad is the default dial pad.
[0104] S603. In response to the operation of activating the first dial pad, the electronic device displays the first dial pad.
[0105] In response to the operation of starting the first dial pad, the first dial pad is determined based on the memory record. If the first dial pad is the default dial pad, it is displayed.
[0106] The dial pad startup method shown in the above embodiments, although the initialization of the first dial pad occurs before the initialization of TeleComService, records incorrect default dial pad information in memory. To prevent users from being unable to directly access the dial pad when using the phone application, TeleComService can be configured to send a broadcast after initialization to indicate the default dial pad information. The first dial pad updates its memory record based on the broadcast. Thus, when the first dial pad starts, the electronic device can display it correctly, avoiding the device displaying a prompt to set a default dial pad, which would negatively impact the user experience.
[0107] against Figure 5 To address the issue of users being unable to directly access the dial pad in the embodiments, this application also proposes an improved dial pad startup method. At certain times after TeleComService initialization, such as when the device unlocks the screen or when the device starts the first dial pad, the first dial pad again calls TeleComService via TeleComManager to query the default dial pad information and update the default dial pad information recorded in memory. This avoids the inability of users to directly access the dial pad due to incorrect default dial pad information recorded during the initialization process of the first dial pad. The following is in conjunction with the appendix... Figure 7 The plan will be explained in detail.
[0108] Figure 7 This is another flowchart illustrating the dial pad startup method provided in this application embodiment. This method can be applied to, for example... Figure 4 The electronic devices shown, such as Figure 7 As shown, the method includes the following steps:
[0109] S501. After a system upgrade of an electronic device, when the electronic device is powered on or restarted for the first time, initialize the telephone application.
[0110] S502. The telephone application sends a first message to the first dial pad, which is used to activate the first dial pad.
[0111] S503. The first dial pad responds to the first message by sending a second query request to TeleComManager. The second query request is used to query the default dial pad.
[0112] S504. In response to the second query request, TeleComManager sends a second query response to the first dial pad, which does not indicate the default dial pad.
[0113] S505. In response to the second query response, the first dial pad records the information of the default dial pad in memory.
[0114] S501 to S505 of this embodiment can be referred to Figure 5 Examples are not elaborated here.
[0115] Based on the foregoing steps, the method provided in this embodiment further includes:
[0116] S701. At the first opportune moment, the first dial pad sends a first query request to TeleComManager. The first query request is used to query the default dial pad.
[0117] The first opportune moment refers to a specific point in time after an electronic device system is first powered on or restarted following an upgrade. (See also...) Figure 7 Prior to the first opportune moment, TeleComService has already completed initialization. For example, the first opportune moment could be when the device first unlocks the screen, or when the device first activates the first dial pad.
[0118] S702. In response to the first query request, TeleComManager sends a first query response to the first dial pad, which indicates the default dial pad.
[0119] Reference Figure 5 The first dial pad calls TeleComService via TeleComManager to query information about the default dial pad. Since TeleComService has already been initialized, the second query response returned by TeleComManager to the first dial pad indicates the information about the default dial pad. For example, the second query response includes the packet name of the default dial pad; for instance, the second query response includes the packet name of the first dial pad.
[0120] S703. The first dial pad updates the information of the default dial pad in memory based on the first query response.
[0121] Based on the first query response, the first dial pad writes the latest queried default dial pad information into memory and deletes the old default dial pad information.
[0122] In some embodiments, if the first timing is when the device first starts the first dial pad, after S702, S704 is also executed: The electronic device displays the first dial pad.
[0123] This embodiment does not limit the execution order of S703 and S704; they can be executed either by notification or sequentially.
[0124] In some embodiments, if the first timing is when the device unlocks the screen for the first time, S704 is executed after S703. S704 specifically includes: in response to the operation of activating the first dial pad, the electronic device displays the first dial pad. The operation of activating the first dial pad can be an operation where the user clicks the phone application icon, as described above. Figure 3 In response to clicking the phone application icon 1011 on interface 101, the electronic device activates the first dial pad.
[0125] The dial pad startup method shown in the above embodiments, although the initialization of the first dial pad occurs before the initialization of TeleComService, records incorrect default dial pad information in memory. To prevent users from being unable to directly access the dial pad when using the phone application, the first dial pad can be configured to re-query the default dial pad at various times to update the default dial pad information recorded in memory. In this way, when the first dial pad starts, the electronic device can display the first dial pad correctly, avoiding the device prompting to set the default dial pad, which would negatively impact the user experience.
[0126] Based on the foregoing embodiments, this application provides a method for starting a dial pad, referring to... Figure 8 The method includes the following steps:
[0127] S801. After the electronic device system is upgraded, the electronic device performs an initialization process upon first power-on or restart.
[0128] S802. After the initialization process is completed, the electronic device obtains the first information of the union record through the first dial pad. The first information is used to indicate that the first dial pad is the default dial pad.
[0129] S803. In response to the operation of activating the first dial pad, the electronic device displays a first interface, the first interface including the first dial pad.
[0130] In some embodiments, when an electronic device is powered on or restarted, it executes an initialization process, which includes starting various system services (e.g., communication services), registering the system services with a service manager, and starting some necessary applications (e.g., telephone applications and dial pads).
[0131] In some embodiments, the electronic device launches a phone application, which can then pull up the first dial pad. For example, such as... Figure 5 As shown, after the phone application starts, it sends a first message to the first dial pad to activate it. Activating the first dial pad can be understood as initializing it.
[0132] In some embodiments, the first dial pad may be a dial pad pre-installed in the electronic device system, or a third-party dial pad.
[0133] In some embodiments, activating the first dial pad can be a user clicking the phone application icon. For example, such as... Figure 3 As shown, in response to the user clicking the icon 1011 on the interface 101, the electronic device displays a first interface 104, which includes a first dial pad 1041.
[0134] In other embodiments, the response to activating the first dial pad can be a user clicking the dial pad icon, for example, such as... Figure 1 As shown, in response to the user clicking the icon 1021 on the interface 102, the electronic device displays a first interface 103, which includes a first dial pad 1031.
[0135] In this embodiment, the first information can also be described as the default dial pad information.
[0136] In the dial pad startup method shown in this embodiment, when the electronic device is powered on or restarted for the first time after a system upgrade, the electronic device executes an initialization process, which includes updating system services and initializing the first dial pad. Initializing the first dial pad requires accessing the communication service to obtain default dial pad information. However, due to the system upgrade, the time taken for the electronic device to update system services is longer than usual. When the first dial pad accesses the communication service, the communication service is not yet ready (not fully initialized), resulting in the first dial pad recording incorrect information (such as the first dial pad not being the default dial pad). Therefore, the design is to obtain and record the first information again after the initialization process is completed (communication service initialization is complete). This first information is the accurate information provided by the communication service. In this way, when the first dial pad is started, the electronic device can display the first dial pad normally, avoiding the device from displaying a prompt to set the default dial pad, which would affect the user experience.
[0137] In one optional embodiment, the electronic device includes a communication service. Upon first power-on or restart after a system upgrade, the electronic device obtains and records first information via a first dial pad, including: upon first power-on or restart after a system upgrade, the electronic device initializes the first dial pad and the communication service; after the communication service initialization is complete, the first dial pad obtains the first information from the communication service; and the first dial pad records the first information in the memory of the electronic device.
[0138] In this embodiment, the first dial pad obtains first information from the communication service, including: the first dial pad initiating a request to the communication service to obtain the first information; or, the communication service sending the first information to the first dial pad.
[0139] In some embodiments, the communication service resides in the system service layer of the electronic device, and the communication service may correspond to Figure 4 The TeleComService shown.
[0140] In the dial pad startup method shown in this embodiment, to avoid the first dial pad recording incorrect information during initialization, it is designed that after the communication service initialization is completed, the first dial pad obtains the default dial pad information from the communication service again, and the default dial pad information obtained again is accurate.
[0141] In one optional embodiment, after the communication service initialization is completed, the first dial pad obtains first information from the communication service, including: after the communication service initialization is completed, the communication service sends a notification message to the first dial pad, the notification message including the first information. See also... Figure 6 S601 of the embodiment.
[0142] In the dial pad startup method shown in this embodiment, after the communication service initialization is completed, the communication service actively sends a notification message to the first dial pad, so that the first dial pad updates the default dial pad information based on the notification message, and the default dial pad information sent by the communication service is accurate.
[0143] In one optional embodiment, after the communication service initialization is completed, the first dial pad obtains first information from the communication service, including: after the communication service initialization is completed, the first dial pad sends a first query request to the communication service, the first query request being used to query information about the default dial pad; the electronic service responds to the first query request by sending a first query response to the first dial pad, the first query response including the first information. See also... Figure 7 Examples S701 to S702.
[0144] In the dial pad startup method shown in this embodiment, after the communication service initialization is completed, regardless of whether the first dial pad obtained the default dial pad information from the communication service during initialization, the first dial pad will access the communication service again (e.g., send a first query request) to obtain accurate default dial pad information.
[0145] In one optional embodiment, the first dial pad sends a first query request to the communication service, including: a first timing when the first dial pad sends the first query request to the communication service. The first timing includes at least one of the following: when the electronic device unlocks its screen for the first time; when the electronic device first activates the first dial pad.
[0146] In one example, after an electronic device system upgrade, upon first power-on or restart, in response to the first screen unlocking operation, the electronic device sends a first query request to the communication service via a first dial pad.
[0147] In one example, after an electronic device system upgrade, upon first power-on or restart, in response to the first click on the phone application icon, the electronic device launches the first dial pad and sends a first query request to the communication service via the first dial pad.
[0148] In one optional embodiment, the electronic device further includes a telephone application and a communication management module. The electronic device initializes a first dial pad, including: the electronic device initializes the telephone application; the telephone application sends a first message to the first dial pad, the first message being used to activate the first dial pad; in response to the first message, the first dial pad sends a second query request to a communication service through the communication management module, the second query request being used to query information about the default dial pad; the communication management module sends a second query response to the first dial pad, the second query response not indicating information about the default dial pad; based on the second query response, the first dial pad records second information in memory, the second information being used to indicate that the first dial pad is not the default dial pad. See also... Figure 6 Examples S501 to S505.
[0149] In some embodiments, the communication management module is located in the application framework layer of the electronic device, and the communication management module can correspond to Figure 4 The TeleComManager shown.
[0150] In the dial pad startup method shown in this embodiment, during the initialization of the first dial pad, the communication service can be accessed through the communication management module to obtain information about the default dial pad. Since the communication service has not been fully initialized, the first dial pad records in memory that it is not the default dial pad based on the response returned by the communication management module.
[0151] This application provides an electronic device comprising: a processor and a memory; the memory storing computer-executable instructions; and the processor executing the computer-executable instructions stored in the memory, causing the electronic device to perform the technical solutions described in the above-described method embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.
[0152] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example... Figure 9 As shown, the electronic device includes a processor 901, a communication line 904, and at least one communication interface. Figure 9 The example provided uses communication interface 903 as an example.
[0153] The processor 901 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.
[0154] Communication line 904 may include circuitry for transmitting information between the aforementioned components.
[0155] Communication interface 903 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, WLAN, etc.
[0156] In some embodiments, the electronic device may further include a memory 902.
[0157] The memory 902 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via communication line 904. The memory may also be integrated with the processor.
[0158] The memory 902 stores computer execution instructions for implementing the scheme of this application, and its execution is controlled by the processor 901. The processor 901 executes the computer execution instructions stored in the memory 902 to implement the method provided in the embodiments of this application.
[0159] The computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.
[0160] As an example, processor 901 may include one or more CPUs.
[0161] As an example, an electronic device may include multiple processors. Each processor may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. Here, "processor" can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).
[0162] This application provides a chip or chip system. The chip or chip system includes a processor, which calls a computer program in memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to the related embodiments described above, and will not be repeated here.
[0163] Figure 10 This is a schematic diagram of a chip structure provided in an embodiment of this application. Figure 10 As shown, chip 1000 includes at least one processor 1020 and a communication interface 1030. The communication interface 1030 and at least one processor 1020 are interconnected via a line. The at least one processor is used to run computer programs or instructions to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those in the related embodiments described above, and will not be repeated here.
[0164] In some embodiments, the memory 1040 stores the following elements: executable modules or data structures, or a subset of executable modules or data structures, or an extended set of executable modules or data structures.
[0165] In this embodiment, memory 1040 may include read-only memory and random access memory, and provides instructions and data to processor 1020. A portion of memory 1040 may also include non-volatile random access memory (NVRAM).
[0166] In this embodiment, the memory 1040, the communication interface 1030, and the memory 1040 are coupled together via a bus system 1010. The bus system 1010 includes a data bus, and may also include a power bus, a control bus, and a status signal bus, etc. For ease of description, in... Figure 10 The general labeled all buses as Bus System 1010.
[0167] The methods described in the embodiments of this application can be applied to, or implemented by, the processor 1020. The processor 1020 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above methods can be completed by integrated logic circuits in the hardware of the processor 1020 or by instructions in software form. The processor 1020 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. The processor 1020 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0168] This application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is run on a computer, it causes the computer to perform the technical solutions described in the above-described method embodiments. Its implementation principle and technical effects are similar to the related embodiments described above, and will not be repeated here.
[0169] The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted on a computer-readable medium. A computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. A storage medium can be any target medium accessible by a computer.
[0170] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0171] This application provides a computer program product, which includes a computer program. When the computer program is run, it causes the computer to execute the technical solutions described in the above-described method embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.
[0172] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0173] The above detailed embodiments further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.
Claims
1. A method for starting a dial pad, characterized in that, include: After an electronic device system is upgraded, upon first power-on or restart, the electronic device executes an initialization process. After the initialization process is completed, the electronic device obtains and records first information through the first dial pad, the first information being used to indicate that the first dial pad is the default dial pad; In response to activating the first dial pad, the electronic device displays a first interface, which includes the first dial pad; The electronic device includes communication services; upon first power-on or restart after a system upgrade, the electronic device obtains and records first information via a first dial pad, including: Upon first power-on or restart after a system upgrade, the electronic device initializes the first dial pad and the communication service. After the communication service is initialized, the first dial pad obtains the first information from the communication service; The first dial pad records the first information in the memory of the electronic device.
2. The method according to claim 1, characterized in that, After the communication service initialization is completed, the first dial pad obtains the first information from the communication service, including: After the communication service is initialized, the communication service sends a notification message to the first dial pad, and the notification message includes the first information.
3. The method according to claim 1, characterized in that, After the communication service initialization is completed, the first dial pad obtains the first information from the communication service, including: After the communication service is initialized, the first dial pad sends a first query request to the communication service. The first query request is used to query the information of the default dial pad. In response to the first query request, the electronic device sends a first query response to the first dial pad, the first query response including the first information.
4. The method according to claim 3, characterized in that, The first dial pad sends a first query request to the communication service, including: At the first opportune moment, the first dial pad sends the first query request to the communication service; The first timing includes at least one of the following: when the electronic device unlocks its screen for the first time; when the electronic device first activates the first dial pad.
5. The method according to any one of claims 1 to 4, characterized in that, The electronic device further includes a telephone application and communication management module, and the electronic device initializes the first dial pad, including: The electronic device initializes the telephone application; The telephone application sends a first message to the first dial pad, the first message being used to activate the first dial pad; In response to the first message, the first dial pad sends a second query request to the communication service through the communication management module. The second query request is used to query information about the default dial pad. The communication management module sends a second query response to the first dial pad, and the second query response does not indicate information about the default dial pad; Based on the second query response, the first dial pad records second information in the memory, the second information being used to indicate that the first dial pad is not the default dial pad.
6. An electronic device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the electronic device to perform the method as described in any one of claims 1 to 5.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 5.
8. A chip system, characterized in that, It includes at least one processor and a communication interface, the communication interface and the at least one processor being interconnected via a line, the at least one processor being configured to run a computer program or instructions to perform the method as described in any one of claims 1 to 5.
9. A computer program product, characterized in that, Includes a computer program that, when run, causes a computer to perform the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Visual voice mailbox service starting method and electronic equipment
CN116055643A
Interface display method, electronic equipment and chip system
CN117579738A