CN113840030A - Icon display method and device - Google Patents
Icon display method and device Download PDFInfo
- Publication number
- CN113840030A CN113840030A CN202110954823.8A CN202110954823A CN113840030A CN 113840030 A CN113840030 A CN 113840030A CN 202110954823 A CN202110954823 A CN 202110954823A CN 113840030 A CN113840030 A CN 113840030A
- Authority
- CN
- China
- Prior art keywords
- card
- dsda
- icon
- main card
- state information
- 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.)
- Granted
Links
Images
Classifications
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- 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/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
-
- 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/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The application provides an icon display method and device, which are applied to electronic equipment, wherein a main card of the electronic equipment is resident in a 5G network of an independent network, an auxiliary card is resident in a 4G network, timing is started after detecting that the auxiliary card executes a telephone service, DSDA state information is acquired, the icon of the main card is displayed as a first icon representing a support data service under the condition that the timing duration does not reach a preset duration threshold, and the icon of the main card is displayed according to the DSDA state information after the timing duration reaches the duration threshold. It can be seen that a certain delay time is set for the timing of displaying the icon of the main card according to the DSDA status information, so the DSDA status information for displaying the icon of the main card is likely to be the DSDA status information updated in response to the sub-card performing the phone service, and therefore, the possibility that the icon of the main card does not coincide with the actual status of the main card can be reduced.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for displaying an icon.
Background
With the development of communication technology, dual card electronic devices are commonly used. The dual-card electronic equipment is electronic equipment which is simultaneously provided with two telephone cards. The two phone cards may be on the network at the same time.
In general, the online status of two phone cards is indicated on a display interface of the electronic equipment by using corresponding icons, as shown in fig. 1, an icon 1 of a main card indicates that the main card resides in a 5G network, and an icon 2 of a secondary card indicates that the secondary card resides in a 4G network.
However, the state indicated by the icon indicating the on-network state of the phone card may not coincide with the actual state of the phone card, thereby causing confusion to the user.
Disclosure of Invention
The application provides an icon display method and device, and aims to solve the problem that an icon of a telephone card displayed by electronic equipment does not accord with the actual state of the telephone card.
In order to achieve the above object, the present application provides the following technical solutions:
a first aspect of the present application provides a method for displaying an icon, which is applied to an electronic device, where a main card of the electronic device resides in a 5G network that is networked independently, and a secondary card of the electronic device resides in a 4G network, and the method includes: the method comprises the steps of starting timing after detecting that the auxiliary card executes the telephone service, acquiring DSDA state information, displaying an icon of a main card as a first icon representing support of a data service under the condition that the timing time does not reach a preset time threshold, and displaying the icon of the main card according to the DSDA state information after the timing time reaches the time threshold. The time length threshold value is set to delay the time for displaying the icon of the main card, so that the DSDA state information used for displaying the icon of the main card is updated probably in response to the auxiliary card executing the telephone service, and the DSDA state information of the DSDA state information used for displaying the icon of the main card is updated, therefore, the possibility of the inconsistency between the icon of the main card and the actual state of the main card can be reduced.
Optionally, the displaying the icon of the host card according to the DSDA status information includes: the DSDA state information is a double-card receiving and sending concurrent state, and the icon of the main card is displayed as the first icon.
Optionally, the displaying the icon of the host card according to the DSDA status information further includes: and the DSDA state information is a non-dual-card receiving and sending concurrent state, and the icon of the main card is displayed as a second icon indicating that the main card does not support the data service. According to different meanings of the DSDA state information, different main card icons are displayed, the consistency of the main card icons and the main card state is guaranteed, and the purpose of accurately prompting a user is achieved.
Optionally, the acquiring DSDA status information includes: and generating the DSDA state information according to the frequency band bang combination of the main card and the auxiliary card, the state of the main card and the state of the auxiliary card, thereby being beneficial to improving the accuracy of the DSDA state information.
Optionally, the starting timing includes: the telephone manager of the application program framework layer or the telephone Telephony running in the application layer in the open system interconnection OSI model starts timing, so that the method has high compatibility and implementability.
Optionally, the acquiring DSDA status information includes: the DSDA state information is generated through an L1 layer, and is transmitted to a telephone manager of an application program framework layer or a telephone Telephony running in an application layer in an OSI model through the L1 layer, so that a foundation is laid for displaying an icon of a main card.
Optionally, the obtaining of the duration threshold includes: the DSDA state information generating method comprises a first time and a second time, wherein the first time is the time for generating the DSDA state information, and the second time is the time for receiving the DSDA state information through the telephone manager or Telephony. The time length threshold is set according to the time length of the DSDA state information generation and transmission, so that the time delay of the main card icon display can be reduced under the condition that the possibility that the main card icon is inconsistent with the actual state of the main card is guaranteed.
Optionally, the updated DSDA status information is transmitted to the phone manager or the Telephony through the wireless interface protocol, so as to implement compatibility of DSDA status information transmission.
Optionally, the DSDA state information is carried in an Attention command and transmitted, so as to implement compatibility of DSDA state information transmission.
A second aspect of the present application provides an electronic device comprising: display screen, processor and memory. The memory is used for storing an application program, and the processor is used for running the application program so as to realize the icon display method of the first aspect of the application.
A third aspect of the present application provides a readable storage medium, on which an application program is stored, and when a computer device runs the application program, the method for displaying the icon according to the first aspect of the present application is implemented.
Drawings
FIG. 1 is an exemplary diagram of a phone card icon with a primary card residing in the 5G network of the SA and a secondary card residing in the 4G network;
FIG. 2 is an exemplary diagram of a master card with icons displayed as funnels;
FIG. 3 is an exemplary illustration of a master card with icon flashes funneled;
FIG. 4 is an exemplary diagram of reasons for causing icon flashes of a master card to be funneled;
FIG. 5 is a schematic diagram of one method of addressing the problem of flashing icons of a master card as funneled;
fig. 6 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
FIG. 7 is a schematic diagram of a communication model operating in an electronic device according to an embodiment of the present disclosure;
FIG. 8 is a block diagram of a software framework operating in an electronic device according to an embodiment of the disclosure;
FIG. 9 is a flowchart of a method for displaying icons according to an embodiment of the present disclosure;
fig. 10 is a timing diagram illustrating an implementation process of an icon display method disclosed in an embodiment of the present application.
Detailed Description
For a dual-card electronic device, a user inserts a dual card into a mobile phone, and in a case where a main card resides in a 5G network of an independent network (SA) and a sub card resides in a 4G network, which is a Long Term Evolution (LTE) network, an example of icons of the main card and the sub card displayed on a display interface of the electronic device is shown in fig. 1.
The user browses the web page using the main card, the sub card is in an idle state, and icons of the main card and the sub card are also shown in fig. 1.
In some cases, another example of icons for the primary and secondary cards is shown in FIG. 2: the icon of the main card is displayed in a funnel shape to indicate that the data service of the main card is unavailable, so as to prompt the user that the main card cannot be used for surfing the internet.
However, the above mechanism has the following loopholes:
if the auxiliary card is triggered to execute the call service, the data service of the main card is not actually affected, that is, the main card can actually surf the internet, and because the above mechanism is used, taking fig. 3 as an example, in the display interface of the electronic device, a situation that the icon of the main card flashes in a funnel shape occurs, that is: the icon of the master card is shown in fig. 1, as a funnel as shown in fig. 2, and then as shown in fig. 1.
Although the funnel-shaped icon is displayed for a short time, it is recognized by human eyes, and therefore, the state indicated by the icon of the main card does not correspond to the actual state of the main card, which may confuse the user and degrade the user experience.
The reason why the status indicated by the icon of the master card does not match the actual status of the master card is shown in fig. 4:
assuming that the main card is on line and the auxiliary card is idle before the time T0, the bottom layer supports the concurrency of Dual-card transceiving and the idle state of the main card on line and the auxiliary card based on the band bang combination of the Dual cards, generates a value of a Dual SIM Dual Standby (DSDA) identifier as 0, and transmits the value to the upper layer.
Assuming that the main card is still idle at time T0, the icons of the main card and the sub card are shown in fig. 1, and in fig. 4, for convenience of description, the icon of the main card is shown as "5G" and the icon of the sub card is shown as "4G".
Suppose that at time T1, the secondary card starts to execute the call service, the upper layer starts to query the DSDA flag value in response to the call service, but because the DSDA flag value is reported from the bottom layer to the upper layer, and there is a certain delay, at time T1, the upper layer has not received the DSDA flag updated from the bottom layer, and the queried DSDA flag value is the DSDA flag value at time T0, that is, the DSDA flag value is 0, which indicates that the electronic device does not support the concurrence of dual-card transceiving, and because the secondary card executes the call service, the primary card cannot access the internet, so that the icon of the primary card is funnel-shaped.
Suppose that at time T2, the bottom layer senses a call service from the upper layer, and updates the DSDA identifier value from 0 to 1 based on the bang combination to support the concurrency of dual-card transceiving and the state of the primary-card internet-access secondary-card call (i.e., the primary card and the secondary card are in a concurrent state).
It is assumed that at time T3, the DSDA id value received by the upper layer and uploaded by the lower layer is 1, which indicates that the electronic device supports concurrent dual-card transceiving. Therefore, the icon of the main card is displayed as "5G" and the icon of the sub card is displayed as "4G".
It can be seen that the electronic device has a delay in obtaining the DSDA status information for displaying the icon, resulting in the icon not being in line with the actual status of the phone card.
Moreover, as can be seen from the above analysis, when the bang combination supports the concurrency of dual card transceiving, the problem that the icon of the main card flashes the funnel is caused, and therefore, the bang combination supports the concurrency of dual card transceiving is a precondition for causing the problem.
For the above reasons, one solution provided in the industry is shown in fig. 5:
assume that at time T0, the electronic device powers up and is web-resident.
At the time of T1, the bottom layer queries the band combination of the primary card and the secondary card, the band combination supports the concurrency of dual-card transceiving, at the time of T2, the bottom layer sets the DSDA flag value to 1 and immediately reports the DSDA flag value to the upper layer, and only reports the DSDA flag value once as long as the band combination is unchanged. Therefore, as long as the band combination is not changed (i.e. the concurrence of dual-card transceiving is supported), the DSDA id queried by the subsequent upper layer has a value of 1, and therefore, at time T3, the primary card icon does not appear as funnel-shaped when the secondary card makes a call.
It can be seen that the solution in the industry only uses band combination as the basis for determining whether to support the concurrency of dual-card transceiving, and does not consider the actual states of the primary card and the secondary card.
Based on this, the above scheme is not suitable for some platforms with service scene limitation, and these platforms have service scene limitation for concurrent transmission and reception of dual cards, that is, in some service scenes, the main card does not support data services, and because the actual state of the main card is not considered by the solution in the industry, in the service limited scenes, even if the main card cannot surf the internet, the funnel is not displayed, and the user experience is also reduced.
Therefore, whether the master card can surf the internet to flash the funnel or the master card cannot surf the internet and also display the icon capable of surfing the internet normally is the result of the fact that the DSDA state information of the displayed icon is not consistent with the actual state of the telephone card, and in order to solve the problem, the following embodiment of the application discloses an icon display method.
The icon display method disclosed by the embodiment of the application is executed by the electronic equipment. In some implementations, the electronic device may be a cell phone, a tablet, a desktop, a laptop, a notebook, an Ultra-mobile Personal Computer (UMPC), a handheld Computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device, a smart watch, or the like.
Taking a mobile phone as an example of the electronic device, fig. 6 shows a partial structure of the mobile phone related to the embodiment of the present application, which includes: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller may be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory, avoiding repeated accesses, reducing the latency of the processor 110, and thus increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (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.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and display screen 194 communicate via a DSI interface to implement display functionality of the electronic device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. It should be understood that the interface connection relationship between the modules illustrated in this embodiment is only an exemplary illustration, and does not constitute a limitation on the structure of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G, 3G, 4G, and 5G wireless communication applied to the electronic device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
In some embodiments, antenna 1 of the electronic device is coupled to the mobile communication module 150 and antenna 2 is coupled to the wireless communication module 160 so that the electronic device can communicate with the network and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device implements the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-OLED, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, with N being a positive integer greater than 1.
A series of Graphical User Interfaces (GUIs) may be displayed on the display screen 194 of the electronic device, and these GUIs are the main screen of the electronic device. Generally, the size of the display screen 194 of the electronic device is fixed, and only a limited number of controls can be displayed in the display screen 194 of the electronic device. A control is a GUI element, which is a software component contained in an application program and controls all data processed by the application program and interactive operations related to the data, and a user can interact with the control through direct manipulation (direct manipulation) to read or edit information related to the application program. Generally, a control may include a visual interface element such as an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, Widget, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. For example, in the present embodiment, the processor 110 may perform scene arrangement by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic device by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic equipment can support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic equipment realizes functions of conversation, data communication and the like through the interaction of the SIM card and the network. In some embodiments, the electronic device employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from the electronic device.
The processor 110 can implement a communication function based on an Open System Interconnection (OSI) model shown in fig. 7 by executing the program code.
In fig. 7, the physical Layer (also called Layer1, L1 for short) mainly defines some electrical characteristics of the communication network, and is responsible for transmitting 0 and 1 electrical signals. The data link Layer (also referred to as the second Layer2, abbreviated as the L2 Layer) processes and transmits the received data packets using ethernet protocols including MAC, RLC, and PDCP. The network Layer (also called Layer3, L3 Layer) processes and transmits the received data packets using Internet Protocol (IP) (including RRC and NAS).
The transport layer processes and transmits the received data packets using a Protocol for a port, such as a User Datagram Protocol (UDP) or a Transmission Control Protocol (TCP). The Radio Interface Layer (RIL) is located in the transmission Layer and used for interacting with the at (attention) command with the serial port.
The application layer processes and transmits the received data packets in the data formats corresponding to different application programs. For example, a telephone (Telephony) running at the application layer is used to process and transmit data packets sent by the telephone application or to be received by the telephone application using a data format corresponding to the telephone application.
Based on the communication model shown in fig. 7, the flow of transmitting and applying DSDA status information is as follows:
after sensing that the main card or the auxiliary card executes the service according to the information transmitted by the application layer, the layer L1 generates a DSDA identifier value according to the band combination and the states of the main card and the auxiliary card: the band combination supports the concurrency of the receiving and sending of the double cards, the double cards are both in a service state, the value of the DSDA identification is set to be 1, the concurrency of the receiving and sending of the double cards is supported, and the main card and the auxiliary card are in a concurrency state. The band combination supports the concurrency of dual-card transceiving, one card is in a service state, the other card is in an idle state, and the value of the DSDA mark is set to be 0, which indicates that the concurrency of dual-card transceiving is not supported. The band combination does not support the concurrency of dual-card transceiving, and the value of the DSDA identification is set to be 0, which indicates that the concurrency of dual-card transceiving is not supported. Each time the L1 layer updates the value of the DSDA flag, the latest DSDA flag value is transmitted to the RIL. The RIL transmits the received DSDA identity to Telephony.
When the main card or the auxiliary card executes a certain service, Telephony is triggered to inquire the value of the DSDA identification, and whether the main card can access the internet is determined according to the value of the DSDA identification and the states of the main card and the auxiliary card: the DSDA identification value is 0, and the auxiliary card is in an idle state, so that the main card can access the internet. The value of the DSDA identification is 0, and the auxiliary card executes the conversation service, the main card can not access the internet. The DSDA identification value is 1, and the main card can access the internet.
It is understood that after Telephony determines the status of the main card, a flag bit indicating the status of the main card may be set and transmitted to a display module of an operating system running in the electronic device, and the display module displays an icon of the main card using the flag bit.
The processor 110 runs the program code, and the implemented operating system may be an iOS operating system, an Android open source operating system, a Windows operating system, a grand operating system, or the like.
The communication model shown in fig. 7 is combined with an operating system to implement functions such as communication of an electronic device and icon display of a phone card, and taking an Android open source operating system as an example, as shown in fig. 8:
in some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. Specific application programs can be seen in fig. 8, and are not described in detail here.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 8, the application framework layer may include a window manager, a content provider, a view system, and a phone manager, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including icons for a phone card may include a view showing text and a view showing pictures.
The phone manager is used to provide communication functions of the electronic device. Such as management of call status (including on, off, etc.). The phone manager corresponds to Telephony shown in fig. 7.
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system. The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. One example of the function is a function for implementing a Radio Interface Layer (RIL) shown in fig. 7, which can communicate with other layers through AT commands.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It is understood that the functions of L1, L2, and L3 shown in fig. 7 may be implemented in a chip that communicates with the layers shown in fig. 8 through a core layer. Based on this, as shown in fig. 7 and fig. 8, the flow for implementing the transmission of the DSDA status information and displaying the icon of the phone card according to the DSDA status information is as follows:
after the L1 layer generates the value of the DSDA flag (specifically, in the manner described above), the DSDA flag is transmitted to the system library through the kernel layer, and the function for implementing the RIL function (protocol) in the system library transmits the DSDA flag to the phone manager of the application framework layer. The telephone manager determines whether the main card supports data services (i.e. whether to access the internet) according to the value of the DSDA identifier and the states of the main card and the auxiliary card, for example: the DSDA identification value is 0, and the auxiliary card is in an idle state, so that the main card can access the internet. The value of the DSDA identification is 0, and the auxiliary card executes the conversation service, the main card can not access the internet. The DSDA identification value is 1, and the main card can access the internet.
Optionally, the phone management module generates a flag bit according to the state of the main card, and transmits the flag bit to a module that implements a display function in the software framework shown in fig. 8, for example, including but not limited to a system library, a media library, a three-dimensional graphics processing library, a resource manager, and the like, to display an icon of the main card, and the specific implementation of the display is not described again.
Although the Android system is taken as an example in the embodiment of the present application for description, the basic principle is also applicable to electronic devices based on an os, Windows, a hong meng, or other operating systems.
Based on the above description, it is understood that the "bottom layer" shown in fig. 4 and 5 may be the L1 layer shown in fig. 7, and the "top layer" shown in fig. 4 and 5 may be Te lephony shown in fig. 7, or the telephone manager shown in fig. 8.
The icon display method provided by the embodiment of the application improves the functions of the upper layer, and aims to solve the problem that the DSDA state information for displaying the icon of the telephone card is not consistent with the actual state of the telephone card when the auxiliary card executes the telephone service.
Fig. 9 is a display method of an icon provided in an embodiment of the present application, executed by the electronic device, and includes the following steps:
and S1, starting a timer after detecting that the secondary card executes the telephone service.
As shown in connection with fig. 7, in some implementations, S1 is performed by Telephony.
As shown in connection with fig. 8, in some implementations, S1 is performed by the phone manager.
The specific implementation manner of detecting that the secondary card executes the telephone service may be, but is not limited to: it is detected that the secondary card is called or the secondary card originates a caller. The timing manner of the timer includes but is not limited to: a count-down from a certain value to zero, or a count-up from zero, i.e., a count-up, etc.
As shown in fig. 10, assuming that the primary card is on the internet, the secondary card is idle, and the DSDA flag has a value of 0 at time T0, the icon of the primary card is displayed as "5G" and the icon of the secondary card is displayed as "4G". Assume that this step occurs at time T1.
And S2, acquiring DSDA state information.
Referring to fig. 7, after Telephony detects that the sub-card performs the telephone service, information of the telephone service is transferred to the L1 layer, and after the L1 layer senses the telephone service, S2 is performed.
Referring to fig. 8, after the phone manager detects that the sub-card performs the phone service, information of the phone service is transferred to the L1 layer through layers below the application framework layer, and after the L1 layer senses the phone service, S2 is performed.
One example of DSDA status information is the value of the DSDA identification.
Since the secondary card executes the telephone service in this embodiment, in some implementations, a specific implementation manner of the L1 layer for acquiring the DSDA status information is as follows: according to the parallel supporting of the bang combination and the service parallel state of the main card and the auxiliary card (namely the main card executes data service and the auxiliary card executes conversation service), the value of the DSDA identification is set to be 1. Other implementations can be seen in the description of fig. 7, which is not described here.
As shown in fig. 10, since the L1 layer requires Telephony or information issued by a Telephony manager to sense a Telephony service, S2 is performed after S1, and it is assumed to be performed at time T2.
In fig. 10, it is assumed that AT time T3, the L1 layer uploads the updated value of the DSDA flag by AT command:
as shown in fig. 7, after the L1 layer updates the value of the DSDA flag, the DSDA flag is carried in the AT command and transmitted to the RIL. The RIL transmits AT commands carrying the DSDA identity to Telephony.
As shown in fig. 8, after the L1 layer updates the value of the DSDA flag, the DSDA flag is carried in the AT command and transmitted to the telephony manager of the application framework layer through the kernel layer and the system library (RIL protocol).
And S3, before the timing duration of the timer reaches a preset duration threshold, displaying the icon of the main card as a first icon.
The first icon indicates that the main card supports data services. Such as shown in fig. 1-3.
As shown in connection with fig. 10, the duration threshold is not less than the duration of the time that the DSDA flag value is updated by the L1 layer and transmitted to Telephony or the phone manager. It is understood that the duration threshold may be preconfigured in the electronic device based on the duration that the DSDA identity is updated (generated) by the L1 layer and transmitted to the Telephony or phone manager. In this embodiment, an example of the value range of the duration threshold is 100 milliseconds to 200 milliseconds.
As shown in fig. 10, it is assumed that the updated DSDA flag value is received at time T1+ T, and therefore, the icon of the master card is displayed as the first icon before time T1+ T.
It is understood that, since the time length does not reach the time length threshold, the flag bit determined by the upper layer for display is also the flag bit determined according to the value of the DSDA flag at the time T0, and therefore, the icon of the master card is also displayed as the first icon.
Referring to fig. 7, Telephony detects whether the timed duration reaches a preset duration threshold. As shown in fig. 8, the phone manager detects whether the timed duration reaches a preset duration threshold.
One example of the timed duration reaching the preset duration threshold is that the countdown is finished, and another example is that the accumulated duration reaches the duration threshold.
It is to be understood that the order of execution of S2 and S3 is not limited.
And S4, displaying the icon of the main card according to the acquired DSDA state information after the timing duration of the timer reaches a preset duration threshold value.
As shown in fig. 10, the upper layer receives the updated DSDA flag value at time T1+ T, so at time T1+ T, the flag bit is determined according to the DSDA flag value and possibly the states of the primary card and the secondary card, and the flag bit is transmitted to the display module for displaying the icon of the primary card.
As shown in fig. 10, in some implementations, if the updated DSDA flag has a value of 1, the flag bit is determined to be 1, and the display module displays the icon of the host card as a first icon according to that the flag bit is 1, where the first icon indicates that the host card supports the data service. In this case, the problem that the funnel-shaped icon is flashed by the icon of the main card when the sub-card executes the call service can be solved.
In other implementations, the updated DSDA flag may also have a value of 0, for example, if the cell in which the electronic device resides changes between time T1 and time T2, and the bang combination does not support concurrency of dual card transceiving, then L1 sets the DSDA flag to have a value of 0. The upper layer executes the call service according to the DSDA flag value of 0, determines that the flag bit is 0, and the display module displays the icon of the main card as a second icon, for example, the funnel-shaped icon in fig. 1 to 3, according to the flag bit of 0, so as to prompt the user that the main card cannot access the internet. It can be seen that, although the precondition for causing the flashing funnel icon is that the bang combination supports concurrency of dual card transceiving, the method described in the present embodiment is not limited to this precondition.
Comparing fig. 10 with fig. 4, it can be seen that: because the timing of determining the flag bit for displaying the icon of the main card according to the DSDA identifier by the upper layer is set after receiving the DSDA identifier updated by the L1 layer, the problem that the DSDA state information does not accord with the actual state of the telephone card because the DSDA state information acquired by the upper layer is delayed compared with the DSDA state information updated by the lower layer can be solved.
It should be emphasized that the flow shown in fig. 9 solves the above problem by reading the DSDA status information with a delay from the essential cause of the untimely acquisition of the DSDA status, so as to avoid interference in the scenario where the DSDA status information is actually in a concurrent state of non-dual-card transmission and reception, as described above. That is, the flow shown in fig. 9 solves the vulnerability of the mechanism that the host card cannot access the internet by the host card icon, but the means for solving the problem does not affect the execution of the mechanism.
It is to be understood that the icons shown in the above-described illustrations are exemplary and not limiting. For example, the second icon is not limited to a funnel icon. The UI interface in the above illustration is not limited to the above illustration, and may also include other contents, such as power identification, time, and the like.
It should be understood that, the specific implementation manners of the above steps are all exemplified by the frames and modules illustrated in fig. 7 or fig. 8, but the execution subjects of the steps are not limited to these examples.
The embodiment of the application also discloses a computer readable storage medium, wherein a program is stored on the computer readable storage medium, and when the program is executed by computer equipment, the method of the embodiment can be realized.
Claims (11)
1. A method for displaying icons is applied to electronic equipment, a main card of the electronic equipment resides in a 5G network of an independent network, and a secondary card of the electronic equipment resides in a 4G network, and the method is characterized by comprising the following steps:
starting timing after detecting that the auxiliary card executes the telephone service;
acquiring dual-card dual-standby DSDA state information;
under the condition that the timing duration does not reach a preset duration threshold, displaying an icon of a main card as a first icon, wherein the first icon represents that a data service is supported;
and displaying the icon of the main card according to the DSDA state information after the timing duration reaches the duration threshold value.
2. The method of claim 1, wherein the displaying the icon of the host card according to the DSDA status information comprises:
the DSDA state information is a double-card receiving and sending concurrent state, and the icon of the main card is displayed as the first icon.
3. The method of claim 2, wherein the displaying the icon of the master card according to the DSDA status information further comprises:
the DSDA state information is a non-dual-card receiving and sending concurrent state, the icon of the main card is displayed as a second icon, and the second icon indicates that the main card does not support data services.
4. The method of any of claims 1-3, wherein obtaining DSDA status information comprises:
and generating the DSDA state information according to the frequency band bang combination of the main card and the auxiliary card, the state of the main card and the state of the auxiliary card.
5. The method of any of claims 1-4, wherein the initiating timing comprises:
the timing is started by a telephone manager at the application framework layer or a telephone Telephony running at the application layer in the open system interconnection OSI model.
6. The method of any one of claims 1-5, wherein the obtaining DSDA status information comprises:
generating the DSDA state information through an L1 layer;
and transmitting the DSDA state information to a telephone manager of an application program framework layer or a telephone Telephony running in an application layer in an OSI model through the L1 layer.
7. The method of claim 6, wherein the duration threshold is obtained according to the following:
the DSDA state information generating method comprises a first time and a second time, wherein the first time is the time for generating the DSDA state information, and the second time is the time for receiving the DSDA state information through the telephone manager or Telephony.
8. The method of claim 6, wherein the updated DSDA status information is transmitted to the Telephony manager or the Telephony via the radio interface protocol.
9. The method of claim 8, wherein the DSDA status information is transmitted in an Attention command.
10. An electronic device, comprising:
a display screen, a processor and a memory;
the memory is used for storing an application program, and the processor is used for running the application program to realize the icon display method of any one of claims 1-9.
11. A readable storage medium on which an application program is stored, characterized in that the display method of the icon according to any one of claims 1 to 9 is implemented when the application program is executed by a computer device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110954823.8A CN113840030B (en) | 2021-08-19 | 2021-08-19 | Icon display method, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110954823.8A CN113840030B (en) | 2021-08-19 | 2021-08-19 | Icon display method, electronic device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113840030A true CN113840030A (en) | 2021-12-24 |
CN113840030B CN113840030B (en) | 2022-09-09 |
Family
ID=78960893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110954823.8A Active CN113840030B (en) | 2021-08-19 | 2021-08-19 | Icon display method, electronic device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113840030B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117119512A (en) * | 2023-04-07 | 2023-11-24 | 荣耀终端有限公司 | Icon display control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106851616A (en) * | 2017-01-11 | 2017-06-13 | 深圳市万普拉斯科技有限公司 | Network service state updating method and device |
WO2020042181A1 (en) * | 2018-08-31 | 2020-03-05 | 华为技术有限公司 | Method for displaying 5g state identifier and terminal |
CN111246543A (en) * | 2020-03-20 | 2020-06-05 | 捷开通讯(深圳)有限公司 | Icon display method and device, storage medium and electronic terminal |
CN111787562A (en) * | 2020-06-22 | 2020-10-16 | 捷开通讯(深圳)有限公司 | Icon display method and device, storage medium and electronic terminal |
-
2021
- 2021-08-19 CN CN202110954823.8A patent/CN113840030B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106851616A (en) * | 2017-01-11 | 2017-06-13 | 深圳市万普拉斯科技有限公司 | Network service state updating method and device |
WO2020042181A1 (en) * | 2018-08-31 | 2020-03-05 | 华为技术有限公司 | Method for displaying 5g state identifier and terminal |
CN112640552A (en) * | 2018-08-31 | 2021-04-09 | 华为技术有限公司 | Method and terminal for displaying 5G state identifier |
CN111246543A (en) * | 2020-03-20 | 2020-06-05 | 捷开通讯(深圳)有限公司 | Icon display method and device, storage medium and electronic terminal |
CN111787562A (en) * | 2020-06-22 | 2020-10-16 | 捷开通讯(深圳)有限公司 | Icon display method and device, storage medium and electronic terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117119512A (en) * | 2023-04-07 | 2023-11-24 | 荣耀终端有限公司 | Icon display control method and device |
CN117119512B (en) * | 2023-04-07 | 2024-07-19 | 荣耀终端有限公司 | Icon display control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113840030B (en) | 2022-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4002108B1 (en) | Application start method and electronic device | |
WO2020244495A1 (en) | Screen projection display method and electronic device | |
CN112291764B (en) | Content connection system | |
CN113961157B (en) | Display interaction system, display method and equipment | |
CN112130788A (en) | Content sharing method and device | |
CN114625525A (en) | Resource control method and equipment | |
CN115499897B (en) | WiFi network access method and related device | |
CN114124980A (en) | Method, device and system for starting application | |
CN112860445A (en) | Method and terminal for sharing data between fast application and native application | |
CN113395364B (en) | Access method of application server and terminal | |
CN114722377A (en) | Method, electronic device and system for authorization by using other devices | |
WO2022143310A1 (en) | Double-channel screen projection method and electronic device | |
CN113840030B (en) | Icon display method, electronic device and readable storage medium | |
CN111372329B (en) | Connection establishing method and terminal equipment | |
CN114546820B (en) | Application program debugging method and electronic equipment | |
CN113608753A (en) | Application uninstalling method, application recovery method, electronic device and storage medium | |
CN115185652A (en) | Application optimization method and device and electronic equipment | |
CN117459832A (en) | Camera control method, electronic equipment and storage medium | |
CN115278642B (en) | Method for acquiring information of SIM card, electronic equipment and terminal equipment | |
CN111131019B (en) | Multiplexing method and terminal for multiple HTTP channels | |
CN113835802A (en) | Device interaction method, system, device and computer readable storage medium | |
CN116662150B (en) | Application starting time-consuming detection method and related device | |
CN114006969B (en) | Window starting method and electronic equipment | |
CN117707562B (en) | Parameter updating method and terminal equipment | |
WO2024193526A1 (en) | Backup method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |